paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Improving Quality of LLM Code Generation in Low-Resource Programming Languages via Uncertainty Estimation

通过不确定性估计提升低资源编程语言中的 LLM 代码生成质量
ASE 2025 40th IEEE/ACM International Conference on Automated Software Engineering (ASE)2025匹配度 2/10 · 该论文聚焦于用不确定性估计提升 LLM 在低资源编程语言上的代码生成,并构建相关基准,但其核心目标是改进 LLM/代码生成能力,而非用户关注的静态分析、形式化验证、Agentic 程序、浮点程序分析或贝叶斯程序分析。虽然涉及程序语言与机器学习交叉,但与研究方向的核心问题距离较远。引用 0 inbox
Georgii Andriushchenko
crossref: 2026-09-12

AI 速览

一句话:提出用不确定性估计改进 LLM 在低资源编程语言上的代码生成,并构建新的评估基准。

Code LLM 在高资源编程语言上表现优异,但在低资源语言(LRPL)上表现欠佳。已有工作通过继续训练或分词器适配来提升 LRPL 性能,但依赖昂贵数据且易导致灾难性遗忘。本文提出利用不确定性估计(UE)来改善 LLM 在 LRPL 上的代码生成。研究预计贡献三点:一是覆盖 Python、Java、Racket 与 Elixir 的新代码生成基准,除功能正确性外还评估可读性、效率与惯用风格;二是用于评估代码生成不确定性估计的新基准;三是基于 UE 的提升方法,包括按低不确定性过滤合成训练数据、UE 驱动的课程学习策略、不确定性感知解码,以及将不确定性作为对齐阶段的强化学习奖励。预期通过全面评估证明 UE 能提升 LRPL 代码生成,并开源基准与模型。

问题
LLM 在低资源编程语言上的代码生成质量差,而现有的继续训练与分词器适配方案需要大量数据且会造成灾难性遗忘。
方法
将不确定性估计引入代码生成,采用低不确定性数据过滤、UE 驱动课程学习、不确定性感知解码以及以不确定性为 RL 奖励的对齐策略,并配套设计新的代码生成与不确定性评估基准。
评估
在涵盖 Python、Java、Racket、Elixir 的新基准上评估功能正确性、可读性、效率与惯用风格,同时用新基准评估代码生成中的不确定性估计方法,并计划开源基准与模型。
原文摘要(Abstract)

Large language models for source code (Code LLMs) demonstrate great performance on high-resource programming languages (HRPLs) but struggle with low-resource ones (LRPLs). Previous studies have improved LLM performance on LRPLs by continued training or tokenizer adaptation. However, they require costly data and can cause catastrophic forgetting. This paper proposes to address the poor performance of LLMs on LRPLs using uncertainty estimation (UE). UE methods have advanced LLM performance on natural language tasks, but are underexplored in source code settings. The research may provide three contributions: (1) a new code generation benchmark evaluating not only functional correctness but also readability, efficiency, and idiomatic style across Python, Java, Racket, and Elixir; (2) a new benchmark for evaluating uncertainty estimation when generating code; and (3) methods to improve LRPL code generation by leveraging UE. The methods utilizing UE include filtering synthetic training data by low uncertainty, an UE-driven curriculum learning strategy, uncertainty-aware decoding, and using uncertainty as an RL reward in alignment. The research may provide a comprehensive evaluation of uncertainty in code models, demonstrate that UE can improve LRPL generation, and open-source release of benchmarks and models as outcomes.

链接与引用

DOI 原文 ·

BibTeX
@inproceedings{paperbot9317,
  title = {Improving Quality of LLM Code Generation in Low-Resource Programming Languages via Uncertainty Estimation},
  author = {Georgii Andriushchenko},
  booktitle = {ASE},
  year = {2025},
  doi = {10.1109/ase63991.2025.00399}
}