02 · The idea
A continuous-query knowledge base
Co-LMLM (the Co- is for continuous-query) keeps a language model's facts
in a separate, editable knowledge base (KB) instead of its weights, and reads from that
memory while it generates. The KB pairs continuous vector keys with free-form text values,
and Co-LMLM queries it with a single continuous vector read directly from its own hidden
state.
That query is not text: it is the model's hidden state at a special
<FACT> token (the marker Co-LMLM emits
when it wants to look something up), so a lookup produces no decoded query tokens at all.
Reading the query straight from the hidden state gives Co-LMLM four properties at once:
- Full context: the hidden state uses the entire generation context, not a short decoded string.
- Richer facts: free-form spans carry more knowledge than rigid subject–relation triplets.
- Cheap lookups: no query tokens are ever decoded.
Co-LMLM builds on limited memory language models
(LMLMs) (Zhao et al., 2025), that introduced the idea of externalizing facts to a human-readable
knowledge base during pre-training instead of memorizing them in weights. The first LMLM,
now called Rel-LMLM, stored facts as relational subject–relation–object tuples and looked
them up with an explicit text query decoded token by token. That relational design is what
limited it: it could only externalize facts that fit a simple tuple, it depended on
Wikipedia's entity-centric articles, and every lookup spent extra decoded tokens and grew
the context. Co-LMLM's continuous, free-form queries remove those limits.
One consequence turns up in the results: Co-LMLM externalizes facts at real scale,
hundreds of millions from Wikipedia alone, and billions once the memory is grown to
web-scale text.