Skip to content
View original post on X: elvisX· 47/100AI score47/100

Latent semantic memory lets frozen LLMs beat full-context inference on FactKG

AISummary

A new paper proposes encoding documents once into embeddings, then writing 16 memory tokens into a frozen LLM's input space for each query.

On FactKG, those 16 tokens score 84.33% against 80.43% for full-context inference, using 108x fewer tokens for the source documents. The method also beats Mem0 and MemoRAG on five of eight benchmarks, and raises TextWorld agent success from 18.6% to 24.2%.

Post on XView on X
elvisVerified on X
@omarsar0

// Latent Semantic Memory for LLMs //

This paper presents some really interesting findings about agent memory.

They find that sixteen memory tokens beat full-context inference on FactKG while using 108x fewer tokens for the source documents.

Approach:

Documents are encoded once into reusable embeddings. For each query, a learned module gathers the relevant information from the whole collection and writes it into 16 tokens in the input space of a frozen LLM.

Results:

It beats Mem0, MemoRAG, and other baselines on five of eight benchmarks. On FactKG, it scores 84.33% against 80.43% with the full context.

It also works as agent memory. In TextWorld, using the agent's own history as the collection raises success from 18.6% to 24.2%, and the agent revisits fewer rooms.

It also seems that it could help frozen LLMs accumulate and use knowledge effectively across long-context interactions. This is applicable to building continually learning AI systems.

https://arxiv.org/abs/2610.21375

Chat with Paper: https://academy.dair.ai/papers/memorilla-latent-semantic-memory-for-llms-2610.21375

Source: elvis · x.comPublished · added here