paperbot · PL 论文追踪

全部论文 待读 收藏

P2 The Devil is in the Tails: How Long-Tailed Code Distributions Impact Large Language Models

魔鬼藏在长尾中:长尾代码分布如何影响大型语言模型
ASE 2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE)2023匹配度 2/10 · 该论文研究代码数据长尾分布对LLM性能的影响,属于LLM for Code的实证研究,与用户关注的静态分析、形式化验证、浮点/贝叶斯程序分析等核心方向无直接关联。虽然涉及程序语言与机器学习交叉,但目标并非PL分析工具或验证方法。引用 20 inbox
Xin Zhou, Kisub Kim, Bowen Xu, Jiakun Liu, DongGyun Han, David Lo
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:揭示长尾代码分布使代码大模型在低频标签样本上性能下降30.0%至254.0%。

现有基于学习的技术,尤其是面向代码的大型语言模型,已广泛用于各类软件工程任务,但多数工作聚焦模型设计,较少关注数据集属性。本文对软件工程数据分布进行探索性研究,发现其通常呈长尾分布:少数类别拥有大量样本,而大量类别样本极少。作者在三个不同的软件工程任务上分析长尾分布对代码大模型性能的影响。实验结果表明,长尾分布显著影响模型效果:对于与低频标签相关的数据样本,代码大模型的性能比高频标签样本差30.0%到254.0%。该研究有助于理解长尾分布对流行代码大模型的影响,并为未来软件工程自动化的发展提供启示。

问题
现有代码大模型研究多关注模型设计,忽视数据分布的影响;而软件工程数据常呈长尾分布,需理解其对代码大模型性能的具体影响。
方法
作者开展探索性研究,分析软件工程数据的分布特性,并在三个不同软件工程任务上对比代码大模型在频繁标签与罕见标签样本上的表现。
评估
实验量化了长尾分布对代码大模型效果的影响,发现模型在低频标签样本上的性能比高频标签样本差30.0%至254.0%。
原文摘要(Abstract)

Learning-based techniques, especially advanced Large Language Models (LLMs) for code, have gained considerable popularity in various software engineering (SE) tasks. However, most existing works focus on designing better learning-based models and pay less attention to the properties of datasets. Learning-based models, including popular LLMs for code, heavily rely on data, and the data's properties (e.g., data distribution) could significantly affect their behavior. We conducted an exploratory study on the distribution of SE data and found that such data usually follows a skewed distribution (i.e., long-tailed distribution) where a small number of classes have an extensive collection of samples, while a large number of classes have very few samples. We investigate three distinct SE tasks and analyze the impacts of long-tailed distribution on the performance of LLMs for code. Our experimental results reveal that the long-tailed distribution has a substantial impact on the effectiveness of LLMs for code. Specifically, LLMs for code perform between 30.0% and 254.0% worse on data samples associated with infrequent labels compared to data samples of frequent labels. Our study provides a better understanding of the effects of long-tailed distributions on popular LLMs for code and insights for the future development of SE automation.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2309-03567,
  title = {The Devil is in the Tails: How Long-Tailed Code Distributions Impact Large Language Models},
  author = {Xin Zhou and Kisub Kim and Bowen Xu and Jiakun Liu and DongGyun Han and David Lo},
  booktitle = {ASE},
  year = {2023},
  doi = {10.1109/ase56229.2023.00157}
}