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

Alchemist:迈向高效在线持续学习系统的设计

Alchemist: Towards the Design of Efficient Online Continual Learning System

The University of Chicago(芝加哥大学);Microsoft Research(微软研究院)

Yuyang Huang, Yuhan Liu, Haryadi S. Gunawi, Beibin Li, Changho Hwang

AI总结:

针对在线持续学习中训练与服务分离导致的重复计算问题,提出Alchemist系统,通过复用服务激活、选择性存储及智能卸载,最高提升1.72倍训练吞吐并降低47%内存。

摘要:

持续学习已成为利用用户反馈增量精炼大语言模型的一种有前景的解决方案。特别是在线持续学习——使用小批量用户反馈迭代训练模型——已展现出显著的性能提升。然而,现有将训练与服务进程分离的实践迫使在线训练器重新计算服务期间已经完成的中间结果。此类冗余计算可占总训练时间的30%-42%。在本文中,我们提出Alchemist,据我们所知,这是首个高效复用服务激活以提高训练吞吐量的在线持续学习系统。Alchemist引入两项关键技术:(1)仅在预填充阶段记录并存储激活和KV cache,以最小化延迟和内存开销;(2)智能激活卸载与对冲。使用从ShareGPT数据集中采样的不同token长度输入进行的评估表明,与独立训练集群相比,Alchemist将训练吞吐量显著提高至最高1.72倍,训练期间内存使用最多减少47%,并支持多达2倍的训练token——同时对服务延迟保持可忽略的影响。

英文摘要:

Continual learning has become a promising solution to refine large language models incrementally by leveraging user feedback. In particular, online continual learning - iteratively training the model with small batches of user feedback - has demonstrated notable performance improvements. However, the existing practice of separating training and serving processes forces the online trainer to recompute the intermediate results already done during serving. Such redundant computations can account for 30%-42% of total training time. In this paper, we propose Alchemist, to the best of our knowledge, the first online continual learning system that efficiently reuses serving activations to increase training throughput. Alchemist introduces two key techniques: (1) recording and storing activations and KV cache only during the prefill phase to minimize latency and memory overhead; and (2) smart activation offloading and hedging. Evaluations with inputs of varied token length sampled from ShareGPT dataset show that compared with a separate training cluster, Alchemist significantly increases training throughput by up to 1.72x, reduces up to 47% memory usage during training, and supports up to 2x more training tokens - all while maintaining negligible impact on serving latency.

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

↑