Skip to main content
QUICK REVIEW

[论文解读] An Optimized Error-controlled MPI Collective Framework Integrated with Lossy Compression

Jiajun Huang, Sheng Di|arXiv (Cornell University)|Apr 8, 2023
Distributed and Parallel Computing SystemsComputer Science被引用 3
一句话总结

本文提出 C-Coll,一种新型的、误差有界的有损压缩框架,集成于 MPI 聚合操作中,以减少大规模科学 HPC 工作负载中的通信开销。通过优化压缩时机并集成一种流水线化的、定制化的 SZx 压缩器,C-Coll 在保持严格误差界限的前提下,相较于原生 MPI 聚合操作实现了高达 2.7× 的加速,显著提升了性能与精度,优于以往基于有损压缩的 MPI 解决方案。

ABSTRACT

With the ever-increasing computing power of supercomputers and the growing scale of scientific applications, the efficiency of MPI collective communications turns out to be a critical bottleneck in large-scale distributed and parallel processing. The large message size in MPI collectives is particularly concerning because it can significantly degrade the overall parallel performance. To address this issue, prior research simply applies the off-the-shelf fix-rate lossy compressors in the MPI collectives, leading to suboptimal performance, limited generalizability, and unbounded errors. In this paper, we propose a novel solution, called C-Coll, which leverages error-bounded lossy compression to significantly reduce the message size, resulting in a substantial reduction in communication cost. The key contributions are three-fold. (1) We develop two general, optimized lossy-compression-based frameworks for both types of MPI collectives (collective data movement as well as collective computation), based on their particular characteristics. Our framework not only reduces communication cost but also preserves data accuracy. (2) We customize SZx, an ultra-fast error-bounded lossy compressor, to meet the specific needs of collective communication. (3) We integrate C-Coll into multiple collectives, such as MPI_Allreduce, MPI_Scatter, and MPI_Bcast, and perform a comprehensive evaluation based on real-world scientific datasets. Experiments show that our solution outperforms the original MPI collectives as well as multiple baselines and related efforts by 1.8-2.7X.

研究动机与目标

  • 解决现有集成有损压缩的 MPI 聚合操作中性能不佳与误差无界的问题。
  • 在不牺牲数据精度的前提下,降低大规模消息 MPI 聚合操作的通信成本。
  • 设计一种可扩展的高性能框架,将有损压缩与聚合数据移动及聚合计算操作相结合。
  • 针对 MPI 聚合场景,对 SZx 压缩器进行定制化,以实现低延迟、高吞吐量的使用。
  • 在真实世界科学数据集和多种 MPI 聚合操作上验证框架的性能与精度。

提出的方法

  • 设计两种优化框架:一种用于聚合数据移动(如 Scatter、Bcast、All-gather),另一种用于聚合计算(如 Reduce-scatter),分别针对其对应操作的通信与计算模式进行定制。
  • 使用 SZx(一种高速压缩器)集成误差有界的有损压缩,并采用流水线架构以重叠压缩与通信过程,最大限度减少空闲时间。
  • 在传输前应用压缩,在接收后执行解压缩,通过用户指定的绝对误差阈值强制实施误差界限。
  • 通过优化其内部数据布局与压缩流水线,对 SZx 进行定制化改造,以降低延迟并提升吞吐量,适用于 MPI 聚合场景。
  • 在关键 MPI 聚合操作中实现 C-Coll:C-Allreduce、C-Scatter 与 C-Bcast,实现与 MPI 运行时的端到端集成。
  • 使用真实世界科学数据集(如图像分类、气候模拟)评估不同误差界限下的性能与数据保真度。

实验结果

研究问题

  • RQ1有损压缩能否有效集成到 MPI 聚合操作中,在保持误差有界的同时降低通信成本?
  • RQ2如何在数据移动与计算聚合操作中有效最小化压缩开销并隐藏通信延迟?
  • RQ3在 MPI 聚合操作中,使用误差有界压缩与固定速率压缩时,会产生怎样的性能与精度权衡?
  • RQ4定制化的高性能压缩器(如 SZx)是否能在 MPI 聚合场景中优于通用压缩器(如 ZFP)?
  • RQ5所提出的框架在不同 MPI 聚合操作与科学工作负载中的可扩展性如何?

主要发现

  • C-Allreduce 相较于原生 MPI_Allreduce 最高可实现 2.1× 的加速,性能提升最显著的误差界限为 1E-2。
  • 在误差界限为 1E-4 时,C-Allreduce 的 PSNR 达到 79.57,NRMSE 为 1E-4,表明重建质量接近无损。
  • C-Scatter 与 C-Bcast 分别相较其原生实现最高提升 1.8× 与 2.7×,证明了框架在各类聚合操作中的通用性。
  • 在所有误差界限下,采用 SZx 的 C-Coll 框架均优于所有基线方案(包括 ZFP(FXR)、ZFP(ABS) 与 CPR-P2P),在精度与性能上均表现更优。
  • 在误差界限为 1E-3 与 1E-4 时,C-Allreduce 重建的图像在视觉上与原始图像无法区分,而 ZFP 基线方案则显示出明显的退化。
  • 与 CPR-P2P 相比,C-Coll 显著减少了误差传播,后者存在误差无界累积的问题。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。