arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.23862cs.LGcs.AIcs.CL
收藏

探测压缩记忆的极限:对Infini-Attention在小规模预训练中的研究

Probing the Limits of Compressive Memory: A Study of Infini-Attention in Small-Scale Pretraining

Huawei Technologies Canada Co., Ltd(华为技术加拿大有限公司)

Ruizhe Huang, Kexuan Zhang, Yihao Fang, Baifeng Yu

AI总结:

本研究通过Infini-Attention在小规模预训练中提升SLMs的长上下文能力,验证了其在有限参数下的有效性。

摘要:

本研究探讨了小型语言模型(SLMs)的小规模预训练,以实现对有限数据和计算资源的高效利用,提高低资源环境下的可访问性并降低成本。为了增强紧凑模型中的长上下文外推能力,我们聚焦于Infini-Attention,它通过从先前片段构建压缩记忆的同时保持局部注意力。在我们的工作中,我们使用3亿参数的LLaMA模型进行预训练,该模型在Infini-Attention下表现出训练稳定性,并在长上下文检索中优于基线。我们发现平衡因子是模型性能的关键部分,且发现检索准确率在长序列上重复记忆压缩时会下降。尽管如此,Infini-Attention仍能有效弥补SLM参数有限的不足。特别是,尽管在16384个token上下文中性能有所下降,Infini-Attention模型仍比基线高31%。我们的发现表明,通过类似Infini-Attention的架构记忆,实现SLMs的稳健长上下文能力是有益的。

英文摘要:

This study investigates small-scale pretraining for Small Language Models (SLMs) to enable efficient use of limited data and compute, improve accessibility in low-resource settings and reduce costs. To enhance long-context extrapolation in compact models, we focus on Infini-attention, which builds a compressed memory from past segments while preserving local attention. In our work, we conduct an empirical study using 300M-parameter LLaMA models pretrained with Infini-attention. The model demonstrates training stability and outperforms the baseline in long-context retrieval. We identify the balance factor as a key part of the model performance, and we found that retrieval accuracy drops with repeated memory compressions over long sequences. Even so, Infini-attention still effectively compensates for the SLM's limited parameters. Particularly, despite performance degradation at a 16,384-token context, the Infini-attention model achieves up to 31% higher accuracy than the baseline. Our findings suggest that achieving robust long-context capability in SLMs benefits from architectural memory like Infini-attention.

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

↑