Distributed machine learning often faces a significant bottleneck: the massive communication overhead required to synchronize gradients between workers and a central server. This is particularly challenging for stochastic minimax problems, which are essential for tasks like adversarial training and AUC maximization. This paper, presented at IJCAI-23, introduces two novel algorithms designed to address this challenge through two-way compression and error-feedback mechanisms.
The Challenge of Distributed Minimax Optimization
In distributed minimax optimization, one set of parameters minimizes a loss while another maximizes it. This "tug-of-war" is mathematically volatile. While communication-efficient techniques (like gradient compression) exist for standard minimization, they often cause divergence in minimax settings because the interaction between the minimization and maximization subproblems becomes unstable when information is lost during compression.
Proposed Methodology: SGDAM-PEF and SGDAM-REF
The authors propose two momentum-based algorithms that utilize two-way compression—compressing data sent both from workers to the server (uplink) and from the server to workers (downlink):
- SGDAM-PEF (Plain Error-Feedback): This algorithm compresses the momentum buffer rather than raw gradients. It employs an error-feedback mechanism to store the difference between compressed and uncompressed values, re-incorporating this "error" into the next step to prevent permanent information loss.
- SGDAM-REF (Recursive Error-Feedback): This version uses a recursive compression scheme that tracks the difference between current momentum and a previous approximation. This ensures that the residual compression error eventually shrinks toward zero, providing even tighter convergence.
By focusing on momentum rather than raw gradients, these algorithms act as a low-pass filter, providing a more stable signal for the minimax optimization process.
Experimental Results
The algorithms were evaluated on distributed AUC maximization across five benchmark datasets: CATvsDOG, CIFAR10, CIFAR100, STL10, and Melanoma. To simulate real-world imbalanced conditions (common in medical imaging or fraud detection), the positive classes were downsampled to 10%.
Convergence and Stability
A critical finding is the necessity of error feedback. As shown in the convergence plots, algorithms without error feedback (SGDAM-NEF) often fail to reach competitive performance or diverge entirely. In contrast, the proposed PEF and REF variants achieve nearly the same AUC as full-precision training (SGDAM).
Communication Efficiency
The primary advantage of these methods is the drastic reduction in communication volume. Using Top-k sparsification, the authors achieved compression ratios as high as 98%. The following figure illustrates that the proposed methods reach peak performance with a fraction of the data transfer required by standard SGDAM.
Key Insights
- Linear Speedup: The paper theoretically proves that these algorithms maintain "linear speedup," meaning that doubling the number of workers roughly halves the iterations needed for convergence, despite the high compression.
- Top-k Superiority: Experiments confirmed that
Top-kcompression (keeping the largest magnitude values) significantly outperformsRand-k(random selection), as the largest gradients carry the most critical information for the minimax game. - Two-Way Compression: Compressing both the uplink and downlink is vital for large-scale models where the server's broadcast step can be a major bottleneck.
Conclusion
SGDAM-PEF and SGDAM-REF provide a robust framework for communication-efficient distributed minimax optimization. By combining momentum, two-way compression, and error feedback, these algorithms allow for significant bandwidth savings without sacrificing the stability or performance of the underlying model.
Summary updated