FlashProve: Implementation and Limitations of Provable Inference for Large Language Models
FlashProve uses zkSNARKs to prove the inference integrity of LLMs, achieving practical proof speeds even for 400B parameter models.
FlashProve is a system utilizing zkSNARK cryptography to prove that a specific AI model generated a response, achieving 110 tokens/sec on Llama 4 Maverick (400B). It ensures service reliability and regulatory compliance by verifying inference integrity without exposing model weights.
Executive Key Takeaways
- 1 1. [Key Achievement] Built the FlashProve system based on zkSNARKs, recording a proof generation speed of 110 tokens/second for a 400B MoE model.
- 2 2. [Design Strategy] Adopted a post-hoc proving method to secure security and performance, accepting the costs of latency between real-time response and proof, as well as re-computation complexity.
- 3 3. [Implementation Considerations] In regulatory environments or high-trust services where inference integrity must be guaranteed while hiding model weights, is there sufficient benefit to justify this level of overhead?
What Was Developed: FlashProve, the ‘Certificate of Authenticity’ for AI Responses
Modern AI service users have no way to verify if the specific model they requested actually generated the response. It is difficult to detect via output alone if a service provider secretly substitutes a cheaper model to reduce costs or if an attacker manipulates the token stream. This lack of trust presents a significant risk, particularly in scenarios such as independent model evaluation, the use of third-party routing services, and the verification of national AI regulatory compliance.
To address this, researchers from Anthropic, EPFL, and MIT developed FlashProve, a Provable Inference (PI) system. In this system, the model provider first publishes a commitment to specific model weights, and all subsequent responses are cryptographically proven to have been derived from those weights. \ The core innovation is the application of Zero-Knowledge Succinct Non-Interactive Argument of Knowledge (zkSNARK) technology. This allows the verifier to quickly confirm the integrity of a response using minimal computational resources without exposing the confidential weights of the model.
Researchers measured performance using Llama 4 Maverick (a 400B parameter Mixture-of-Experts model) and confirmed that proofs could be generated at a rate of 110 tokens per second on a single H100 GPU. This is dozens of times faster than existing open-source systems, demonstrating the practical feasibility of provable inference.
How It Was Built: Combining zkSNARKs and MoE Optimization
The FlashProve architecture is divided into offline and online phases. In the offline phase, the Prover generates and publishes a short commitment—essentially a fingerprint—of the model weights. This step is performed once per model and takes approximately 39 minutes. In the online phase, when a Verifier presents a prompt and response tokens, the Prover generates a proof file demonstrating that the committed weight model generated exactly those tokens.
Technically, the system compiles Interactive Oracle Proofs (IOP) into hash-function-based cryptographic proofs. Specifically, it utilizes modern cryptographic tools such as Code Proximity Tests with linear constraints and Lookup Arguments to efficiently prove the complex calculations involved in the inference process.
For performance optimization, the researchers leveraged the characteristics of the Mixture-of-Experts (MoE) architecture. Instead of computing across all 400B parameters, they reduced the proof computational load proportionally to the experts actually activated during each token generation (approximately 17B parameters). Furthermore, they minimized overhead by processing requests in batches and opening the weight commitment only once per batch.
Finally, to ensure system reliability, the researchers introduced Lean, a formal verification language. Because minor errors in cryptographic code can lead to fatal security vulnerabilities, the three core security properties—completeness, soundness, and zero-knowledge—were mechanically verified using Lean to ensure mathematical accuracy.
Design Choices and Trade-offs: Balancing Performance and Security
In designing the proof method, the researchers opted for post-hoc proving over in-line proving. While in-line proving provides immediate assurance by performing the proof simultaneously with inference, it carries the risk of compromising security for the sake of performance optimization. Conversely, the post-hoc method generates proofs for a subset of tokens after inference is complete; while slower, it provides stronger cryptographic guarantees without security compromises.
However, post-hoc proving inevitably entails re-computation complexity and introduces latency before the user receives the proof file. Additionally, to resolve the non-determinism of floating-point operations, the researchers used a model based on integer arithmetic. This may introduce minute discrepancies compared to production models and could lead to different results with adversarially designed prompts.
There is also a trade-off between weight protection and architecture disclosure. FlashProve strictly hides model weights but does not hide the model architecture. Concealing the architecture would exponentially increase proof complexity, making it impossible to maintain current performance levels. This represents a potential risk for companies where the model architecture itself is intellectual property.
Consequently, FlashProve was designed to sacrifice ‘perfect real-time capability’ and ‘architecture hiding’ in exchange for ‘practical proof speeds’ and ‘mathematically verified security.’
The speed of ‘110 tokens per second’ demonstrated by FlashProve is innovative from a cryptographic perspective, but it is a highly alarming figure from an MLOps perspective. Simple calculation reveals that maintaining this throughput would require nearly 100 times more GPU resources than existing inference infrastructure.
If this system were deployed directly into a real-time service, the explosive increase in infrastructure costs would make achieving ROI impossible. Therefore, the core of this design is not ‘fast proving,’ but rather the strategic sampling design of ‘where to place minimal proofs to establish trust.’
Results in Numbers: Quantitative Analysis of Proof Cost vs. Inference
- Proof Generation Speed: Approx. 110 tokens/second (Llama 4 Maverick 400B, 4-bit quantized, single H100 GPU)
- Proof File Size: Approx. 19 MB (based on 1,024 token request)
- Verification Speed: 17 seconds (based on 24-thread CPU)
- Overhead vs. Inference: Approx. 70–95x increase in GPU time compared to vLLM
- Offline Commitment Generation Time: Approx. 39 minutes (once per model)
These figures were derived in a single H100 GPU environment, using the standard open-source library vLLM as the baseline. However, measurements were taken using a relatively short context window of 1,024 tokens; it remains unspecified how the overhead changes in long-context scenarios typical of enterprise environments.
Establishing a Trust Chain via Formal Verification
Cryptographic systems possess vulnerabilities where a single implementation error can collapse the entire security framework. To eliminate this risk, the researchers used Lean, a formal verification proof assistant, to ensure mathematical integrity. This goes beyond simple code testing; it means the security properties intended by the protocol have been mechanically proven as mathematical theorems.
The researchers proved three core security properties via Lean. First is completeness: a proof generated for a true statement must be accepted by the verifier. Second is soundness: a fake proof based on a false statement must be rejected, except with negligibly low probability. Finally, zero-knowledge ensures that the proof file reveals no internal secrets—such as model weights, intermediate calculations, or specific experts activated in a layer—beyond what can be inferred from the response itself.
This mathematical proof was conducted within the Random Oracle Model, a standard information-theoretic framework for analyzing the security of cryptographic protocols relying on hash functions. By blocking logical flaws through formal verification, the system allows a user to guarantee overall reliability by trusting only the verifier’s logic, even while completely distrusting the prover.
However, an inevitable gap exists between the mathematically proven Lean model and the actually executed C++ code. Formal verification guarantees the accuracy of the theoretical protocol, but whether the implementation code follows that protocol perfectly is a separate issue. The researchers managed this gap through a multi-layered audit system. First, they provided interactive visualization tools to support manual audits and ensure the formal specifications in Lean matched the design intent.
The second strategy was to provide an executable Lean verifier alongside the C++ verifier. While the Lean verifier is very slow, it follows the formally verified soundness theorem exactly, serving as an absolute reference point. The researchers indirectly validated the reliability of the practical implementation by confirming that the C++ verifier produced identical results to the Lean verifier across all test cases. This is an engineering approach to find a compromise between high-speed execution efficiency and mathematical rigor.
Third, different approaches were taken for completeness and zero-knowledge. Completeness assumes interaction between an honest prover and verifier and was thus verified through standard software testing. In contrast, zero-knowledge depends entirely on the prover’s implementation accuracy. Since the proof process is too computationally expensive to implement in Lean, the researchers recommend relying on professional security audits or agentic audits for code equivalence verification rather than formal proof.
As a result, FlashProve’s trust chain has a hierarchical structure: ‘Mathematical Proof Formally Verified Reference Model (Lean) High-speed Implementation (C++)’. This approach attempts to minimize ‘implementation vulnerabilities,’ a chronic problem in cryptographic systems. However, the fact that the prover’s zero-knowledge implementation was excluded from the scope of formal verification remains a potential risk. In a system where weight concealment is critical, if a minute leak occurs in the proof logic, confidential information could be leaked despite the presence of a formally verified verifier.
Computational Optimization Techniques Utilizing MoE Architecture
The critical performance leap in the FlashProve system results from the sophisticated integration of the Mixture-of-Experts (MoE) structure of LLMs into the cryptographic proof process. In typical dense models, all parameters must be included in the computation path for the proof; however, the researchers noted that in MoE structures, only a subset of expert networks is activated for each token generation. They dramatically lowered the proof generation overhead by designing the prover’s computational cost to be proportional to the scale of the parameters of the experts actually involved in inference, rather than the total parameter count of the model.
Specifically, while the Llama 4 Maverick model has 400B total parameters, the parameters actually used per token are approximately 17B. FlashProve’s proof mechanism generates proofs by tracking only this 17B active path. The key technical achievement here is maximizing computational efficiency while maintaining zero-knowledge. That is, the verifier confirms the integrity of the result through the proof, but the system is designed so the verifier cannot know which experts were selected for computation, thereby preventing the leakage of confidential internal execution paths.
A second optimization strategy involves the efficiency of weight processing. Provable inference is based on commitments to model weights; processing these commitments individually for every request would create massive overhead. To solve this, FlashProve adopts a batch processing approach. The prover reads text within a batch in a single parallel pass and opens the weight commitment only once per batch, minimizing redundant computations and data load times for individual requests.
Third, they introduced Weight Segment Streaming to overcome the physical memory limits of a single GPU. Even with 4-bit quantization, a 400B model is too large to reside entirely in the memory of a single H100 GPU (80GB VRAM). To resolve this, the researchers built an architecture that divides each layer’s weights into multiple segments and streams them sequentially to generate proofs.
Under this method, weights are stored in general host memory and transferred to the GPU only when needed for the proof. According to the source paper, this segment-based processing enables 400B model proofs even in a single H100 GPU environment with approximately 290GB of host memory. This suggests that the integrity of large-scale models can be proven on a single device without building expensive GPU clusters, representing a practical engineering achievement that lowers the barrier to provable inference.
Ultimately, these MoE optimizations and memory management strategies were the decisive factors in raising the proof generation speed to 110 tokens per second. This moves zkML systems from the level of proving one token every several hundred seconds to a computationally accessible range—though still 70–95x slower than basic inference. However, since these optimizations are tailored specifically to the MoE structure, it is not specified whether the same efficiency can be achieved with dense models or other architectures.
The Evolution of zkML: FlashProve’s Position Relative to Previous Models
The history of Zero-Knowledge Machine Learning (zkML) has evolved from simple model verification to proving the integrity of complex Transformer structures. In the early stages, 2017’s SafetyNets was limited to verifying an MNIST CNN consisting of two convolutional layers and small fully connected speech models. Later, 2021’s zkCNN implemented VGG-16 (15M parameters) at 88.3 seconds per proof, and 2022 saw the proof of MobileNet v2 at full ImageNet resolution. This trend shifted toward proving Transformer structures in line with the trend toward larger AI models.
Early attempts at Transformer-based zkML suffered from low practicality due to extreme computational overhead. ZKML’s GPT-2 took approximately 159 seconds per token, resulting in an extremely low throughput of 0.006 tokens/sec, and Modulus Labs’ GPT-2 XL (1.5B parameters) required over 90 hours for a proof. In 2023, EZKL proved a GPT-style Transformer of 1M parameters at 966 seconds per token. This indicates that the cryptographic proof process is tens of thousands of times heavier than actual inference, acting as a technical barrier that effectively blocked enterprise adoption.
From 2024, performance leaps accelerated through GPU acceleration and algorithmic optimization. zkLLM proved a 2,048-token input for the Llama-2-13B model in about 15 minutes, achieving a rate of approximately 2.5 tokens/sec per token in a batch. Subsequently, zkGPT, zkPyTorch, and ZKTorch emerged, beginning to find a balance between model scale and speed. Notably, VerInf, which proved a 400B parameter MoE model similar to Llama 4 Maverick, required 14.3 hours for a 1,000-token proof, with a proof file size of 93.6GB, meaning verification alone took nearly a day. This clearly illustrates the ‘scalability trap’ where proof generation and verification costs increase exponentially as model size grows.
FlashProve quantitatively overwhelms these previous studies and breaks through the practical threshold of zkML. Based on the Llama 4 Maverick 400B model, FlashProve generates proofs at 110 tokens/sec on a single H100 GPU. This is a quantum leap compared to the performance of VerInf on the same model. Specifically, it drastically reduced the proof file size from 93.6GB to 19MB and shortened verification time from days to seconds, allowing verifiers to confirm integrity using only a CPU without expensive infrastructure.
While the recent commercial solution Attestable proved the Gemma 4 31B model at 53–77 tokens/sec, FlashProve holds a technical advantage by achieving 110 tokens/sec on a much larger 400B MoE model. According to the researchers’ analysis, FlashProve’s proof generation consumes approximately 70–95x more GPU time than the standard inference engine vLLM. Compared to past zkML systems that had overheads tens of thousands of times higher than inference, FlashProve has succeeded in suppressing the overhead to a double-digit multiple.
In conclusion, FlashProve has elevated the development stage of zkML from ‘academic proof-of-concept’ to ‘practical application stage.’ However, the remaining 70–95x computational overhead is a non-negligible cost risk. Attaching a proof to every inference result risks destroying project ROI by causing an explosion in infrastructure costs. Therefore, the true value of this performance leap lies not in proving every response, but in providing the foundation for a ‘trust optimization’ architecture that secures maximum trust at minimum cost through strategic sampling.
Key Takeaways for the Team: Design Principles for Trustworthy AI Serving
At a time when ‘quantifying trust’ is becoming as important as AI performance competition, ensuring integrity through cryptographic proofs becomes a powerful differentiator. However, a computational cost up to 95x that of inference is too heavy for general services. Therefore, a strategic approach is needed: rather than proving all responses, perform post-hoc proving by sampling only high-risk transactions.
- Proof Target Selection: Are only security-critical core tokens or regulated responses selected for proof, rather than all tokens?
- Cost-Benefit Analysis: Is the cost of additional GPU resources for proof generation lower than the business value gained from integrity assurance?
- Precision Error Tolerance: Is the result difference between integer arithmetic-based proofs and actual floating-point inference within an acceptable range?
- Architecture Exposure Risk: Does the disclosure of the model architecture negatively impact competitive advantage?
- Verification Infrastructure: Is an environment provided where clients or auditors can verify within seconds using a CPU?
- Post-hoc Proof Latency: Does the lag between providing the response and delivering the proof file harm the user experience?
- Formal Verification Integration: Have formal verification tools like Lean been integrated into the pipeline to prevent errors in cryptographic logic?
- Context Scalability: Does proof time increase linearly when the average context length of the actual service exceeds 1,024 tokens?
Further reading
- Building Safety Cases for Frontier AI Training
- The Practices and Politics of Machine Learning: A Field Guide for Analyzing Artificial Intelligence
- Optimizing Labeling Efficiency for Architecture Technical Debt Detection via Active Learning and Explainable AI
References and Original Analysis Materials
This tech blog review was written from the source post with the help of AI tools (AI Research Agent · MLOps, AI Research Agent · Strategy). Reviewed by Jay PARK, who is responsible for it.
Read more

Papers & Reports ·
Working with AI: AI Adoption Strategies and Organizational Restructuring Based on Anthropic Enterprise Customer Interviews

Papers & Reports ·
How to Outcompete Your Client's AI

Papers & Reports ·
Risks of Governance Absence: Lessons from AI Adoption at the U.S. Small Business Administration (SBA)

Papers & Reports ·
Data and Methods for Identifying Artificial Intelligence-Related Patents