arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.10987cs.LG
收藏

轻量级自动程序修复中的推理蒸馏

Reasoning Distillation for Lightweight Automated Program Repair

Purdue University(普渡大学)

Aanand Balasubramanian, Sashank Silwal

AI总结:

本文提出通过符号推理蒸馏提升轻量级自动程序修复模型的可解释性和鲁棒性。

摘要:

我们研究轻量符号推理监督是否能提高紧凑自动程序修复模型中的修复类型分类性能。小规模代码模型在资源受限环境下具有吸引力,但它们通常只产生一个预测,不清楚它们是否学习了有意义的程序结构还是依赖于浅层相关性。我们提出了一种推理蒸馏方法,其中大型教师模型在修复类型标签的同时提供结构化的符号推理标签。这些标签捕捉了bug的高层次因果属性,而无需依赖自由形式的解释。我们训练了一个基于CodeT5的学生模型,在IntroClass基准上进行标签-only和推理蒸馏设置的训练。推理监督一致地提高了宏平均性能,特别是在较少见的bug类别上,而无需增加模型大小或复杂性。我们进一步分析推理准确性和修复类型预测之间的关系,显示正确的推理轨迹与正确的预测强相关,但并不完全决定它们。我们的结果表明,符号推理蒸馏是提高轻量级程序修复模型可解释性和鲁棒性的一种实用方法。

英文摘要:

We study whether lightweight symbolic reasoning supervision can improve fix type classification in compact automated program repair models. Small code models are attractive for resource-constrained settings, but they typically produce only a single prediction, making it unclear whether they learn meaningful program structure or rely on shallow correlations. We propose a reasoning distillation approach in which a large teacher model provides structured symbolic reasoning tags alongside fix-type labels. These tags capture high-level causal properties of bugs without relying on free-form explanations. We train a CodeT5-based student model under label-only and reasoning-distilled settings on the IntroClass benchmark. Reasoning supervision consistently improves macro averaged performance, particularly on less frequent bug categories, without increasing model size or complexity. We further analyze the relationship between reasoning accuracy and fix-type prediction, showing that correct reasoning traces strongly correlate with correct predictions, while not fully determining them. Our results suggest that symbolic reasoning distillation is a practical way to improve interpretability and robustness in lightweight program repair models.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