arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2605.25451cs.LG
收藏

BigMac: 打破多模态大语言模型训练中的计算与内存帕累托前沿

BigMac: Breaking the Pareto Frontier of Compute and Memory in Multimodal LLM Training

Peking University(北京大学);Independent Researcher(独立研究员);Xiaohongshu, Inc(小红书公司)

Zili Zhang, Chengxu Yang, Shenglong Zhang, Chenyu Wang, Yufan Zhang, Tuo Dai, Zhouyang Li, Yuhong Ge, Chao Jin, Xin Jin, Yuliang Liu

AI总结:

提出BigMac训练流水线,通过嵌套编码器和生成器计算到LLM流水线中,同时优化计算效率和内存使用,打破帕累托前沿。

摘要:

训练多模态大语言模型(MLLMs)面临模型和数据的异构性挑战。现有系统重新设计训练流水线以应对这些挑战,但仍受限于计算与内存效率之间的帕累托前沿,只能以牺牲一方为代价改进另一方。我们提出BigMac,一种新的多模态大语言模型训练流水线。BigMac的核心思想是将编码器和生成器的计算优雅地嵌套到原始LLM流水线中,形成依赖安全的嵌套流水线结构。通过这种设计,BigMac将编码器和生成器的激活内存复杂度降低到O(1),同时保持LLM的激活内存复杂度不变。同时,它实现了与具有无限内存的理想设置相同的计算效率。因此,BigMac打破了计算效率与内存使用之间的帕累托前沿,使得在MLLM训练中能够同时优化计算和内存。我们在多个MLLM和训练负载上评估了BigMac。实验结果表明,与基线系统相比,BigMac实现了1.08倍至1.9倍的训练加速,同时随着批次大小的增加保持稳定的内存使用。

英文摘要:

Training multimodal large language models (MLLMs) is challenged by both model and data heterogeneity. Existing systems redesign the training pipeline to address these challenges, but remain bound by a Pareto frontier between compute and memory efficiency, improving one only at the expense of the other. We present BigMac, a new training pipeline for multimodal LLMs. The core idea of BigMac is to elegantly nest the encoder and generator computation into the original LLM pipeline, forming a dependency-safe nested pipeline structure. With this design, BigMac reduces the activation memory complexity of the encoder and generator to O(1) while keeping the activation memory complexity of the LLM unchanged. At the same time, it achieves the same computational efficiency as the idealized setting with unlimited memory. As a result, BigMac breaks the Pareto frontier between computational efficiency and memory usage, enabling simultaneous optimization of both computation and memory in MLLM training. We evaluate BigMac on multiple MLLMs and training workloads. Experimental results show that BigMac achieves a 1.08$\times$-1.9$\times$ training speedup over baseline systems while maintaining stable memory usage as batch size increases.

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

↑