Dynamic Context Evolution for Scalable Synthetic Data Generation

Ryan Lingo, Rajeev Chhajer
4/8/2026
cs.CLcs.AIcs.LG

No official code found. Best implementation: ryanlingo/dynamic-context-evolution (2 stars, MIT, last commit 2026-04-09).

Abstract

Large language models produce repetitive output when prompted independently across many batches, a phenomenon we term cross-batch mode collapse: the progressive loss of output diversity when a language model is prompted repeatedly without access to its prior generations. Practitioners have long mitigated this with ad hoc deduplication and seed rotation, but no principled framework exists. We introduce Dynamic Context Evolution (DCE), comprising three mechanisms: (1) verbalized tail sampling (the model labels each idea with a guess about how obvious it is, and obvious ideas are discarded), which filters high-probability candidates via model self-assessment; (2) semantic memory, which maintains a persistent embedding index to reject near-duplicates across batches; and (3) adaptive prompt evolution, which reconstructs the generation prompt each batch using memory state and rotating diversity strategies. In experiments across three domains (sustainable packaging concepts, educational exam questions, and creative writing prompts) and two model families (gpt-5-mini and claude-haiku-4-5), a component ablation across 2-3 random seeds per method shows that DCE achieves 0.0 +/- 0.0% collapse versus 5.6 +/- 2.0% for naive prompting, while producing 17-18 HDBSCAN clusters per seed versus naive's volatile 2-17, indicating reliably richer conceptual structure. These results are validated with an independent embedding model (all-MiniLM-L6-v2) and hold across sensitivity sweeps of the VTS threshold tau and dedup threshold delta. Deduplication and prompt evolution are individually insufficient but jointly effective, at approximately $0.50 per 1,000 candidates using only standard API calls, with no fine-tuning or custom architectures required.

View on arXivView PDF

Code Implementations(1)

MIT

Dynamic Context Evolution (DCE): Scalable synthetic data generation from a single LLM without cross-batch mode collapse

20PythonMar 18, 20266 months agoMIT
context-engineeringdata-generationdiversityllmmode-collapse+4 more

Similar Papers

Cite this paper

@article{lingo2026dynamic,
  title  = {Dynamic Context Evolution for Scalable Synthetic Data Generation},
  author = {Ryan Lingo and Rajeev Chhajer},
  year   = {2026},
  eprint = {2604.07147},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2604.07147v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2604.07147.svg)](https://codeofpaper.com/paper/2604.07147)

Discussion