arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2511.09323cs.LG
收藏

Mixture-of-Channels:利用稀疏FFN实现高效LLM预训练与推理

Mixture-of-Channels: Exploiting Sparse FFNs for Efficient LLMs Pre-Training and Inference

Peking University(北京大学);Zhejiang University(浙江大学)

Tong Wu, Yutong He, Bin Wang, Kun Yuan

AI总结:

针对LLM缩放带来的内存瓶颈,尤其是FFN激活内存问题,提出MoC新型FFN架构,通过SwiGLU门控为每个token选择性激活Top-K通道,实现预训练激活内存减少、推理效率提升,且保持性能竞争力。

摘要:

大型语言模型(LLM)在各类人工智能任务中取得了显著成功,这得益于将模型规模和训练数据与性能提升相关联的缩放定律。然而,这种缩放范式会带来巨大的内存开销,给训练和推理都造成了重大挑战。尽管现有研究主要致力于减少参数和优化器状态的内存占用,但激活内存——尤其是来自前馈网络(FFN)的激活内存——已成为关键瓶颈,在使用FlashAttention时尤为明显。在这项工作中,我们对LLM进行了详细的内存分析,发现FFN激活是激活内存开销的主要来源。基于此,我们提出了Mixture-of-Channels(MoC)这一新型FFN架构,它通过SwiGLU的原生门控机制为每个token选择性激活Top-K个最相关的通道。MoC在预训练期间大幅减少了激活内存,并通过将部分权重加载到GPU SRAM中减少内存访问,从而提高了推理效率。大量实验验证,MoC在保持模型性能竞争力的同时,实现了显著的内存节省和吞吐量提升。

英文摘要:

Large language models (LLMs) have demonstrated remarkable success across diverse artificial intelligence tasks, driven by scaling laws that correlate model size and training data with performance improvements. However, this scaling paradigm incurs substantial memory overhead, creating significant challenges for both training and inference. While existing research has primarily addressed parameter and optimizer state memory reduction, activation memory-particularly from feed-forward networks (FFNs)-has become the critical bottleneck, especially when FlashAttention is implemented. In this work, we conduct a detailed memory profiling of LLMs and identify FFN activations as the predominant source to activation memory overhead. Motivated by this, we introduce Mixture-of-Channels (MoC), a novel FFN architecture that selectively activates only the Top-K most relevant channels per token determined by SwiGLU's native gating mechanism. MoC substantially reduces activation memory during pre-training and improves inference efficiency by reducing memory access through partial weight loading into GPU SRAM. Extensive experiments validate that MoC delivers significant memory savings and throughput gains while maintaining competitive model performance.

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

↑