LLMSurgeon: Diagnosing Data Mixture of Large Language Models

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Luo, Yaxin, Cui, Jiacheng, Zhao, Xiaohan, Shang, Xinyi, Liu, Jiacheng, Bi, Xinyue, Li, Zhaoyi, Shen, Zhiqiang
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866910270504304640
author Luo, Yaxin
Cui, Jiacheng
Zhao, Xiaohan
Shang, Xinyi
Liu, Jiacheng
Bi, Xinyue
Li, Zhaoyi
Shen, Zhiqiang
author_facet Luo, Yaxin
Cui, Jiacheng
Zhao, Xiaohan
Shang, Xinyi
Liu, Jiacheng
Bi, Xinyue
Li, Zhaoyi
Shen, Zhiqiang
contents The pretraining data mixture of Large Language Models (LLMs) constitutes their "digital DNA", shaping model behaviors, capabilities, and failure modes. Yet this composition is rarely disclosed, making post-hoc auditing of data combination or provenance difficult. In this work, we formalize $\textbf{Data Mixture Surgery (DMS)}$: given only generated text from a target LLM, estimate the domain-level distribution of its pretraining corpus under a predefined taxonomy. We propose $\textbf{LLMSurgeon}$, a strong framework that casts DMS as an inverse problem under the label-shift assumption. Rather than directly aggregating classifier outputs, LLMSurgeon estimates a calibrated $\textit{soft}$ confusion matrix and solves a constrained inverse problem to correct systematic domain confusion and recover the latent mixture prior. To evaluate, we introduce $\textbf{LLMScan}$, a recipe-verifiable evaluation suite built from open-source LLMs with transparent pretraining mixtures. Across LLMScan, LLMSurgeon recovers domain mixtures with high fidelity under fixed protocols. Our work presents a practical, post-hoc approach for auditing the digital DNA of foundation models without access to their training data.
format Preprint
id arxiv_https___arxiv_org_abs_2605_30348
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle LLMSurgeon: Diagnosing Data Mixture of Large Language Models
Luo, Yaxin
Cui, Jiacheng
Zhao, Xiaohan
Shang, Xinyi
Liu, Jiacheng
Bi, Xinyue
Li, Zhaoyi
Shen, Zhiqiang
Computation and Language
Artificial Intelligence
Machine Learning
The pretraining data mixture of Large Language Models (LLMs) constitutes their "digital DNA", shaping model behaviors, capabilities, and failure modes. Yet this composition is rarely disclosed, making post-hoc auditing of data combination or provenance difficult. In this work, we formalize $\textbf{Data Mixture Surgery (DMS)}$: given only generated text from a target LLM, estimate the domain-level distribution of its pretraining corpus under a predefined taxonomy. We propose $\textbf{LLMSurgeon}$, a strong framework that casts DMS as an inverse problem under the label-shift assumption. Rather than directly aggregating classifier outputs, LLMSurgeon estimates a calibrated $\textit{soft}$ confusion matrix and solves a constrained inverse problem to correct systematic domain confusion and recover the latent mixture prior. To evaluate, we introduce $\textbf{LLMScan}$, a recipe-verifiable evaluation suite built from open-source LLMs with transparent pretraining mixtures. Across LLMScan, LLMSurgeon recovers domain mixtures with high fidelity under fixed protocols. Our work presents a practical, post-hoc approach for auditing the digital DNA of foundation models without access to their training data.
title LLMSurgeon: Diagnosing Data Mixture of Large Language Models
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2605.30348