LLM DNA: Tracing Model Evolution via Functional Representations

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

International Conference on Learning Representations 2026 · Oral

Overview

In an era where millions of large language models (LLMs) proliferate across platforms like Hugging Face, understanding their provenance, relationships, and evolutionary paths has become a critical challenge. The talk "LLM DNA: Tracing Model Evolution via Functional Representations," presented by Zhaomin Wu and co-authors at ICLR 2026, introduces a novel framework to address this opacity. The core concept, LLM DNA, is a low-dimensional functional representation of an LLM, designed to capture its behavior rather than its internal parameters. This approach aims to provide a clear, trackable lineage for models, analogous to biological DNA, enabling a deeper understanding of their development and interdependencies.

Watch on SlidesLive

Visual summary for LLM DNA: Tracing Model Evolution via Functional Representations by Zhaomin Wu, Haodong Zhao, Ziyang Wang, Jizhou Guo, Qian Wang, Bingsheng He
Visual summary for LLM DNA: Tracing Model Evolution via Functional Representations by Zhaomin Wu, Haodong Zhao, Ziyang Wang, Jizhou Guo, Qian Wang, Bingsheng He

Key moments

  1. 0:00 Introduction: LLM DNA concept and motivation
  2. 2:00 Simple, training-free method for extracting LLM DNA
  3. 4:00 LLM DNA performance in relationship detection and routing
  4. 4:40 Visualizing model families and uncovering undocumented connections
  5. 6:20 Phylogenetic analysis: Tracing model evolution and fine-tuning impact
  6. 8:30 Q&A: Detecting model distillation and potential evasions
  7. 10:30 Q&A: Base model's dominant influence on LLM DNA
  8. 12:15 Q&A: API monitoring and benchmarking LLM DNA method

LLM DNA: Tracing Model Evolution via Functional Representations

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

Conference: ICLR 2026

YouTube: https://slideslive.com/39062170

Overview

In an era where millions of large language models (LLMs) proliferate across platforms like Hugging Face, understanding their provenance, relationships, and evolutionary paths has become a critical challenge. The talk "LLM DNA: Tracing Model Evolution via Functional Representations," presented by Zhaomin Wu and co-authors at ICLR 2026, introduces a novel framework to address this opacity. The core concept, LLM DNA, is a low-dimensional functional representation of an LLM, designed to capture its behavior rather than its internal parameters. This approach aims to provide a clear, trackable lineage for models, analogous to biological DNA, enabling a deeper understanding of their development and interdependencies.

The motivation behind LLM DNA is multifaceted and directly addresses pressing issues in the AI/ML ecosystem. The current lack of transparency in model relationships leads to significant concerns regarding licensing compliance, intellectual property (IP) auditing, and the deployment of safe and responsible AI systems. Many organizations fine-tune or adapt models without proper attribution, potentially violating licenses or introducing unforeseen biases and vulnerabilities. By formalizing a functional "DNA" for LLMs, the research seeks to enable better model routing systems, robust safety and compliance tracking, and more effective IP management, fundamentally transforming how we understand and govern the vast landscape of evolving AI models.

Background

▶ Watch: Introduction: LLM DNA concept and motivation (0:00)

The rapid growth in the number and complexity of large language models (LLMs) has created a significant challenge in the machine learning and systems space: the problem of model opaqueness and untracked relationships. Platforms like Hugging Face host millions of models, many of which are derived from or fine-tuned upon others. However, the exact lineage and dependencies of these models are often undeclared, making their relationships difficult, if not impossible, to discern from metadata alone. This lack of transparency has several profound implications.

Firstly, it poses a substantial risk to licensing compliance and intellectual property (IP) auditing. Many LLMs are released under specific licenses that dictate usage, modification, and attribution. When a model is fine-tuned or distilled from another without proper acknowledgment, it can lead to unintentional license violations, legal disputes, and a general erosion of trust within the open-source AI community. Companies and researchers need reliable mechanisms to verify the provenance of models they use or build upon.

