Boost, Disentangle, and Customize: A Robust System2-to-System1 Pipeline for Code Generation
On the map: LLM reasoning → Reasoning for agents, planning and code
Abstract (arXiv)
Large language models (LLMs) have demonstrated remarkable capabilities in various domains, particularly in system 1 tasks, yet the intricacies of their problem-solving mechanisms in system 2 tasks are not sufficiently explored. Recent research on System2-to-System1 methods surge, exploring the System 2 reasoning knowledge via inference-time computation and compressing the explored knowledge into System 1 process. In this paper, we focus on code generation, which is a representative System 2 task, and identify two primary challenges: (1) the complex hidden reasoning processes and (2) the heterogeneous data distributions that complicate the exploration and training of robust LLM solvers. To tackle these issues, we propose a novel BDC framework that explores insightful System 2 knowledge of LLMs using a MC-Tree-Of-Agents algorithm with mutual Boosting, Disentangles the heterogeneous training data for composable LoRA-experts, and obtain Customized problem solver for each data instance with an input-aware hypernetwork to weight over the LoRA-experts, offering effectiveness, flexibility, and robustness. This framework leverages multiple LLMs through mutual verification and boosting, integrated into a Monte-Carlo Tree Search process enhanced by reflection-based pruning and refinement. Additionally, we introduce the DisenLora algorithm, which clusters heterogeneous data to fine-tune LLMs into composable Lora experts, enabling the adaptive generation of customized problem solvers through an input-aware hypernetwork. This work lays the groundwork for advancing LLM capabilities in complex reasoning tasks, offering a novel System2-to-System1 solution.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 26 of its 49 references that are in the map. First posted on arXiv 18 Feb 2025.
Builds on
26 of 49 references.
Closest ancestors · 7
Same direction, newest first
- 2024RethinkMCTS: Refining Erroneous Thoughts in Monte Carlo Tree Search for Code Generation15 Sep
- 2024Can Github issues be solved with Tree Of Thoughts?20 May
- 2023Chain-of-Thought in Neural Code Generation: From and For Lightweight Language Models9 Dec
- 2023Language Agent Tree Search Unifies Reasoning Acting and Planning in Language Models6 Oct
- 2023Reasoning with Language Model is Planning with World Model24 May
- 2023Structured Chain-of-Thought Prompting for Code Generation11 May
- 2023Teaching Large Language Models to Self-Debug11 Apr
Other references · 19
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2023Code Llama: Open Foundation Models for Codecited by 2,105
- 2018Averaging Weights Leads to Wider Optima and Better Generalizationcited by 1,194
- 2017GradNorm: Gradient Normalization for Adaptive Loss Balancing in Deep Multitask Networkscited by 816
- 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 751
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 679
- 2024Improve Mathematical Reasoning in Language Models by Automated Process Supervisioncited by 426
- 2023LoraHub: Efficient Cross-Task Generalization via Dynamic LoRA Compositioncited by 359
- 2023Alphazero-like Tree-Search can Guide Large Language Model Decoding and Trainingcited by 291
- 2023Planning with Large Language Models for Code Generationcited by 179
- 2022Language Models of Code are Few-Shot Commonsense Learnerscited by 160
7 more
- 2024Distilling System 2 into System 1cited by 152
- 2022Language Models Can Teach Themselves to Program Bettercited by 75
- 2022Code4Struct: Code Generation for Few-Shot Event Structure Predictioncited by 70
- 2023PanGu-Coder2: Boosting Large Language Models for Code with Ranking Feedbackcited by 69
- 2024LoRA Soups: Merging LoRAs for Practical Skill Composition Taskscited by 49
- 2023TWINS: A Fine-Tuning Framework for Improved Transferability of Adversarial Robustness and Generalizationcited by 18
- 2025Error-quantified Conformal Inference for Time Seriescited by 11
Built on by
Citing papers per year: 2025: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Enhancing Code Generation Performance of Smaller Models by Distilling the Reasoning Ability of LLMs
- 2025Guided Code Generation with LLMs: A Multi-Agent Framework for Complex Code Tasks
- 2025MapCoder-Lite: Distilling Multi-Agent Coding into a Single Small LLM
- 2024LLM2: Let Large Language Models Harness System 2 Reasoning
- 2024CodeTree: Agent-guided Tree Search for Code Generation with Large Language Models
- 2024Steering Large Language Models between Code Execution and Textual Reasoning
- 2024If LLM Is the Wizard, Then Code Is the Wand: A Survey on How Code Empowers Large Language Models to Serve as Intelligent Agents
- 2026Pseudo2CodeQA: A Benchmark for LLM-Based Structured Algorithmic Reasoning in Code Generation