STQuant: Spatio-Temporal Adaptive Framework for Optimizer Quantization in Large Multimodal Model Training
Organizations: Xidian University Xian, Shaanxi, China · China Telecom Cloud Computing Research Institute Beijing, China
Abstract
Quantization is an effective way to reduce the memory cost of large-scale model training. However, most existing methods adopt fixed-precision policies, which ignore the fact that optimizer-state distributions vary significantly across layers and training steps. Such uniform designs often introduce noticeable accuracy degradation. To move beyond fixed quantization, we propose STQuant, a distributed training framework that reduces the memory footprint of optimizer states via dynamic precision allocation across layers, state variables, and training steps, while maintaining model quality. Naively applying dynamic quantization during training is challenging for two reasons. First, optimizer states are numerically sensitive, and quantization noise can destabilize quality. Second, jointly considering multiple states and layers induces a large combinatorial search space. STQuant addresses these challenges with two key techniques: 1) a provably near-optimal factor selection strategy that accurately identifies the most influential factors for precision adaptation. 2) a dynamic transition decision algorithm that reduces the search cost from exponential to linear complexity. Experiments on GPT-2 and ViT show that STQuant reduces optimizer-state memory by 84.4%, achieving an average bit-width of as low as 5.1 bits, compared with existing solutions. Moreover, STQuant incurs only O(N/K) computational overhead and requires O(1) extra space.
Figures & tables
| Stage | Task | Data | Model | Metric |
| Pre-train | LM | OpenWebText | GPT2-XL | Loss |
| Pre-train | VRecon | COCO 2017 | ViT-Base | Loss / Top-1 |
| Fine-tune | NLU | MNLI | RoBERTa-Large | Accuracy |
| Fine-tune | Vision | COCO 2017 | ViT-Base | mAP |
| Fine-tune | LM | Wikitext-103 | GPT2-Medium | PPL |
| Fine-tune | ITR | COCO 2017 | ViT-B/32 | Recall@1 |
| Optimizer | State | Avg. | Top-1 (%) |
| 32-bit AdamW | 32-bit | 32.0 | 31.44 |
| 8-bit AdamW (bnb) | 8-bit | 8.0 | 31.68 |
| STQuant | Dynamic | 5.1 | 31.64 |
| Task Setting | ||||||
| Optimizer | Task | Data | Model | Metric | Value | Opt.State Mem Saved |
| 32-bit AdamW | GLUE | MNLI | RoBERTa-Large | Accuracy( ) | 0.9060 | reference |
| 8-bit AdamW(bnb) | GLUE | MNLI | RoBERTa-Large | Accuracy( ) | 0.9002 | 75.0% |
| STQuant | GLUE | MNLI | RoBERTa-Large | Accuracy( ) | 0.9032 | 84.4% |
| 32-bit AdamW | Classification | COCO 2017 | ViT-Base | mAP( ) | 0.72669 | reference |
| 8-bit AdamW(bnb) | Classification | COCO 2017 | ViT-Base | mAP( ) | 0.73082 | 75.0% |
| Method | AvgBit | AvgBit | PPL | PPL |
| STQuant (Full) | 6.3 | 0.0 | 127.3 | 0.0 |
| w/o Dual Factor | 6.4 | +0.1 | 130.2 | +2.9 |
| w/o Temporal Factor | 5.8 | -0.5 | 128.7 | +1.4 |
| w/o Spatial Factor | 8.0 | +1.7 | 125.6 | -1.7 |
Neural Network Quantization
Neural network quantization represents weights, activations, and states with fewer bits to reduce memory use, computation, and deployment costs.
See all 394 papers