增强、解耦与定制:面向代码生成的鲁棒 System2-to-System1 流水线
Boost, Disentangle, and Customize: A Robust System2-to-System1 Pipeline for Code Generation
AI总结:
针对代码生成中隐藏推理复杂与数据异构的问题,提出 BDC 框架,通过多智能体蒙特卡洛树搜索探索推理知识,并以 DisenLora 和超网络组合专家生成定制求解器。
摘要:
大语言模型(LLM)已在多个领域展现出显著能力,尤其是在 system 1 任务中,但其在 system 2 任务中解决问题机制的复杂性尚未得到充分探索。近期关于 System2-to-System1 方法的研究迅速增多,这类方法通过推理时计算探索 System 2 推理知识,并将所探索的知识压缩到 System 1 过程中。本文聚焦于代码生成这一具有代表性的 System 2 任务,并识别出两个主要挑战:(1)复杂且隐藏的推理过程;(2)异构数据分布,它们使鲁棒 LLM 求解器的探索与训练变得复杂。为解决这些问题,我们提出了一种新颖的 BDC 框架:该框架利用具有相互增强作用的 MC-Tree-Of-Agents 算法探索 LLM 的深刻 System 2 知识,解耦异构训练数据以形成可组合的 LoRA 专家,并通过输入感知超网络对各 LoRA 专家进行加权,从而为每个数据实例获得定制化问题求解器,兼具有效性、灵活性和鲁棒性。该框架通过相互验证和增强来利用多个 LLM,并将其整合进由基于反思的剪枝与精化所增强的 Monte-Carlo Tree Search 过程。此外,我们提出 DisenLora 算法,该算法对异构数据进行聚类,以将 LLM 微调为可组合的 Lora 专家,从而能够通过输入感知超网络自适应地生成定制化问题求解器。本工作为提升 LLM 在复杂推理任务中的能力奠定了基础,并提供了一种新颖的 System2-to-System1 解决方案。
英文摘要:
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 \textbf{B}oosting, \textbf{D}isentangles the heterogeneous training data for composable LoRA-experts, and obtain \textbf{C}ustomized 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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。