Pre-trained on massive amounts of code and text data, large language models (LLMs) have demonstrated remarkable achievements in performing code generation tasks. With additional execution-based feedback, these models can act as agents with capabilities to self-refine and improve generated code autonomously. However, on challenging coding tasks with extremely large search space, current agentic approaches still struggle with multi-stage planning, generating, and debugging. To address this problem, we propose CodeTree, a framework for LLM agents to efficiently explore the search space in different stages of the code generation process. Specifically, we adopted a unified tree structure to explicitly explore different coding strategies, generate corresponding coding solutions, and subsequently refine the solutions. In each stage, critical decision-making (ranking, termination, expanding) of the exploration process is guided by both the environmental execution-based feedback and LLM-agent-generated feedback. We comprehensively evaluated CodeTree on 7 code generation benchmarks and demonstrated the significant performance gains of CodeTree against strong baselines. Using GPT-4o as the base model, we consistently achieved top results of 95.1 on HumanEval, 98.7 on MBPP, and 43.0 on CodeContests. On the challenging SWEBench benchmark, our approach led to significant performance gains.
TreeDiff: AST-Guided Code Generation with Diffusion LLMs
University of Connecticut(康涅狄格大学);San Francisco State University(旧金山州立大学);University of California, Riverside(加州大学河滨分校);National University of Singapore(新加坡国立大学);University of Pittsburgh(匹兹堡大学);Florida State University(佛罗里达州立大学)
Enhancing LLM Reasoning with Reward-guided Tree Search
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);School of Information, Renmin University of China(中国人民大学信息学院);BAAI(北京智源人工智能研究院);Baichuan AI(百川智能)
Holistically Guided Monte Carlo Tree Search for Intricate Information Seeking
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);National University of Singapore(新加坡国立大学);University of Science and Technology of China(中国科学技术大学)
From Structure to Validity: Mechanism-Guided Generation and Refinement of LLM Rubrics
School of Artificial Intelligence, Beijing Normal University(北京师范大学人工智能学院);KE Holdings Inc.(贝壳控股有限公司);School of Information, Central University of Finance and Economics(中央财经大学信息学院)
Ministry of Education Key Laboratory of Bioinformatics, BNRIST Bioinformatics Division, Department of Automation, Tsinghua University(教育部生物信息学重点实验室、BNRIST生物信息学分部、自动化系、清华大学);School of Computing and Artificial Intelligence, Fuyao University of Science and Technology(计算与人工智能学院、福耀科技大学);Department of Computer Science and Engineering, Southern University of Science and Technology(计算机科学与工程系、南方科技大学)
The University of Edinburgh(爱丁堡大学);University of Aveiro(阿维罗大学);National Technical University of Athens(雅典技术大学);Archimedes/Athena Research Centre(阿基米德/雅典研究中心);The Artificial Intelligence Applications Institute, The University of Edinburgh(人工智能应用研究所,爱丁堡大学)
EvalTree: Profiling Language Model Weaknesses via Hierarchical Capability Trees
Paul G. Allen School of Computer Science & Engineering, University of Washington(保罗·G·艾伦计算机科学与工程学院,华盛顿大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所)