Skip to main content
QUICK REVIEW

[Paper Review] Language Model Memory and Memory Models for Language

Benjamin L. Badger|arXiv (Cornell University)|Feb 13, 2026
Topic ModelingComputer Science0 citations
TL;DR

The paper shows that standard language model embeddings store little input information, while autoencoders store nearly perfect memory, and introduces encoder-decoder memory models with combined objectives and curriculum training to form and decode information-rich memories.

ABSTRACT

The ability of machine learning models to store input information in hidden layer vector embeddings, analogous to the concept of `memory', is widely employed but not well characterized. We find that language model embeddings typically contain relatively little input information regardless of data and compute scale during training. In contrast, embeddings from autoencoders trained for input regeneration are capable of nearly perfect memory formation. The substitution of memory embeddings for token sequences leads to substantial computational efficiencies, motivating the introduction of a parallelizable encoder-decoder memory model architecture. Upon causal training these models contain information-poor embeddings incapable of arbitrary information access, but by combining causal and information retention objective functions they learn to form and decode information-rich memories. Training can be further streamlined by freezing a high fidelity encoder followed by a curriculum training approach where decoders first learn to process memories and then learn to additionally predict next tokens. We introduce the perspective that next token prediction training alone is poorly suited for accurate memory formation as the objective itself is non-invertible, motivating the use of combined objective functions for models where the entire input is not exposed.

Motivation & Objective

  • Assess how much input information is retained in language model embeddings under different training regimes.
  • Compare causal language models, retrieval models, and autoencoders in terms of memory formation and invertibility.
  • Propose a parallelizable encoder-decoder memory architecture to enable arbitrary input information lookup.
  • Demonstrate training strategies (frozen encoders, curriculum learning) to improve memory formation without sacrificing efficiency.

Proposed method

  • Invert embeddings via a trainable decoder to measure information retention and reconstruct input sequences.
  • Introduce an information quantification framework using entropy ratio and a Hamming-based token accuracy metric.
  • Develop parallelizable encoder-decoder memory models and evaluate with causal training and combined objective functions.
  • Explore frozen-encoder memory models and curriculum training to separate information retention from next-token prediction.
  • Experiment with pretrained LLMs as memory model decoders to assess scalability across model sizes.
  • Apply three evaluation modalities: encoder-decoder information retention, copy tasks, and blank copy tasks to probe memory capabilities.
Figure 1: Information retention experimental approach (left) and example training runs (right).
Figure 1: Information retention experimental approach (left) and example training runs (right).

Experimental results

Research questions

  • RQ1How much input information do causal language models retain in their memory embeddings?
  • RQ2Can memory models be trained to form accurate, information-rich memories that are decodable by a separate decoder?
  • RQ3Do encoder-decoder memory architectures provide computational advantages and memory capabilities comparable to full-context models?
  • RQ4What training strategies (e.g., frozen encoders, curriculum learning, combined objectives) optimize memory formation without sacrificing language modeling performance?
  • RQ5Can pretrained large language models serve effectively as decoders for memory-augmented encoders?

Key findings

  • Causal language model memories contain relatively little input information across data and compute scales.
  • Autoencoders trained for input regeneration form highly information-rich memories, approaching near-perfect memory.
  • Parallelizable encoder-decoder memory architectures with combined objectives improve memory formation and enable arbitrary information access.
  • Frozen encoder memory models with curriculum training achieve efficient training and robust memory capabilities.
  • Memory models trained with a combination of causal and copy objectives can both predict next tokens and store/use information-rich memories, though exact performance depends on architectural choices and training regime.
  • Increasing model size alone yields modest gains in information retention for memory models when using decoders from large pretrained LLMs.
Figure 2: Memory Model Architecture and $n_{ctx}=256$ per chunk, $s=4$ chunk causal training characteristics on FineWeb. Mixers are $d_{m}=512$ for encoders, $d_{m}=1024$ for decoders and Transformers $d_{m}=256$ and $d_{m}=512$ for compute equivalence.
Figure 2: Memory Model Architecture and $n_{ctx}=256$ per chunk, $s=4$ chunk causal training characteristics on FineWeb. Mixers are $d_{m}=512$ for encoders, $d_{m}=1024$ for decoders and Transformers $d_{m}=256$ and $d_{m}=512$ for compute equivalence.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.