Abstract
Distributed deep learning typically relies on simple gradient averaging, which treats all worker updates as equally informative. We present AdaCons (Adaptive Consensus), a novel aggregation method that treats gradient combination as a subspace optimization problem. By weighting gradients based on their alignment with the group consensus and smoothing these weights with momentum, AdaCons achieves faster convergence and improved final accuracy across diverse MLPerf benchmarks with minimal computational overhead.
Introduction
In distributed deep learning, Synchronous Data Parallelism is the standard paradigm: multiple worker nodes process different data batches, compute local gradients, and average them to update a central model. However, simple averaging assumes all gradients are equally valuable, ignoring potential noise from "bad" local minima or out-of-distribution samples.
Existing alternatives to simple averaging often require extensive hyper-parameter tuning or introduce significant communication overhead. AdaCons addresses these challenges by re-imagining gradient aggregation through the lens of subspace optimization, providing a mathematically grounded, "plug-and-play" solution that identifies and amplifies directions of worker consensus.
Methods
AdaCons moves beyond simple summation by seeking the optimal linear combination of gradients within the subspace spanned by the $N$ worker updates.
Subspace Formulation and Approximation
Instead of a uniform average, AdaCons seeks weights that minimize the original loss function within the gradient subspace. To maintain efficiency, the method uses a first-order Taylor expansion to derive a closed-form solution. This approach assigns higher weights to gradients that align most closely with the overall group direction, effectively filtering out local noise.
Momentum and Unbiased Estimation
To prevent weight instability between iterations, AdaCons applies an Exponential Moving Average (EMA) to the coefficients, ensuring smooth evolution of the weighting scheme. Crucially, the weights are normalized to sum to one. This makes the estimator unbiased, allowing AdaCons to replace standard averaging in any SGD-based optimizer without requiring re-tuning of learning rates.
Results and Discussion
The authors evaluated AdaCons on a variety of high-stakes benchmarks from the MLPerf V4.0 suite, including ImageNet (ResNet-50v1), BERT-Large, and RetinaNet.
Performance Across Scales
Initial proof-of-concept tests on synthetic tasks demonstrate that AdaCons consistently outperforms standard summation ("SUM") across various worker counts and effective batch sizes (EBS).
As shown in the scaling grid above, AdaCons exhibits superior convergence speed, particularly as the number of workers and batch size increase. In the most extreme case tested (128 workers, EBS=16384), the gap in convergence speed is most pronounced, demonstrating the method's robustness at scale.
MLPerf Benchmarks
On real-world tasks, AdaCons delivered significant gains:
- ImageNet: 1% improvement in final validation accuracy.
- BERT: 14% faster convergence to baseline loss.
- RetinaNet: 0.7% mAP gain with 16 workers.
Importantly, these gains come with negligible overhead, with only a 1.04x to 1.05x slowdown per iteration compared to highly optimized PyTorch all-reduce operations.
Conclusion
AdaCons provides the benefits of second-order optimization—such as implicit preconditioning—using only first-order gradient information. By leveraging worker consensus, it offers a robust, parameter-free scaling solution for distributed training. Future work will explore its performance at the scale of thousands of GPUs and the potential integration of direct Hessian information into the subspace optimization.
Summary updated