Saved in:
Bibliographic Details
Main Authors: Tanaka, Yuto, Sato, Issei
Format: Preprint
Published: 2026
Subjects:
Online Access:https://arxiv.org/abs/2604.23989
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913064270430208
author Tanaka, Yuto
Sato, Issei
author_facet Tanaka, Yuto
Sato, Issei
contents Recent work on large language models (LLMs) has emphasized the importance of scaling inference compute. From this perspective, the state-of-the-art method Scattered Forest Search (SFS) has been proposed, employing Monte Carlo Tree Search with carefully crafted initial seeds and textual optimization for multi-turn code correction. However, its complexity makes it unclear what factors contribute to improvements in inference performance. To address this problem, we analyze SFS and propose a simpler method, Iterative Refinement of Textual Directions (IRTD), which fixes initial codes and iteratively refines textual directions. Because of the simplicity of IRTD, we theoretically establish the safety of IRTD using Oracle-Guided Inductive Synthesis (OGIS). Experiments on several code generation benchmarks suggest that IRTD achieves inference performance comparable to state-of-the-art methods. These results indicate that, even without complex search structures, refining initial codes with high-quality textual directions alone can effectively improve inference performance.
format Preprint
id arxiv_https___arxiv_org_abs_2604_23989
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Fix Initial Codes and Iteratively Refine Textual Directions Toward Safe Multi-Turn Code Correction
Tanaka, Yuto
Sato, Issei
Machine Learning
Artificial Intelligence
Recent work on large language models (LLMs) has emphasized the importance of scaling inference compute. From this perspective, the state-of-the-art method Scattered Forest Search (SFS) has been proposed, employing Monte Carlo Tree Search with carefully crafted initial seeds and textual optimization for multi-turn code correction. However, its complexity makes it unclear what factors contribute to improvements in inference performance. To address this problem, we analyze SFS and propose a simpler method, Iterative Refinement of Textual Directions (IRTD), which fixes initial codes and iteratively refines textual directions. Because of the simplicity of IRTD, we theoretically establish the safety of IRTD using Oracle-Guided Inductive Synthesis (OGIS). Experiments on several code generation benchmarks suggest that IRTD achieves inference performance comparable to state-of-the-art methods. These results indicate that, even without complex search structures, refining initial codes with high-quality textual directions alone can effectively improve inference performance.
title Fix Initial Codes and Iteratively Refine Textual Directions Toward Safe Multi-Turn Code Correction
topic Machine Learning
Artificial Intelligence
url https://arxiv.org/abs/2604.23989