In a face-to-face conversation, recognizing a friend is straightforward; you can see, hear, and even greet them physically. However, when interacting with an AI model, users have very few assurances that the model responding is indeed the one they expect. Currently, users cannot verify that the responses they receive originate from the specific model asserted by the provider, as there's a risk that a routing service might substitute it for another version—whether for cost-cutting or due to malicious activity. This lack of verification can lead to a reliance on output quality alone, which is insufficient. Cryptographic proofs of inference address this limitation by allowing model providers to confirm that a response was generated by a specific model. Such technology has potential applications across consumer products, internal security measures, and compliance verification in AI deployment.
Our advancement lies in a sophisticated cryptographic proof termed “zkSNARK,” which is particularly suitable for this purpose due to its ability to conceal data and its efficiency. In this communication, we present our progress through a system called FlashProve. Here's a technical overview of our findings:
Claude has enhanced zkSNARKs for inference, resulting in a system that significantly outperforms prior open-source alternatives. For instance, when working with a large model like the 400B-parameter Llama 4 Maverick using 4-bit quantized weights, we achieved proof generation at roughly 110 tokens per second on a single H100 GPU. Each 1,024-token request corresponds to a proof size of approximately 19 MB. This is around 70-95 times quicker than the GPU processing time needed to run the model itself using vLLM, a commonly used open-source library. Our improvements leverage cutting-edge cryptographic and security methodologies while adhering to established design principles for proof systems. Furthermore, while the commitments to the model as well as the ensuing inference proofs conceal the model's weights, the model architecture itself is not obscured. Although Claude excels at optimization, decisions made can sometimes be complex and difficult to assess in extensive systems. We counter this challenge with verifiable top-level assertions in Lean, a formal verification language, related to the claimed security assurances.
As part of our announcement, we are releasing five components: our code, Lean proofs, and documentation under the Apache 2.0 license. This post primarily shares our intermediate findings rather than a finalized research initiative, with the explicit intent of encouraging others to use and enhance our work.
To elaborate further, a user engaging with an AI model currently lacks confidence in whether the model actually delivering responses is the one they intended to utilize. While this may not be significant for everyday tasks where the output is prioritized, the need for assurance becomes critical in several scenarios. For instance, independent evaluators assessing AI models before deployment must confirm that the model under evaluation matches the one provided. Similarly, clients working through a third-party service must have confidence that the tokens received align with the model they’ve engaged. Additionally, if a malicious actor compromises the token stream while masquerading as a specified model, it’s extremely difficult for the user to detect this based solely on the output.
Verifying model responses presents a formidable challenge since the majority of leading models keep their weights private. Even if access to these weights were granted, confirming that a particular response was produced by a model operating with those specific weights would require computational resources that far exceed what most users or evaluators possess.
The concept of provable inference (PI) is designed to empower users with limited computational resources and devoid of knowledge about the weights to verify that a response is generated by the requested model. The rationale behind PI is to bolster customer trust in AI services while also providing guarantees to independent evaluators. This verification method can help organizations fulfill legal obligations and commitments, which is pivotal for the ongoing advancement of AI technology and its regulation.
To implement PI, a cryptographic mechanism known as a zero-knowledge succinct argument can be employed, wherein the model provider supplies a short proof (ideally a few megabytes) alongside the purported response. Users can quickly validate this proof, and if the response deviates from what is expected, the verification process will fail. Importantly, cryptographic techniques ensure that the proof reveals nothing about the model’s internal weights.
We proudly introduce FlashProve, an open-source prototype aimed at enabling provable inference. This system handles requests for a 400B-parameter mixture-of-experts model (Llama 4 Maverick, utilizing 4-bit quantization) and demonstrates that a single H100 GPU can generate proofs exceeding 100 tokens per second, with a proof size of around 19 MB for a 1,024-token request.
The resources we are releasing include executable code, formal proofs in Lean, and a comprehensive technical outline of the setup. Our objectives are twofold: to accelerate the development of provable inference and to illustrate the practicality of employing zero-knowledge succinct arguments for this purpose.
This advancement carries significant implications for security, facilitating the pace of AI development, and reinforcing integrity guarantees for AI users while providing tools for auditors and regulators.
As AI technology matures and its integration into our economic and digital landscapes expands, trust challenges emerge that require thorough solutions from AI developers. Implementing tools for provable inference can greatly assist in tackling these issues.
PI can encompass hardware, software, or both approaches. This report focuses on a software-based solution through zkSNARKs—a cryptographic tool that allows a proof to convince a verifier of the correctness of a computation while ensuring that sensitive information remains hidden.
We highlight several trust challenges that zkSNARKs help to address:
1. **Pacing:** There are proposals to regulate and pace AI advancements based on monitoring hardware usage. For instance, a provider could be mandated to allocate its computing resources primarily for inference instead of building new models. zkSNARKs facilitate this by enabling regulators to request certificates for inference requests, thereby ensuring that the claimed model is genuinely being used without needing insight into proprietary model information.
2. **Tamper Detection:** AI models are increasingly targeted for breaches. Attackers may compromise inference servers to exfiltrate weights or deliver malicious outputs while masking their activities. zkSNARKs can help providers enforce valid proofs for each response, ensuring that a compromised model cannot generate valid proofs for the stolen weights.
3. **Text Provenance:** When companies assert that complex analyses have taken place, users need ways to validate those claims. Providers can incorporate zkSNARKs with each response to enable verification without exposing proprietary model data.
4. **Model Approval:** Regulatory frameworks may require providers to only deploy approved models. zkSNARKs can attach evidence to each response that associates it with an approved model, ensuring compliance.
Our focus has shifted toward software-based cryptographic solutions that rely on computational mathematics rather than dependent on tamper-proof hardware. These approaches can address trust challenges even in the event of systemic failures.
FlashProve operates through a two-phase system involving a model provider and a verifying user. In the offline phase, the provider makes a commitment to the model weights, serving as a unique identifier while keeping the weights confidential. The online phase involves producing proofs for requests made by the user, which can be verified without access to the model weights or specialized hardware.
The guarantees provided by the proof file include completeness (an honest provider's proof will be accepted) and soundness (forging a proof is near impossible). Additionally, the proof must not reveal any information about the internal workings of the model, further securing proprietary data.
We conducted evaluations on the Llama 4 Maverick model, establishing that the proving process operates efficiently on a server with a single H100 and 24 CPU cores. Our setup allows users with comparatively lower computing capabilities to easily verify the proofs generated.
With these advancements, our intention is to adapt to the evolving demands of the AI landscape and improve security measures through innovative cryptographic solutions. However, we recognize this release is part of an ongoing research trajectory and warrants further exploration and improvement to reach its full potential.




