计算机科学 > 信息检索
[提交于 2026年11月30日]
标题:When Does Query Expansion Help Agent Memory? A Multi-Seed Study of Selective Expansion and Gate Reliability
查看中文 PDF 查看原文 PDF EasyResearch 阅读摘要: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.
提交历史
来自:Salomon Diei[v1] 2026年11月30日 星期一 03:03:01 UTC (948 KB)