TOPLOC: A Locality Sensitive Hashing Scheme for Trustless Verifiable Inference

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Ong, Jack Min, Di Ferrante, Matthew, Pazdera, Aaron, Garner, Ryan, Jaghouar, Sami, Basra, Manveer, Ryabinin, Max, Hagemann, Johannes
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913868405538816
author Ong, Jack Min
Di Ferrante, Matthew
Pazdera, Aaron
Garner, Ryan
Jaghouar, Sami
Basra, Manveer
Ryabinin, Max
Hagemann, Johannes
author_facet Ong, Jack Min
Di Ferrante, Matthew
Pazdera, Aaron
Garner, Ryan
Jaghouar, Sami
Basra, Manveer
Ryabinin, Max
Hagemann, Johannes
contents Large language models (LLMs) have proven to be very capable, but access to frontier models currently relies on inference providers. This introduces trust challenges: how can we be sure that the provider is using the model configuration they claim? We propose TOPLOC, a novel method for verifiable inference that addresses this problem. TOPLOC leverages a compact locality-sensitive hashing mechanism for intermediate activations, which can detect unauthorized modifications to models, prompts, or precision with 100% accuracy, achieving no false positives or negatives in our empirical evaluations. Our approach is robust across diverse hardware configurations, GPU types, and algebraic reorderings, which allows for validation speeds significantly faster than the original inference. By introducing a polynomial encoding scheme, TOPLOC minimizes the memory overhead of the generated proofs by $1000\times$, requiring only 258 bytes of storage per 32 new tokens, compared to the 262 KB requirement of storing the token embeddings directly for Llama 3.1-8B-Instruct. Our method empowers users to verify LLM inference computations efficiently, fostering greater trust and transparency in open ecosystems and laying a foundation for decentralized, verifiable and trustless AI services.
format Preprint
id arxiv_https___arxiv_org_abs_2501_16007
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle TOPLOC: A Locality Sensitive Hashing Scheme for Trustless Verifiable Inference
Ong, Jack Min
Di Ferrante, Matthew
Pazdera, Aaron
Garner, Ryan
Jaghouar, Sami
Basra, Manveer
Ryabinin, Max
Hagemann, Johannes
Cryptography and Security
Distributed, Parallel, and Cluster Computing
Large language models (LLMs) have proven to be very capable, but access to frontier models currently relies on inference providers. This introduces trust challenges: how can we be sure that the provider is using the model configuration they claim? We propose TOPLOC, a novel method for verifiable inference that addresses this problem. TOPLOC leverages a compact locality-sensitive hashing mechanism for intermediate activations, which can detect unauthorized modifications to models, prompts, or precision with 100% accuracy, achieving no false positives or negatives in our empirical evaluations. Our approach is robust across diverse hardware configurations, GPU types, and algebraic reorderings, which allows for validation speeds significantly faster than the original inference. By introducing a polynomial encoding scheme, TOPLOC minimizes the memory overhead of the generated proofs by $1000\times$, requiring only 258 bytes of storage per 32 new tokens, compared to the 262 KB requirement of storing the token embeddings directly for Llama 3.1-8B-Instruct. Our method empowers users to verify LLM inference computations efficiently, fostering greater trust and transparency in open ecosystems and laying a foundation for decentralized, verifiable and trustless AI services.
title TOPLOC: A Locality Sensitive Hashing Scheme for Trustless Verifiable Inference
topic Cryptography and Security
Distributed, Parallel, and Cluster Computing
url https://arxiv.org/abs/2501.16007