atlas

Research map / Large language models / Reasoning and chain of thought

TOPLOC: A Locality Sensitive Hashing Scheme for Trustless Verifiable Inference

ICML 2025 · Large language models › Reasoning and chain of thought · approach: Efficient LLM serving · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TOPLOC, a locality-sensitive hashing scheme that encodes top-k activation indices and values as a modular polynomial congruence, enabling compact, hardware-robust verification of LLM inference.

Problem

Users of open-weights LLMs served by inference providers cannot verify that the claimed model, prompt, and precision were used; cryptographic proofs are too expensive and storing raw activations is storage-prohibitive.

Approach

Hash the top-k largest-magnitude hidden-state activations by interpolating a polynomial congruence over indices reduced modulo an injective modulus, storing only k two-byte coefficients per 32 generated tokens; validation compares exponent and mantissa statistics of recomputed top-k values, exploiting that large-magnitude values are robust to GPU nondeterminism and reordering.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use TopLoc polynomial encoding instead of storing raw activationsLLM inference proofs · Llama-3.1-8B-Instructproof storage: 8192 bytes per token -> 8 bytes per token; $1024\times$ reductionHelped
Use TopLoc rather than zkLLMLLM inference verification · Llama-2-13B inferencecommitting overhead per token: $986s$ -> $0.26ms$Helped
Use TopLoc rather than zkLLMLLM inference verification · Llama-2-13B inferencecommitment size per token: 11 MB -> 8BHelped
Validate across different GPU and tensor-parallel configurationsTopLoc · Llama-3.1-8B-Instruct, INTELLECT-1-Instruct, and Gemma-2-9b-itpositive-sample classificationNo clear effect
Validate with different attention kernel implementationsTopLoc · Flash Attention 2, SDPA, and FlexAttentionpositive-sample classificationNo clear effect
Use a different model for validation than for generationTopLoc · Llama-3.1-8B-Instruct, Llama-3.1-70B-Instruct, INTELLECT-1-Instruct, and Gemma-2-9b-itmodel mismatch detection: Exponent mismatch minimums include $125\downarrow\;(97.66\%)$ and $128\downarrow\;(100\%)$Helped
Alter the system promptTopLoc · Llama-3.1-8B-Instruct prompt alteration testsprompt alteration detection: Minimum exponent mismatches: $95\;(74.22\%)$, $74\;(57.81\%)$, and $67\;(52.34\%)$Helped
Generate with bf16 and validate with fp32TopLoc · Llama-3.1-8B-Instruct precision mismatchprecision mismatch detection: Minimum mantissa differences: $27892.02\downarrow$ and $21683\downarrow$Helped
Generate with fp32 and validate with bf16TopLoc · Llama-3.1-8B-Instruct precision mismatchprecision mismatch detection: Maximum exponent mismatch $14\uparrow\;(10.94\%)$No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: UltraChat

Metrics: top-k mismatch exponent mismatch mantissa difference mean and median false positive rate false negative rate storage per token validation time

Baselines: zkLLM SVIP Raw Activations Verisplit

Builds on: zkLLM SVIP Verisplit

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy