TL;DR
The authors introduce Gemstones, an open-source suite of over 4,000 transformer checkpoints up to 2 billion parameters, specifically designed to study how architectural shape (width vs. depth) and hyperparameters affect scaling laws. They reveal that traditional scaling laws are highly fragile and sensitive to experimental design, and show that while deep models are more FLOP-efficient, wide models are significantly faster to train in terms of actual wall-clock time.
What Problem Does This Paper Address?
Scaling laws (like the famous Chinchilla law) dictate how much compute, data, and parameters are needed to train optimal language models. However, these laws typically treat model size as a single dimension, freezing critical hyperparameters and restricting architectures to a narrow range of width-to-depth ratios.
In practice, AI practitioners often apply these rigid prescriptions to entirely different setups without knowing if they hold true. This paper addresses this gap by systematically exploring how architectural variations (width and depth), learning rates, and cooldown schedules alter the trajectory of scaling laws.
Methods
The authors trained 22 different model architectures ranging from 50 million to 2 billion parameters, spanning 11 distinct widths and 18 depths.
To achieve this, they introduced several methodological innovations:
- Hybrid Learning Rate Scaling Rule: Standard rules scale learning rate based solely on width or depth. Because Gemstones vary along both dimensions, the authors proposed a hybrid rule: $\text{lr}_{\text{eff}} = \text{lr}_{\text{base}} / (\text{width} \times \sqrt{\text{depth}})$, which successfully stabilized training across extreme shapes.
- The Convex Hull Fitting Method: Traditional scaling law fitting relies on "isoFLOP binning," which requires a dense grid of optimal models. Because the Gemstones suite explores a sparse 2D space (width and depth), the authors developed a novel method that fits a lower convex hull to the loss curves, isolating only the strictly pareto-optimal models and ignoring suboptimal configurations.
- Ablation Frameworks: They performed extensive ablations by altering learning rates and implementing linear cooldown schedules to isolate their impacts on final model performance.
Datasets
- Training: All models were trained on up to 350 billion tokens from the Dolma 1.7 dataset.
- Validation & Cross-Distribution Evaluation: To test if scaling laws depend on the evaluation data distribution, the authors evaluated performance across Dolma, FineWeb, FineWeb-Edu, and DCLM-baseline.
- Downstream Benchmarks: Models were evaluated at 10-billion-token intervals across 8 standard benchmarks, including MMLU, HellaSwag, ARC, WinoGrande, and OpenBook QA.
Key Insights and Ideas
- The Fragility of Scaling Laws: Scaling laws are incredibly sensitive. Seemingly minor choices—such as whether to include embedding parameters in the total count, or changing the data sampling frequency—drastically alter the power-law exponent (the slope of the law).
- FLOPs vs. Wall-Clock Time: This is the paper's major "aha!" moment. When measuring efficiency by floating-point operations (FLOPs), deep models consistently outperform wide models. However, when measuring actual training time (GPU hours), wider models are significantly more efficient. This is because standard open-source tensor parallelism frameworks struggle to parallelize deep, narrow architectures efficiently.
- Overtraining is Highly Efficient: Industry models often train on far more tokens per parameter than scaling laws recommend. The authors quantify this "overtraining" cost and find that the loss curves are remarkably flat; overtraining a smaller model results in only a tiny loss penalty while drastically reducing inference costs.
Key Results
- The Artifact: The authors open-sourced over 4,000 checkpoints cumulatively trained on more than 10 trillion tokens, creating a massive playground for future scaling research.
- Robustness of Rank Ordering: While absolute loss values shift depending on the validation dataset used, the relative performance ranking of different model shapes remains completely stable. This implies that researchers can reliably fit scaling laws using non-i.i.d. validation sets.
- The Cost of Suboptimal Shapes: Choosing a "skinny" or poorly proportioned model architecture can waste up to 50% more FLOPs and over 200% more GPU hours compared to an optimal width-depth configuration.
Limitations and Future Work
While comprehensive, the Gemstones suite kept several hyperparameters constant, including the transformer expansion factor (FFN hidden dimension ratio), vocabulary size, and batch size.
Additionally, the finding that wide models are faster than deep models is tightly coupled to their specific hardware setup (AMD MI250X GPUs) and parallelization strategy (tensor parallelism without pipeline parallelism). The authors note that alternative parallelism frameworks might yield different wall-clock time results, and they encourage the community to use their open-source codebase to re-fit these laws on varied hardware topologies.
Summary updated