Every Language Model Has a Forgery-Resistant Signature
Matthew Finlayson (PhD · USC), Xiang Ren, Swabha Swayamdipta
International Conference on Learning Representations 2026 · Oral
Overview
In an era where large language models (LLMs) are increasingly deployed via proprietary APIs and their weights are valuable commodities, verifying the authenticity and provenance of these models presents a significant challenge. This talk, presented by Matthew Finlayson from USC, alongside his advisors Xiang Ren and Swabha Swayamdipta, introduces a novel and highly practical method to address this problem. Their research reveals that every language model possesses a unique, geometrically-derived "forgery-resistant signature" embedded within its final architectural layers. This signature can be leveraged to validate both leaked model weights and outputs from black-box APIs, even when crucial information like internal system messages is kept secret.

Key moments
- 0:00 Introduction: Verifying authenticity of leaked model weights
- 2:30 Key insight: Language model outputs form a high-dimensional ellipse
- 3:30 Validation method: Checking if model outputs fit the unique ellipse
- 4:15 Forgery resistance: Attacker hurdles in collecting data and fitting
- 5:20 Conclusion: Ellipse signature resists forgery, similar to a MAC
- 6:20 Q&A: Importance of the norm ball assumption for the method
- 7:30 Q&A: Extracting ellipse information without full log-probabilities
Every Language Model Has a Forgery-Resistant Signature
Speakers: Matthew Finlayson (PhD, USC); Xiang Ren; Swabha Swayamdipta
Conference: ICLR 2026
YouTube: https://slideslive.com/39062215
Overview
In an era where large language models (LLMs) are increasingly deployed via proprietary APIs and their weights are valuable commodities, verifying the authenticity and provenance of these models presents a significant challenge. This talk, presented by Matthew Finlayson from USC, alongside his advisors Xiang Ren and Swabha Swayamdipta, introduces a novel and highly practical method to address this problem. Their research reveals that every language model possesses a unique, geometrically-derived "forgery-resistant signature" embedded within its final architectural layers. This signature can be leveraged to validate both leaked model weights and outputs from black-box APIs, even when crucial information like internal system messages is kept secret.
The core innovation lies in identifying a fundamental mathematical property of transformer-based LLMs: their final layers map hidden representations onto the surface of a high-dimensional ellipse. This ellipse is shown to be distinct for different models, serving as a unique fingerprint. The researchers demonstrate how this property can be used as a verification mechanism, allowing a user to ascertain whether a given set of weights or API responses genuinely originate from a specific model.
The implications of this work are substantial for the broader AI/ML community. It offers a robust method for ensuring the integrity of LLM deployments, combating the proliferation of illicitly obtained or tampered model weights, and providing a layer of trust in API-driven model interactions. While not a cryptographically secure system, the method's forgery resistance stems from the prohibitively high computational and data collection costs required for an attacker to spoof a model's signature, making it a powerful practical tool for model verification.
Background
▶ Watch: Introduction: Verifying authenticity of leaked model weights (0:00)
The landscape of modern AI is increasingly dominated by large, sophisticated language models, many of which are developed and deployed by major corporations. These models, often referred to as "frontier models," are typically accessed through Application Programming Interfaces (APIs), where the underlying model weights and internal configurations are proprietary and hidden from the end-user. This black-box or semi-black-box access creates a critical trust gap: how can a user verify that the model they are interacting with through an API is indeed the model it claims to be, or that a set of "leaked" weights are legitimate and untampered?
The problem is exacerbated by several factors. First, proprietary APIs often employ secret system messages or internal prompts that are prepended to user queries. These hidden messages significantly alter the model's output behavior, making a direct comparison of outputs from a known API and a local copy of "leaked" weights impossible, even if the weights were identical. This perturbation prevents simple input-output matching as a verification strategy. Second, the rise of model distillation, fine-tuning, and various forms of model-sharing creates a complex ecosystem where model lineage and authenticity can become blurred. Bad actors might offer "bootleg" weights, claiming they are from a highly sought-after proprietary model, or a user might want to verify that an API has not subtly changed its underlying model.
Traditional cryptographic methods for digital signatures are not directly applicable to verifying the internal consistency of a complex, non-deterministic system like an LLM. The challenge is to find an intrinsic, verifiable property of the model itself that is robust to external perturbations (like system messages) and difficult for an attacker to counterfeit. This talk addresses this fundamental problem by proposing a novel approach that leverages the inherent geometric properties of transformer architectures, moving beyond simple input-output comparisons to a deeper, structural analysis of the model's internal representations. The motivation is clear: in a future (or present) where models like "Cleo 47" are central to many applications, the ability to validate their authenticity is paramount for security, reliability, and intellectual property protection.
Key Findings
▶ Watch: Validation method: Checking if model outputs fit the unique ellipse (3:30)
The central discovery presented in this research is that every language model possesses a unique, forgery-resistant signature derived from its architectural properties. This signature manifests as a distinct high-dimensional geometric shape—specifically, an ellipse—onto which the model's final hidden representations are mapped. This finding overturns the naive assumption that verifying model authenticity requires perfect input-output matching, which is often impossible due to hidden system messages in proprietary APIs.
The key findings can be summarized as follows:
- Geometric Signature of LLMs: The architecture of typical transformer-based language models, particularly the interaction between the final norm layer and the unembedding matrix (or language model head), ensures that the logits produced by the model always lie on the surface of a high-dimensional ellipse.
- Uniqueness of Ellipses: Each distinct language model (e.g., Mistral, Llama 2) is characterized by a unique ellipse. The research empirically demonstrates that outputs from one model are "far" from the ellipse of another model, indicating minimal overlap between these geometric signatures. This distinctness forms the basis for verification.
- Validation Mechanism: Given access to an API that provides logit scores (or probabilities) for tokens, and a set of model weights, one can use the parameters of the weights to derive the equation of the model's characteristic ellipse. By checking if the logits from the API satisfy this ellipse equation, a user can validate whether the API output (and by extension, the underlying model) matches the given weights. This works even with hidden system messages because the system message perturbs the input, but the fundamental geometric property of the model's output space remains constant.
- Forgery Resistance: While not cryptographically secure, the method is practically forgery-resistant. An attacker attempting to create "bootleg" weights that mimic a target model's ellipse faces two insurmountable hurdles:
- Prohibitive Data Collection: To accurately determine the target model's ellipse, an attacker would need to collect an enormous number of API outputs. For a model with a hidden dimension
D, this requiresO(D^2)outputs. For a typicalD=12000, this translates to 72 million data points, costing millions of dollars in API credits (e.g., 11 million GPT-4o API credits). - Astronomical Computation Cost: Even with sufficient data, fitting a high-dimensional ellipse to
O(D^2)points is computationally intensive. The best-known algorithms for this task scale withO(D^6). ForD=12000, this computation would take "millennia" on current hardware, rendering it infeasible.
These findings collectively establish a powerful, intrinsic signature for language models, providing a robust mechanism for verifying their authenticity in practical scenarios.
Technical Deep Dive
▶ Watch: Forgery resistance: Attacker hurdles in collecting data and fitting (4:15)
The technical foundation of this forgery-resistant signature lies in the specific architectural design of modern transformer-based language models. A typical transformer architecture consists of an embedding layer, multiple stacked non-linear layers (attention and feed-forward networks), and crucially, a final output pathway involving a norm layer and an unembedding matrix (often referred to as the language model head).
Let's break down the critical components:
- Input to Logits Pathway:
- Embedding Layer: Converts input tokens into dense vector representations.
- Transformer Layers: These stacked layers iteratively transform the hidden representations, capturing complex linguistic patterns and context.
- Final Hidden Representation: After passing through all transformer blocks, the model produces a hidden representation for each token, typically a vector in a high-dimensional space (let's denote its dimension as
D_hidden). - Norm Layer: A key insight is that many modern LLMs apply a layer normalization or a similar normalization technique as the final operation before the output head. This normalization step effectively maps the hidden representation onto the surface of a unit sphere in
D_hiddendimensions. This is a critical step because it constrains the magnitude of the vectors. - Language Model Head / Unembedding Matrix: Following the norm layer, an affine transformation is applied. This is typically a linear layer (the unembedding matrix,
W_unembed) that projects the normalized hidden representation fromD_hiddendimensions toVdimensions, whereVis the size of the vocabulary. The output of this layer consists of the logit scores for each token in the vocabulary.
- The Ellipse Property:
The sequence of operations—mapping to a unit sphere via normalization, followed by an affine transformation—is mathematically guaranteed to produce outputs that lie on the surface of a high-dimensional ellipse.
- Imagine a vector
h(the hidden representation) that has been normalized, so||h|| = 1. - This normalized vector
his then multiplied by the unembedding matrixW_unembedto produce the logitsX = W_unembed * h. - Since
his on a unit sphere,Xmust lie on the surface of an ellipse. The shape and orientation of this ellipse are entirely determined by the parameters of theW_unembedmatrix and the normalization applied. - Crucially, the parameters of the ellipse can be directly derived from the model's weights (specifically, the
W_unembedmatrix and any associated biases or scaling factors from the norm layer). The talk highlights that "the ellipse equation gives you a way to check whether your logits X satisfy this equation." This means the model's weights implicitly define the geometric space where its legitimate logits must reside.
- Verification Mechanism in Practice:
To verify whether a set of weights W_bootleg matches the model behind a proprietary API, the process is as follows:
- Derive Ellipse Equation: From the
W_bootlegweights, mathematically derive the unique ellipse equationE_bootleg. - Query API: Send a query to the proprietary API and obtain its logit scores for the generated tokens. (This requires the API to expose log probabilities, not just the top-k tokens or final text). Let these logits be
X_api. - Check Membership: Test whether
X_apilies on the surface defined byE_bootleg. If it does, theW_bootlegweights are consistent with the API's underlying model. If it doesn't, they are likely not.
This method bypasses the problem of hidden system messages because those messages affect which logits are produced (i.e., where on the ellipse the point lies), but not the fundamental shape of the ellipse itself, which is determined by the model's architecture and final layer weights.
- Forgery Resistance Mechanism:
The "forgery-resistant" aspect comes from the extreme difficulty an attacker (e.g., "Shady Shelly") would face trying to counterfeit this signature:
- Data Collection for Ellipse Estimation: To accurately reverse-engineer the ellipse
E_targetof a proprietary model, an attacker would need to collect a sufficient number of output logits from the target API. The speaker states that for a hidden sizeD, this requiresO(D^2)data points. For a large model withD=12000, this translates to approximately 72 million distinct output logit vectors. Obtaining 72 million outputs from a typical API like GPT-4o would incur astronomical costs, estimated at "11 million in API credits." This financial barrier alone makes the attack practically unfeasible. - Computational Cost of Ellipse Fitting: Even if an attacker somehow acquires the necessary
O(D^2)data points, the computational challenge of fitting a high-dimensional ellipse to this data is immense. The best-known algorithms for this task have a complexity ofO(D^6). ForD=12000,(12000)^6is an astronomically large number. The speaker dramatically notes that this computation would "take millennia on current time hardware," making the attack computationally impossible within any reasonable timeframe.
The comparison to a Message Authentication Code (MAC) is insightful: a MAC provides integrity and authenticity verification using a shared secret key. While the proposed method is not a cryptographic MAC (it's "provably breakable in polynomial time"), the polynomial is so "really bad" that it offers a similar practical level of forgery resistance. The "shared secret" here isn't a key, but the unique geometric properties derived from the model's weights, which are computationally infeasible to reverse-engineer from outputs alone.
Experimental Setup & Results
▶ Watch: Q&A: Importance of the norm ball assumption for the method (6:20)
The talk provides empirical evidence to support the core hypothesis regarding the uniqueness and distinctness of these geometric signatures for different language models. While a detailed "experimental setup" in the traditional sense (e.g., specific hyperparameter tuning, ablation studies) is not extensively described, the speaker illustrates the foundational property with clear examples.
Models Used for Illustration:
The research utilized prominent open-source language models to demonstrate the concept:
- Llama 2: A widely recognized open-source LLM.
- Mistral: Another popular open-source LLM known for its efficiency and performance.
Verification of Ellipse Distinctness:
The primary experimental demonstration involved visualizing and quantifying the separation between the ellipses characteristic of different models.
- Ellipse Derivation: For each model (Llama 2 and Mistral), the parameters of its unique high-dimensional ellipse were derived from its corresponding model weights, specifically focusing on the final norm layer and unembedding matrix.
- Output Sampling: Logit outputs were sampled from both Llama 2 and Mistral.
- Distance Measurement: For each sampled logit output, its distance to the surface of a specific model's ellipse was measured. For example, Llama 2 outputs were measured against the Llama 2 ellipse, and Mistral outputs were also measured against the Llama 2 ellipse.
Headline Results:
The results were stark and consistent with the hypothesis:
- Llama 2 Outputs vs. Llama 2 Ellipse: Unsurprisingly, outputs generated by Llama 2 were found to lie precisely on or very close to the surface of the Llama 2 ellipse. This confirms that the derived ellipse accurately represents the model's output space.
- Mistral Outputs vs. Llama 2 Ellipse: In contrast, outputs generated by Mistral were consistently "far from the surface of the [Llama 2] ellipse." This indicates that the geometric signature of Mistral is distinctly different from that of Llama 2, with very little overlap between their respective high-dimensional ellipses.
This empirical separation is crucial. It validates the core premise that these ellipses are indeed unique and serve as effective fingerprints for individual language models. While the talk doesn't delve into specific numerical distances or detailed benchmarks, the qualitative description strongly supports the practical applicability of this geometric property for distinguishing between models and verifying their origins. The concept of "very little overlap" between the ellipses of different models is the cornerstone of its utility as a forgery-resistant signature.
Regarding the attacker's cost, while not a direct experimental result, the speaker cites an example of "11 million in API credits" for GPT-4o's API to collect the necessary O(D^2) data points for D=12000. This provides a concrete, albeit illustrative, estimate of the practical barriers to forgery.
Practical Implications
▶ Watch: Q&A: Extracting ellipse information without full log-probabilities (7:30)
The "forgery-resistant signature" for language models has profound practical implications across various facets of the AI/ML ecosystem, offering solutions to critical trust and verification challenges.
- Model Authenticity Verification for Practitioners: For developers, data scientists, or MLOps teams who integrate LLMs into their applications, this method provides a means to verify the authenticity of model weights. If a third-party vendor provides "leaked" weights or a specialized fine-tuned version of a proprietary model, practitioners can use this technique to confirm that the weights genuinely correspond to the claimed model. This is invaluable in scenarios where direct access to the original model's training data or internal configurations is unavailable.
- Combating Bootleg Models and IP Theft: The ability to detect forgery fundamentally undermines the market for illicitly obtained or tampered model weights. If a "Shady Shelly" offers bootleg weights, a potential buyer can verify their legitimacy against a known API. This acts as a deterrent against intellectual property theft and ensures that users are getting what they pay for, enhancing trust in the ML supply chain.
- API Integrity and Auditing: For infrastructure teams and model deployers, this signature can serve as a mechanism to audit and ensure the integrity of their own API deployments. They can verify that the model serving traffic through their API is indeed the intended model and has not been inadvertently or maliciously altered. This is particularly relevant for maintaining consistency across different deployment environments or for compliance purposes.
- Trust in Fine-Tuned Models: When models are fine-tuned or distilled, their core architecture often remains similar, but the weights change. This method could potentially be extended to verify the lineage of fine-tuned models, confirming they originate from a specific base model, or to detect significant deviations. While the talk focuses on base model verification, the underlying principle could be adapted for more granular checks.
- Tradeoffs and Limitations:
- Access to Log Probabilities: A key requirement for this method is access to logit scores (or token probabilities) from the API. Many proprietary APIs primarily return only the generated text, without the underlying probabilities. This limitation means the technique is only applicable to APIs that expose this richer output. The speaker acknowledges this is an area of active research, suggesting potential future work on using less information, like token rankings.
- Architectural Dependency: The method relies on the specific architectural choice of a final norm layer followed by an affine transformation (unembedding matrix). While this is common in modern transformer-based LLMs, models with fundamentally different output layers might not exhibit this exact elliptical property.
- Not Cryptographically Secure: It's crucial to reiterate that this is a "forgery-resistant" signature, not a cryptographically secure one. It is theoretically breakable in polynomial time. However, the polynomial complexity (
O(D^6)) for an attacker is so high that it renders the attack practically infeasible with current technology and economic constraints. This distinction means it provides strong practical assurance but should not be treated as a substitute for true cryptographic security in extremely high-stakes environments where even theoretical polynomial-time attacks are a concern. - Computational Cost for Verification: While trivial for verification (a simple check against an equation), the initial derivation of the ellipse equation from a new model's weights would involve some computational overhead, though significantly less than an attack.
In essence, this research provides a powerful new tool for establishing provenance and trust in the rapidly evolving landscape of large language models. It moves beyond simple observation to leverage deep architectural properties, offering a robust, albeit practically constrained, solution to a pressing problem.
Key Takeaways
- Geometric Signature: Every language model based on transformer architecture exhibits a unique geometric signature—a high-dimensional ellipse—formed by its final norm layer and unembedding matrix.
- Model Fingerprinting: This unique ellipse serves as a distinct fingerprint for each model, allowing differentiation between models like Llama 2 and Mistral based purely on the geometry of their output logits.
- Authenticity Verification: The signature enables validation of model weights and API outputs. By deriving the ellipse equation from known weights and checking if API-provided logits satisfy it, one can verify if bootleg weights or an API's underlying model are legitimate.
- Robust to Perturbations: This method is effective even when proprietary APIs use hidden system messages, as these messages affect which logits are produced, not the fundamental geometric shape of the model's output space.
- Practical Forgery Resistance: While not cryptographically secure, the signature is highly resistant to forgery due to the prohibitive data collection costs (
O(D^2)API calls) and astronomical computational complexity (O(D^6)time) required for an attacker to spoof the ellipse. - Requires Log Probabilities: A limitation is the necessity for APIs to expose log probabilities (or logit scores) for generated tokens; the method does not work with only final text outputs or token rankings.
About the Speaker(s)
The primary presenter of this work was Matthew Finlayson, a PhD candidate at the University of Southern California (USC). He conducted this research under the guidance of his advisors, Xiang Ren and Swabha Swayamdipta, both affiliated with USC. Their collective expertise in natural language processing and machine learning systems contributed to this innovative approach to model verification and authenticity.
Reviews
- Maya Iyer (Theoretical ML Researcher) — MUST SEE ★★★★★
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026