论文多源确认精选

zmem:推理时让模型自主检索确定性来源,减少编造

Latent Tools and Latent Context: Grounding Generation in Deterministic Sources

精选理由

论文用 LD3、Qwen3.5-9B 和 DeepSeek-V4-Flash 三个模型验证了 zmem:模型在思考里发起检索,结果挂到注意力层而非对话上下文,私有数据正确率从几乎全错拉到接近满分,上下文长度还缩短十倍以上。做 RAG、企业知识库或长对话系统的工程师值得复现看细节。

arXiv 论文提出 zmem,让推理服务器在生成过程中按模型请求供给确定性来源:模型在自己的思考中写一行检索指令(latent tool),服务器原地执行并把结果作为一页挂载到所有全注意力层(latent context)。页面被生成器自行编码,对后续 token 可见,但从不进入序列或对话,生成不中断。文档存储采用倒排字面索引,312 MB 数据上单次搜索 1.2 ms,更新即时生效。

正文

在 LD3 和 Qwen3.5-9B 上的实验显示:私有来源场景下,正确答案从无来源时的 3/16 和 0/12 提升到 15/16 和 9/12,与把原文放进上下文相当,且提示词短 10-14 倍;模型自发检索时在合成备忘录的 held-out 问题上答对 44/48。页面由生成器自己编码并挂载到全部全注意力层,无需训练即可部分读取,配合小型 LoRA 可完全读取。页面不占上下文:8 轮对话中每轮 prefill 从 2.7-2.9 s 降到 0.49 s,页面缓存命中使首 token 时间从 2.0 s 降到 0.23 s。

在 DeepSeek-V4-Flash 上,预挂载页面无需训练即可工作,对话 token 比 prefix replay 少 13-19 倍;把页面写入思考中段的 KV 后,检索页 QA 达 47/61,接近 prefix replay 的 53/61。

原文 · arXiv: DeepSeek

Latent Tools and Latent Context: Grounding Generation in Deterministic Sources

A generator's knowledge lives in its parameters, so knowledge that appeared after training or exists only inside an organization is out of its reach, and models often fabricate answers about it. We propose zmem, which lets the inference server supply deterministic sources during generation at the model's request. The model writes a search instruction on a line of its own in its thinking (a latent tool); the server executes it in place and writes the result as a page, which the generator itself encodes and which is mounted on all full-attention layers (latent context). The page is visible to all later tokens but never enters the sequence or the conversation, and generation is not interrupted. The document store uses an inverted literal index (1.2 ms per search over 312 MB; updates take effect at once), and pages are cached by content. On LD3, a byte-level hybrid-attention model, and on Qwen3.5-9B we find: (1) on private sources, correct answers rise from 3/16 and 0/12 without sources, every wrong answer fabricated, to 15/16 and 9/12, on par with source text in context and with prompts 10-14 times shorter; with self-issued searches the model answers 44/48 held-out questions on synthetic memos. (2) Pages encoded by the generator itself and mounted on all full-attention layers are partly readable without training and fully readable with a small LoRA. (3) Trusting pages mounted mid-thinking needs training, and on-policy preference training forms the habit of using sources. (4) Pages do not occupy the context: over 8 turns, prefill per turn drops from 2.7-2.9 s to 0.49 s, and a page cache hit cuts time to first token from 2.0 s to 0.23 s. On DeepSeek-V4-Flash, pre-mounted pages work without training and match source text in context with 13-19 times fewer dialogue tokens; with pages written into the KV mid-thinking, search-page QA reaches 47/61 versus 53/61 under prefix replay.

产业坐标与信源核验

本条情报归属 AITOP「论文」核心追踪栏目。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:zmem、RAG、LD3、Qwen3.5-9B,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始信息发布自一手权威信源「arXiv: DeepSeek」(Tier-1 一手发布),具备高确定性参考价值。截至目前,全网已有 3 家独立信源对该事件进行交叉印证与跟进报道(含 Lxfater、LMSYS Org (SGLang) 等),属于近期高关注度行业信号。

发现摘要或翻译有误? 告诉我们