跳到正文
研踪PaperTrail
← 研踪 PaperTrail

arXiv:2611.40323 · v1

When Does Query Expansion Help Agent Memory? A Multi-Seed Study of Selective Expansion and Gate Reliability

首次提交 2026-11-30 11:03
版本更新 2026-11-30 11:03
雷达观测 2026-12-01 13:26
arXiv ↗PDF ↗

摘要

Long-horizon software agents store execution traces and later retrieve them with natural-language questions, so the query and the memory are written in different "languages". LLM query expansion can bridge this gap, but it costs generation on every query. We study Selective Query-Side Expansion (SQE), which expands a query with hypothetical execution traces and paraphrases only when the top-1 dense retrieval score is low, then fuses all rankings with Reciprocal Rank Fusion. Across 8 resampled memory stores with rebuilt indices (4,000 queries over SWE-smith agent steps), SQE reaches 69.4% Recall@5 while expanding 48% of queries; in a token-measured rerun it uses 55% fewer LLM tokens than always-on expansion. The observed gain over dense retrieval is 0.9 Recall@5 points (95% CI [+0.1, +1.7], Holm-adjusted p=0.092). Recall@1 drops, and the fixed top-1 gate shows no reliable gain over random selection at a similar budget. In an oracle analysis, expansion helps only 5.3% of queries and hurts 4.2%, so a perfect gate for this policy gains at most 5.3 points. We release the memory stores, per-method summaries, and analysis scripts.

作者备注:9 pages, 5 figures. An earlier version was presented at NAFSIK 2026

AI 论文解读

基于摘要 · 非全文审阅

此版本尚未生成 AI 解读。解读由后台任务生成并按论文版本保存,登录后共享已有结果。

版本差异

目前只收录了一个版本。收录下一版后,可以对照标题、作者、分类和摘要。

观测到的版本

相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。

v1 · 2026-11-30 11:03 · 最新观测版本

When Does Query Expansion Help Agent Memory? A Multi-Seed Study of Selective Expansion and Gate Reliability

Long-horizon software agents store execution traces and later retrieve them with natural-language questions, so the query and the memory are written in different "languages". LLM query expansion can bridge this gap, but it costs generation on every query. We study Selective Query-Side Expansion (SQE), which expands a query with hypothetical execution traces and paraphrases only when the top-1 dense retrieval score is low, then fuses all rankings with Reciprocal Rank Fusion. Across 8 resampled memory stores with rebuilt indices (4,000 queries over SWE-smith agent steps), SQE reaches 69.4% Recall@5 while expanding 48% of queries; in a token-measured rerun it uses 55% fewer LLM tokens than always-on expansion. The observed gain over dense retrieval is 0.9 Recall@5 points (95% CI [+0.1, +1.7], Holm-adjusted p=0.092). Recall@1 drops, and the fixed top-1 gate shows no reliable gain over random selection at a similar budget. In an oracle analysis, expansion helps only 5.3% of queries and hurts 4.2%, so a perfect gate for this policy gains at most 5.3 points. We release the memory stores, per-method summaries, and analysis scripts.

查看此版本解读 →查看此版本原文 ↗