Secondly, the inability to trace model lineage hinders the development of robust safety and compliance tracking systems. As LLMs are increasingly deployed in sensitive applications, understanding their origins and modifications becomes crucial for assessing potential biases, vulnerabilities, or adherence to ethical guidelines. If a harmful behavior is discovered in a derived model, tracing it back to its base model or specific fine-tuning steps is essential for remediation and preventing recurrence. Without clear lineage, this becomes a formidable task.

Thirdly, from a systems perspective, the opaqueness impedes efficient model routing and management. In multi-agent or complex AI systems, optimally routing requests to the most appropriate LLM often depends on understanding their functional characteristics and relationships. Generic similarity metrics might not capture the subtle distinctions or fundamental architectural ties between models. A functional representation that reflects inherent behavioral similarities would vastly improve dynamic model selection and resource allocation.

Prior work has largely focused on analyzing model parameters or metadata to infer relationships. However, these methods often fall short when models undergo significant transformations or when internal architectures vary widely. The core problem is that parameters alone do not fully encapsulate the behavioral essence of a model, especially when considering diverse architectures (encoder-only, encoder-decoder, decoder-only). The LLM DNA framework addresses this by shifting the focus from internal structure to external function, treating the LLM as a black box function to derive a universal, architecture-agnostic representation that directly reflects its operational characteristics and relationships.

Key Findings

▶ Watch: LLM DNA performance in relationship detection and routing (4:00)

The research on LLM DNA presents several pivotal findings that redefine how we understand and track large language models. The most significant contribution is the formalization and empirical validation of LLM DNA as a low-dimensional embedding of an LLM's functional space. This representation is proven to exist for any set of LLMs and possesses critical properties:

  1. Inheritance: Small changes to an LLM (e.g., through fine-tuning) result in proportionally small changes in its DNA. This property is fundamental for tracking model evolution and detecting derivative works.
  2. Determinism: Similar DNAs correspond to similar model behaviors. This allows for reliable classification of model relationships based purely on their functional embeddings.

A crucial discovery is the development of a simple and effective training-free method for extracting this DNA. By feeding random word sequences (a "probe dataset") into an LLM, processing its responses through a sentence embedding model, concatenating the resulting vectors, and finally applying a fixed random Gaussian projection, the system can derive a 128-dimensional DNA vector. This method's robustness, particularly its reliance on random inputs rather than real-world datasets, is a key finding, as it mitigates biases from datasets already seen by models.

Empirically, the LLM DNA demonstrates exceptional performance across several downstream tasks:

  • Relationship Detection: Using a dataset of known and declared Hugging Face relationships, the DNA, combined with a simple Support Vector Machine (SVM) classifier, achieved an impressive 0.99 AUC. This high accuracy underscores its ability to reliably identify related models.
  • Undocumented Connections: The system successfully uncovered previously undeclared model dependencies, such as the relationship between Vicuna 7B and Orca 2, and notably identified Pony Alpha as functionally similar to GLM 4 9B even before its official confirmation as GLM 4.
  • Model Routing: When used as an identifier for models, LLM DNA slightly outperformed existing "embed LLM" methods in a model routing task, indicating its practical utility in dynamic AI systems.
  • Evolutionary Tracking: Through phylogenetic analysis using a nearest neighbor method, the research demonstrated that LLM DNA can naturally cluster models into families (e.g., Llama, Qwen, Gemma) and depict their evolutionary tree, revealing how models have branched and developed over time, even without explicit timestamp information.
  • Fine-tuning Impact: It was observed that the DNA distance between a base model and its fine-tuned versions gradually increases with the amount of fine-tuning data, while the global DNA structure remains relatively stable. Furthermore, different regions of the DNA were shown to reflect different domains of knowledge acquired during fine-tuning (e.g., math vs. writing), suggesting potential for trait-level tracking.

These findings collectively establish LLM DNA as a powerful, generalizable, and robust tool for understanding, tracking, and managing the complex ecosystem of large language models.

Technical Deep Dive

▶ Watch: Phylogenetic analysis: Tracing model evolution and fine-tuning impact (6:20)

