Saved in:
Bibliographic Details
Main Authors: Xing, Yue, Yang, Tao, Qi, Yijiashun, Wei, Minggu, Cheng, Yu, Xin, Honghui
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.22921
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916765423894528
author Xing, Yue
Yang, Tao
Qi, Yijiashun
Wei, Minggu
Cheng, Yu
Xin, Honghui
author_facet Xing, Yue
Yang, Tao
Qi, Yijiashun
Wei, Minggu
Cheng, Yu
Xin, Honghui
contents This paper addresses the limitations of large language models in understanding long-term context. It proposes a model architecture equipped with a long-term memory mechanism to improve the retention and retrieval of semantic information across paragraphs and dialogue turns. The model integrates explicit memory units, gated writing mechanisms, and attention-based reading modules. A forgetting function is introduced to enable dynamic updates of memory content, enhancing the model's ability to manage historical information. To further improve the effectiveness of memory operations, the study designs a joint training objective. This combines the main task loss with constraints on memory writing and forgetting. It guides the model to learn better memory strategies during task execution. Systematic evaluation across multiple subtasks shows that the model achieves clear advantages in text generation consistency, stability in multi-turn question answering, and accuracy in cross-context reasoning. In particular, the model demonstrates strong semantic retention and contextual coherence in long-text tasks and complex question answering scenarios. It effectively mitigates the context loss and semantic drift problems commonly faced by traditional language models when handling long-term dependencies. The experiments also include analysis of different memory structures, capacity sizes, and control strategies. These results further confirm the critical role of memory mechanisms in language understanding. They demonstrate the feasibility and effectiveness of the proposed approach in both architectural design and performance outcomes.
format Preprint
id arxiv_https___arxiv_org_abs_2505_22921
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Structured Memory Mechanisms for Stable Context Representation in Large Language Models
Xing, Yue
Yang, Tao
Qi, Yijiashun
Wei, Minggu
Cheng, Yu
Xin, Honghui
Computation and Language
This paper addresses the limitations of large language models in understanding long-term context. It proposes a model architecture equipped with a long-term memory mechanism to improve the retention and retrieval of semantic information across paragraphs and dialogue turns. The model integrates explicit memory units, gated writing mechanisms, and attention-based reading modules. A forgetting function is introduced to enable dynamic updates of memory content, enhancing the model's ability to manage historical information. To further improve the effectiveness of memory operations, the study designs a joint training objective. This combines the main task loss with constraints on memory writing and forgetting. It guides the model to learn better memory strategies during task execution. Systematic evaluation across multiple subtasks shows that the model achieves clear advantages in text generation consistency, stability in multi-turn question answering, and accuracy in cross-context reasoning. In particular, the model demonstrates strong semantic retention and contextual coherence in long-text tasks and complex question answering scenarios. It effectively mitigates the context loss and semantic drift problems commonly faced by traditional language models when handling long-term dependencies. The experiments also include analysis of different memory structures, capacity sizes, and control strategies. These results further confirm the critical role of memory mechanisms in language understanding. They demonstrate the feasibility and effectiveness of the proposed approach in both architectural design and performance outcomes.
title Structured Memory Mechanisms for Stable Context Representation in Large Language Models
topic Computation and Language
url https://arxiv.org/abs/2505.22921