NeurIPS 2026QuestionsPapersAreasAboutMarkdown

MemDLM: Memory-Enhanced DLM Training

Zehua Pei, Hui-Ling Zhen, Weizhe Lin, Sinno Pan, Yunhe Wang, Mingxuan Yuan, Bei Yu

NeurIPS page · OpenReview · alphaXiv · Open on the map

Category: LLM Reasoning, Memory & RAG › Diffusion Language Model Decoding · Type: new method · Keywords: diffusion language models, parametric memory, bi-level optimization, long-context representation, needle-in-a-haystack

Areas: Memory › Memory mechanisms › Memory Augmentation; Long Context › Long-context mechanisms › Long-context memory

Summary

MemDLM introduces a memory channel via bi-level optimization to simulate denoising dynamics during training, enabling faster convergence, stronger long-context representations, and lower training loss in diffusion language models.

Explained to a 5-year-old

A computer program learns to write words by guessing missing parts. Usually it only looks at one piece at a time, which makes it forget long stories. We give it a helper memory that remembers how the guessing steps go, so it can keep the story together better. This helps it learn faster and remember longer stories. Even when we turn off the helper, it still works better.

Explained to a 5-year-old, longer

A computer program called a diffusion language model writes sentences by removing parts and then guessing them back. It works differently from older models that write one word at a time, because it can finish the whole sentence quickly. The problem is that during training it only looks at one missing piece at a time, so it forgets the whole story. It also relies only on its attention mechanism to remember long contexts, which gets weak for very long texts. To fix this, the researchers added a second memory channel that simulates how the guessing steps happen over time. This memory works like a fast-learning helper that stores the steps of the denoising process. The base model learns from this helper, so it does not have to keep everything in its attention. This makes the model converge faster and keep better long-range information. Even when the helper is turned off during normal use, the model still performs better than before. If the helper is kept on during inference, it can adapt to each new prompt, acting like an in-weight retrieval mechanism. This extra adaptation helps especially on tricky tasks where the answer is hidden deep in a long text. Overall, the new approach lets diffusion language models remember longer contexts and learn more efficiently.

For a technical reader

The paper introduces MemDLM, a memory-enhanced diffusion language model that adds a second channel to capture denoising dynamics during training. It uses a bi-level optimization scheme where an inner loop updates fast weights (a parametric memory) that record the denoising trajectory, while an outer loop updates the main model conditioned on this memory. This offloads part of the contextual memorization from the usual token-space attention, leading to faster convergence and stronger long-range representations. At inference, the fast weights can be discarded for efficiency, or re-enabled to provide prompt-specific adaptation, which helps on Needle-in-a-Haystack style tasks. The approach shows improvements in training loss and downstream long-context retrieval without requiring changes to the inference pipeline.

Problem

Standard diffusion language model training uses a static single-step masked prediction objective that does not expose the model to progressive denoising dynamics, and it relies solely on token-space attention for context, which becomes diluted as context length grows.

Method

The approach adds a second memory channel by simulating a denoising trajectory during training via bi-level optimization. An inner loop updates fast weights forming a parametric memory that captures local trajectory experience, while an outer loop updates the base model conditioned on this memory, offloading memorization from attention.

Results

The approach achieves faster convergence, stronger long-context representations, and lower training loss compared to standard diffusion language models, and when the inner loop is used at inference it improves performance on Needle-in-a-Haystack tasks.

Contributions

The paper introduces a memory channel via bi-level optimization that simulates denoising dynamics during training, enabling the model to offload contextual memorization from attention and improve long-range reasoning. It also shows that the parametric memory can be used at inference for prompt-specific adaptation.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction