No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Models

Jean Kaddour, Oscar Key, Piotr Nawrot, Pasquale Minervini, Matt J. Kusner · OpenReview

Introduction

The computational requirements for training state-of-the-art Transformer-based language models have grown exponentially, leading to significant financial and environmental costs. This trend has catalyzed a surge in research into "efficient training algorithms"—methods designed to achieve high performance faster than standard training procedures. However, the lack of standardized evaluation protocols makes it difficult to discern whether these methods offer genuine improvements or if their reported gains are artifacts of specific experimental settings.

In the research paper "No Train No Gain," researchers from UCL and the University of Edinburgh critically re-evaluate several popular efficiency-enhancing techniques. Their findings suggest that many reported speedups disappear when models are compared under a fixed computation budget with properly tuned baselines and fully-decayed learning rate schedules.

The Pitfalls of Efficiency Measurement

The authors identify three primary methodological flaws in current efficiency research that often lead to over-optimistic results:

  1. The Iteration Pitfall: Many studies report performance gains relative to the number of training steps or iterations. However, if an algorithm introduces significant per-step overhead (e.g., extra forward passes or complex gradient calculations), it may actually take longer in wall-clock time to reach the same performance level as a simpler baseline.
  2. The Intermediate Performance Pitfall: Efficiency is often claimed based on performance at the midpoint of training. This is misleading because deep learning models typically achieve their most significant gains during the final learning rate decay phase. A method that looks superior at 50% of the budget may be overtaken by a standard baseline once both have completed their full learning rate schedules.
  3. Hardware Variability: Comparing training times across different hardware generations (e.g., V100 vs. H100) is inherently unreliable, making it difficult to replicate or verify efficiency claims across different research environments.

A Standardized Protocol: Reference System Time (RST)

To address these issues, the researchers introduce Reference System Time (RST). This protocol maps all computation performed on arbitrary hardware to a reference machine (in this study, an NVIDIA RTX 3090). By measuring the actual time taken for operations and normalizing it, the authors can compare algorithms on a level playing field of total "compute time" rather than steps.

Under this protocol, every method is evaluated against a "crammed" BERT or T5 baseline using a fixed time budget (6, 12, or 24 hours). Crucially, the learning rate schedule for every run is tuned to ensure the decay completes exactly at the end of the allocated budget, providing a fair comparison of final model quality.

Evaluated Algorithms and Datasets

The study revisits three major categories of efficient training techniques:

  • Dynamic Architectures: Including Layer Stacking (progressively increasing model depth) and Layer Dropping (randomly skipping layers during training to reduce per-step compute).
  • Batch Selection: Techniques like Selective Backprop and RHO Loss, which attempt to prioritize "informative" or high-loss data points to accelerate learning.
  • Efficient Optimizers: Recently proposed alternatives to AdamW, such as Lion and Sophia, which claim faster convergence or better memory efficiency.

These models were pre-trained on massive text corpora including C4, Wikipedia + BookCorpus, and MiniPile, then evaluated on standard downstream benchmarks like GLUE, SuperGLUE, and SNI (Super-Natural-Instructions).

Key Findings: The Vanishing Gains

The results of the rigorous re-evaluation are sobering for the efficiency research community:

1. The Baseline is Robust

A standard AdamW optimizer, when paired with a properly tuned "one-cycle" or linear decay learning rate schedule, is remarkably difficult to outperform. Most specialized algorithms only showed advantages when compared to sub-optimally tuned baselines.

2. Overhead Negates Algorithmic Gains

Methods like RHO Loss or the Sophia optimizer require additional computation, such as extra forward passes or Hessian estimates. While these methods might improve the "per-step" learning rate, the time spent on these extra calculations means the model performs fewer total updates within the fixed time budget. In almost all cases, the "dumb" approach of training on more data with a simpler, faster optimizer yielded better final results.

3. Diminishing Returns with Scale

While some methods like Layer Stacking showed modest gains in extremely low-budget scenarios (e.g., 6-hour runs), these advantages tended to vanish as the training budget increased to 24 hours. As the model is allowed more time to converge, the standard training procedure catches up and often surpasses the "efficient" variants.

4. Downstream Performance

When evaluated on downstream tasks, none of the tested efficient training algorithms provided a statistically significant improvement over the baseline within a 24-hour budget. In fact, batch selection methods often performed worse because the time spent selecting data was better spent simply training on more of it.

Conclusion

The study concludes that there is often "No Train No Gain" in the quest for Transformer efficiency. Many proposed shortcuts fail to deliver when subjected to a rigorous, time-bounded evaluation. For practitioners, the most reliable path to high performance remains a well-tuned standard baseline. For researchers, the paper serves as a call to action to adopt more rigorous evaluation protocols, such as Reference System Time, and to prioritize wall-clock time and fully-decayed schedules over iteration-based metrics.

Summary updated

BibTeX
@inproceedings{kaddour2023no,
  author = {Jean Kaddour and Oscar Key and Piotr Nawrot and Pasquale Minervini and Matt J. Kusner},
  title = {{No Train No Gain: Revisiting Efficient Training Algorithms For Transformer-based Language Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=thbXgJ8gNK},
}
Figure