计算机科学 > 机器学习
[提交于 2025年7月1日]
标题:Recurrent Memory-Augmented Transformers with Chunked Attention for Long-Context Language Modeling
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We present a Transformer architecture for long-context language modeling that combines global attention with two biologically inspired components: chunked local attention and a gated FIFO memory mechanism. This unified attention block allows the model to efficiently handle both short-range and long-range dependencies without increasing attention cost quadratically. The memory module persistently stores past token representations using a gated update mechanism inspired by recurrent networks. Rotary positional encoding is applied per attention head to enable directionally disentangled, scale-invariant positional signals. The architecture is implemented entirely from scratch in PyTorch, with no reliance on high-level libraries, enabling transparent and modular experimentation. Our model offers a lightweight and extensible design for tasks such as dialogue modeling, code completion, and document understanding.
提交历史
来自:Ankit Kashyap[v1] 2025年7月1日 星期二 06:11:38 UTC