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

快速对数域Sinkhorn最优传输与 warp 级 GPU 减少

Fast Log-Domain Sinkhorn Optimal Transport with Warp-Level GPU Reductions

ATLAS AI Lab(ATLAS人工智能实验室)

Hao Xiao

AI总结:

本文提出FastSinkhorn,通过warp级shuffle减少和共享内存分块实现高效GPU利用,解决小正则化参数下的数值不稳定性问题,实现12倍速度提升。

摘要:

熵正则化最优传输(OT)通过Sinkhorn算法已成为机器学习的基本工具,但现有实现要么在小正则化参数下数值不稳定,要么在深度学习框架中存在显著开销。我们提出了FastSinkhorn,一种轻量级的原生CUDA实现的对数域Sinkhorn算法,结合warp级shuffle减少和共享内存分块,实现高GPU利用率而不牺牲数值稳定性。我们的求解器完全在对数域中运行,使正则化参数小至epsilon=10^{-4}时也能稳健计算,而标准域方法无法做到。在n=m=8192的密集OT问题中,我们的实现比广泛使用的POT库快12倍,比GPU加速的PyTorch基线快5.9倍,同时仅消耗256MB的GPU内存。我们验证了求解器在图像颜色转移、3D点云匹配和收敛分析中的有效性,证明了经过精心数值处理的原生CUDA内核为大规模最优传输计算提供了实用且高效的基石。

英文摘要:

Entropic regularized optimal transport (OT) via the Sinkhorn algorithm has become a fundamental tool in machine learning, yet existing implementations either suffer from numerical instability for small regularization parameters or incur significant overhead from deep learning frameworks. We present FastSinkhorn, a lightweight, native CUDA implementation of the log-domain Sinkhorn algorithm that combines warp-level shuffle reductions with shared-memory tiling to achieve high GPU utilization without sacrificing numerical stability. Our solver operates entirely in the log-domain, enabling robust computation for regularization parameters as small as epsilon = 10^{-4} where standard-domain methods fail. On dense OT problems with n = m = 8192, our implementation achieves 12x speedup over the widely-used POT library and 5.9x speedup over GPU-accelerated PyTorch baselines, while consuming only 256 MB of GPU memory. We validate our solver on image color transfer, 3D point cloud matching, and convergence analysis, demonstrating that native CUDA kernels with careful numerical treatment provide a practical and efficient foundation for large-scale optimal transport computation.

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

↑