# Large Language Models for Software Engineering: A Systematic Literature Review

Systematic review maps how general LLMs are used across software engineering

Xinyi Hou, Yanjie Zhao, Yue Liu, Zhou Yang, Kailong Wang, Li Li and 4 more · arXiv · 2023-8-21

- **Problem** Earlier reviews cover only one software engineering niche or older machine learning models, so they miss general LLMs. Developers apply general models like ChatGPT to many SE tasks, yet no review covers them across the whole field.
- **Method** The authors run a systematic literature review of 395 papers from January 2017 to January 2024. They sort each LLM by architecture into encoder-only, encoder-decoder, or decoder-only groups, and use those groups for the rest of the analysis.
- **Results** Decoder-only models appeared in 70.7% of the 2023 studies, up from earlier years. The review reports this shift as a move toward decoder-only models as the main approach.

## What earlier reviews left uncovered

Earlier surveys each cover part of the ground, and that partial coverage is the problem this review addresses. Some narrow the scope to one task, such as software testing or natural-language-to-code work, while others stay with machine learning or deep learning models. Surveys of Code LLMs leave out general models like ChatGPT and LLaMA, even though developers apply those widely to SE tasks.

So the field needs a review that covers general LLMs across the whole of SE, not one slice of it.

The authors frame the work as four research questions about which models are used, how data is handled, how models are tuned and scored, and which tasks succeed. They answer these with a systematic literature review, which fixes the search and selection steps in advance so that others can check them.

## How 395 papers were chosen

The authors start with a manual search of six top SE venues: ICSE, ESEC/FSE, ASE, ISSTA, TOSEM and TSE. From 4,618 crawled papers they verified 51 relevant ones, and those 51 became the quasi-gold standard. They then derived a search string that pairs SE task keywords with LLM keywords, because a paper with both kinds is more likely to be relevant.

Running that string over seven databases returned 218,765 candidate papers. A page-count filter dropped papers under 8 pages and left 80,611 papers. Keyword screening, language and venue checks, deduplication and grey-literature removal then reduced the set to 382 papers. Snowballing from those 382 papers added 13 more, which brought the total to 395.

Each study was scored on ten quality criteria, QAC1 to QAC10, where QAC1 to QAC3 act as gates. Published papers needed at least 16.8 out of 21 on QAC4 to QAC10, while unpublished arXiv papers needed 14.4 out of 18 on their own criteria. This scoring is what lets arXiv preprints stay in the set.

## Three LLM architecture groups

The authors sort each model by its architecture into one of three groups, and the rest of the analysis uses those groups. Encoder-only models keep just the encoder, which turns an input into a hidden representation that captures word relations and context. BERT is the base model here, and CodeBERT and GraphCodeBERT add code-specific choices: token prediction in one case and edge-type prediction over code graphs in the other.

This design suits understanding tasks, such as code review and bug report understanding.

Encoder-decoder models pair two halves: the encoder maps the input into a hidden space, and the decoder writes the output from that space. T5, PLBART and CodeT5 follow this design, and the authors tie it to tasks such as code summarization. Because the output side is a generator, the design fits summarization, translation and question answering.

Decoder-only models use only the decoder, which predicts the next token from the tokens before it. GPT-series models, ChatGPT, Codex and open models such as LLaMA and Vicuna all follow this design. Because these models can work from a few examples or a simple instruction, they suit generation tasks such as code generation and code completion.

## How architecture choices shifted by year

In 2020 encoder-only models led, with eight papers. The authors attribute this change to decoder-only models producing syntactically correct and functionally relevant code with little fine-tuning.

Encoder-decoder models appeared in 11.97% of those papers, so no single design had taken over.

By 2023 decoder-only models appeared in 432 instances across 195 papers, which is 70.7% of that year's research. Because one paper can use several decoder-only models, the 432 counts instances rather than papers. Encoder-only models stayed at 94 papers, or 15.39%, and encoder-decoder models reached 85 papers, or 13.91%. The authors read this as a shift of focus toward decoder-only models as the main approach.

## What data the studies used

Open-source datasets dominate, since 235 studies used them for training LLMs. The authors give two reasons: such data is real-world and credible, and suitable training sets for newer LLMs were scarce. Researchers therefore often collected data from Stack Overflow and GitHub and built their own sets.

Only six studies used industrial datasets, which the authors flag as a gap between academic and industrial data. Text-based datasets are the most common data category, used in 151 studies.

Code-based datasets came next, and source code alone appeared 60 times. The review classifies data into five types: code-based, text-based, graph-based, repository-based and combined.

## Limits of the review

The review sorts models by architecture rather than parameter count, because the literature has no formal minimum size for an LLM. So the boundary of what counts as an LLM rests on the scope the authors chose.

Of the 395 studies, 154 appear in peer-reviewed venues, while 241 are arXiv preprints. The authors kept arXiv papers because the field is new and many works are still under review, then relied on the quality scoring to filter them.

Only six venues went through manual search, so the rest of the coverage depends on the automated search and snowballing.

## Paper info

