当学习的上下文规划未能超越强检索:一项针对规划、路由和重排序在长上下文问答中的控制研究
摘要
本文介绍了一项关于长上下文多项选择问答中学习上下文规划的控制研究,表明在各种实验设置下,该方法并未稳健地超越如BM25和混合检索等强检索方法。
arXiv:2609.26976v1 Announce Type: new
Abstract: Learned context planning selects evidence atoms before an answer model reasons over them. We test whether this learned selection improves long-context multiple-choice QA after strong retrieval, routing, budgeted-selector, and reranking controls. Our primary diagnostic uses all 503 LongBench-v2 MCQ questions with Qwen2.5-7B-Instruct. The planner is SFT-trained on outcome-selected traces from 140 training and 28 development questions; because the 503-question analysis includes those questions, it is partly transductive. At an 18k-character budget, anchored hybrid retrieval reaches 36.18% accuracy and BM25 reaches 35.98%, while the best direct planner-guided method reaches 34.19%. On the untouched 152-question test split, anchored hybrid remains higher (42.11% versus 36.84%). Leakage-safe routers cannot convert a large oracle gap. Under tight budgets, the best planner is ahead by only 0.40 points at 6k and loses at 9k; planner-guided reranking has a +1.79-point estimate at 6k with a paired interval crossing zero and ties the control at 9k. Packing-order and score-flatness analyses did not identify a stable mechanism. Under this setup, learned planning is a weak relevance signal rather than a replacement for strong retrieval.
查看缓存全文
缓存时间: 2026/09/24 09:11
# When Learned Context Planning Fails to Beat Strong Retrieval:A Controlled Study of Planning, Routing, and Reranking for Long-Context QA Source: [https://arxiv.org/html/2609.26976](https://arxiv.org/html/2609.26976) Han ChenAffiliation:Independent Researcher, United StatesEmail:[hc414t@gmail\.com](mailto:[email protected]) ###### Abstract Learned context planning selects evidence atoms before an answer model reasons over them\. We test whether this learned selection improves long\-context multiple\-choice QA after strong retrieval, routing, budgeted\-selector, and reranking controls\. Our primary diagnostic uses all 503 LongBench\-v2 MCQ questions with Qwen2\.5\-7B\-Instruct\. The planner is SFT\-trained on outcome\-selected traces from 140 training and 28 development questions; because the 503\-question analysis includes those questions, it is partly transductive\. At an 18k\-character budget, anchored hybrid retrieval reaches 36\.18% accuracy and BM25 reaches 35\.98%, while the best direct planner\-guided method reaches 34\.19%\. On the untouched 152\-question test split, anchored hybrid remains higher \(42\.11% versus 36\.84%\)\. Leakage\-safe routers cannot convert a large oracle gap\. Under tight budgets, the best planner is ahead by only 0\.40 points at 6k and loses at 9k; planner\-guided reranking has a \+1\.79\-point estimate at 6k with a paired interval crossing zero and ties the control at 9k\. Packing\-order and score\-flatness analyses did not identify a stable mechanism\. Under this setup, learned planning is a weak relevance signal rather than a replacement for strong retrieval\. ## 1Introduction Long\-context question answering systems must decide which parts of a large input to show to an answer model\. Retrieval\-augmented generation \(RAG\) usually ranks chunks with lexical, dense, or hybrid retrieval, then packs the top results into context\([Robertson and Zaragoza, 2009](https://arxiv.org/html/2609.26976#bib.bib6);[Lewis et al\., 2020](https://arxiv.org/html/2609.26976#bib.bib3);[Reimers and Gurevych, 2019](https://arxiv.org/html/2609.26976#bib.bib5)\)\. A learned context planner offers a different interface: retrieve a candidate set, ask a trained model to select evidence atoms, and answer from the selected or planner\-prioritized context\. Here, planning means evidence selection; the planner outputs atom IDs rather than multi\-step reasoning traces\. This idea is plausible, but a weak comparison can make it look stronger than it is\. A planner may beat prompted planning or a direct baseline while still losing to BM25, and a large oracle routing bound may not imply a deployable inference\-time router\. We ask:*when does learned evidence planning survive strong retrieval and reranking controls?*We answer this question on LongBench\-v2 multiple\-choice QA\([Bai et al\., 2024](https://arxiv.org/html/2609.26976#bib.bib1)\)\. Learned planning changes the evidence set, helps some examples, and produces a small 6k\-character rerank signal\. However, in this setting it does not robustly beat strong retrieval, routing, budgeted selection, or reranking controls\. We show that \(i\) direct planner\-guided construction loses to BM25 and anchored hybrid retrieval, \(ii\) oracle complementarity does not become a leakage\-safe router, \(iii\) low\-budget planner gains shrink under stronger selectors, and \(iv\) the remaining planner\-rerank signal is statistically unsupported\. We additionally audit train–evaluation separation, held\-out behavior, domain variation, packing order, and retrieval\-score mechanisms\. The practical takeaway is that planner gains should be checked against strong retrieval, routing, budgeted selection, and reranking controls before being attributed to planning\. ## 2Experimental Setup #### Task, split, and executor\. We deterministically split the 503 LongBench\-v2 MCQ questions into 301 training, 50 development, and 152 test questions \(split seed 20260225\)\. Each example has a long context, question, choices, and a gold letter; a run is correct when the parsed output letter matches the gold\. The answer model is Qwen2\.5\-7B\-Instruct\([Yang et al\., 2024](https://arxiv.org/html/2609.26976#bib.bib9)\)\. Our primary diagnostic reports all 503 questions and therefore includes the 168 questions used to construct planner SFT train/development records\. It is partly transductive and is not a conventional held\-out planner\-generalization estimate\. We separately report the untouched 152\-question test partition\. #### Atoms and retrieval controls\. An*evidence atom*is a deterministic character\-bounded chunk\. Multi\-document contexts are split on document separators or headers, then chunked into 2,000\-character atoms with 200\-character overlap; other contexts use 8,000\-character atoms with 1,000\-character overlap\. A method ranks or selects atoms and packs their full text under an 18k, 9k, or 6k character budget\. BM25 uses an alphanumeric tokenizer\. Dense retrieval usessentence\-transformers/all\-MiniLM\-L6\-v2; hybrid retrieval applies reciprocal\-rank fusion\.*Anchored hybrid*places top BM25 atoms before hybrid fill\. Budgeted controls include no\-anchor and weighted hybrid packing and MMR\. Non\-planner rerankers score the same BM25\+dense candidate pool withcross\-encoder/ms\-marco\-MiniLM\-L\-6\-v2\([Wang et al\., 2020](https://arxiv.org/html/2609.26976#bib.bib7)\)\. #### Trace mining and planner SFT\. For each training or development question, the base Qwen model samples six plans from a 30\-atom retrieval candidate pool \(temperature 0\.7, top\-pp0\.9, at most eight selected atoms, and an 18k\-character execution budget\)\. We deduplicate plans by selected atom set, execute each unique plan with the same base answer model, and assign binary reward from answer correctness\. For SFT, we retain one reward\-one plan per question, preferring fewer atoms, shorter context, and earlier sample order\. This yields 140 SFT training rows and 28 development rows, with zero test\-ID overlap\.111The submission version reported 262 retained traces in a merged SFT archive\. A release audit could not reproduce that count from the audited artifacts of the final adapter; the verified counts are the 140 training and 28 development rows \(168 unique questions\) reported here\.We train a Qwen2\.5\-7B\-Instruct LoRA adapter\([Hu et al\., 2022](https://arxiv.org/html/2609.26976#bib.bib2)\)for three epochs with rank 16, alpha 32, dropout 0\.05, learning rate5×10−55\\times 10^\{\-5\}, per\-device batch size 2, gradient accumulation 8, bfloat16 precision, and seed 111, using Transformers and PEFT\([Wolf et al\., 2020](https://arxiv.org/html/2609.26976#bib.bib8);[Mangrulkar et al\., 2022](https://arxiv.org/html/2609.26976#bib.bib4)\)\. The final adapter is the global\-step\-24 state; no development checkpoint selection occurs because training ends before the configured evaluation interval\. At inference, the planner receives only the question, choices, and retrieved candidate atoms\.*Plan\-guided hybrid*packs planner\-selected atoms before BM25 anchors and hybrid fill;*planner\-rerank*packs planner\-selected atoms before cross\-encoder reranked fill;*Planner\+BM25*uses BM25 fill\. We also report an earlier\-adapter sensitivity check\. #### Routers, statistics, and artifacts\. An oracle router chooses post hoc using gold correctness and measures complementarity rather than deployable performance\. Leakage\-safe routers choose among context\-construction policies using only inference\-available features under stratified 5\-fold and leave\-domain\-out validation\. We report accuracy, paired wins/losses, exact two\-sided sign\-testpp\-values, and 95% intervals\. The public repository provides evaluation and analysis code, portable configurations, split IDs, environment records, checksums, text\-free per\-example predictions, atom IDs, retrieval/reranker ranks and scores, planner\-selected and packed IDs, and paired\-test outputs\.222[https://github\.com/aapplepku/context\-planning\-vs\-retrieval](https://github.com/aapplepku/context-planning-vs-retrieval)Released scripts regenerate the main, split, domain, packing\-order, paired\-sign, and compact mechanism analyses; router and selector results and some intervals are provided as audited summaries\. Raw LongBench\-v2 contexts, base\-model weights, and adapter weights are not redistributed\. We do not claim bitwise reproduction of historical GPU inference, and latency is descriptive only\. ## 3Results ### 3\.1Direct Planning Loses to Retrieval Table[1](https://arxiv.org/html/2609.26976#S3.T1)gives the full\-budget result\. Anchored hybrid retrieval is best at 36\.18%, and BM25 is nearly tied at 35\.98%\. The best direct planner\-guided method reaches 34\.19%\. Planner\+BM25 is lower than BM25 by 3\.78 points \(56 BM25\-only wins versus 37 planner\-only wins;p=0\.061p=0\.061\)\. Thus, direct planner\-guided methods do not beat strong retrieval in this setup\. Table 1:Full 18k\-context results on 503 questions\. CIs are Wilson intervals\.aBM25 vs\. hybrid anchor\.bPlanner\+hybrid anchor vs\. hybrid anchor\.cPlanner\+BM25 vs\. BM25\.#### Held\-out robustness\. On the 152 questions with no SFT train/development overlap, anchored hybrid reaches 42\.11% and planner\-guided anchored hybrid reaches 36\.84% \(difference−5\.26\-5\.26points; 12 planner wins, 20 losses, 120 ties;p=0\.215p=0\.215; paired\-bootstrap 95% CI\[−12\.50,1\.97\]\[\-12\.50,1\.97\]points\)\. This lower\-powered subset does not provide evidence that planning robustly exceeds the retrieval control\. Table 2:Full\-budget accuracy \(%\) by LongBench\-v2 domain\.Δ\\Deltais planner\-guided anchored hybrid minus anchored hybrid\. These subgroup results are descriptive\.At full budget, planner\-guided anchored hybrid exceeds its non\-planner counterpart in one of six domains, ties in one, and trails in four \(Table[2](https://arxiv.org/html/2609.26976#S3.T2)\)\. Several domain subsets are small, so we do not treat these differences as confirmatory\. ### 3\.2Oracle Routing Does Not Become a Router Oracle routing shows complementary errors: an oracle over hybrid anchor and planner\+hybrid reaches 46\.52%, and an all\-method oracle reaches 56\.26%\. These are post\-hoc upper bounds, not deployable policies\. Table[3](https://arxiv.org/html/2609.26976#S3.T3)separates them from leakage\-safe routers using task/domain metadata, context\-length statistics, retrieval\-score summaries, planner parse/selection metadata, and choice\-confidence features\. Across stratified 5\-fold and leave\-domain\-out validation, logistic regression, shallow random forests, histogram gradient boosting, domain\-only rules, and default\-train baselines fail to improve over the best single method\. Table 3:Oracle bounds and routers\. Fixed = best single method; post hoc = oracle using gold correctness; 5\-fold/LDO = stratified 5\-fold and leave\-domain\-out validation; same\-data = optimistic in\-sample rule\. The domain router selects, per domain, the better of hybrid anchor and planner\-guided anchored hybrid using in\-sample accuracy; its \+0\.20\-point gain corresponds to one additional question\. ### 3\.3Budget and Rerank Controls Erase Most Gains A weaker 6k comparison initially favored plan\-guided hybrid over anchored hybrid by 1\.99 points\. We therefore add stronger budgeted selectors and reranker controls\. Table[4](https://arxiv.org/html/2609.26976#S3.T4)reports the decisive comparisons\. Against the best same\-budget non\-learned selector, the 6k planner gain is only \+0\.40 points with a wide interval andp=0\.930p=0\.930; at 9k the planner loses by 1\.19 points\. Against strong non\-planner rerank controls, planner\-rerank has a \+1\.79\-point estimate at 6k, but the paired interval crosses zero andp=0\.478p=0\.478\. At 9k, it ties the best non\-planner reranker\. Table 4:Best planner method versus best non\-planner control at each budget\. Pairedpp\-values are 0\.930, 0\.645, 0\.478, and 1\.000 in row order\. Values are percentage points\.The earlier sensitivity adapter raises the 6k planner\-rerank score to 34\.79%, but still lacks paired support \(p=0\.146p=0\.146; CI\[−0\.99,\+7\.75\]\[\-0\.99,\+7\.75\]points\) and does not beat the 9k control\. Its selected\-atom Jaccard with the final adapter is 0\.881, indicating similar selections but not a robust accuracy gain\. ### 3\.4Selection, Order, and Score Mechanisms Holding the planner\-selected set fixed, hybrid\-retrieval order changes accuracy relative to planner order by−1\.19\-1\.19points at 6k \(p=0\.461p=0\.461\) and\+0\.99\+0\.99points at 9k \(p=0\.511p=0\.511\)\. The reversal does not support a systematic packing\-order advantage\. We also compare planner\-selected IDs with BM25 and cross\-encoder rankings, measure high\-ranked\-atom displacement, and test four predeclared score\-flatness statistics\. Planner–reranker Jaccard@10 is 0\.084 for planner wins versus 0\.097 for losses at 6k, and 0\.082 versus 0\.111 at 9k; planner contexts exclude an average 8\.5–9\.3 of the reranker’s top\-10 atoms\. None of 92 win–loss tests remains significant after Benjamini–Hochberg correction\. Thus, the outputs do not support a stable claim that planner wins occur specifically when retrieval scores are flatter\. These are rank and context\-membership analyses, not evidence\-recall measurements, because LongBench\-v2 provides no gold atom\-level evidence labels for this study\. ## 4Discussion and Conclusion When compared only with prompted or heuristic planning and direct context baselines, a learned planner can look useful\. After adding BM25, anchored hybrid packing, and reranking controls, most apparent gains disappear, even though the planner remains trainable and sometimes changes the evidence set helpfully\. Paired analysis is essential: the \+1\.79\-point 6k estimate comes from 68 planner wins and 59 losses among 503 questions\. Under the observed discordance, confirming a \+1\.5\-point paired effect would require roughly 8,800 examples and a \+2\.0\-point effect roughly 4,900 examples\. In this bounded LongBench\-v2 MCQ study, learned context planning is better viewed as a weak relevance feature than as a replacement for retrieval\. Future studies should compare against anchored hybrid retrieval, budgeted selectors, leakage\-safe routing, and strong rerankers before interpreting gains as evidence of planning ability\. ## Limitations Our conclusions are restricted to LongBench\-v2 MCQ, Qwen2\.5\-7B\-Instruct, one outcome\-supervised planner recipe, one overlapping character\-window atomization scheme, the evaluated lexical/dense retrievers, and the MiniLM cross\-encoder\. The all\-503 diagnostic is partly transductive for the 168 questions represented in SFT train/development data; the disjoint test analysis has only 152 questions and limited power for small paired effects\. We do not evaluate open\-ended QA, other model scales, alternative supervision sources, or real\-world deployment, and we have no external replication\. A larger or differently mined trace set could change the outcome\. The historical run predates strict locked\-run enforcement and immutable model\-revision pinning, and latency is descriptive rather than a portable efficiency claim\. LongBench\-v2 supplies no gold atom\-level evidence labels for this analysis, so mechanism results use atom IDs, ranks, scores, and displacement rather than evidence recall\. These results do not imply that planners are generally ineffective; they show that this planner did not robustly beat strong retrieval controls under the studied conditions\. ## Acknowledgments We thank the Insights 2026 reviewers for their careful comments and suggestions\. Generative AI assistants were used to help draft and revise portions of this manuscript and to help prepare the analysis and artifact\-release scripts\. All experimental results, statistics, and claims were verified by the authors against the released artifacts, and the authors take full responsibility for the content\. ## References - Bai et al\. \(2024\)Yushi Bai, Shangqing Tu, Jiajie Zhang, Hao Peng, Xiaozhi Wang, Xin Lv, Shulin Cao, Jiazheng Xu, Lei Hou, Yuxiao Dong, Jie Tang, and Juanzi Li\. 2024\.LongBench v2: Towards deeper understanding and reasoning on realistic long\-context multitasks\.*arXiv preprint arXiv:2412\.15204*\. - Hu et al\. \(2022\)Edward J\. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen\-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen\. 2022\.LoRA: Low\-rank adaptation of large language models\.In*International Conference on Learning Representations*\. - Lewis et al\. \(2020\)Patrick Lewis, Ethan Perez, Aleksandra Piktus, Fabio Petroni, Vladimir Karpukhin, Naman Goyal, Heinrich Küttler, Mike Lewis, Wen\-tau Yih, Tim Rocktäschel, Sebastian Riedel, and Douwe Kiela\. 2020\.Retrieval\-augmented generation for knowledge\-intensive NLP tasks\.In*Advances in Neural Information Processing Systems*\. - Mangrulkar et al\. \(2022\)Sourab Mangrulkar, Sylvain Gugger, Lysandre Debut, Younes Belkada, and Sayak Paul\. 2022\.PEFT: State\-of\-the\-art parameter\-efficient fine\-tuning methods\.[https://github\.com/huggingface/peft](https://github.com/huggingface/peft)\. - Reimers and Gurevych \(2019\)Nils Reimers and Iryna Gurevych\. 2019\.Sentence\-BERT: Sentence embeddings using Siamese BERT\-networks\.In*Proceedings of EMNLP\-IJCNLP*, pages 3982–3992\. Association for Computational Linguistics\. - Robertson and Zaragoza \(2009\)Stephen Robertson and Hugo Zaragoza\. 2009\.The probabilistic relevance framework: BM25 and beyond\.*Foundations and Trends in Information Retrieval*, 3\(4\):333–389\. - Wang et al\. \(2020\)Wenhui Wang, Furu Wei, Li Dong, Hangbo Bao, Nan Yang, and Ming Zhou\. 2020\.MiniLM: Deep self\-attention distillation for task\-agnostic compression of pre\-trained transformers\.In*Advances in Neural Information Processing Systems*\. - Wolf et al\. \(2020\)Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, and others\. 2020\.Transformers: State\-of\-the\-art natural language processing\.In*Proceedings of EMNLP: System Demonstrations*, pages 38–45\. - Yang et al\. \(2024\)An Yang, Baosong Yang, Beichen Zhang, Binyuan Hui, Bo Zheng, Bowen Yu, Chengyuan Li, Dayiheng Liu, Fei Huang, Haoran Wei, and others\. 2024\.Qwen2\.5 technical report\.*arXiv preprint arXiv:2412\.15115*\.
相似文章
长上下文LLM中的位置失败:推理基准测试的盲点
本论文识别出长上下文LLM推理基准测试中的一个盲点:它们未能控制任务在上下文中的位置,导致位置失败未被检测到。作者提出上下文旋转评估(CRE)来系统地改变任务位置、填充内容和上下文长度,揭示出当推理任务放置在长上下文中时,某些模型的准确率会严重下降。
上下文分配的规律:生成式搜索中的因果度量与闭环编排
本文通过因果度量上下文利用率,识别出RAG评估指标中的缺陷,证明狭窄的顺序上下文比宽广上下文提高召回率,并引入子模调度器进行优化分配。
超越上下文窗口:一种面向混合检索与长上下文语言模型的自适应熵路由框架
本文提出 EDAR,一个由熵驱动的自适应路由框架,能够在推理时动态决定:是用检索增强生成(RAG)来回答查询,还是将其升级为完整的长上下文处理。在 LongBench v2 和 Infinity-Bench 上,EDAR 在仅升级 18.2% 查询的情况下,保住了纯长上下文基线 97.4% 的准确率,同时将 token 成本降低了 70.7%。
当用户未提问时:对话代理中上下文驱动记忆检索的基准测试
本文介绍了LoCoMo-Conv,一个对话记忆基准,用于评估长期对话代理中使用不同查询风格的记忆检索和响应质量,揭示了现有QA基准中的差距,并建议基于推理的记忆细化作为一个有前景的方向。
参数与上下文:面向鲁棒检索增强生成的TRACE微调
本文提出TRACE,这是一个用于检索增强生成(RAG)的微调框架,它使用多智能体辩论轨迹和答案完整性正则化来处理知识冲突,从而提高对误导性上下文的鲁棒性并减少不完整答案。