TokenPrint: A Calibrated Token-Space Fingerprint for Language-Model Provenance
TokenPrint introduces a training-free, calibrated token-space fingerprint that leverages top- vocabulary projections from knowledge probes to accurately identify language model provenance, lineage, and shared training data across diverse model families and quantization levels.
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 are trying to figure out who a mysterious person is, but they never show their ID, and their parents won't tell you their family name. You only have their voice. If you listen closely, you might notice they use the same slang as their siblings, finish each other's sentences in a specific way, or have a unique rhythm that their cousins share. In the world of artificial intelligence, these "people" are Large Language Models (LLMs)—computer programs that write, chat, and solve problems. For a long time, if a company released a new model, they might hide exactly which older model they started with or what specific books and websites they were trained on. This is a problem because if a model is built on stolen data or trained to be harmful, we need to know its "family tree" to hold the right people accountable. Scientists have tried to solve this by looking at the model's internal code (its "DNA"), but what if that code is hidden? This paper asks a clever question: Can we identify a model's family just by listening to what it says?
The researchers, Yuqi Wu, Shengming Zhao, and Jie Chen from Fudan University, introduced a new tool called TokenPrint. Think of it as a "voiceprint" for AI. Instead of needing to see the model's secret internal code, they simply ask the model 250 specific questions—like "What is the capital of Canada?" or "Write a line of code for a loop"—and then look at the top few words the model chooses to answer. They call these top choices the model's "fingerprint."
Here is the magic trick: When two models are related (for example, one is a "fine-tuned" version of the other, or they were both trained on the exact same pile of data), they tend to pick the same top words for these questions, even if they are different sizes or made by different companies. The researchers measured this similarity using a math tool called the Jaccard overlap, which basically asks, "How many of the top words do these two models share?"
The paper found some fascinating things:
- The Family Resemblance is Real: Models that share a "parent" or a training dataset have a much higher similarity score (around 0.35 to 0.48) than models that are totally unrelated (around 0.17). It's like how a child's voice might sound more like their parent's than a stranger's, even if they aren't identical.
- It Happens Early: This "voiceprint" starts forming incredibly fast. The researchers saw these similarities appear within the first 1% of the model's training time, long before the model was actually smart enough to answer the questions correctly. This suggests the fingerprint comes from the data the model ate, not just how smart it became.
- It Works Even When Hidden: The method works even if the models use different "vocabularies" (different lists of words) or different computer architectures. It's like recognizing a family member even if they are speaking a slightly different dialect.
- It's a Detective Tool, Not a Magic Wand: The fingerprint is great at narrowing down the list of suspects. For example, when they tried to find the "parent" of five specific new models (called R1 distillations), the fingerprint correctly identified the true parent as one of the top two guesses every time. However, it sometimes couldn't tell the difference between a parent and a very close cousin (like a sibling model), meaning it points you in the right direction but doesn't always give a single, perfect answer.
The researchers also checked if this fingerprint survives when the model is shrunk down to save space (a process called quantization). They found that even when the model was compressed to a very small size (int4 or int8), the fingerprint remained strong, with a similarity score of 0.82 to 0.92 compared to the original. This means the "voice" doesn't change much even when the model is squished.
In short, TokenPrint suggests that every language model leaves a unique, persistent trail of "word choices" that reveals its training history. It's a training-free, lightweight way to trace a model's lineage, helping us understand who made what and where the data came from, without needing to peek inside the model's secret code. While it can't always name the exact parent with 100% certainty, it's a powerful new magnifying glass for tracking the family trees of AI.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.