NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Tracing the Roots: A Multi-Agent Framework for Uncovering Data Lineage in Post-Training LLMs

Yu Li, Xiaoran Shang, Qizhi Pei, Yun Zhu, Xin Gao, Honglin Lin, Zhanping Zhong, Zhuoshi Pan, Zheng Liu, Xiaoyang Wang, Conghui He, Dahua Lin, Feng Zhao, Lijun Wu

TL;DR

This paper introduces an automated multi-agent framework to map the "data lineage" (evolutionary history) of LLM post-training datasets. By reconstructing a graph of 430 datasets, the authors expose widespread hidden data redundancy and benchmark contamination cascading through inheritance paths. Leveraging these insights, they propose a root-node sampling strategy that yields a significantly more diverse dataset at a smaller scale.

What Problem Does This Paper Address?

Modern LLM post-training datasets are rarely built from scratch; instead, they recursively reuse, distill, or fuse existing data. However, because these datasets are typically treated as isolated artifacts, their complex evolutionary relationships remain undocumented.

This lack of transparency creates two major systemic risks:

  1. Structural Redundancy: Datasets unknowingly overlap, causing semantic homogenization and diminishing the marginal value of adding more data.
  2. Benchmark Contamination Propagation: Test sets embedded in upstream data are silently inherited downstream, causing latent leakage that invalidates future model evaluations.

Methods

The authors formalize dataset evolution as a directed Data Lineage Graph, where nodes represent datasets and edges denote inheritance dependencies. To build this graph at scale, they develop an automated, target-to-source recursive Multi-Agent Collaborative Framework:

  1. Candidate Validation: Filters out previously processed entries and verifies dataset availability and release timestamps via the HuggingFace API to restrict analysis to the post-2020 era.
  2. Multi-source Information Retrieval: A sourcing agent parses documentation (READMEs, papers, blogs) to discover external links, and specialized extracting agents fetch the content and prune structural noise (like code blocks or HTML tags).
  3. Semantic Source Inference: Tracing agents analyze the consolidated text to identify true upstream sources, outputting structured JSON records detailing the derivation relationship (e.g., CoT distillation, semantic evolution) and confidence scores.
  4. Aggregation & Resolution: An aggregation agent deduplicates records, canonicalizes informal dataset names into unique HuggingFace IDs, and prunes invalid or anachronistic edges.
Overview of the multi-agent data lineage framework

Using the insights from this graph, they also introduce Provenance-based Sampling, a data curation strategy that anchors instruction selection at upstream root nodes (datasets with no identified ancestors) and applies MinHash deduplication to maximize semantic diversity.

Datasets

The framework started with 83 high-impact seed datasets across four domains (math, code, general, science) and recursively mapped out an ecosystem of 430 unique datasets connected by 971 inheritance edges.

To evaluate contamination, they analyzed five prominent benchmarks: Omni-Math, TheoremQA, LiveCodeBench, TruthfulQA, and SciBench. Finally, they used their root-node sampling strategy on 31 core root datasets to curate a new lineage-aware dataset containing 570K unique instructions.

Key Insights and Ideas

  • Domain-Specific Evolutionary Divergence: Different domains develop using entirely different topologies. General-domain datasets expand horizontally (shallow and wide, average depth of 1.05), prioritizing broad topic coverage. Conversely, math datasets evolve vertically (deep refinement, average depth of 2.92), recursively building upon a few high-consensus "anchor" datasets like gsm8k and hendrycks_math.
  • The Bridge and the Scarcity: Cross-domain analysis reveals that Code datasets act as a functional intermediary, blending general user intent (38.7%) and mathematical logic (17.8%). Meanwhile, Science data is severely scarce (only 44 nodes), forcing a heavy reliance on external domains.
  • Contamination Cascades: Benchmark contamination isn't just a direct ingestion problem; it propagates like a virus down inheritance paths. Downstream datasets can become heavily contaminated with test questions simply by inheriting from an upstream source, even if they never explicitly included the benchmark itself.
Small subgraph showing dataset composition and contamination paths

Key Results

  • High Structural Redundancy: 17 of the 83 seed datasets exhibited redundancy rates over 1%. Most notably, open-instruct-v1 reached a staggering 46.48% redundancy due to the accidental inclusion of its own superset.
  • Widespread Contamination: 19 datasets showed significant leakage across 5 benchmarks. For instance, Skywork-OR1-RL-Data and DeepScaleR-Preview-Dataset contained 96.80% and 79.48% of Omni-Math samples, respectively. Consequently, Caco-1.3M implicitly inherited 37.95% contamination from them without explicitly integrating the benchmark.
Benchmark contamination analysis across various datasets
  • Superior Diversity via Lineage Curation: The authors' 570K lineage-guided dataset achieved a Vendi Score of 452.44 and a Centroid Distance of 0.6385. It outperformed much larger, popular collections like OpenThoughts3 (1.2M samples) and MegaScience (1.2M samples), proving that smart provenance tracking beats brute-force data scaling.

Limitations and Future Work

  • LLM Hallucinations: The framework relies on LLMs (like GPT-5.1 and Gemini-2.5) for relationship extraction, which introduces hallucination risks. The authors mitigate this using a confidence-aware verification protocol that routes low-confidence extractions to human experts.
  • Dependency on Documentation Transparency: The framework is strictly bounded by what is reported. If dataset creators fail to document or intentionally conceal their upstream sources, the system cannot recover those hidden dependencies.
  • Future Directions: The authors suggest expanding the framework to incorporate refined internal nodes with richer rewrites and semantic variants, which could further elevate dataset quality and headroom.

Summary updated

BibTeX
@inproceedings{li2026tracing,
  author = {Yu Li and Xiaoran Shang and Qizhi Pei and Yun Zhu and Xin Gao and Honglin Lin and Zhanping Zhong and Zhuoshi Pan and Zheng Liu and Xiaoyang Wang and Conghui He and Dahua Lin and Feng Zhao and Lijun Wu},
  title = {{Tracing the Roots: A Multi-Agent Framework for Uncovering Data Lineage in Post-Training LLMs}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.acl-long.435},
}
Figure