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

GraB-sampler:面向 PyTorch 的最优基于排列的 SGD 数据采样器

GraB-sampler: Optimal Permutation-based SGD Data Sampler for PyTorch

Cornell University(康奈尔大学)

Guanghao Wei

AI总结:

针对 GraB 缺乏高效易用实现的问题,本文提出 Python 库 GraB-sampler 及 5 种算法变体,以极小训练时间和显存开销复现了其优于随机重排的训练效果。

摘要:

在线 Gradient Balancing(GraB,梯度平衡)算法通过利用逐样本梯度解决 herding 问题,以贪婪方式选择样本顺序;该算法已被证明是理论上最优的解决方案,并保证优于 Random Reshuffling(随机重排)。然而,目前社区还没有可便捷使用的 GraB 高效实现。本工作提出了一个高效的 Python 库 GraB-sampler,使社区能够轻松使用 GraB 算法,并提出了 GraB 算法的 5 个变体。GraB-sampler 的最佳性能结果复现了训练损失和测试准确率结果,而仅产生 8.7% 的训练时间开销和 0.85% 的 GPU 峰值显存使用开销。

英文摘要:

The online Gradient Balancing (GraB) algorithm greedily choosing the examples ordering by solving the herding problem using per-sample gradients is proved to be the theoretically optimal solution that guarantees to outperform Random Reshuffling. However, there is currently no efficient implementation of GraB for the community to easily use it. This work presents an efficient Python library, $\textit{GraB-sampler}$, that allows the community to easily use GraB algorithms and proposes 5 variants of the GraB algorithm. The best performance result of the GraB-sampler reproduces the training loss and test accuracy results while only in the cost of 8.7% training time overhead and 0.85% peak GPU memory usage overhead.

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

↑