paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoning

像人类开发者一样思考:利用社区知识进行结构化代码推理
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 2/10 · 该论文的核心目标是利用社区知识构造推理链并微调 LLM,以提升代码推理/生成能力,属于以 LLM 本身为研究目标的工作;它未涉及静态分析、形式化验证、浮点程序分析或贝叶斯程序分析,也未将 LLM/Agent 作为改进程序分析的工具。引用 1 inbox
Chengran Yang, Zhensu Sun, Hong Jin Kang, Jieke Shi, David Lo
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 RT-Distiller,从开发者社区讨论中挖掘并结构化推理链,微调 LLM 提升代码推理能力。

该论文针对 LLM 在复杂多步代码推理任务中表现不足、高质量推理数据稀缺的问题,提出 RT-Distiller 框架。它从软件工程社区讨论中挖掘、重构并丰富推理链,将其与软件开发生命周期(SDLC)原则对齐,使非结构化、不完整的讨论转化为可支持迭代改进的真实解题策略。基于 RT-Distiller 生成的 12,444 条推理增强样本,作者微调得到 CodeThinker。在 LiveCodeBench 上,CodeThinker 在中等难度代码问题上的 pass@1 比基座模型提升 42.86%,并分别超过 GPT-4o-mini 和 GPT-4o 达 73.14% 与 115.86%;消融实验表明各组件均对推理能力有贡献。

问题
LLM 在需要多步逻辑推理的复杂代码生成任务上仍显不足,且高质量推理数据稀缺,现有强化学习成本高、LLM 合成推理链易出错。
方法
提出 RT-Distiller,从软件工程社区讨论中挖掘并重构推理链,按 SDLC 原则对齐与丰富,再用其生成的数据微调 CodeThinker。
评估
在 LiveCodeBench 上评估 pass@1,并对比基座模型、GPT-4o-mini、GPT-4o,同时进行消融研究。
原文摘要(Abstract)

Large Language Models (LLMs) have significantly advanced automated code generation, yet they struggle with complex coding tasks requiring multi-step logical reasoning. High-quality reasoning data is crucial for improving LLMs’ reasoning capabilities, but such datasets remain scarce. Existing approaches either rely on computationally expensive reinforcement learning (RL) or error-prone reasoning chains synthesized by LLMs, posing challenges in scalability and accuracy. To address this challenge, we propose RT-Distiller, a novel framework that mines, restructures, and enriches reasoning chains from community-driven discussions on software engineering platforms. RT-Distiller refines unstructured and incomplete discussions of coding problems by aligning them with Software Development Life Cycle (SDLC) principles, ensuring that reasoning chains capture real-world problem-solving strategies and support iterative refinement. To evaluate the effectiveness of RT-Distiller, we introduce CodeThinker, an LLM fine-tuned on 12,444 reasoning-augmented samples generated by RT-Distiller. Experiments on LiveCodeBench show that CodeThinker surpasses its base model by 42.86% on medium-level code problems in terms of pass@1 and outperforms GPT-4o-mini and GPT-4o by 73.14% and 115.86%, respectively. Our ablation study further highlights that each component of RT-Distiller contributes to the reasoning capabilities of CodeThinker.

链接与引用

DOI 原文 · arXiv · DBLP

BibTeX
@inproceedings{abs-2503-14838,
  title = {Think Like Human Developers: Harnessing Community Knowledge for Structured Code Reasoning},
  author = {Chengran Yang and Zhensu Sun and Hong Jin Kang and Jieke Shi and David Lo},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3744916.3764550}
}