上下文记忆重织:基于分层潜状态重构的大语言模型方法
Contextual Memory Reweaving in Large Language Models Using Layered Latent State Reconstruction
AI总结:
本文提出上下文记忆重织框架,通过分层潜状态重构整合历史嵌入,在不增加外部记忆模块的情况下提升大语言模型长序列回忆准确率与推理一致性。
摘要:
深度神经架构中的记忆保持挑战持续限制了其处理和回忆扩展上下文信息的能力。随着序列长度的增加,词元间的依赖关系逐渐退化,导致较长输出中的连贯性和事实一致性下降。本文引入了一种结构化方法,通过对不同处理层捕获的潜状态进行重织,强化扩展序列中的词元表示,以缓解这一问题。所提出的上下文记忆重织框架结合了分层潜状态重构机制,在不引入外部记忆模块的情况下,系统地整合过去的上下文嵌入。实验结果表明,在一系列序列长度上,回忆准确率均有所提升,尤其在罕见词元保留和数值推理一致性方面取得了显著进展。对计算效率的进一步分析显示,额外的处理开销保持在可接受范围内,从而支持不同模型规模的扩展。在长文本生成和模糊查询解析中的评估凸显了记忆重织增强连续性并减少扩展输出中不一致性的能力。注意力权重分布显示出更结构化的分配模式,表明重织后的潜状态有助于改善上下文感知。这些发现为改进语言模型中的记忆保持机制建立了一个框架,解决了处理复杂多步推理任务中长期存在的挑战。
英文摘要:
Memory retention challenges in deep neural architectures have ongoing limitations in the ability to process and recall extended contextual information. Token dependencies degrade as sequence length increases, leading to a decline in coherence and factual consistency across longer outputs. A structured approach is introduced to mitigate this issue through the reweaving of latent states captured at different processing layers, reinforcing token representations over extended sequences. The proposed Contextual Memory Reweaving framework incorporates a Layered Latent State Reconstruction mechanism to systematically integrate past contextual embeddings without introducing external memory modules. Experimental results demonstrate improvements in recall accuracy across a range of sequence lengths, with notable gains in the retention of rarely occurring tokens and numerical reasoning consistency. Further analysis of computational efficiency indicates that the additional processing overhead remains within acceptable thresholds, enabling scalability across different model sizes. Evaluations in long-form text generation and ambiguous query resolution highlight the capacity of memory reweaving to enhance continuity and reduce inconsistencies over extended outputs. Attention weight distributions reveal more structured allocation patterns, suggesting that reweaved latent states contribute to improved contextual awareness. The findings establish a framework for refining memory retention mechanisms in language models, addressing long-standing challenges in handling complex, multi-step reasoning tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。