arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2312.13461cs.DC
收藏

FedSZ:利用误差有界有损压缩进行联邦学习通信

FedSZ: Leveraging Error-Bounded Lossy Compression for Federated Learning Communications

Grant Wilkins, Sheng Di, Jon C. Calhoun, Zilinghan Li, Kibaek Kim, Robert Underwood, Richard Mortier, Franck Cappello

AI总结:

本文提出FedSZ有损压缩算法,通过数据分区与有损无损压缩结合的流水线最小化联邦学习中的模型更新大小,在保持精度的同时显著降低通信开销,并发现其误差可作为差分隐私噪声源。

摘要:

随着联邦学习(FL)允许地理分布式和高度个性化服务的前景,客户端与服务器之间高效交换模型更新变得至关重要。FL虽然是去中心化的,但经常面临通信瓶颈,尤其是在资源受限的场景中。现有的数据压缩技术如梯度稀疏化、量化和剪枝提供了一些解决方案,但可能会损害模型性能或需要昂贵的重新训练。在本文中,我们介绍了FedSZ,这是一种专门的有损压缩算法,旨在最小化FL中客户端模型更新的大小。FedSZ包含一个全面的压缩流水线,具有数据分区、模型参数和元数据的有损和无损压缩以及序列化功能。我们使用一套误差有界有损压缩器评估了FedSZ,最终发现SZ2在各种模型架构和数据集(包括AlexNet、MobileNetV2、ResNet50、CIFAR-10、Caltech101和Fashion-MNIST)中最有效。我们的研究表明,相对误差界限1E-2实现了最佳权衡,将模型状态压缩5.55-12.61倍,同时将推理准确率保持在未压缩结果的<0.5%以内。此外,FedSZ的运行时开销<4.7%或处于实际通信轮次时间之间,对于将网络带宽<500Mbps的网络传输时间减少一个数量级而言,这是一个值得的权衡。有趣的是,我们还发现FedSZ引入的误差有可能作为差分隐私噪声的来源,为隐私保护的FL开辟了新途径。

英文摘要:

With the promise of federated learning (FL) to allow for geographically-distributed and highly personalized services, the efficient exchange of model updates between clients and servers becomes crucial. FL, though decentralized, often faces communication bottlenecks, especially in resource-constrained scenarios. Existing data compression techniques like gradient sparsification, quantization, and pruning offer some solutions, but may compromise model performance or necessitate expensive retraining. In this paper, we introduce FedSZ, a specialized lossy-compression algorithm designed to minimize the size of client model updates in FL. FedSZ incorporates a comprehensive compression pipeline featuring data partitioning, lossy and lossless compression of model parameters and metadata, and serialization. We evaluate FedSZ using a suite of error-bounded lossy compressors, ultimately finding SZ2 to be the most effective across various model architectures and datasets including AlexNet, MobileNetV2, ResNet50, CIFAR-10, Caltech101, and Fashion-MNIST. Our study reveals that a relative error bound 1E-2 achieves an optimal tradeoff, compressing model states between 5.55-12.61x while maintaining inference accuracy within <0.5% of uncompressed results. Additionally, the runtime overhead of FedSZ is <4.7% or between of the wall-clock communication-round time, a worthwhile trade-off for reducing network transfer times by an order of magnitude for networks bandwidths <500Mbps. Intriguingly, we also find that the error introduced by FedSZ could potentially serve as a source of differentially private noise, opening up new avenues for privacy-preserving FL.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