Quantifying Hyperparameter Transfer and the Importance of Embedding Layer Learning Rate

· Source: Artificial Intelligence · Field: Technology & Digital — Artificial Intelligence & Machine Learning · Depth: Expert, quick

Summary

A new framework quantifies hyperparameter transfer for large language models (LLMs) using three metrics: scaling law fit quality, robustness to extrapolation errors, and asymptotic loss penalty from parameterization choice. This research investigates why Maximal Update ($μ$P) outperforms standard parameterization (SP) in learning rate transfer, particularly with AdamW. The primary finding reveals that $μ$P's advantage is largely due to its maximized learning rate for the embedding layer. In SP, the embedding layer's learning rate often bottlenecks training, causing instabilities. Aligning SP's embedding layer learning rate with $μ$P's by increasing it by a factor of width significantly stabilizes training and enhances hyperparameter transfer. Additionally, weight decay is shown to improve scaling law fits but negatively impacts extrapolation robustness in fixed token-per-parameter settings.

Key takeaway

For Machine Learning Engineers training large language models with AdamW, you should critically evaluate your embedding layer's learning rate. If using standard parameterization, increasing your embedding layer's learning rate by a factor of width, similar to Maximal Update (\$μ\$P), can significantly improve training stability and hyperparameter transfer. This adjustment can mitigate bottlenecks and enhance the scalability of your optimization efforts, making your models more robust to extrapolation.

Key insights

Maximal Update (\$μ\$P) improves LLM hyperparameter transfer by maximizing the embedding layer's learning rate, a bottleneck in standard parameterization.

Principles

Method

A framework quantifies hyperparameter transfer using three metrics: scaling law fit quality, robustness to extrapolation errors, and asymptotic loss penalty due to parameterization.

In practice

Topics

Best for: Research Scientist, AI Engineer, NLP Engineer, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.