Train Faster, Perform Better: Modular Adaptive Training in Over-Parameterized Models

Yubin Shi, Yixuan Chen, Mingzhi Dong, Xiaochen Yang, Dongsheng Li, Yujiang Wang, Robert P. Dick, Qin Lv, Yingying Zhao, Fan Yang, Tun Lu, Ning Gu, Li Shang

Introduction

Modular Adaptive Training (MAT) is a novel training strategy designed to significantly cut the computational cost of large models by selectively updating only the most "trainable" components. By introducing the modular Neural Tangent Kernel (mNTK), researchers can identify which parts of a network—such as specific attention heads—are learning useful features and which are merely fitting noise. This allows the training process to skip unnecessary backpropagation steps, achieving better accuracy with nearly 50% less compute.

The Asynchrony Problem in Over-Parameterized Models

Over-parameterized models, including Transformers and Large Language Models (LLMs), are incredibly powerful but notoriously expensive to train, often requiring weeks or months on massive GPU clusters.

A fundamental inefficiency in standard training is asynchrony. Traditional training treats every module (e.g., every attention head or convolutional filter) identically, forcing a full backpropagation cycle through the entire network at every step. However, different modules learn at different speeds. Some converge quickly on common features, while others might spend cycles learning superfluous features or noise that actually hurts the model's ability to generalize.

Learning dynamics of different attention heads over time.

As illustrated above, the learning capabilities of different modules vary significantly over time. The challenge lies in finding a mathematically sound way to identify which modules are actively contributing to useful learning at any given moment.

Modular Adaptive Training (MAT)

To address this asynchrony, the authors introduce the modular Neural Tangent Kernel (mNTK). While the standard NTK describes the evolution of an entire network, the mNTK zooms in on individual modules to assess their specific learning dynamics.

  1. Measuring Trainability ($\lambda_{max}$): The principal eigenvalue ($\lambda_{max}$) of a module's mNTK serves as a reliable proxy for its "trainability." A large $\lambda_{max}$ indicates the module is learning consistent, informative features. Conversely, a tiny $\lambda_{max}$ suggests the module has entered a "nuisance space," contributing little to loss reduction while increasing the risk of overfitting.
  2. Modular Policy: During training, MAT calculates the $\lambda_{max}$ for each module and establishes a dynamic threshold. Only modules with a $\lambda_{max}$ exceeding this threshold receive a gradient update, focusing computational effort on the most productive parts of the model.
  3. Temporal Policy: Once a module's $\lambda_{max}$ stabilizes or drops too low, further training yields diminishing returns and can lead to overfitting. MAT's temporal policy halts updates for these modules.
  4. Efficiency: By only performing backpropagation for a carefully selected subset of modules, MAT drastically reduces the number of floating-point operations (FLOPs) required per epoch.

Experimental Results

The researchers evaluated MAT across both Natural Language Processing (NLP) and Computer Vision (CV) tasks, utilizing datasets like WikiText-2, WikiText-103, and CIFAR-10 across models such as BERT, Switch-Transformer, and VGG16.

MAT thresholding and validation loss vs. computation.
  • Compute Savings: As shown in the validation loss curves above, MAT achieves better test perplexity for BERT training on WikiText-2 while using only 16.5 PFLOPs compared to the vanilla model's 28.7 PFLOPs—nearly a 43% reduction in total compute.
  • Performance Boost: MAT consistently outperformed baselines in accuracy. For instance, on the Switch-Transformer, MAT achieved a lower test loss (1.68 vs 1.74) using roughly half the computation of the standard version. By cutting off updates to modules in the nuisance space, MAT acts as a dynamic regularizer, often resulting in better final test accuracy.
  • VGG16 Speedup: On CIFAR-10, MAT helped the VGG16 model converge 47.3% faster than standard training while maintaining higher top-1 accuracy.

Limitations and Future Work

While MAT offers substantial backward-pass savings, the forward pass still runs through all modules to maintain representational power. Future work could explore "early exiting" or skipping the forward pass for stable modules to maximize energy efficiency. Additionally, while the lightweight approximation used to calculate mNTK eigenvalues adds negligible overhead (less than 1% of total training cost), scaling this approach to trillion-parameter LLMs like GPT-4 or Llama-3 remains an exciting frontier where modularity is even more pronounced.

Summary updated

BibTeX
@inproceedings{shi2023train,
  author = {Yubin Shi and Yixuan Chen and Mingzhi Dong and Xiaochen Yang and Dongsheng Li and Yujiang Wang and Robert P. Dick and Qin Lv and Yingying Zhao and Fan Yang and Tun Lu and Ning Gu and Li Shang},
  title = {{Train Faster, Perform Better: Modular Adaptive Training in Over-Parameterized Models}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=0F1nyKKjnh},
}
Figure