The technical foundation of LLM DNA rests on two core principles: defining an LLM as a black-box function and employing random projection to efficiently capture its functional essence in a low-dimensional space.

The central idea is to treat any LLM – be it encoder-only, encoder-decoder, or decoder-only, regardless of its specific architecture – as a function f: Input -> Output. This functional perspective allows for a unified representation that abstracts away internal complexities and focuses purely on the model's observable behavior. The LLM DNA is then formalized as a low-dimensional embedding of this functional space. Crucially, this embedding is designed to be bilipschitz, meaning it preserves the distances between models in the high-dimensional functional space when mapped to the low-dimensional DNA space. This property ensures that if two models behave similarly, their DNAs will be close, and if they behave differently, their DNAs will be far apart.

The researchers proved the existence of such a bilipschitz embedding for any set of LLMs and identified two key properties that underpin its utility:

  1. Inheritance: If an LLM undergoes a small modification (e.g., minor fine-tuning), the resulting change in its functional behavior will translate into a small, trackable change in its DNA. This is vital for tracing lineage and detecting incremental evolution.
  2. Determinism: Models with similar DNAs are guaranteed to exhibit similar functional behaviors. This enables robust classification and clustering of models based on their DNA representations.

The process for extracting the LLM DNA is remarkably simple and training-free, avoiding the computational overhead and potential biases associated with training a dedicated embedding model. The method involves five distinct steps:

  1. Probe Dataset Generation: The first step involves creating a probe dataset consisting of random word sequences. The choice of random inputs is deliberate and critical. Unlike real-world datasets, which might carry inherent biases or reflect domains that specific LLMs have already been trained on, random sequences ensure that the probe is neutral and universally applicable, thereby preventing pre-existing biases from influencing the DNA extraction.
  2. LLM Response Generation: These random word sequences are then fed as input into the LLM whose DNA is to be extracted. The LLM processes these inputs and generates corresponding textual responses.
  3. Sentence Embedding: Each of the LLM's generated responses is subsequently fed into a pre-trained sentence embedding model (e.g., a Sentence-BERT variant, though not explicitly named in the talk, this class of models is implied). This model converts each textual response into a fixed-size numerical vector, capturing its semantic meaning.
  4. Vector Concatenation: All the individual sentence embedding vectors obtained from the LLM's responses to the probe dataset are then concatenated end-to-end. This creates a single, very long, high-dimensional vector that comprehensively represents the LLM's aggregated functional behavior across the probe inputs.
  5. Random Projection: Finally, this long vector is projected into a much lower-dimensional space, specifically 128 dimensions, using a fixed random Gaussian matrix. This technique, rooted in the Johnson-Lindenstrauss lemma, is a cornerstone of the method. The intuition behind random projection is elegantly explained with the "dark room" analogy: Imagine balls in a dark room (high-dimensional functional space). By shedding light from various random directions and observing the shadows on the wall (projections), one can infer the relative positions of the balls. Similarly, a random projection preserves the pairwise distances between high-dimensional vectors in a lower-dimensional space with high probability, making it an ideal method for dimensionality reduction while retaining essential relational information. The fixed nature of the random Gaussian matrix ensures consistency and reproducibility for DNA extraction across different models.

This training-free, random projection-based approach provides an efficient and robust mechanism to derive a functional fingerprint for any LLM, enabling the tracking of its evolution and the classification of its relationships without needing to inspect its internal architecture or parameters.

Experimental Setup & Results

▶ Watch: Q&A: Detecting model distillation and potential evasions (8:30)

The effectiveness of the LLM DNA framework was rigorously evaluated across a diverse set of over 300 LLMs, encompassing various architectures and families. Key model families included Llama, Qwen, Gemma, DeepSeek, Vicuna, Orca, and GLM 4, demonstrating the method's broad applicability.

The probe dataset consisted of random word sequences, a deliberate choice to avoid biases that might arise from using real-world datasets that some LLMs might have already been trained on. This ensured that the extracted DNA reflected the LLM's intrinsic functional behavior rather than its familiarity with specific data distributions. The robustness of the DNA to different probe datasets was further validated using a Mantel test, which confirmed that the relative positions of LLMs in the DNA space remained highly consistent regardless of the specific random or real-world dataset used for probing. The final LLM DNA was a 128-dimensional vector.

