The Rise of Language Models in Mining Software Repositories: A Survey
SCORE Lab, I3US Institute, Universidad de Sevilla, Spain
Mining software repositories (MSR) means analyzing the data that software projects leave behind, such as code, bug reports and developer discussions. Language models have gone from a niche technique to one of its main tools. We reviewed 177 studies published up to 2026 to map what the models are used for, which data are mined, which models are chosen, and how reproducible the research is.
- 177 analyzed studies
- 8 application types
- 163 distinct language models
- 173 data sources mined
A field that took off after 2022
The first studies appeared in 2020, but the topic remained almost unexplored until 2022. Since then, at least 17 studies have been published every year, with a peak of 79 in 2025. The total number of studies grows faster each year, closely following a quadratic curve (R² = 0.97).
- 1 2020
- 4 2021
- 18 2022
- 17 2023
- 38 2024
- 79 2025
- 20 2026*
* 2026 covers only the first months of the year.
RQ1
What are language models used for in MSR?
We found 280 applications of language models (LMs), since a single study can use them for several tasks, and grouped them into eight types. Classification dominates, followed by generation, detection and extraction. In each application, the LM plays one of two roles:
- Main contribution
- The LM output is the result of the study or tool. For example, a model that automatically sorts issue reports (bug reports, feature requests, questions) into categories.
- Enabling contribution
- The LM is a means to an end: it prepares or filters data so that researchers can then analyze it at scale. For example, a classifier that picks out gender-related app reviews, which researchers then analyze by hand.
- 82 studies use LMs only as the main contribution, 71 only as an enabling contribution, and 24 in both roles.
RQ2
Which data do these studies mine?
We identified 173 data sources, almost all of them public. GitHub is by far the most mined repository, and a small set of curated datasets (developer–ChatGPT conversations, code reviews and issue reports) is reused again and again. Source code, issue reports and discussion threads are the most commonly mined types of data.
- The studies released 102 new datasets, 87 of them publicly available.
- The new datasets mostly contain the same types of data that were mined: studies tend to enrich existing data rather than create new kinds.
RQ3
Which language models are used, and how has that changed?
Small models such as BERT and RoBERTa are still the workhorse, especially for classification. Researchers usually fine-tune them, that is, retrain them on labeled examples from their own data. Since 2023, the field has shifted towards large general-purpose models, mostly OpenAI's GPT models accessed online, which are simply given instructions in plain language (prompting) instead of being retrained.
- Models from the BERT family account for 29.3% of all uses and GPT models for 21.9%. Newer families such as DeepSeek, Mistral, Qwen, Claude and Gemini are starting to appear.
- Where the size is known, 65% of uses involve small models, under 0.5 billion parameters (the usual measure of a model's size), and most of them are fine-tuned on repository data.
* 2026 covers only the first months of the year. 2020–2022 are grouped because there were few uses.
Open models can be downloaded and run by anyone; closed models are only available through the provider's service. B = billions of parameters.
RQ4
Can these studies be reproduced and reused?
Most studies share their materials (data, code and scripts), but reproducing them is harder in practice: many rely on proprietary models, available only through a company's service and liable to change without notice; costs are rarely reported; and few studies release tools that are maintained after publication.
- Materials are hosted mainly on GitHub (81), Zenodo (44) and figshare (13). Unlike GitHub, Zenodo and figshare are designed for long-term preservation.
- Only 7 of the 30 proposed tools were updated after their release year.
- 148 Shared and accessible
- 8 Mentioned but unavailable
- 21 Not provided
18 / 93 studies using proprietary models report their costs
Open challenges
From the analysis we derive seven open challenges, each with concrete actions for the research community.
-
Beyond code
Most studies mine code or data closely tied to it, such as issues and commits. Requirements, design documents, images and videos, or specifications of AI agents remain largely unexplored.
-
Generate, not just classify
Generation accounts for only 21.4% of applications. LMs could also enrich repositories by writing requirements, software models, records of design decisions or user tutorials.
-
Industrial evidence
166 of the 177 studies are led by academic researchers, usually working with open-source data. Approaches still need to be validated with real company data and constraints, such as cost.
-
Reusable tools
Only 30 tools were proposed, and just seven were updated after their release year. Tools should be recognized as research contributions in their own right.
-
Report the cost
Only 18 of the 93 studies that use proprietary models report how much they spent. Cost should be evaluated alongside performance.
-
Benchmarks and datasets
The field lacks shared benchmarks (standard tests for each task) to help choose a model, its size and how to use it, and datasets are often poorly documented.
-
AI agents for MSR
We found no study that uses AI agents, systems that combine LMs with tools to pursue a goal on their own, for MSR. Their effectiveness, cost and reliability remain to be explored.
Cite this work
@article{romero2026rise,
author = {Romero-Arjona, Miguel and Barakat, Saman and S{\'a}nchez, Ana B. and Segura, Sergio},
title = {The Rise of Language Models in Mining Software Repositories: A Survey},
year = {2026},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
issn = {1049-331X},
doi = {10.1145/3861019},
journal = {ACM Trans. Softw. Eng. Methodol.},
month = oct
}
This work is part of the project PID2024-156482NB-I00, funded by MICIU/AEI/10.13039/501100011033 and by ERDF/EU, and by grant DGP_PRED_2024_00262, funded by the Junta de Andalucía/CIIU and the FSE+.