Papers

Doc-to-LoRA 研究发现:将文档编译为适配器存记忆并不可靠

Doc-to-LoRA Analysis: Query Conditioning, Wrong Facts, and Distractor Interference

Why we picked it

这篇论文用 Gemma-2-2B 和 Qwen3-4B 实测了把文档压成 LoRA 存记忆这条路,结论是准确率不如直接把文本放进上下文,还容易串答案。做 RAG 或记忆系统的工程师值得看看这些干预实验,能少走弯路。

arXiv 论文(编号 2611.30825)系统评估了 Doc-to-LoRA(D2L),一种把文档编译成低秩适配器、让模型免于反复处理原文文本的方法。在 Gemma-2-2B 和 Qwen3-4B 两个模型上,D2L 的问答准确率均低于 in-context learning,且文档数量越多干扰越强:单文档错误经常把答案错配到同一篇文档的其他问题上。

Body

层级干预实验显示,干扰随模型深度累积累积,在 Gemma 上文档库越大、早期层受损越集中;用 8 篇文档时,在初始层施加完整文档库的效果与完全屏蔽文档贡献接近。中间层状态中虽可检测到文档来源信息,但训练出的读取器无法可靠化解干扰。

在 PersonaMem-v2 基准上,联合编译加归一化适配器组合的准确率接近文本记忆方案,但 token 节省有限,吞吐提升也依赖模型和 batch size。结论指向:D2L 难以替代文本记忆,更值得探索从交互中在线学习个性化行为的方法。

Original · arXiv cs.LG

Doc-to-LoRA Analysis: Query Conditioning, Wrong Facts, and Distractor Interference

Doc-to-LoRA (D2L) compiles documents into low-rank adapters, allowing language models to use their contents without repeatedly processing the original text. We investigate its suitability for internalizing user memories through factual question answering, controlled interventions, and a production MidBrain memory pipeline. Across Gemma-2-2B and Qwen3-4B, D2L loses accuracy relative to in-context learning, with additional documents introducing substantial interference. Single-document errors frequently match answers to other questions about the same passage, suggesting unreliable question-answer attribution. Layer-wise interventions show that interference accumulates across depth, with more concentrated early damage at larger bank sizes on Gemma. With eight documents, applying the full bank in the initial layers gives similar accuracy to withholding all document contributions there. Source membership is detectable in intermediate states, but trained readers do not reliably resolve the interference. On PersonaMem-v2, joint compilation and normalized adapter composition achieve accuracy close to consolidated text memory when retrieved episodes remain text, but the resulting token savings are modest. Measured throughput gains also depend on model and batch size despite substantial reductions in analytical compute. Together, these findings limit the practical case for D2L as a replacement for text-based memory and motivate investigating online-learning methods that acquire personalized behavior from interactions in which memory is used.

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include Doc-to-LoRA, Gemma-2-2B, Qwen3-4B, RAG.

Source attribution: curated from arXiv cs.LG (@Jesper Derehag).