The evaluation focused on several downstream tasks:

  1. Relationship Detection:
  • Dataset: Positive samples were drawn from known and declared relationships within the Hugging Face model tree. Negative samples were randomly selected from a large pool of models deemed unlikely to be related.
  • Method: The extracted 128-dimensional LLM DNA was used as input to a simple Support Vector Machine (SVM) classifier.
  • Result: The system achieved an outstanding Area Under the Curve (AUC) of almost 0.99, indicating near-perfect accuracy in identifying related model pairs.
  • Undocumented Discoveries: Beyond known relationships, the DNA successfully uncovered several previously undocumented connections. For example, it identified a strong correlation between Vicuna 7B and Orca 2, despite their relationship not being explicitly stated on Hugging Face. More notably, it accurately flagged an OpenRouter model called Pony Alpha as highly similar to GLM 4 9B, a prediction that was later confirmed when Pony Alpha was officially revealed to be GLM 4.
  1. Model Routing:
  • Method: LLM DNA was utilized as a unique identifier (ID) for each model, with a linear mapping used to connect data records to appropriate models based on DNA similarity.
  • Result: The DNA-based routing system slightly outperformed "embed LLM" (a baseline likely representing a standard embedding method for models), demonstrating its practical utility for efficient model selection in dynamic environments.
  1. Visualization and Evolutionary Analysis:
  • A 2D visualization of the DNAs of over 300 LLMs clearly showed models clustering into their respective families. For instance, Llama models were grouped in green, while Qwen models formed distinct purple clusters. This visually confirmed the DNA's ability to naturally capture model family information.
  • Inheritance: The visualization also revealed that fine-tuned models consistently located near their base models. For example, DeepSeek models distilled from Qwen were found within the Qwen family clusters, demonstrating the inheritance property.
  • Phylogenetic Tree: Using a nearest neighbor method, a phylogenetic tree of LLM DNAs was constructed. This tree visually depicted the evolutionary path of models, starting from encoder-decoder architectures, moving to decoder-only models, and then branching into series like Gemma, Llama, and Qwen. Interestingly, the analysis observed that the Llama series "evolves very fast and now dies," suggesting rapid iteration followed by a decline in new direct derivatives. This evolutionary insight was derived solely from functional similarity, without feeding any timestamp information into the algorithm.
  1. Fine-tuning Evolution and Domain Knowledge:
  • Experiment: Models were fine-tuned with different datasets, and their DNA changes were tracked.
  • Result: The DNA distance between a base model and its fine-tuned variants was observed to gradually increase proportionally to the amount of fine-tuning data. While the global structure of the DNA remained relatively stable, specific regions of the 128-dimensional DNA vector were found to highlight different domains of knowledge. For instance, fine-tuning with a math-focused dataset resulted in distinct DNA feature activations compared to fine-tuning with a writing-focused dataset, suggesting that LLM DNA can track trait-level fine-tuning and domain specialization.

These comprehensive experimental results underscore the robustness, accuracy, and versatility of the LLM DNA framework in characterizing, tracking, and understanding the intricate relationships and evolution within the LLM ecosystem.

Practical Implications

▶ Watch: Q&A: API monitoring and benchmarking LLM DNA method (12:15)

The LLM DNA framework offers profound practical implications for a wide range of stakeholders in the AI/ML community, from individual practitioners to large infrastructure teams and model deployers.

For practitioners and model builders, LLM DNA provides an invaluable tool for understanding the true lineage of models. This is critical for making informed decisions about which base models to use for fine-tuning, ensuring that they are building upon a stable, compliant, and well-understood foundation. It can help avoid unknowingly inheriting biases or vulnerabilities from an obscure parent model. The ability to track trait-level fine-tuning also means practitioners can assess how specific training data impacts functional aspects of their models, optimizing for desired behaviors.

