TensorCommitments: A Lightweight Verifiable Inference for Large Language Models
Oguzhan Baser, Elahe Sadeghi, Eric Wang, Nico Vergauwen, Sam Kazemian, Hong Kang, Sandeep Chinchali, Sriram Vishwanath
NeurIPS page · Open on the map
Category: AI Safety, Security & Alignment › Multimodal Safety Steering · Type: new method · Keywords: verifiable inference, large language models, proof-of-inference, tensor commitments, robustness
Summary
TensorCommitments introduces a lightweight, tensor-native proof-of-inference scheme that verifies LLM outputs without requiring a verifier GPU, adding minimal overhead to inference time.
Explained to a 5-year-old
People send questions to big computer models that live far away. They worry the computer might change the answers on purpose. A new idea lets the service prove that it did the work correctly without having to run the whole model again. It works by using a special tag that breaks if anyone tries to cheat. This makes the answers more trustworthy while using almost the same amount of computer time.
Explained to a 5-year-old, longer
Big computer models that answer questions are often stored on far-away machines. When you ask them something, you have to trust that they give the right answer. Sometimes someone might try to change the answer to trick you. A new idea helps the service show that it really did the work without having to run the whole model again. It does this by creating a special tag that is like a fingerprint for the answer. If anyone tries to change the answer, the fingerprint will not match. This fingerprint is built using a tree-like structure that works with numbers. The service can quickly prove that the answer is correct by checking this fingerprint. The extra work needed to make and check the fingerprint is very small. It only adds a tiny amount of time to the normal answering process. This makes it possible for everyday users to trust the answers they get from far-away models. In the end, it gives a simple way to make sure the answers are honest and reliable.
For a technical reader
TensorCommitments provides a lightweight, tensor-native proof-of-inference scheme that enables verifiable LLM inference without requiring a verifier GPU. It binds the inference result to an irreversible commitment stored in multivariate Terkle Trees, allowing the client to detect any tampering with minimal overhead. Empirical evaluation on LLaMA2 shows only 0.97% prover and 0.12% verifier time overhead while improving robustness against tailored attacks by up to 48% compared to prior work. The approach can be integrated into existing cloud inference pipelines, offering a practical solution for clients who need assurance of correct execution. By avoiding heavy cryptographic computations and GPU-intensive verification, TensorCommitments makes trustworthy LLM inference feasible for a broader set of users.
Problem
Large language models are often run on remote cloud GPUs, leaving users vulnerable to adversarial tampering of inference results. There is a need for a verification method that can confirm correct execution without rerunning the model or requiring a powerful verifier GPU.
Method
The approach uses a tensor-native commitment scheme organized in multivariate Terkle Trees, binding the LLM inference to an irreversible tag that breaks if tampered. It adds lightweight computations to both prover and verifier, achieving verification with minimal extra time.
Results
The approach adds only 0.97% prover and 0.12% verifier time over inference and improves robustness to tailored attacks by up to 48% compared to prior work requiring a verifier GPU.
Contributions
It proposes a lightweight, tensor-native proof-of-inference scheme that works without a verifier GPU and integrates commitments into Terkle Trees, achieving fast verification and strong tamper detection. The work also provides an empirical evaluation on LLaMA2 showing minimal overhead and significant robustness gains.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction