potentialpaper

ContextForge: Learning What to Retrieve From Diverse Validated Patches

Keep the title, authors and abstract in paper.json

potentialpaper · 2026-11-23 19:26 UTC · 8aeca7cbf671 ·

.potentialpaper/metadata.json modified

+++ b/.potentialpaper/metadata.json
@@ -1,19 +1,5 @@
{
- "layout": 5,
- "identifiers": [
- {
- "scheme": "openreview",
- "value": "GUTgBE6Ma0"
- }
- ],
- "title": "ContextForge: Learning What to Retrieve From Diverse Validated Patches",
- "authors": [],
- "abstract": "Search subagents can reduce the expensive repository \nperformed by coding agents, yet they are commonly trained and evaluated using overlap with locations modified in a single solution patch.\nThis proxy omits useful context in unmodified callers, interfaces, tests, and invariants. It also overlooks that there can be many alternative test-valid repairs that depend on different repository evidence.\nTo address these limitations, we introduce a novel reward function for context retrieval that scores edit locations, supporting code, and explanations using patch-conditioned information gains averaged over multiple test-validated repairs. \nWe implement this reward in ContextForge, a training framework that constructs diverse repair sets through offline generation and test execution. \nUsing GRPO, we train a Qwen3.5-4B search agent and evaluate it with OpenHands and Mini-SWE-Agent on SWE-bench Pro, Verified, and Multilingual. \nAcross all six benchmark-scaffold settings, ContextForge achieves the lowest inference cost and best or tied Pass@1 among evaluated context retrieval agents, and reduces end-to-end cost by up to 29.1% compared to the no-subagent baseline.",
- "year": 2027,
- "venue": "ICLR 2027 (under review)",
- "source": "openreview",
- "license": {
- "metadata": "CC0-1.0",
- "abstract": "CC0-1.0"
- }
+ "layout": 6,
+ "kind": "paper",
+ "key": "b08f6ca5-f31f-40ba-bb20-ff4e73a08539"
}

paper.json added

+++ b/paper.json
@@ -0,0 +1,9 @@
+{
+ "title": "ContextForge: Learning What to Retrieve From Diverse Validated Patches",
+ "authors": [],
+ "abstract": "Search subagents can reduce the expensive repository \nperformed by coding agents, yet they are commonly trained and evaluated using overlap with locations modified in a single solution patch.\nThis proxy omits useful context in unmodified callers, interfaces, tests, and invariants. It also overlooks that there can be many alternative test-valid repairs that depend on different repository evidence.\nTo address these limitations, we introduce a novel reward function for context retrieval that scores edit locations, supporting code, and explanations using patch-conditioned information gains averaged over multiple test-validated repairs. \nWe implement this reward in ContextForge, a training framework that constructs diverse repair sets through offline generation and test execution. \nUsing GRPO, we train a Qwen3.5-4B search agent and evaluate it with OpenHands and Mini-SWE-Agent on SWE-bench Pro, Verified, and Multilingual. \nAcross all six benchmark-scaffold settings, ContextForge achieves the lowest inference cost and best or tied Pass@1 among evaluated context retrieval agents, and reduces end-to-end cost by up to 29.1% compared to the no-subagent baseline.",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}