arXiv Machine Learning

Memoir: Should a Model Write to Its Memory While It Thinks?

arXiv:2607. 20792v1 Announce Type: new Abstract: Memoir combines per-sample fast memory, shared slow parameters, variable-depth latent recurrence, and a future-latent energy objective.

arXiv Machine Learning
5d ago

Toaster: Nonlinear Memory from Cascaded Linear Memories and Target Propagation

The paper introduces Toaster, a two‑layer nonlinear memory that combines two linear memory modules with an activation function and uses target propagation to update the hidden layer. By approximating cross‑layer signals once per chunk, each layer can run on a standard delta‑rule kernel, achieving lower loss than KDA and Titans across multiple model sizes on C4 and PG19 datasets. In hybrid setups with global attention, Toaster attains the lowest perplexity among tested hybrids and demonstrates competitive or superior performance in length extrapolation and training efficiency.

By Zeman Li, Ali Behrouz, Yuan Deng, Praneeth Kacham, Rami Al-Rfou, Meisam Razaviyayn, Vahab Mirrokni
arXiv Machine Learning
Oct 23

Delta N-gram: Forward-Only Continual Writing into a Language Model's Native N-gram Memory

Delta N-gram introduces a forward‑only write path into a language model’s native hashed N‑gram table, preserving the pretrained table while adding evidence through a sparse patch Δ. The method uses a 4.1 M‑parameter writer that emits gated targets per event and applies a block‑averaged delta rule to keep each row a convex combination of its old value and the new targets. Experiments on a 0.6 B prototype and Qwen3.8‑Flash‑Next show that the delta writer maintains more document‑specific memory and reduces drift compared to online gradient writes, achieving stable performance over thousands of writes. whyItMatters":"The approach allows continual updates to a language model’s memory without altering its pretrained parameters, enabling efficient, stable, and document‑specific knowledge retention during inference."

By Hao Wu
arXiv AI
Oct 21

REM: What to Store, When to Recall, What to Forget in Experience Memory for Coding Agents

The paper introduces REM (Reusable Experience Memory), a framework that manages the lifecycle of experience for large language model agents performing long-horizon coding tasks. REM consolidates completed trajectories into compact, phase-structured documents, injects them at task start, and evicts them after a single exposure, making the memory system responsive to the agent’s needs. Experiments on repository-level bug fixing show REM outperforms state‑of‑the‑art memory systems in retrieval accuracy and task resolution while reducing cost.

By Xinyi Lisa Chen, Pedro Herrero-Vidal, Xiaohan Chen, Xiaojing Yu, Cris Liu, Bingqing Song, Bin Xu, Suleiman A. Khan, You-Lin Chen