Research map / Large language models / Agents, code and math
Tree-of-Code: A Self-Growing Tree Framework for End-to-End Code Generation and Execution in Complex Tasks
Ziyi Ni, Yifan Li, Ning Yang, Dou Shen, Pin Lv, Daxiang Dong
Chinese Academy of Sciences · University of Chinese Academy of Science · Tsinghua University · Baidu
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| replace CodeAct with Tree-of-Code (3-3) | CodeAct · M3ToolEval | accuracy: 49.4% -> 67.1%; turns 7.0 -> 1.7 | Improved |
| replace CodeAct with Tree-of-Code (3-3) | CodeAct · API-Bank level-3 | accuracy: 19.2% -> 38.0%; turns 8.9 -> 2.1 | Improved |
| add prompt exploration with 3 nodes in one layer (ablation) | ToC (1-1) · M3ToolEval | accuracy (avg over models): 43.53% -> 50.98% | Improved |
| add prompt exploration with 3 nodes in one layer (ablation) | ToC (1-1) · API-Bank level-3 | accuracy (avg over models): 19.4% -> 24.4% | Improved |
| increase tree from 1x1 to 3x3 nodes (ablation) | ToC with claude-3-5-sonnet · M3ToolEval | accuracy: 73.2% -> 84.1% | Improved |
| add layers (1 to 3) with a single node per layer (ablation) | ToC with claude-3-5-sonnet · M3ToolEval | accuracy: 73.2% -> 74.4% | No clear effect |
| add nodes per layer (1 to 3) in one layer (ablation) | ToC with claude-3-5-sonnet · M3ToolEval | accuracy: 73.2% -> 82.9% | Improved |
| add prompt exploration (ablation) | ToC with random models · M3ToolEval | accuracy: 63.4% -> 67.1% | Improved |
| add prompt exploration (ablation) | ToC with fixed best model · M3ToolEval | accuracy: 75.6% -> 84.1% | Improved |
| use random models instead of fixed claude-3-5-sonnet (ablation) | ToC · M3ToolEval | accuracy: 84.1% -> 67.1% | Hurt |
| use single-node ToC (1-1) instead of CodeAct | gpt-3.5-turbo-1106 · M3ToolEval | accuracy: 25.6% -> 12.2% | Hurt |
Open problems in software engineering agents
Do coding-agent results hold beyond Python, small benchmarks and LLM judges?
- Tested on Python or a few languages, so other languages are untested. · 20 papers state it
- Benchmarks are small, with only 100 to a few hundred tasks. · 14 papers state it
- Scores depend on an LLM judge that may not match human judgment. · 11 papers state it
Closest papers by meaning
- Reasoning Through Execution: Unifying Process and Outcome Rewards for Code Generation (ICML 2025 · similarity 0.90)
- Steering Large Language Models between Code Execution and Textual Reasoning (ICLR 2025 · similarity 0.89)
- Scaling Code-Assisted Chain-of-Thoughts and Instructions for Model Reasoning (NeurIPS 2025 · similarity 0.88)
- Chain of Execution Supervision Promotes General Reasoning in Large Language Models (NeurIPS 2025 · similarity 0.88)
- EvoCodeBench: Evaluating Coding Agents in Multi-Turn Iterative Interactions (NeurIPS 2026 · similarity 0.88)
- Revisiting Chain-of-Thought in Code Generation: Do Language Models Need to Learn Reasoning before Coding? (ICML 2025 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.