Paper: 2603.23013 Authors: Xunzhuo Liu, Bowei He, Xue Liu, Andy Luo, Haichen Zhang, Huamin Chen Categories: cs.CL
Abstract
Production AI agents frequently receive highly repetitive user-specific queries — up to 47% are semantically similar to prior interactions — yet each query is processed with the same computational cost. This work proposes a memory-augmented inference framework where a lightweight 8B model leverages retrieved conversational context to answer via a low-cost inference path. Without any training or labeled data, this achieves 30.5% F1, recovering 69% of a full-context 235B model’s performance while reducing cost by 96%. The central finding: a 235B model without memory (13.7% F1) underperforms even a standalone 8B model (15.4% F1), demonstrating that for user-specific queries, access to relevant knowledge outweighs model scale.
Key Contributions
- “Knowledge access beats model size”: 235B without memory<8B without memory on user-specific queries
- 2×2 factorial study: First to study the interaction between memory and routing, revealing that memory doesn’t enable routing — it makes routing worthwhile
- 96% cost reduction: Memory-augmented 8B handles 100% of queries at small-model cost
- Zero training required: Uses only the model’s own log-probabilities as confidence signal
- Failure mode analysis: Turn-pair memories help factual recall (+28.9 F1) but hurt temporal reasoning (-3.8 F1)
The 2×2 Factorial Experiment
| No Routing | Routing (τ=0.50) | |
|---|---|---|
| No Memory | 15.4% F1 | 13.0% F1 (96% on 8B) |
| Memory | 30.1% F1 | 30.5% F1 (100% on 8B) |
What This Reveals
Without memory: Routing already keeps 96% of queries on the small model — but the small model is confidently wrong. It fabricates plausible-sounding answers about user-specific facts it has never seen.
With memory: The small model answers correctly because it has the relevant context. Memory doesn’t change the routing decision; it changes whether the routed answer is correct.
The compound effect: “Memory makes routing worthwhile” — routing provides cost savings, memory ensures those savings come with quality.
The Virtuous Cycle
In production agent workloads (47% of queries are semantically similar):
- First query on a topic → may need expensive large model → builds memory
- Same/similar question recurs (65% of production queries) → small model retrieves prior knowledge → answers correctly
- Memory store grows over time → more topics covered → quality converges toward large-model quality at small-model cost
Concrete Example
User asks: “What is Caroline’s marital status?”
- Without memory (8B): Produces plausible but incorrect response. Confidence = 0.38
- With memory (8B, retrieved turn: “Q: Are you seeing anyone? A: No, I’m single”): Answers correctly. Confidence = 0.93
Failure Modes
| Memory Type | Factual Recall (Single-hop) | Temporal Reasoning |
|---|---|---|
| Turn-pair | +28.9 F1 | -3.8 F1 |
| Hybrid (BM25 + cosine) | Additional +7.7 F1 | Still limited |
Turn-pair memories work well for “what” questions but poorly for “when” questions requiring temporal ordering across conversations — suggesting structured memory representations are needed for these cases.
Takeaways
- For user-specific queries, knowledge access matters more than model size — a finding with major implications for production system design
- The memory-routing interaction is non-obvious and was previously unstudied: memory doesn’t enable routing, it makes routing worthwhile
- Confident hallucination is the primary failure mode of small models without memory — they don’t know they don’t know
- The framework requires zero training, zero labeled data, and zero external classifiers — just conversational memory + log-probability confidence
- Production agent workloads are repetitive enough (47%+ similar queries) to make this approach highly effective in practice
论文: 2603.23013 作者: Xunzhuo Liu, Bowei He, Xue Liu, Andy Luo, Haichen Zhang, Huamin Chen 分类: cs.CL
摘要
生产AI智能体频繁接收高度重复的用户特定查询——多达47%与先前交互语义相似——但每个查询都以相同的计算成本处理。本工作提出记忆增强推理框架,轻量级8B模型利用检索的对话上下文通过低成本推理路径回答。无需任何训练或标注数据,实现30.5% F1,恢复全上下文235B模型69%的性能,同时削减96%成本。核心发现:无记忆的235B模型(13.7% F1)甚至不如独立的8B模型(15.4% F1),表明对于用户特定查询,获取相关知识比模型规模更重要。
主要贡献
- “知识获取胜过模型规模”:无记忆的235B<无记忆的8B(用户特定查询)
- 2×2因子实验:首次研究记忆与路由的交互,揭示记忆不是启用路由而是使路由有价值
- 96%成本削减:记忆增强的8B以小模型成本处理100%查询
- 零训练需求:仅使用模型自身的对数概率作为置信信号
- 失败模式分析:对话记忆帮助事实回忆(+28.9 F1)但损害时序推理(-3.8 F1)
2×2因子实验
| 无路由 | 路由 (τ=0.50) | |
|---|---|---|
| 无记忆 | 15.4% F1 | 13.0% F1 (96%在8B上) |
| 有记忆 | 30.1% F1 | 30.5% F1 (100%在8B上) |
揭示了什么
无记忆时:路由已将96%查询保持在小模型上——但小模型自信地错误。它编造关于从未见过的用户特定事实的合理答案。
有记忆时:小模型因有相关上下文而正确回答。记忆不改变路由决策;它改变路由答案是否正确。
良性循环
在生产智能体工作负载中(47%查询语义相似):
- 某话题首次查询 → 可能需要昂贵大模型 → 构建记忆
- 相同/类似问题再次出现 → 小模型检索先前知识 → 正确回答
- 记忆库随时间增长 → 覆盖更多话题 → 质量以小模型成本趋近大模型质量
失败模式
对话记忆适合”是什么”类问题但不适合需要跨对话时序排列的”什么时候”类问题——表明这些情况需要结构化记忆表示。
要点总结
- 对于用户特定查询,知识获取比模型规模更重要——对生产系统设计有重大影响
- 记忆-路由交互是非直觉的且此前未被研究:记忆不是启用路由而是使路由有价值
- 自信幻觉是无记忆小模型的主要失败模式——它们不知道自己不知道
- 框架零训练、零标注数据、零外部分类器——仅需对话记忆+对数概率置信度
- 生产智能体工作负载足够重复(47%+相似查询),使该方法在实践中高度有效