← News

ResearchSources: arXiv · 2 Dec 2026

arXiv paper proposes zmem, letting models request server-side document searches mid-generation

The authors describe a latent tool and latent context scheme where an inference server fetches deterministic sources during generation, without adding pages to the conversation.

In plain words

Large language models only know what was in their training data, so they can invent answers about newer or private documents. The proposed zmem method lets a model ask its serving system to search a document store while it is still generating, and the results are fed back internally rather than typed into the chat. In the paper's tests this raised correct answers on private material while keeping conversations short.

What was announced

The paper, posted to arXiv by the zmem authors, addresses a known weakness: knowledge in a model's parameters cannot cover material published after training or held inside an organization, and models often fabricate answers about it. Their approach has the model write a search instruction on its own line within its thinking, which the server executes in place and returns as a page. The generator encodes that page itself and mounts it on all full-attention layers, so later tokens can read it, but the page never enters the sequence or the conversation and generation is not interrupted. The backing store uses an inverted literal index, reported at 1.2 ms per search over 312 MB with immediate updates, and pages are cached by content.

Reported results are limited to the models tested. On LD3 and Qwen3.5-9B, correct answers on private sources rose from 3/16 and 0/12, where every wrong answer was fabricated, to 15/16 and 9/12, matching source text placed in context with prompts 10-14 times shorter; the model answered 44/48 held-out questions on synthetic memos using self-issued searches. Pages mounted mid-thinking needed training to be trusted, with on-policy preference training forming the habit of using sources, and pages encoded by the generator were fully readable only with a small LoRA. On DeepSeek-V4-Flash, pre-mounted pages worked without training and matched in-context source text with 13-19 times fewer dialogue tokens, while mid-thinking pages reached 47/61 on search-page QA versus 53/61 under prefix replay. Prefill per turn over 8 turns fell from 2.7-2.9 s to 0.49 s, and a page cache hit cut time to first token from 2.0 s to 0.23 s.

What it does not show

  • Evidence is the paper's abstract only; the full article, method details and peer review are not covered, and the reported benchmarks are the authors' own, not independently confirmed.

For security and IT teams

Scope
The described mechanism applies to inference servers that can execute model-issued searches against an organization's own document store; results on private sources and synthetic memos come from the paper's tested models only.

Sources

Source-support review completed 2 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 2 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.