The Devil is in the Tails: How Long-Tailed Code Distributions Impact Large Language Models
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). First posted on arXiv 7 Sep 2023.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2023: 2; 2024: 2; 2025: 4.
8 papers.
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructionscited by 546
- 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmapscited by 19
- 2023CodeFuse-13B: A Pretrained Multi-lingual Code Large Language Modelcited by 14
- 2024Investigating Large Language Models for Code Vulnerability Detection: An Experimental Studycited by 12
- 2025LPASS: Linear Probes as Stepping Stones for vulnerability detection using compressed LLMscited by 4
- 2025Practical Code RAG at Scale: Task-Aware Retrieval Design Choices under Compute Budgetscited by 3
- 2025Swallowing the Poison Pills: Insights from Vulnerability Disparity Among LLMscited by 2
- 2025Integrating Large Language Models and Knowledge Graphs to Capture Political Viewpoints in News Mediacited by 0
- 2025Integrating Large Language Models and Knowledge Graphs to Capture Political Viewpoints in News Media16 Dec 2025
- 2025Practical Code RAG at Scale: Task-Aware Retrieval Design Choices under Compute Budgets23 Oct 2025
- 2025LPASS: Linear Probes as Stepping Stones for vulnerability detection using compressed LLMs30 May 2025
- 2025Swallowing the Poison Pills: Insights from Vulnerability Disparity Among LLMs23 Feb 2025
- 2024Investigating Large Language Models for Code Vulnerability Detection: An Experimental Study24 Dec 2024
- 2024BigCodeBench: Benchmarking Code Generation with Diverse Function Calls and Complex Instructions22 Jun 2024
- 2023CodeFuse-13B: A Pretrained Multi-lingual Code Large Language Model10 Oct 2023
- 2023Trustworthy and Synergistic Artificial Intelligence for Software Engineering: Vision and Roadmaps8 Sep 2023