[Paper Review] CosSGD: Communication-Efficient Federated Learning with a Simple Cosine-Based Quantization
This paper proposes CosSGD, a communication-efficient federated learning method using a novel cosine-based nonlinear quantization to compress both model weights and gradients. By allocating finer quantization levels to larger-magnitude values, CosSGD achieves state-of-the-art performance at ultra-high compression ratios—matching full-precision training even at 1-bit quantization—while maintaining low computational overhead and compatibility with existing techniques like gradient sparsification.
Federated learning is a promising framework to mitigate data privacy and computation concerns. However, the communication cost between the server and clients has become the major bottleneck for successful deployment. Despite notable progress in gradient compression, the existing quantization methods require further improvement when low-bits compression is applied, especially the overall systems often degenerate a lot when quantization are applied in double directions to compress model weights and gradients. In this work, we propose a simple cosine-based nonlinear quantization and achieve impressive results in compressing round-trip communication costs. We are not only able to compress model weights and gradients at higher ratios than previous methods, but also achieve competing model performance at the same time. Further, our approach is highly suitable for federated learning problems since it has low computational complexity and requires only a little additional data to recover the compressed information. Extensive experiments have been conducted on image classification and brain tumor semantic segmentation using the CIFAR-10, and BraTS datasets where we show state-of-the-art effectiveness and impressive communication efficiency.
Motivation & Objective
- To address the high communication cost in federated learning, especially under extreme low-bit quantization.
- To improve model performance under low-bit compression by better preserving informative large-magnitude weights and gradients.
- To design a quantization scheme with low computational complexity suitable for resource-constrained edge devices.
- To ensure compatibility with existing communication-reduction techniques such as gradient sparsification and lossless compression.
- To achieve state-of-the-art communication efficiency without requiring additional training or significant computational overhead.
Proposed method
- The method uses a cosine-based nonlinear quantization function that creates non-uniform quantization intervals, with finer resolution for larger-magnitude values and coarser for smaller ones.
- The quantization is applied independently to model weights and gradients, enabling round-trip compression between server and clients.
- The cosine function is chosen for its ability to minimize quantization error on extreme values, which are more informative in optimization.
- The approach requires no additional training or model fine-tuning, making it directly applicable to existing federated learning pipelines.
- It is compatible with gradient sparsification and lossless compression (e.g., Deflate), allowing cumulative communication cost reduction.
- The method introduces minimal additional computational cost, making it suitable for edge devices with limited resources.
Experimental results
Research questions
- RQ1Can a nonlinear quantization scheme that prioritizes large-magnitude values improve model performance under extreme low-bit compression in federated learning?
- RQ2How does cosine-based quantization compare to linear and k-means-based quantization in terms of accuracy and communication efficiency?
- RQ3Can the proposed method maintain high performance when combined with gradient sparsification and lossless compression?
- RQ4Does the method achieve better communication efficiency than existing state-of-the-art quantization techniques at 1-bit and 2-bit levels?
- RQ5Is the method computationally lightweight enough to be deployed on resource-constrained edge devices in real-world federated learning systems?
Key findings
- CosSGD achieves 84.2% top-1 accuracy on CIFAR-10 with 1-bit quantization, only 1% lower than full-precision training (85.2%).
- The method outperforms unbiased linear quantization with Hadamard rotations and residual storage by a significant margin, especially at 1-bit compression.
- On the BraTS2019 brain tumor segmentation task, CosSGD achieves higher Dice scores than k-means and linear quantization under the same compression settings.
- When combined with 5% gradient sparsification and Deflate compression, CosSGD achieves over 1000× total communication compression while maintaining competitive model performance.
- CosSGD is the only method able to effectively compress model weights at 4-bit precision without performance degradation, outperforming alternatives at the same cost level.
- The method maintains consistent performance across both image classification and 3D medical image segmentation tasks, demonstrating broad applicability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.