# Total Variation Distance Estimation in Autoregressive Models

*Eric Price, Kevin Tian, Zhiyang Xun, Yusong Zhu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/153131) · [Open on the map](../papers.html#p153131)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Diffusion Language Model Decoding](../pgroup/271.md) · Type: new method · Keywords: total variation distance, autoregressive models, query complexity, LLM serving, distribution estimation

## Summary
The paper provides algorithms to estimate total variation distance between autoregressive distributions under sample, logit, and noisy logit access, achieving near-optimal query complexities and validating them on real LLM serving engines.

## Explained to a 5-year-old
Two computers make up sentences using words. We want to know how similar their sentences are. We count how many times they choose the same words. We also look at how likely each word is to appear. This helps us see if the two computers act the same.

## Explained to a 5-year-old, longer
Two computers create sentences by picking words. We want to know if the sentences they make are alike. We compare how often they pick the same words. We also check how likely each word is to be chosen. The paper looks at three ways to get information from the computers. One way is to ask for whole sentences, another is to ask for the chances of each word, and a third is to get noisy chances. By using these methods, we can measure how far apart the computers are. The results show that this measuring is more reliable than older methods. This helps people trust that different computer systems running the same model behave similarly.

## For a technical reader
The paper addresses the need to quantify differences between two autoregressive language models that may be served by different inference stacks. It presents algorithms that work with three types of access: raw samples, exact logits, and noisy logits, each achieving near-optimal query complexity. Empirical tests on popular LLM servers (sglang and vllm) confirm that total variation distance estimation is more robust than KL divergence for detecting practical discrepancies. The theoretical analysis also proves tightness for the logit-access case and provides a smooth interpolation for noisy logits.

## Problem
Estimating the total variation distance between two length-n autoregressive distributions to within an additive error ε is challenging when only limited access (samples, logits, or noisy logits) to the distributions is available.

## Method
The approach develops algorithms for sample, logit, and noisy logit access that achieve near-optimal query complexities, and it validates them empirically on actual LLM serving systems.

## Results
The empirical evaluation demonstrates that estimating total variation distance is more robust and practical than existing alternatives such as KL divergence on real LLM serving engines.

## Contributions
The paper provides near-optimal query complexity algorithms for TV distance estimation under sample, logit, and noisy logit access, and validates them on actual inference engines, showing improved robustness over prior divergence measures.

## Practical relevance
The work enables reliable assessment of model consistency across different serving platforms, aiding deployment and debugging of large language models.

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](../feedback/?on=p/153131)
