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

结构化令牌保留与大语言模型中的计算记忆路径

Structured Token Retention and Computational Memory Paths in Large Language Models

Jonathan Delena, Augustin Moreau, Dominic Ravensdale, Frederick Chatterton

AI总结:

提出结构化令牌保留与计算记忆路径,通过概率选择和分层内存分配优化长序列处理,提高令牌存活率、降低计算开销,并适用于生成与长上下文建模。

摘要:

记忆保留机制在决定用于处理长序列的计算架构的效率方面起着核心作用。传统的令牌管理方法通常施加固定的保留阈值或依赖均匀的注意力权重分布,导致在扩展序列建模中内存利用效率低下和过早的信息丢失。结构化令牌保留(STR)引入了一个概率选择框架,根据上下文重要性动态调整令牌的持久性,确保计算资源分配给语义相关的元素。计算记忆路径(CMP)通过分层内存分配扩展了这一框架,通过结构化重新分配令牌嵌入来优化保留效率。与基线模型的比较评估表明,STR和CMP在长输入序列中提高了令牌存活率,同时减少了跨处理层的累积误差传播。实验结果进一步表明计算开销减少,在不损害上下文连贯性的情况下提高了推理速度。令牌分布分析显示,结构化内存分配防止了注意力权重计算中的过度冗余,优化了大规模生成架构中的信息检索效率。将STR和CMP集成到一个开源模型中,展示了结构化记忆保留方法的适应性,突显了它们在生成文本处理、长上下文理解和可扩展序列建模中的适用性。

英文摘要:

Memory retention mechanisms play a central role in determining the efficiency of computational architectures designed for processing extended sequences. Conventional methods for token management often impose fixed retention thresholds or rely on uniform attention weight distributions, leading to inefficient memory utilization and premature information loss in extended sequence modeling. Structured Token Retention (STR) introduces a probabilistic selection framework that dynamically adjusts token persistence based on contextual significance, ensuring that computational resources are allocated to semantically relevant elements. Computational Memory Paths (CMP) extend this framework through hierarchical memory allocation, refining retention efficiency through structured reallocation of token embeddings. Comparative assessments against baseline models demonstrate that STR and CMP improve token survival rates across long input sequences while reducing cumulative error propagation across processing layers. Experimental results further indicate reductions in computational overhead, improving inference speed without degrading contextual coherence. Token distribution analyses reveal that structured memory allocation prevents excessive redundancy in attention weight calculations, optimizing information retrieval efficiency in large-scale generative architectures. The integration of STR and CMP into an open-source model illustrates the adaptability of structured memory retention methodologies, highlighting their applicability in generative text processing, long-context comprehension, and scalable sequence modeling.

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

↑