← Back to Paper Radar

Co-LMLM: Continuous-Query Limited Memory Language Models

Yair Feldman, Linxi Zhao, Nathan Godey, Dongyoung Go, Yilun Hua, Kilian Q. Weinberger, Jennifer J. Sun, Yoav Artzi
2026

Reading guide · Based on sections of the original paper

The authors propose Co-LMLM, a decoder-only LM pre-trained to issue retrieval queries from its own hidden state and copy free-form fact spans from a text knowledge base instead of memorizing them, which they report improves factual precision over standard and relational-KB (Rel-LMLM) models at 135M–360M scale.

Why read this

Practitioners building small, editable, auditable LMs, or weighing pre-training-time knowledge externalization against RAG, will find a concrete training recipe, an annotation pipeline and matched baselines.

What the authors found

  • With Wikipedia-only pre-training and a Wikipedia KB, Co-LMLM-360M beat a matched Standard-360M and the authors' strengthened Rel-LMLM-360M on TriviaQA (31.4 vs 7.5 vs 15.6), SimpleQA-verified (21.2 vs 0.3 vs 5.6) and FactScore (34.2 vs 10.0 vs 22.9). Its T-REx score tied Rel-LMLM at 47.4. The authors report that NLU stayed roughly comparable, though the 360M NLU average was slightly lower than Standard's (40.6 vs 41.8). 4.3 Factuality and General Benchmark Performance
  • Blocking retrieval tokens at inference drops factuality to roughly Standard-model levels. For example, SimpleQA for 360M fell from 21.2 to 0.7. The authors take this as evidence that factual knowledge actually moved out of the weights. 4.5 Knowledge Memorization
  • Against LMLM-Asker, a variant trained on the same corpus that decodes natural-language questions as queries, Co-LMLM-360M-FW scored higher on all five factuality benchmarks (TriviaQA 36.9 vs 15.4). Its per-retrieval query-formation overhead was about 2.2 ms vs about 28.6 ms, measured at batch size 1 with FAISS search time excluded. B.6 Co-LMLM vs. LMLM-Asker

Main limitation

The authors acknowledge that the models are small (at most 360M parameters, at most 90B tokens) and that the factual evaluations mainly target Wikipedia-style knowledge served from KBs built from the training corpus. The comparisons to frontier models and off-the-shelf SmolLM2 carry acknowledged caveats about domain and data scale. 5 Discussion

Where to start

A.6 Evaluation · See why dynamic perplexity is optimistic for Co-LMLM, how the pessimistic dynamic-normalized bound is defined, and the retrieval threshold and scoring rules behind the factuality numbers.

Abstract

Limited memory language models (LMLMs) externalize factual knowledge during pretraining to a knowledge base (KB), rather than memorizing it in their weights. During generation, the model then fetches knowledge from the KB as needed. This recently introduced paradigm provides multiple advantages, including knowledge control capabilities that remain beyond conventional LLMs. We propose continuous-query LMLM (CO-LMLM), where the KB pairs continuous keys with textual knowledge values, a significant departure from prior reliance on relational KB and queries. CO-LMLM generates flexible vector queries at minimal cost, while still integrating human-readable and attributable retrieved knowledge into its generation. We pair this design with an annotation pipeline that tags free-form factual spans in arbitrary text, removing prior work's restriction to Wikipedia. Across pretraining on Wikipedia and FineWeb-Edu and at multiple model scales, CO-LMLM outperforms prior LMLMs and vanilla LLMs in both perplexity and factual precision. At 360M scale, this includes lower perplexity than models pretrained on 40x more data, and SimpleQA-verified performance that is in line with gpt-4o-mini and higher than Claude Sonnet 4.5.

Generated automatically from paper sections on 2026-11-28.