LGAICVFeb 28, 2025

Oscillation-Reduced MXFP4 Training for Vision Transformers

arXiv:2502.20853v215 citationsh-index: 13Has CodeICML
Originality Incremental advance
AI Analysis

This work addresses the challenge of efficient low-precision training for vision models, offering a solution to reduce accuracy loss in 4-bit training, which is incremental as it builds on existing MXFP4 methods.

The paper tackles the problem of significant accuracy degradation in training Vision Transformers with MXFP4 precision by identifying weight oscillation as the main cause and proposing methods to reduce it, resulting in a more than 50% decrease in accuracy degradation compared to the baseline and competitive performance with full precision training.

Pre-training Transformers in FP4 precision is becoming a promising approach to gain substantial speedup, but it comes with a considerable loss of accuracy. Microscaling (MX) data format provides a fine-grained per-group quantization method to improve the representation ability of the FP4 format and is supported by the next-generation Blackwell GPU architecture. However, training with MXFP4 data format still results in significant degradation and there is a lack of systematic research on the reason. In this work, we propose a novel training method TetraJet for a more accurate FP4 training. We comprehensively evaluate all of the quantizers involved in the training, and identify the weight oscillation problem in the forward pass as the main source of the degradation in MXFP4 training. Therefore, we introduce two novel methods, EMA Quantizer (Q-EMA) and Adaptive Ramping Optimizer (Q-Ramping), to resolve the oscillation problem. Extensive experiments on Vision Transformers demonstrate that TetraJet consistently outperforms the existing 4-bit training methods, and Q-EMA & Q-Ramping can provide additional enhancement by effectively reducing oscillation. We decreased the accuracy degradation by more than $50\%$ compared to the baseline, and can even achieve competitive performance compared to full precision training. The codes are available at https://github.com/thu-ml/TetraJet-MXFP4Training

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes