Metraipolis › archive › dc_637a4eee8502
GraphAHA: Graph-Based Adaptive Search with Heterogeneous Actions for Test-Time Code Generation — arXiv:2609.12757
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2609.12757
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-16T03:03:35.602Z
- SHA-256 of the archived text
2271840880f7f7123c7f47041ca2b4414ac0b198e0183282ecd115686d4a48d1- Stable URL of this page
https://metraipolis.com/documento/dc_637a4eee8502
How to cite
GraphAHA: Graph-Based Adaptive Search with Heterogeneous Actions for Test-Time Code Generation — arXiv:2609.12757 — arXiv (en), https://arxiv.org/abs/2609.12757 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_637a4eee8502 (Metraipolis archive dc_637a4eee8502, sha256 2271840880f7f7123c7f47041ca2b4414ac0b198e0183282ecd115686d4a48d1)
BibTeX
@misc{dc637a4eee8502,
title = {GraphAHA: Graph-Based Adaptive Search with Heterogeneous Actions for Test-Time Code Generation — arXiv:2609.12757},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2609.12757},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_637a4eee8502; sha256 2271840880f7f7123c7f47041ca2b4414ac0b198e0183282ecd115686d4a48d1},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2609.12757. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Test-time scaling improves code generation by spending additional inference budget (e.g., calls or tokens) on direct sampling, feedback-conditioned repair, and reasoning-guided implementation. Search-based methods can allocate this budget adaptively, but two challenges remain. First, tree-structured search treats each generation history as a separate state even when trajectories converge to the same program, duplicating evaluation and preventing statistics from being shared. Second, sampling, repair, and reasoning have complementary and state-dependent payoffs, making online allocation among them difficult under a finite budget. To address these challenges, we propose an adaptive graph search method with heterogeneous actions (GraphAHA). GraphAHA organizes the test-time code generation in a typed directed acyclic graph. Equivalent programs are merged into a single code node, allowing their downstream search statistics to be reused across all discovery paths. Hierarchical Thompson sampling then selects whether to generate a new state or follow an existing successor and, for generation, chooses among the type-valid sampling, reasoning, implementation, and repair operations. Evaluated on LiveCodeBench and CodeContests with Qwen2.5-Coder and DeepSeek-Coder, GraphAHA achieves the best score in 18 of 20 cases. For Pass@1 measured using visible tests, it outperforms the strongest baseline for both models on both benchmarks by 4.1 percentage points on average, demonstrating more effective use of a fixed inference budget. Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-14 in cs.AI). Categorie arXiv: Software Engineering (cs.SE) ; Artificial Intelligence (cs.AI). Pagina del lavoro: https://arxiv.org/abs/2609.12757 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-16T02:51:27.939Z dalla pagina https://arxiv.org/catchup/cs.AI/2026-09-14?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).