Papers1 provider · 1 record
January 1, 2026· Zenodo
preprint

Committed Computation Traces: Hybrid Verification of Neural Network Inference Between Probabilistic Replay and Zero-Knowledge Proofs

Authors:Laporte, Philippe

Abstract

We identify a gap in the verification spectrum for outsourced neural network inference. Probabilistic replay re-executes a random sample of the workload on independent infrastructure, providing 20% detection probability at 20% compute overhead but offering only black-box output assurance. Zero-knowledge proof systems prove every constraint at cryptographic soundness and can keep the weights hidden, but the fastest published system, as of November 2026, still takes about 70 to 95 times the GPU time that a serving engine needs for the same prompts. We propose Committed Computation Trace Verification (CCTV) in two variants, both against an untrusted executor. With verifier-recorded traces, an independent verifier captures and commits to intermediate layer activations during its own re-execution of sampled jobs, enriching the cryptographic receipt with an auditable record of the reference computation path, without modifying the executor. With executor-committed traces, applicable when the executor exports its intermediate activations, the executor commits to its full computation trace before a keyed random challenge is issued, and the verifier checks k randomly selected inter-layer constraints out of L without full re-execution. We show that the cascading constraint property of layered neural networks amplifies the expected detection probability of executor-committed traces, under exact-recompute acceptance, to 86.8% for a 24-layer transformer with k = 5 of L = 24 constraints sampled, a 4.34x improvement over probabilistic replay at the same sampling budget, for any falsification whose downstream constraints remain violated. We state the system and threat model, and an adversary taxonomy with its boundary: an adversary that falsifies one activation and recomputes all downstream layers leaves a single violated constraint and is detected with probability k/L, comparable to replay. We then implement executor-committed traces end to end over ONNX Runtime for BAAI/bge-large-en-v1.5 (335M parameters, 24 layers) and validate the analysis empirically: measured detection is 86.9% for cascading falsifications over 24,000 Monte Carlo trials against the 86.8% closed form, 21.1% for consistent manipulation against 20.8%, 100% for model substitution and for cached replay under the input-and-embedding binding, and k/L for a cached consistent suffix spliced onto an honest first boundary, with a 0% false-reject rate on honest executions; extracted single-layer subgraphs reproduce the model's boundary tensors byte-exactly, realizing exact-recompute acceptance. Measured costs on commodity CPU: committing the 52 MB trace costs 5.6 ms per input, 0.4% of single-threaded inference, and verification at k = 5, including the embedding check, costs 21.9% of a forward pass, with trace capture too cheap to separate from inference-time variance. Measured end to end on two cloud hosts over a batch of 1000 inputs, with every opened boundary byte-identical across hosts, challenging every input at k = 5 costs 1.02 times what 20% replay costs, and challenging 20% of inputs costs 0.24 times it (4.23 times less); at 8 threads the figures are 1.11 and 0.29 once a thread-pool setting of the runtime is corrected. The price is bandwidth: 20.9 MB of opened activations per challenged input on average against replay's kilobytes. We give the decoder formulation, the verifier configurations available under closed weights, and the operating regimes at serving scale, including a digest-only mode that retains no activations. The base construction uses hash-based Merkle commitments over per-layer activation digests, which are quantum-resistant and add only hashing cost; polynomial commitments (KZG or FRI-based) are presented as an optional upgrade path toward succinct algebraic verification. Challenges are generated with HMAC-keyed sampling for unpredictability.

Community

0 comments
Use Connect Wallet in the navigation

No discussion yet

Be the first to share a question or observation.