Skip to content

Commit d023632

Browse files
Add blog post on TensorCommitments verifiable inference
This post discusses the TensorCommitments method for lightweight verifiable inference in language models, detailing its efficiency and detection capabilities based on experiments with LLaMA 2-13B.
1 parent 500ea14 commit d023632

1 file changed

Lines changed: 59 additions & 0 deletions

File tree

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: "TensorCommitments: A Lightweight Verifiable Inference for Language Models"
3+
description: NeurIPS 2026 paper
4+
categories: blog
5+
---
6+
7+
*By Oguzhan Baser and the TensorCommitments team*
8+
9+
# A receipt for a cloud LLM run
10+
11+
Accepted to the 40th Conference on Neural Information Processing Systems (NeurIPS 2026).
12+
13+
**Authors:** Oguzhan Baser, Elahe Sadeghi, Eric Wang, Nico Vergauwen, Sam Kazemian, Hong Kang, Sandeep P. Chinchali, and Sriram Vishwanath.
14+
15+
**TL;DR:** TensorCommitments lets a lightweight client check selected hidden states from a remote LLM run using compact cryptographic commitments. On LLaMA 2-13B, the paper reports 98.6 ms of post-inference prover time and 12 ms of verifier time, with no verifier GPU.
16+
17+
[Read the paper](https://arxiv.org/abs/2602.12630) | [Explore the code](https://github.com/NeurIPS26TC/TensorCommitment)
18+
19+
## The question behind the answer
20+
21+
A cloud model returns text. What it does not return is much evidence of the computation that produced it. A client could rerun the model to compare results, but that assumes access to the weights and another GPU. The problem grows sharper when inference is part of a longer workflow: one altered prompt, weight block, or intermediate state can quietly change what comes next.
22+
23+
TensorCommitments asks a practical question: can the service leave a compact, checkable record of an inference while the client remains lightweight?
24+
25+
## Keep the tensor structure
26+
27+
A commitment is a cryptographic tag for data: change the data, and the tag should no longer match. Many schemes first flatten model activations into long vectors. TensorCommitments instead commits to activation tensors through multivariate polynomials, preserving the axes that make the data a tensor in the first place. In the paper's fixed-size interpolation experiment, moving from one to two dimensions reduces runtime from 4.1 seconds to 0.125 seconds. That observation motivates the construction; it is an interpolation benchmark, not an end-to-end inference speedup.
28+
29+
The commitments are organized in a *Terkle Tree*. A single root binds the evolving states of an interaction, while a verifier can request a path to a selected value and check it without replaying the model. The tree makes the record compact enough to query, and the multivariate openings retain the shape of the underlying data.
30+
31+
![TensorCommitments inference workflow]({{site.baseurl}}/images/post/TensorCommitments/01_workflow.png)
32+
*Figure 1. From activation tensors to a challenged proof checked by the verifier (paper Fig. 2).*
33+
34+
## Spend checks where they matter
35+
36+
Checking every layer of a large model would erase much of the efficiency gain. The paper therefore scores layers using spectral properties of their weights and allocates a fixed verification budget to influential blocks. This is a deliberate trade-off: the cryptographic opening verifies what was selected, while attack detection still depends on which layers are checked and on the verifier's budget. TensorCommitments is not presented as a full zero-knowledge proof of every operation.
37+
38+
![Attack manipulation coverage from the layer-selection experiment]({{site.baseurl}}/images/post/TensorCommitments/02_layer_selection.png)
39+
*Figure 2. Attack manipulation coverage for layer-selection policies (paper Fig. 5).*
40+
41+
## What the experiments show
42+
43+
For LLaMA 2-13B on an A100, the paper reports 10.165 seconds for base inference. TensorCommitments adds 98.6 ms of post-inference prover work and 12 ms of verification: roughly 0.97% and 0.12% of that base time. The verifier's reported GPU use is 0 GB. In the paper's evaluated attack suite, detection accuracy is 96.02%, versus 82.59% for the TOPLOC baseline. The study also reports up to a 48% improvement under prompt-tampering attacks, and its layer-selection policy covers up to 75% more attacked layers than alternatives at the same budget.
44+
45+
![Performance comparison with prior verifiable inference methods]({{site.baseurl}}/images/post/TensorCommitments/04_system_overhead.png)
46+
*Figure 3. LLaMA 2-13B system and detection comparison (paper Table 1).*
47+
48+
![Detection accuracy under tailored attacks]({{site.baseurl}}/images/post/TensorCommitments/03_attack_detection.png)
49+
*Figure 4. Detection across tested attack scenarios (paper Fig. 7).*
50+
51+
These numbers belong to the reported models, hardware, attacks, and selection budgets. They show a promising efficiency and detection profile; they do not imply that every possible tampering attempt will be caught.
52+
53+
## Where this leads
54+
55+
Remote inference will be easier to trust when a client can ask for evidence, rather than accepting only a fluent answer. TensorCommitments offers one route toward that goal: proofs tied to model tensors, a tree that binds an interaction, and verification costs small enough for a client without a GPU.
56+
57+
The limits matter too. The design needs a trusted setup, the prover needs GPU access to the activations, and the paper does not claim full zero knowledge. Its robustness is bounded by the layers and checks a verifier can afford. Those constraints point directly to the next research questions: stronger coverage, more distributed trust, and privacy guarantees that remain practical at LLM scale.
58+
59+
[Paper](https://arxiv.org/abs/2602.12630) | [Code](https://github.com/NeurIPS26TC/TensorCommitment)

0 commit comments

Comments
 (0)