Analytics Legends logoAI & Analytics Legends Sign inSign up
Concept card

Synthetic Data Generation for Training — Self-Instruct, Self-Play

Synthetic Data Generation for Training — Self-Instruct, Self-Play — AI & Analytics Legends section illustration for the SAP AI & Analytics knowledge base (concepts, studies, Academy)

As of 2026-11-24

What is Synthetic Data Generation for Training?

Synthetic data generation escapes the ceiling of human-labelled data by having a capable teacher model generate and a student model learn — Self-Instruct showed GPT-3 improving itself from 175 seed tasks, and Stanford Alpaca then trained a 7B LLaMA student on 52K examples generated by text-davinci-003.

What it is

Synthetic data generation is the practice of using a capable "teacher" model to manufacture training examples — question-answer pairs, code translations, tool-call traces, judged dialogue turns — that then train a "student" model, instead of paying humans to write every example by hand. It became the default enterprise fine-tuning strategy once frontier models got good enough to write enterprise-domain data that is mostly correct once filtered, faster than any labeling team could hire and calibrate.

Why it matters

The bottleneck in almost every fine-tuning project is not compute or algorithm — it is the seed corpus. A team that wants a model fluent in translating ABAP into SQL, or answering questions against a specific SAP Business Data Cloud model, typically has a handful of hand-crafted examples and no realistic path to hiring annotators who understand both the domain and the target format well enough to produce thousands more. Synthetic generation turns that handful of seed examples into tens or hundreds of thousands of training pairs at a cost measured in API tokens rather than annotator headcount.

How it works

Three families dominate practice, and they solve different problems.

Self-Instruct prompts a teacher model with a small set of seed examples and asks it to write more examples "in the same style" — same format, same difficulty range, same domain. The output is filtered for near-duplicates and length outliers before it becomes training data. This is the cheapest, broadest approach: it maximizes coverage of instruction variety.

Why it matters in practice

  • Three named failure modes recur across every approach: mode collapse, hallucination amplification (teacher errors become student training labels), and verbatim copying that creates downstream copyright exposure.
  • The guardrails are specific, not generic: aggressive deduplication (MinHash + SemDeDup), factual filtering against ground truth, and provenance logging as good practice supporting EU AI Act Art. 10/53 documentation.
  • For SAP analytics, the canonical pattern is concrete: generate 50K-200K ABAP-to-SQL and BW-to-Datasphere pairs from a hand-crafted seed set, filter hard, then LoRA-fine-tune on the result.

Key points

  • Three families — Self-Instruct (teacher generates instructions from seeds), Self-Play (model plays both roles), Distillation (mimic a stronger teacher's outputs).
  • Failure modes — mode collapse, hallucination amplification, verbatim copying from teacher training data; mitigated by aggressive deduplication and factual filtering.
  • Guardrails — MinHash + SemDeDup deduplication, factual filtering against ground-truth KB, provenance logging on every sample (good practice supporting EU AI Act Art. 10/53 documentation).
  • SAP pattern — frontier API generates 50K-200K ABAP-SQL / BW-Datasphere / Q&A pairs from hand-crafted seeds; filter aggressively; LoRA-fine-tune.
  • Economics — Typically one to two orders of magnitude cheaper per example than human labelling (estimate, varies by task and model); quality still has to be checked against a human-labelled gold set.
  • SAP's generative AI hub model library reaches Claude, OpenAI GPT models, Gemini and Mistral through one governed orchestration service — but SAP's documentation says it must not be used to generate synthetic data for training or fine-tuning, unless an exception is explicitly approved and documented; check each model provider's terms too.
  • Log provenance in a versioned, access-controlled lineage store kept with the training artefacts, not a side spreadsheet.
  • Price a 50K-200K-sample synthetic-data pipeline from the current SAP price list and the client's contract, not from a free-tier proof-of-concept assumption (check in particular whether ABAP AI access is still promotional).

Terms used on this page

Self-Instruct
Method (Wang et al. 2023) where a teacher LLM bootstraps an instruction dataset from a small seed set by generating new instruction-response pairs in the same style; the original paper demonstrated it on GPT-3 from 175 seed tasks; Stanford Alpaca (7B LLaMA, 52K examples from text-davinci-003) then popularised it.
SPIN (Self-Play Fine-Tuning)
Self-Play Fine-Tuning (Chen et al., 2024): the model is trained to tell its own generations apart from the human-written answers of an existing SFT set, iterating round by round without a reward model or judge; reduces the need for new human labels beyond that SFT set.
Distillation
Training a smaller student model to mimic the outputs of a larger teacher (Hinton et al., 2015); shifts inference cost from serving time to training time and produces compact models with much of the teacher's capability.
Mode collapse
Failure mode of synthetic data generation where the teacher emits a narrow band of patterns repeatedly; the student then over-specialises to that band and fails on out-of-distribution inputs.
Data masking (orchestration service)
A configurable module of SAP's orchestration service that anonymises or pseudonymises personal-data entities before a prompt reaches a model. It does not remove proprietary ABAP code, ticket logic or configuration, which must be sanitised beforehand.
Provenance logging
Recording which model generated a sample, from what prompt, and when, for every synthetic training example; good practice that supports EU AI Act Art. 10 (data governance) and Art. 53 (GPAI documentation) without being required per sample, and the record a governance reviewer will actually ask to see.
Golden set
A small, human-labelled, held-out evaluation set used to check a synthetic-data-trained model's real quality; never trust a synthetic-only evaluation, since it can share the same blind spots as the synthetic training data.

Sources

  1. arXiv: Self-Instruct — Aligning Language Models with Self-Generated Instructions (Wang et al. 2023)
  2. arXiv: Self-Play Fine-Tuning Converts Weak Language Models to Strong Language Models (Chen et al. 2024 — SPIN)
  3. Anthropic Responsible Scaling Policy — general AI-risk governance (not specific to training data)
  4. NIST AI Risk Management Framework 1.0
  5. SAP Business AI — official product page
  6. arXiv — Bai et al. (Anthropic), "Constitutional AI: Harmlessness from AI Feedback" (2022, fetched 2026-09-27)
  7. arXiv — Hinton, Vinyals & Dean, "Distilling the Knowledge in a Neural Network" (2015, fetched 2026-09-27)
  8. Stanford CRFM — Alpaca: A Strong, Replicable Instruction-Following Model (2023-03-13, fetched 2026-09-27)
  9. SAP Help Portal — Orchestration service (data masking, content filtering) in the generative AI hub (fetched 2026-09-27)
  10. SAP Help Portal — generative AI hub model access overview, SAP AI Core (fetched 2026-09-27)
  11. SAP Community — SAP Joule for Developers: end of the promotional period and the path forward (2026, fetched 2026-09-27)
  12. EUR-Lex — Regulation (EU) 2024/1689 (EU AI Act), consolidated text incl. Art. 10 and Art. 53 (fetched 2026-09-27)
  13. SAP-docs — Models (SAP AI Core must not be used to generate synthetic data for training; exceptions approved and documented)
  14. SAP-docs — Data Masking in the orchestration service (entities and scope)
  15. SAP-docs — Model Availability by Region (Claude: aws-bedrock)

Full card with the Consultant plan — €19.90/month. What the full card adds: the full decision framework · the SAP vs Snowflake / Databricks / Fabric comparison · the common pitfalls and their fix · the cheat sheet · the architecture schemas · the code blocks · the facts worth quoting.

Open in the app →

Open missions

SAP analytics jobs and contracts · freelance SAP contracts.