Layer-wise Quantization for Quantized Optimistic Dual Averaging

Anh Duc Nguyen, Ilia Markov, Frank Zhengqing Wu, Ali Ramezani-Kebrya, Kimon Antonakopoulos, Dan Alistarh, Volkan Cevher

Introduction

In distributed machine learning, the primary bottleneck is often communication—the time required to broadcast massive gradient updates across multiple GPUs or nodes. To mitigate this, researchers employ quantization, which compresses updates into fewer bits. However, standard approaches face two significant hurdles. First, most schemes are global, applying uniform compression across all neural network layers despite their heterogeneous statistical properties. Second, training complex models like Generative Adversarial Networks (GANs) involves solving Variational Inequalities (VIs), which typically require inefficient "extra-gradient" methods that double the communication overhead per iteration.

This paper introduces a novel layer-wise quantization framework paired with an "optimistic" optimization approach called QODA. This algorithm reduces communication overhead by half and achieves up to a 150% speedup in end-to-end training while maintaining model performance.

Adaptive Layer-wise Quantization

Modern neural architectures are highly heterogeneous; for instance, an attention layer behaves differently than a residual or embedding layer. Quantizing them equally can severely degrade performance. The authors propose a general mathematical framework that assigns different quantization sequences to different layers based on their statistical properties during training.

Comparison of Global vs. Layer-wise Quantization schemes.

As illustrated in the figure above, while global quantization applies a single compression type to all layers, the layer-wise approach allows sensitive layers to retain higher precision (e.g., Type 3: Low Compression) while less critical layers are compressed more aggressively (e.g., Type 1: High Compression). This mixed-precision update is then optimally packed using a fine-grained coding protocol to minimize bit-length.

Quantized Optimistic Dual Averaging (QODA)

To address the inefficiencies in solving VIs, the authors introduce QODA. Traditional distributed VI solvers like Q-GenX rely on extra-gradient steps, necessitating two communication rounds per iteration. QODA utilizes optimism—reusing the gradient from the previous iteration to approximate the extra step. This effectively halves the communication burden without sacrificing convergence rates.

Furthermore, the authors provide a robust theoretical foundation for QODA, proving convergence without the restrictive "almost sure boundedness" assumption typically required for stochastic gradient noise. This makes the theoretical guarantees more applicable to real-world, noisy training environments.

Key Results and Performance

The effectiveness of QODA and layer-wise quantization was evaluated across several benchmarks, including CIFAR-10/100 for Wasserstein GANs (WGAN) and WikiText-103 for Transformer-XL models.

GAN Training Efficiency

In a distributed setup with up to 16 GPUs, QODA achieved up to a 150% speedup in end-to-end wall-clock training time for WGANs compared to uncompressed baselines. Crucially, it perfectly recovered the baseline accuracy.

FID score convergence of QODA5 compared to Baseline and Q-GenX on CIFAR-10.

The figure above demonstrates that QODA5 (the green line) achieves competitive or superior FID scores compared to the baseline and existing quantized methods like Q-GenX, often converging more stably and reaching lower scores faster in terms of training steps.

Superior Compression in Language Modeling

For Transformer-XL training, the layer-wise approach achieved a 40.38x compression rate, significantly outperforming the 27.44x rate of standard global quantization while reaching the same test perplexity. This confirms that allocating bits where they matter most—such as avoiding heavy compression on sensitive embedding layers—is vital for maintaining performance in large-scale models.

Conclusion and Future Work

QODA represents a significant step forward in communication-efficient distributed training for complex models. By adapting compression to layer-wise statistics and leveraging optimistic dual averaging, it bypasses traditional bottlenecks in bandwidth-constrained environments. Future work includes extending these guarantees to non-monotone Variational Inequalities and applying these techniques to accelerate adversarial training.

Summary updated

BibTeX
@inproceedings{nguyen2025layer,
  author = {Anh Duc Nguyen and Ilia Markov and Frank Zhengqing Wu and Ali Ramezani-Kebrya and Kimon Antonakopoulos and Dan Alistarh and Volkan Cevher},
  title = {{Layer-wise Quantization for Quantized Optimistic Dual Averaging}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=J6LYjEOxbz},
}
Figure