← Latest papers
🤖 AI

LLM DNA: Tracing Model Evolution via Functional Representations

This contribution introduces "LLM DNA," a mathematically grounded, training-free framework that extracts low-dimensional functional representations to trace undocumented evolutionary relationships and construct phylogenetic trees across hundreds of large language models.

Original authors: Zhaomin Wu, Haodong Zhao, Ziyang Wang, Jizhou Guo, Qian Wang, Bingsheng He

Published 2026-05-04
📖 4 min read☕ Coffee break read

Original authors: Zhaomin Wu, Haodong Zhao, Ziyang Wang, Jizhou Guo, Qian Wang, Bingsheng He

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 the world of Large Language Models (LLMs) as a vast, chaotic library containing millions of books. Some books are original masterpieces, some are copies, some are summaries, and some are newly written versions with added chapters. The problem is that the library lacks a clear catalog. We do not always know which book was copied from which, or how one book transitioned into another. This makes it difficult to verify whether a book complies with the rules (licenses), to detect whether a dangerous idea (such as a security vulnerability) was copied from a flawed book, or to understand how the library is growing.

This article, titled "LLM DNA", proposes a solution inspired by biology: assigning each AI model its own unique genetic code.

The Core Idea: AI Genetics

Just as biological DNA tells us who your parents are and which traits you inherited, the authors aim to create a "DNA" for AI models that reveals their family history and functional personality.

They define this LLM DNA as a short, compact list of numbers (a vector) that acts like a fingerprint. If two models are related (for example, if one is a fine-tuned version of the other), their DNA should look very similar. If they are unrelated, their DNA should look very different.

How It Works (The "RepTrace" Pipeline)

The authors developed a tool called RepTrace to extract this DNA. Here is the process, simply explained:

  1. The Test Drive: Instead of examining the model's internal code (which is often hidden or differs for every model), they treat the model as a black box. They feed it a series of random questions or prompts (like a driving test).
  2. The Reaction: They record how the model responds.
  3. The Translation: They convert these text responses into a "semantic map" (a mathematical representation of meaning). For example, the words "vacation" and "holiday" are different sequences of letters, but the DNA system understands that they mean the same thing.
  4. The Compression: They use a mathematical trick (random projection) to squeeze this massive amount of information into a tiny, manageable list of numbers. This list is the DNA.

Crucially, this process is training-free. You do not need to teach the system how to find the DNA; it simply calculates it based on how the model behaves.

What They Discovered

The researchers tested this on 305 different AI models from various companies (such as Meta, Google, and Alibaba). Here is what they found:

  • Family Trees: When they compared the DNA of different models, they could draw a "family tree" (phylogenetic tree). This tree correctly grouped models of the same family (such as all "Llama" models) together, even though the researchers had not told the system which models belonged to which family.
  • Hidden Connections: The DNA revealed relationships that were not officially documented. For example, it showed that some models claiming to be based on a specific version of a family were actually closer to a different version, or that two models from different companies were surprisingly similar in their "genetics."
  • Evolutionary Pace: By examining the branches of the family tree, they could see which model families evolve faster than others. Some families (like Qwen) showed rapid changes, while others (like Llama) were more stable.
  • Robustness: The DNA remained consistent even when they changed the questions asked or used different model types to evaluate the responses. It is like a fingerprint that stays the same whether you press your finger lightly or firmly.

Why This Matters (According to the Article)

The authors suggest that this "DNA" can be used for three main applications:

  1. License Verification: It can help verify whether a new model was illegally copied from a protected one, even if the creators do not admit it.
  2. Security Audits: If a "parent" model has a security vulnerability (such as a backdoor), its "children" (descendants) likely have it too. The DNA tree helps auditors quickly identify these risky lineages.
  3. Model Selection: It helps users choose the right model. If you need a model that is very stable and does not change its behavior often, choose a branch with short evolutionary steps. If you want the newest, most experimental features, choose a branch with rapid evolution.

The Conclusion

The article argues that we can mathematically prove that this "DNA" exists and faithfully captures the essence of an AI's behavior. By transforming complex, opaque AI models into simple, comparable genetic codes, we can finally begin to map, manage, and understand the exploding ecosystem of artificial intelligence.

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 →