# Synthetic Data Generation Using Large Language Models: Advances in Text and Code

대규모 언어 모델을 이용한 합성 데이터 생성: 텍스트와 코드의 발전

Mihai Nadas, Laura Diosan, Andreea Tomescu · arXiv · 2025년 3월 18일

- **연구 문제** 데이터 확보가 어려운 상황에서 LLM으로 텍스트와 코드의 합성 학습 데이터를 만드는 방법과 효과를 정리하려는 서베이입니다.
- **연구 방법** 프롬프트 기반 생성, 검색 증강, 필터링과 실행 피드백을 텍스트와 코드 도메인에 나누어 검토합니다.
- **주요 결과** 저자원 텍스트 분류에서 합성 샘플 추가가 3–26% 향상을 보였다는 보고가 있으며, 실제 데이터가 많아지면 이득은 줄어듭니다.

## 데이터 부족 문제와 LLM 합성 데이터의 등장

대규모 언어 모델은 많은 데이터로 학습되지만, 고품질 학습 데이터를 확보하는 일은 여러 분야에서 여전히 병목입니다. 데이터 부족, 높은 주석 비용, 개인정보 제약이 대규모 지도 학습 데이터의 확보를 어렵게 만듭니다. 이 논문은 이러한 문제를 배경으로 LLM을 이용해 텍스트와 코드의 합성 학습 데이터를 만드는 최근 연구를 서베이합니다. 서베이의 범위는 텍스트와 코드 도메인에 한정되며, 시각 데이터와 신호 데이터는 범위 밖으로 둡니다. 이 범위 설정은 텍스트와 코드가 같은 기호적 표현을 공유한다는 저자들의 논리에 근거합니다.

## 합성 데이터의 전통적 배경과 LLM 이전의 한계

합성 데이터는 실제 사건이나 주석이 아니라 알고리즘이나 생성 모델로 만들어진 데이터를 뜻합니다. 자연어 처리에서는 동의어 치환, 무작위 삽입과 삭제, 역번역 같은 규칙 기반 증강이 오래 쓰였습니다. 예를 들어 EDA는 무작위 단어 수준 변형으로 분류 학습 문장을 늘립니다. 그러나 이런 규칙 기반 방식은 새로운 언어 패턴이나 의미 변화를 충분히 만들지 못해 다양성이 제한됩니다. 이 한계 때문에 생성 모델을 사용해 더 풍부한 합성 데이터를 만드는 방향이 등장했습니다.

## 프롬프트 기반 생성의 방식

LLM은 과제 설명과 예제를 담은 프롬프트를 받아 해당 과제의 새 예제를 생성합니다. 제로샷 생성은 과제 지시만 주고, 원샷은 입력-출력 예제 하나를, 퓨샷은 여러 예제를 함께 줍니다. 퓨샷은 과제 형식과 라벨 공간을 잘 따르는 경향이 있지만, 제한된 문맥의 패턴을 반복해 다양성이 줄 수 있습니다. 주제 기반 생성은 먼저 주제 목록을 만든 뒤 각 주제에 맞는 예제를 생성해 다양성을 높이려는 방법입니다. 이 방식들은 생성 프롬프트의 구성에 따라 다양성과 관련성 사이의 절충이 생깁니다.

