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

超稀疏记忆网络

Ultra-Sparse Memory Network

ByteDance(字节跳动)

Zihao Huang, Qiyang Min, Hongzhi Huang, Defa Zhu, Yutao Zeng, Ran Guo, Xun Zhou

AI总结:

本文提出 UltraMem 超稀疏记忆层,通过大规模稀疏记忆降低推理延迟并保持性能,其缩放特性优于 MoE,在 2000 万记忆槽规模下实现最优推理速度与性能。

摘要:

人们普遍认为,Transformer 模型的性能与其参数数量和计算复杂度呈对数关系。尽管 Mixture of Experts (MoE) 等方法将参数数量与计算复杂度解耦,但由于较高的内存访问成本,它们在推理阶段仍面临挑战。本文提出 UltraMem,引入大规模、超稀疏记忆层以解决这些限制。我们的方法在保持模型性能的同时显著降低了推理延迟。我们还研究了这一新架构的缩放定律,证明它不仅表现出良好的缩放特性,而且优于 MoE。在实验中,我们训练的最大 UltraMem 拥有 2000 万个记忆槽。结果表明,在给定的计算预算内,我们的方法实现了最先进的推理速度和模型性能,为数十亿个槽或专家铺平了道路。

英文摘要:

It is widely acknowledged that the performance of Transformer models is logarithmically related to their number of parameters and computational complexity. While approaches like Mixture of Experts (MoE) decouple parameter count from computational complexity, they still face challenges in inference due to high memory access costs. This work introduces UltraMem, incorporating large-scale, ultra-sparse memory layer to address these limitations. Our approach significantly reduces inference latency while maintaining model performance. We also investigate the scaling laws of this new architecture, demonstrating that it not only exhibits favorable scaling properties but outperforms MoE. In experiments, the largest UltraMem we train has 20 million memory slots. The results show that our method achieves state-of-the-art inference speed and model performance within a given computational budget, paving the way for billions of slots or experts.

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

↑