Infrastructure teams and model deployers stand to benefit significantly from improved model routing systems. By using LLM DNA as a reliable, functional identifier, these teams can build more intelligent systems that dynamically select the most appropriate model for a given task, leading to better performance, efficiency, and resource utilization. Furthermore, the framework enables robust safety and compliance tracking. In an environment where models are constantly updated and deployed, being able to quickly verify a model's lineage and detect unauthorized modifications or derivations is crucial for maintaining ethical standards and regulatory adherence. This is particularly relevant for API monitoring, where LLM DNA could be used to detect if an API provider secretly changes the underlying model, ensuring transparency and consistency for users.

Legal and IP auditing teams will find LLM DNA transformative for licensing compliance and intellectual property (IP) auditing. The ability to detect undeclared fine-tuning or distillation processes provides a powerful mechanism to enforce license agreements and protect proprietary models. As demonstrated by the detection of Pony Alpha's similarity to GLM 4, this technology can uncover non-obvious relationships, providing concrete evidence for attribution or infringement claims.

However, the framework also comes with certain tradeoffs and limitations. A key challenge highlighted in the talk is the difficulty in definitively differentiating between fine-tuning and data distillation using DNA alone. Both processes involve data extraction and subsequent training, leading to similar patterns of DNA change. The research suggests that the pre-training part of a model has the most significant impact on its DNA, making it harder to distinguish the specific post-training techniques used. While DNA can indicate that models are related and how they've diverged, pinpointing the exact method of divergence (e.g., direct fine-tuning vs. distillation from a different dataset) remains complex.

Another critical consideration is the potential for adaptive attacks. If the random probe dataset used for DNA extraction becomes publicly known, malicious actors could potentially train models to deliberately alter their DNA, making them appear unrelated to their true parent models to evade detection. The proposed countermeasure is to keep the random probe dataset a secret key, ensuring its integrity and the reliability of the DNA extraction process. This introduces an operational security challenge: managing and protecting these secret probe datasets.

Despite these limitations, the LLM DNA framework represents a significant leap forward in bringing transparency and accountability to the burgeoning world of large language models. Its ability to provide a functional "fingerprint" opens up new avenues for governance, ethical deployment, and efficient management of AI assets. Future work involves expanding the database of tracked DNAs to thousands of models and exploring its application in complex multi-agent AI systems to guide model coordination and routing.

Key Takeaways

  • Functional Representation: LLM DNA is a novel, low-dimensional functional representation of LLMs, treating models as black-box functions rather than focusing on internal parameters, making it architecture-agnostic.
  • Training-Free Extraction: A simple, effective, and training-free method extracts DNA by random projection of sentence embeddings derived from LLM responses to random word sequence probes.
  • Robustness and Accuracy: The method is highly robust to probe dataset choice and achieves near-perfect accuracy (0.99 AUC with SVM) in detecting model relationships.
  • Uncovering Hidden Connections: LLM DNA successfully identifies undocumented model dependencies and can track model evolution, revealing family clusters and phylogenetic trees without explicit temporal data.
  • Practical Applications: Enables better licensing compliance, IP auditing, safety/compliance tracking, and intelligent model routing systems, with potential for detecting model distillation and API tampering.
  • Tradeoffs & Future: While powerful, it's challenging to differentiate fine-tuning from distillation, and the system is susceptible to adaptive attacks if the probe dataset is compromised, necessitating secret probe keys. Future work aims to expand the DNA database and apply it to multi-agent systems.

About the Speaker(s)

The primary presenter for this work was Zhaomin Wu, who introduced the concept of LLM DNA as a metaphor for a low-dimensional representation of LLMs. The research was a collaborative effort, with Haodong Zhao, Ziyang Wang, Jizhou Guo, Qian Wang, and Bingsheng He listed as co-authors on the paper. The talk provided insights into the motivations, methodology, and practical implications of their novel framework for tracing model evolution.

Reviews

  • Chen Zhao (Applied ML Researcher & Empiricist) — MUST SEE ★★★★★

→ Top-rated talks at International Conference on Learning Representations 2026

All talks from International Conference on Learning Representations 2026