← Latest papers
💬 NLP

Can Released LLM Vocabularies Support Token-Level Estimation of Hidden Corpora?

This paper introduces Quantile-Guided Density Estimation (QGDE), a method that leverages stable token ID-ratio distributions in released BPE tokenizers to accurately estimate the composition ratios of hidden pretraining corpora at both the token and category levels.

Original authors: Qingjie Zhang, Xingzhang Ren, Zixuan Chen, Jinfeng Li, YueFeng Chen, Yitong Yang, Hui Xue, Dayiheng Liu, Han Qiu

Published 2026-08-12
📖 3 min read☕ Coffee break read

Original authors: Qingjie Zhang, Xingzhang Ren, Zixuan Chen, Jinfeng Li, YueFeng Chen, Yitong Yang, Hui Xue, Dayiheng Liu, Han Qiu

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you've just bought a brand-new, super-smart robot chef. It can write poetry, solve math problems, and even code video games. But there's a catch: the recipe book it used to learn how to cook is locked in a vault. You can see the robot's final dishes, and you can even see the list of ingredients it might have used, but you have no idea what the actual mix of ingredients was. Was it 90% pizza dough and 10% spices? Or maybe 50% chocolate and 50% broccoli? In the world of Artificial Intelligence, this "recipe book" is called a pretraining corpus, and the "list of ingredients" is the tokenizer vocabulary.

When companies release a new AI model, they often share the final weights (the robot's brain) and the vocabulary list (the ingredient dictionary), but they keep the exact recipe secret. This is a problem because knowing what the AI "ate" helps us understand why it's good at some things and bad at others. For years, scientists have tried to guess the recipe by looking at the robot's behavior or the rules it used to chop words into pieces. But these guesses were often too rough, like saying "it probably ate a lot of fruit" without knowing if it was apples or bananas. The big question was: Can we look at the ingredient dictionary alone and figure out the exact ratio of every single ingredient the robot consumed?

This paper says, "Yes, we can, and here's how." The researchers discovered that the way words are chopped up and numbered in these dictionaries isn't random; it follows a hidden, stable pattern, much like how the frequency of words in any language follows a predictable curve. They realized that if you know the pattern from a "known" recipe (a corpus we have access to), you can transfer that pattern to guess the recipe of a "hidden" one. They built a clever tool called QGDE (Quantile-Guided Density Estimation) to do this. Think of it like a detective who doesn't just look at one clue but uses a whole set of "what-if" scenarios (quantile trends) and weighs them based on how crowded the neighborhood of clues is (local density weighting).

The results are surprisingly precise. In their tests, QGDE could guess the ratio of specific words with a tiny error rate of just 3.00%. When they grouped those words into bigger categories like "Web," "Math," or "Code," the error was still only 3.08%. This is a huge improvement over previous methods, which were like guessing the weather by looking at a single cloud. The paper also tested this on a real-world, released AI model called SmolLM, where the actual recipe was known. Even there, QGDE outperformed other methods, proving that the ingredient dictionary really does hold the secret to the recipe. However, the authors are careful to note that while this works well in their simulations and on SmolLM, we still can't test it on giants like ChatGPT or Qwen because their full training recipes remain locked away. But for now, it suggests that the next time you see an AI's vocabulary list, you might just be looking at a map to its hidden diet.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →