Co-LMLM: Continuous-Query Limited Memory Language Models

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Data Science & Analytics · Depth: Expert, quick

Summary

Co-LMLM, or Continuous-Query Limited Memory Language Model, is a new paradigm that enhances existing LMLMs by externalizing factual knowledge to a knowledge base (KB) during pretraining, rather than memorizing it in model weights. Unlike prior LMLMs that relied on relational KBs, Co-LMLM pairs continuous keys with textual knowledge values, enabling the generation of flexible vector queries at minimal cost while integrating human-readable, attributable retrieved knowledge. This design is complemented by an annotation pipeline that tags free-form factual spans in arbitrary text, moving beyond Wikipedia-only restrictions. Across pretraining on Wikipedia and FineWeb-Edu, Co-LMLM consistently outperforms previous LMLMs and vanilla LLMs in both perplexity and factual precision. Notably, a 360M scale Co-LMLM achieved lower perplexity than models pretrained on 40x more data and demonstrated SimpleQA-verified performance comparable to gpt-4o-mini, surpassing Claude Sonnet 4.5.

Key takeaway

For Machine Learning Engineers evaluating LLM architectures for factual accuracy and efficiency, Co-LMLM presents a compelling alternative. Your models can achieve factual precision comparable to gpt-4o-mini and lower perplexity than models trained on 40x more data, even at 360M scale. Consider integrating continuous-query LMLM designs and free-form knowledge base annotation pipelines to enhance your model's knowledge control and performance, particularly when working with diverse, unstructured data sources.

Key insights

Co-LMLM employs continuous vector queries and free-form text knowledge bases, yielding superior factual precision and lower perplexity in language models.

Principles

Method

Co-LMLM pairs continuous keys with textual knowledge values in its KB, generating flexible vector queries. An annotation pipeline tags free-form factual spans in arbitrary text.

In practice

Topics

Best for: AI Engineer, Research Scientist, AI Scientist, Machine Learning Engineer, NLP Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.