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 · DOI

Introduction

The current paradigm of deep learning relies heavily on over-parameterized models, such as GPT-3 and BERT. While this redundancy facilitates optimization and generalization, it imposes a significant computational burden. Standard training procedures involve full backpropagation across all parameters in every iteration, regardless of whether a specific module is actively learning or merely fitting noise. This paper proposes Modular Adaptive Training (MAT), a novel strategy that selectively updates network components based on their "trainability," significantly reducing computational costs without sacrificing performance.

The Modular Neural Tangent Kernel (mNTK)

To identify which modules are learning useful features, the authors introduce the modular Neural Tangent Kernel (mNTK). The NTK is a theoretical framework that describes the evolution of a neural network's predictions during gradient descent. By modularizing this kernel, the researchers can calculate the principal eigenvalue ($\lambda_{max}$) for individual components, such as specific attention heads or convolutional filters.

Evolution of modular trainability and effective rank across epochs.

As shown in the figure above, different modules exhibit asynchronous learning patterns. Some layers learn simple features early on (high $\lambda_{max}$), while others remain "lazy" or begin to overfit to the "nuisance space"—the part of the parameter space that captures noise rather than generalizable information. MAT uses these metrics to decide where to focus computational resources.

Modular Adaptive Training (MAT)

MAT leverages the mNTK to implement a dynamic training policy. The algorithm consists of two primary components:

  1. Modular Policy: In each episode, the $\lambda_{max}$ of all modules is calculated. Only those modules exceeding a dynamic threshold are updated during the backward pass.
  2. Temporal Policy: If a module's $\lambda_{max}$ stabilizes or falls into the nuisance range, it is excluded from further updates for the remainder of the training.

Crucially, MAT only sparsifies the backward pass. The forward pass remains standard, preserving the model's structural integrity while avoiding the heavy computational cost of gradient updates for non-contributing modules.

Experimental Results

The authors evaluated MAT across various architectures, including BERT, Switch-Transformer, and VGG16. The results consistently demonstrate that MAT achieves superior efficiency and performance compared to standard training.

MAT selection threshold (left) and validation loss vs. computation for BERT (right).

As illustrated in the performance plots, MAT effectively identifies modules for backpropagation based on the mNTK threshold. For BERT, MAT achieved the same validation loss as the baseline while using approximately half the computational operations (16.5 vs. 28.7 PFLOPs). Furthermore, MAT improved the final model quality, resulting in a 15% reduction in test perplexity for BERT and a 10.4% improvement for the Switch-Transformer. In computer vision tasks, VGG16 converged 47.3% faster with MAT while maintaining higher accuracy.

Conclusion

MAT demonstrates that focusing computational resources on "information-rich" modules not only speeds up training but also improves generalization by preventing overfitting to noise. While the current implementation focuses on the backward pass, future work could explore skipping the forward pass for stable modules to achieve even greater energy savings. Additionally, the integration of MAT with network pruning techniques offers a promising path toward creating more compact and efficient models from the outset.

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