- **Authors**: Xinyi Hou, Yanjie Zhao, Yue Liu, Zhou Yang, Kailong Wang, Li Li, Xiapu Luo, David Lo, John Grundy, Haoyu Wang
- **Venue**: arXiv · Preprint
- **First published**: 2023-8-21
- **Added**: 2026-11-12
- **Updated**: 2024-4-10
- **Version**: v6
- **arXiv**: 2308.10620
- **Category**: cs.SE · cs.AI
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2308.10620v6) · [PDF ↗](https://arxiv.org/pdf/2308.10620v6)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Xinyi Hou, Yanjie Zhao, Yue Liu, Zhou Yang, Kailong Wang, Li Li, Xiapu Luo, David Lo, John Grundy, Haoyu Wang (2023). Large Language Models for Software Engineering: A Systematic Literature Review. arXiv:2308.10620v6. https://arxiv.org/abs/2308.10620v6

**BibTeX**

```
@misc{hou2023large,
  title = {{Large Language Models for Software Engineering: A Systematic Literature Review}},
  author = {Xinyi Hou and Yanjie Zhao and Yue Liu and Zhou Yang and Kailong Wang and Li Li and Xiapu Luo and David Lo and John Grundy and Haoyu Wang},
  year = {2023},
  eprint = {2308.10620},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2308.10620v6}
}
```

## Other paper commentary

- [MemGPT: Towards LLMs as Operating Systems](https://refivu.com/en/papers/bee01795-9fbb-4af1-af4c-8b4bff391e4b-memgpt-towards-llms-as-operating-systems.md)
- [A Survey on Multimodal Large Language Models](https://refivu.com/en/papers/3b7ae094-f8ab-4e29-a2fd-d41b1efe8cc0-a-survey-on-multimodal-large-language-models.md)
- [ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Tools](https://refivu.com/en/papers/9637d904-3e6d-4047-bd71-6ae5b68f90d8-chatglm-a-family-of-large-language-models-from.md)
- [BloombergGPT: A Large Language Model for Finance](https://refivu.com/en/papers/2dae70a1-3c88-432c-b934-14abfe8cc431-bloomberggpt-a-large-language-model-for-finance.md)
- [Not what you've signed up for: Compromising Real-World LLM-Integrated Applications with Indirect Prompt Injection](https://refivu.com/en/papers/8c7ef054-dbb9-4dbc-aa5f-7f764d2b0d6b-not-what-you-ve-signed-up-for-compromising.md)
- [Making Pre-trained Language Models Better Few-shot Learners](https://refivu.com/en/papers/58cbc07a-35f5-4401-ada0-4d09082241d1-making-pre-trained-language-models-better-few-shot.md)
- [DeblurGAN: Blind Motion Deblurring Using Conditional Adversarial Networks](https://refivu.com/en/papers/bcd086aa-43d4-404f-aae8-d730dc8d20db-deblurgan-blind-motion-deblurring-using-conditional.md)
- [IP-Adapter: Text Compatible Image Prompt Adapter for Text-to-Image Diffusion Models](https://refivu.com/en/papers/fd8adfd8-142d-4826-85e2-96e825c8d373-ip-adapter-text-compatible-image-prompt-adapter-for.md)
- [Sequence Transduction with Recurrent Neural Networks](https://refivu.com/en/papers/882824aa-8ddf-4d40-8608-c68a08ecc168-sequence-transduction-with-recurrent-neural-networks.md)
- [Ups and Downs: Modeling the Visual Evolution of Fashion Trends with One-Class Collaborative Filtering](https://refivu.com/en/papers/c7f79e17-0229-4098-a2b0-1f184335cf4d-ups-and-downs-modeling-the-visual-evolution-of.md)
- [Enhanced-alignment Measure for Binary Foreground Map Evaluation](https://refivu.com/en/papers/668b22a3-321a-4e3f-9465-2c7d6fb8ea23-enhanced-alignment-measure-for-binary-foreground-map.md)
- [ProxylessNAS: Direct Neural Architecture Search on Target Task and Hardware](https://refivu.com/en/papers/40299bf6-79d4-4e50-829c-39acb400238f-proxylessnas-direct-neural-architecture-search-on-target.md)

## Terms in this paper

- [BERT](https://refivu.com/en/terms/45b639a1d317-bert)
- [ChatGPT](https://refivu.com/en/terms/96047648490a-chatgpt)
- [Codex](https://refivu.com/en/terms/1afc2735b086-codex)
- [Code generation](https://refivu.com/en/terms/8b457c4f8807-code-generation)
- [Large Language Model](https://refivu.com/en/terms/a5109f1a76b2-large-language-model)
- [T5](https://refivu.com/en/terms/ae2113eb6c55-t5)
- [LLaMA](https://refivu.com/en/terms/1a23d312f4db-llama)
- [transformer architecture](https://refivu.com/en/terms/30726b29c2c5-transformer-architecture)
- [Code summarization](https://refivu.com/en/terms/df0f5574b1e3-code-summarization)
- [CodeBERT](https://refivu.com/en/terms/77ae7042ec8b-codebert)
- [CodeT5](https://refivu.com/en/terms/467a51b03f20-codet5)
- [GraphCodeBERT](https://refivu.com/en/terms/59a60a6b2461-graphcodebert)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/fb65b16d-a211-4bae-b045-88b67d9525b7-large-language-models-for-software-engineering-a-systematic)
