Distributed Methods with Compressed Communication for Solving Variational Inequalities, with Theoretical Guarantees

Aleksandr Beznosikov, Peter Richtárik, Michael Diskin, Max Ryabinin, Alexander Gasnikov

Introduction In modern machine learning, many advanced formulations—such as Generative Adversarial Networks (GANs), robust optimization, and adversarial training—move beyond simple function minimization into the realm of Variational Inequalities (VIs) and Saddle Point Problems (SPPs). Training these complex models requires distributing workloads across multiple machines. However, a significant "communication bottleneck" arises: the time spent transmitting massive gradient vectors between workers and servers often eclipses the actual computation time.

While data compression (reducing the precision or size of transmitted data) is a well-established solution for standard optimization, applying it to VIs is notoriously difficult. Standard distributed methods, like the Extra Gradient algorithm, often diverge or become highly unstable when relying on "lossy" or compressed information. To address this, researchers have introduced MASHA1 and MASHA2, the first theoretically grounded distributed algorithms for solving VIs and SPPs using communication compression. By combining variance reduction, negative momentum, and error feedback, these methods achieve significant communication speedups without sacrificing model quality or theoretical convergence guarantees.

Methodology: The MASHA Frameworks The core innovation of the MASHA algorithms is how they handle compression. Unlike previous attempts that compress the entire gradient or operator, MASHA compresses the difference between the current operator value and a reference value ($F(z^{new}) - F(z^{old})$). This ensures that the compression error naturally diminishes as the algorithm converges toward a solution. Furthermore, the algorithms support bidirectional compression (compressing data sent both to and from the server) and can be adapted for Federated Learning environments with partial client participation.

The authors propose two distinct algorithmic variants tailored to different types of compressors:

  • MASHA1 (for Unbiased Compressors): Designed for operators like Rand-k, which send a random subset of coordinates. MASHA1 utilizes a "negative momentum" technique and variance reduction. A specific parameterization ($\tau$) occasionally triggers a full, uncompressed communication round, acting as a "reset" that keeps variance in check and prevents noise from derailing convergence.
  • MASHA2 (for Contractive Compressors): Designed for operators like Top-k, which transmit only the largest values. This version incorporates Error Feedback, a mechanism that stores the information discarded during compression and adds it back into subsequent steps, ensuring no critical data is permanently lost.

Experimental Setup The researchers evaluated MASHA on two distinct scales to validate both theoretical properties and practical utility:

  1. Synthetic Bilinear Problem: A standard toy min-max problem used to verify theoretical convergence rates and compare against baselines like Quantized Gradient Descent (QGD).
  2. Large-Scale NLP: The team performed distributed adversarial training of an ALBERT-large transformer model using the Bookcorpus and Wikipedia datasets. The trained models were subsequently evaluated on the GLUE benchmark (including tasks like CoLA, MNLI, MRPC, QNLI) to confirm that compression did not degrade downstream language understanding.

Key Insights and Results The empirical results strongly support the theoretical claims, demonstrating that MASHA effectively bridges the gap between communication efficiency and model performance in min-max settings.

  • Massive Communication Speedups: In the ALBERT training experiments, utilizing "Power" compression (a low-rank method) reduced the average communication time per round from a baseline of 8.79 seconds down to just 1.57 seconds—a nearly 5.6x improvement.
  • Preserved Model Quality: Despite aggressive compression, the models achieved downstream GLUE scores comparable to the uncompressed baselines. For instance, on the MNLI task, the "Mixed 8-bit" compression yielded a score of 81.3, slightly edging out the baseline's 81.1.
  • Robustness of Error Feedback: In practical settings, MASHA2 (contractive with error feedback) outperformed MASHA1 (unbiased), confirming that error feedback is a highly effective tool for stabilizing complex min-max problems.
  • Theoretical Optimality: The authors hypothesize that their communication complexity—which scales with the square root of the number of workers and the compression factor—is likely unimprovable, matching the best-known rates for simpler minimization problems.

Limitations and Future Directions While MASHA represents a significant step forward, the authors note a few limitations. First, the current theoretical framework for MASHA1 relies on a small probability of sending a full, uncompressed package. While rare in practice, relaxing this theoretical requirement remains an open challenge. Second, although the authors believe their convergence rates are optimal based on analogies to standard minimization, formal lower bounds for compressed VIs have not yet been proven. Finally, like many advanced distributed methods, MASHA introduces new hyperparameters (such as step size and the full-communication probability) that may require careful tuning for specific hardware setups or novel model architectures.

Summary updated

BibTeX
@inproceedings{beznosikov2022distributed,
  author = {Aleksandr Beznosikov and Peter Richtárik and Michael Diskin and Max Ryabinin and Alexander Gasnikov},
  title = {{Distributed Methods with Compressed Communication for Solving Variational Inequalities, with Theoretical Guarantees}},
  booktitle = {International Conference on Learning Representations},
  year = {2022},
  url = {https://openreview.net/forum?id=wClmeg9u7G},
}
Figure