![Table 3: Representative LLM-based synthetic text data generation methods and their core contributions. This table reveals the rapid evolution of strategies—fro…](https://refivu.com/papers/826d16ab-1186-4af9-a78c-d71fca81400c/figures/figure-052ee59cca45d99104a13ac4f982c28b.png?thumb=512)

**Table 3** : Representative LLM-based synthetic text data generation methods and their core contributions. This table reveals the rapid evolution of strategies—from prompt engineering and task bootstrapping to diverse augmentation and self-instruction—demonstrating how LLMs now support cost-effective, scalable data creation across multiple NLP tasks. It also highlights common themes such as mixing synthetic and real data, leveraging iterative refinement, and targeting low-resource or complex tasks to maximize model improvements.

[원문](https://arxiv.org/abs/2503.14023v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mihai Nadas, Laura Diosan, Andreea Tomescu · Synthetic Data Generation Using Large Language Models: Advances in Text and Code · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 텍스트 분류에서 합성 데이터의 효과와 한계

Li 등은 저자원 설정에서 실제 학습 샘플 100개에 GPT-3.5가 생성한 샘플 100개를 더하면 여러 텍스트 분류 과제에서 정확도 또는 F1이 3–26% 향상될 수 있다고 보고합니다. 이 결과는 실제 데이터가 매우 적어 모델이 과소적합되는 상황에서 가장 두드러졌습니다. 반면 실제 데이터가 늘어나면 합성 증강의 이점은 줄어들며, 일부 연구는 큰 실제 데이터셋에서 추가 효과가 미미하다고 보고합니다. SST-2 비교에서는 사람이 라벨링한 3,000개 샘플의 정확도가 88%이고, GPT-3가 생성한 6,000개 샘플로 학습한 분류기는 76%였다고 보고됩니다. 이 두 결과는 서로 다른 설정의 보고이므로 같은 조건의 비교로 합칠 수 없습니다.

## 코드 도메인의 합성 데이터 구축

코드 도메인에서는 생성된 코드의 정확성을 실행으로 검사할 수 있다는 점이 중요한 차이입니다. Code Alpaca는 Self-Instruct 방법을 코드 과제에 적용해 20K개의 코딩 지시 따르기 데이터셋을 만든 사례입니다. WizardCoder는 이 아이디어를 확장해 진화 전략으로 지시문의 복잡도를 높였습니다. 코드 번역과 리팩터링에서도 LLM이 같은 기능의 여러 버전이나 병렬 코드를 만들어 학습 데이터로 씁니다. 실행 피드백은 단위 테스트 통과 여부로 정답 후보를 걸러내거나 강화학습의 보상으로 쓰입니다.

![Table 4: Overview of representative LLM-based approaches for synthetic code data generation, covering tasks such as code generation, translation, refactoring,…](https://refivu.com/papers/826d16ab-1186-4af9-a78c-d71fca81400c/figures/figure-78ce7e977167b145765fed9212aab81b.png?thumb=512)

**Table 4** : Overview of representative LLM-based approaches for synthetic code data generation, covering tasks such as code generation, translation, refactoring, instruction tuning, and bug synthesis. Note: Where “No specific benchmark” is listed, the method was evaluated on custom or task-specific datasets rather than a standard public benchmark.

[원문](https://arxiv.org/abs/2503.14023v2) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Mihai Nadas, Laura Diosan, Andreea Tomescu · Synthetic Data Generation Using Large Language Models: Advances in Text and Code · 원문 그림 인용 · 원본 PDF 11쪽에서 그림 영역을 추출했습니다.

## 모델 붕괴와 분포 이동의 위험

합성 데이터를 여러 세대에 걸쳐 모델의 출력으로만 다시 학습하면 다양성과 사실성, 견고성이 떨어질 수 있다는 것이 모델 붕괴 개념입니다. 논문은 이 위험이 실제 데이터가 거의 없거나 전혀 섞이지 않을 때 두드러진다고 설명합니다. 인용된 연구는 실제 데이터를 유지하고 합성 데이터를 누적하면 성능 저하를 줄일 수 있다고 보고합니다. 다만 이것은 인용 연구의 보고이며 이 서베이가 모든 설정에서 붕괴를 막는다고 증명한 것은 아닙니다. 합성 데이터의 분포가 실제 데이터와 달라지는 문제도 별도의 한계로 남습니다.

## 논문 정보

- **저자**: Mihai Nadas, Laura Diosan, Andreea Tomescu
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2025년 3월 18일
- **등록일**: 2026년 11월 6일
- **수정일**: 2025년 7월 22일
- **버전**: v2
- **arXiv**: 2503.14023
- **DOI**: 10.1109/access.2025.3589503
- **분류**: cs.CL
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2503.14023v2) · [원문 PDF ↗](https://arxiv.org/pdf/2503.14023v2)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

This survey reviews how large language models (LLMs) are transforming synthetic training data generation in both natural language and code domains. By producing artificial but task-relevant examples, these models can significantly augment or even substitute for real-world datasets, particularly in scenarios where labeled data is scarce, expensive, or sensitive. This paper surveys recent advances in leveraging LLMs to create synthetic text and code, highlighting key techniques such as prompt-based generation, retrieval-augmented pipelines, and iterative self-refinement. We examine how these methods can enrich low-resource tasks (e.g., classification, question answering) and facilitate code-centric applications (e.g., instruction tuning, code translation, bug repair) through automated verification of functional correctness. Alongside potential benefits - cost-effectiveness, broad coverage, and controllable diversity - we discuss the accompanying challenges, including factual inaccuracies in generated text, insufficient stylistic or distributional realism, and risks of bias amplification. Proposed mitigation strategies range from filtering and weighting synthetic outputs to reinforcement learning with execution feedback in code domains. We conclude by outlining open research directions, such as automated prompt engineering, cross-modal data synthesis, and robust evaluation frameworks, underscoring the growing importance of LLM-generated synthetic data in accelerating AI development while emphasizing ethical and quality safeguards.

## 원문 인용

Mihai Nadas, Laura Diosan, Andreea Tomescu (2025). Synthetic Data Generation Using Large Language Models: Advances in Text and Code. arXiv:2503.14023v2. https://doi.org/10.1109/access.2025.3589503

**BibTeX**

```
@article{nadas2025synthetic,
  title = {{Synthetic Data Generation Using Large Language Models: Advances in Text and Code}},
  author = {Mihai Nadas and Laura Diosan and Andreea Tomescu},
  year = {2025},
  eprint = {2503.14023},
  archivePrefix = {arXiv},
  doi = {10.1109/access.2025.3589503},
  url = {https://arxiv.org/abs/2503.14023v2}
}
```

## 이 논문의 용어

- [HumanEval](https://refivu.com/terms/3c3dbcadfdda-humaneval)
- [검색 증강 생성](https://refivu.com/terms/745578495b18-retrieval-augmented-generation)
- [대규모 언어 모델](https://refivu.com/terms/d06687a9ae3e-large-language-model)
- [Large Language Models (LLMs)](https://refivu.com/terms/79ef1d2616f9-large-language-models-llms)
- [Reflexion](https://refivu.com/terms/ae549dc1c40e-reflexion)
- [back-translation](https://refivu.com/terms/c84c48f96399-back-translation)
- [Self-Instruct](https://refivu.com/terms/599304dadef6-self-instruct)
- [model collapse](https://refivu.com/terms/2158f161033a-model-collapse)
- [Synthetic Data](https://refivu.com/terms/d3b9fabe1cf0-synthetic-data)

## 다른 논문 해설

- [Multi-Step Reasoning with Large Language Models, a Survey](https://refivu.com/papers/1eeeb101-57a9-4017-9b46-8ad602fabdcd-multi-step-reasoning-with-large-language-models-a.md)
- [Cultural Bias and Cultural Alignment of Large Language Models](https://refivu.com/papers/22d76e6a-c556-4033-919c-2620ff934710-cultural-bias-and-cultural-alignment-of-large-language.md)
- [Large Language Models Encode Clinical Knowledge](https://refivu.com/papers/54421651-3211-4d10-8173-bc88802e60f6-large-language-models-encode-clinical-knowledge.md)
- [Can Large Language Models Serve as Evaluators for Code Summarization?](https://refivu.com/papers/10f352fd-3b63-4f19-93d4-ce193b1737ff-can-large-language-models-serve-as-evaluators-for.md)
- [Digital Diagnostics: The Potential Of Large Language Models In Recognizing Symptoms Of Common Illnesses](https://refivu.com/papers/29d8629d-2bd3-4fa2-8205-bc39f85ebe7b-digital-diagnostics-the-potential-of-large-language-models.md)
- [Less can be more for predicting properties with large language models](https://refivu.com/papers/2d0355d0-d246-4dd3-95a4-401742d3fe8d-less-can-be-more-for-predicting-properties-with.md)
- [Input Decoupling of Lagrangian Systems via Coordinate Transformation: General Characterization and its Application to Soft Robotics](https://refivu.com/papers/6adddc86-083d-4114-8614-06223a8bfc55-input-decoupling-of-lagrangian-systems-via-coordinate.md)
- [Federated Learning for Connected and Automated Vehicles: A Survey of Existing Approaches and Challenges](https://refivu.com/papers/6f107d2a-2b46-4043-b6dc-2d2c7a5d340c-federated-learning-for-connected-and-automated-vehicles-a.md)
- [COLA-Net: Collaborative Attention Network for Image Restoration](https://refivu.com/papers/087fc75a-cd36-4a21-9ced-548a22716bc4-cola-net-collaborative-attention-network-for-image.md)
- [Federated Deep Reinforcement Learning for Open RAN Slicing in 6G Networks](https://refivu.com/papers/1dc7e619-4503-408b-8904-d324c0a87e48-federated-deep-reinforcement-learning-for-open-ran-slicing.md)
- ["Garbage In, Garbage Out" Revisited: What Do Machine Learning Application Papers Report About Human-Labeled Training Data?](https://refivu.com/papers/b9d2a096-4057-4a0d-af3f-1dcc32054d7a-garbage-in-garbage-out-revisited-what-do-machine.md)
- [Learning Stable Vector Fields on Lie Groups](https://refivu.com/papers/ce9d8204-6e02-44ff-939d-b7238cda4d4c-learning-stable-vector-fields-on-lie-groups.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/826d16ab-1186-4af9-a78c-d71fca81400c-synthetic-data-generation-using-large-language-models)
