Manuscript Offprint

arXiv:2610.08258

zkLLMPoT: Efficient Zero Knowledge Proof of Training for Large Language Models

Junkai Liang, Zhanpeng Guo, Pengfei Wu, Qingni Shen, Jiaheng Zhang, Zhonghai Wu, Haiyang Xue, Shengfang Zhai

ABSTRACT

Auditing the claimed outcomes of large language model (LLM) training is challenging when model weights and training data are private, while cryptographically proving the full training process is prohibitively expensive at Transformer scale. We present zkLLMPoT, a zero-knowledge framework that certifies auditor-defined properties of a trained checkpoint through forward evaluation rather than verification of its optimization trajectory. zkLLMPoT includes 2 phases: 1) The trainer fixes the architecture and the model weights are committed. Then the auditor selects challenge sequences, preventing the trainer from modifying the checkpoint in response to the audit data. 2) Then the trainer proves the objective value attained by the committed model on those sequences. This formulation makes the certification cost independent of the number of training iterations, without revealing model weights or requiring access to private training data. We build on sumcheck- and lookup-based arguments to certify Transformer computations, while supporting next-token loss and task-specific audit objectives. Across four model families, operator-level benchmarks yield proving times of 41–59 seconds for 1.1–1.5B-parameter models and 131 seconds at 13B for the covered operators, with verification below half a second at a sequence length of 512.

1 INTRODUCTION

Large language models (LLMs) increasingly serve as critical infrastructure for language understanding, generation, and decision support (Brown et al., 2020), yet assessing their training outcomes raises pressing privacy and trustworthiness concerns. Trained models can memorize and leak sensitive examples (Shokri et al., 2017; Carlini et al., 2021), so institutions may withhold training data and model weights from external auditors, leaving the public with only a model card or an API endpoint. Consequently, when a trainer announces a new LLM, users and regulators often cannot independently determine whether the released checkpoint actually satisfies the capability or policy claims attributed to its training (Waiwitlikhit et al., 2024; Srivastava et al., 2024). Without a cryptographic certificate tied to the checkpoint, such claims remain difficult to audit despite their legal, commercial, and safety consequences.

Existing approaches to trustworthy LLM computation leave this gap largely unresolved. First, a substantial line of security work develops zero-knowledge proofs for inference integrity, ranging from CNN and general neural-network predictors (Liu et al., 2021; Weng et al., 2021; Hao et al., 2024; Chen et al., 2024) to LLM-oriented systems such as zkLLM and zkGPT (Sun et al., 2024; Qu et al., 2025). These systems target per-query serving integrity: they certify that a committed model produced a claimed output, rather than providing a checkpoint-level audit against an objective and challenge set chosen by an auditor after the model is committed. Second, cryptographic proofs of training that do target the learning process typically encode full gradient descent with backpropagation. Even for non-transformer networks this is already expensive. For example, Kaizen requires about 15 minutes of proving time per training iteration on a VGG-11 model (Abbaszadeh et al., 2024), and related certificates such as confidential proofs of differentially private training can take on

Figure

Figure 1: Audit workflow of zkLLMPoT. After publishing public auxiliary information, the trainer commits a checkpoint. The auditor then issues challenge sequences under a chosen objective (next-token loss, task prompts, or a safety check). The auditor verifies a zero-knowledge proof and accepts or rejects the claimed outcome without learning the private training data or model weights.

the order of 100 hours even on CIFAR-10 (Shamsabadi et al., 2024). At LLM scale, naively proving every backward pass is therefore impractical with current techniques. Third, early practical zkPoT protocols are largely restricted to demonstration-level models such as logistic regression (Garg et al., 2023), while optimistic replication-based verifiable training still assumes a third-party auditor who can re-execute training (Srivastava et al., 2024; Waiwitlikhit et al., 2024). Taken together, prior work either targets per-query inference, proves the training trajectory through an expensive backpropagation circuit, or scales only to demonstration-level learners. Efficient checkpoint-level, commit-then-challenge auditing for LLM training outcomes therefore remains largely open.

In this work, we present zkLLMPoT, a zero-knowledge framework for certifying properties of a checkpoint that are claimed as outcomes of LLM training or fine-tuning. Figure 1 shows the audit workflow. In the full protocol, zkLLMPoT lets a trainer prove that a committed checkpoint attains a declared objective on auditor-chosen data without exposing the weights or making the private training corpus part of the proved relation. The same interface can express a declared group-fairness metric or a per-example loss used as a memorization and membership-risk signal (Waiwitlikhit et al., 2024). Built on zk-SNARKs, the proof size and verification time are independent of the number of training iterations and do not require re-executing training. Our prototype measures the principal Transformer operators needed by this relation and provides full circuit composition and zero-knowledge blinding.

Our protocol attests to properties of a committed checkpoint of a large language model. It can show that (i) the checkpoint improves over a committed reference state on auditor-chosen sequences; (ii) it attains a declared capability on domain-specific tasks; and (iii) the evaluation follows the declared Transformer architecture and objective. The zero-knowledge protocol hides the weights and intermediate activations. Achieving such a certificate raises two challenges. First, proving the training process itself is prohibitively slow: every step adds a forward pass, a backward pass, and an optimizer update to the proved relation, so the proving time grows with the length of the training run. Second, if the evaluation data are known before the checkpoint is fixed, the trainer can overfit the checkpoint to those data, and a good result on them no longer reflects the claimed training outcome. To make the proof practical, zkLLMPoT evaluates the committed checkpoint through a loss-function-style objective. This is a feasible measure of training outcomes, because the loss a checkpoint attains on held-out data from the target distribution is the standard way to judge whether pretraining or fine-tuning achieved its goal (Gururangan et al., 2020). To avoid the trainer overfitting the evaluation, we specified a data commitment protocol. The auditor specifies the objective, the trainer freezes the corresponding circuit and commits the checkpoint, and the auditor then chooses the evaluation sequences. The trainer is not able to modify her weights after seeing the commitment. Together, these techniques let zkLLMPoT generate and verify proofs quickly, with proving times of 41–59 s for the covered operators on 1.1–1.5B-parameter models and 131 s at 13B, and verification below half a second at sequence length 512, while the commit-then-challenge order removes the trainer's opportunity to overfit the checkpoint to the auditor's sequences.

In summary, our contributions are:

• An outcome-attestation formulation that audits properties attributed to LLM training through a loss-function-style evaluation of committed weights, excluding the backward pass and optimizer from the proved relation;

• A commit-then-challenge protocol in which the trainer binds the circuit and checkpoint before the auditor selects the evaluation sequences, which then enter the statement as public inputs;

• Operator-level optimizations and fusion for compiling Transformer layers into compact ZK circuits, plus an interface for auditor-specified terminal objectives;

• A component-based study across four model families, yielding proving times of 41–59 s for the covered operators at the 1.xB scale and 131 s at 13B, with verification below half a second.

References (42)