Total Variation Distance Estimation through Domain Reduction

Arnab Bhattacharyya, Graham Cormode, Yucheng Fu, Kuldeep S. MeelarXiv 2026

TL;DR

This paper introduces the first Fully Polynomial-time Randomized Approximation Scheme (FPRAS) for estimating the Total Variation (TV) distance between mixtures of product distributions in time polynomial in all parameters, including the number of components. The authors achieve this breakthrough using a novel "domain reduction" technique powered by $\ell_1$ subspace sparsification via Lewis weights, which they successfully extend to complex structured probabilistic circuits and weighted tree automata.

What Problem Does This Paper Address?

Comparing high-dimensional probability distributions is a foundational task in machine learning, statistics, and information theory. Total Variation (TV) distance is the canonical metric used to quantify the discrepancy between two distributions. However, computing it exactly is notoriously difficult: even for two simple product distributions, the problem is #P-complete because TV distance does not decompose cleanly coordinate-wise.

The challenge compounds significantly when dealing with mixtures of product distributions. While product distributions assume independent variables, mixtures introduce latent variables that create global dependencies across all dimensions. Prior approximation algorithms for mixtures suffered from an exponential dependence on the number of mixture components ($K$). This paper tackles a major open question in the field: Can we approximate the TV distance between mixtures of product distributions in time that is truly polynomial in all natural input parameters?

Methods

The core innovation of this paper is a technique the authors call domain reduction for distributions. Instead of evaluating the probability of individual outcomes across an exponentially large domain, the algorithm processes the distributions step-by-step and repeatedly compresses the domain of partial assignments into a polynomial-sized weighted subset, known as a coreset.

To prevent compression errors from compounding catastrophically in future steps, the authors utilize $\ell_1$ subspace embedding via Lewis weights. At any intermediate stage, the exact future impact of remaining variables can be framed as a linear query. By computing Lewis weights, the algorithm samples and reweights the current partial assignments to construct a coreset. This coreset provides a uniform guarantee: it simultaneously preserves the absolute sum of every possible future linear query.

The authors apply this domain reduction framework in two main settings:

  1. Mixtures of Product Distributions: The coreset is constructed incrementally, coordinate by coordinate.
  2. Probabilistic Circuits: The algorithm performs a bottom-up traversal of a variable tree (v-tree), exploiting the linear properties of sum gates and the bilinear properties of product gates.
A structured probabilistic circuit and its corresponding v-tree architecture.

Datasets

Not discussed in the paper. This is a purely theoretical paper focused on algorithmic complexity, runtime bounds, and formal proofs. Notably, the authors fully formalized their entire end-to-end proof using the Lean 4 proof assistant to guarantee its mathematical correctness.

Key Insights and Ideas

  • Uniform Future Guarantees: The crucial "aha moment" is realizing that you do not need to know what the future coordinates look like to compress the current state. Because any future combination of variables acts as a linear query, an $\ell_1$ subspace embedding can protect against all possible futures simultaneously.
  • Compositionality of Coresets: The authors demonstrate that domain reductions compose cleanly through the standard operations of probabilistic circuits. Sum gates act as linear transformations (requiring no new domain reduction), while product gates combine disjoint scopes bilinearly, allowing independent child coresets to be merged and re-sparsified.
The key structural conditions (smoothness and decomposability) required for the circuit algorithm to function.

Key Results

  • True Polynomial Runtime: The paper delivers an FPRAS for mixtures of product distributions with a runtime of $\text{poly}(n, q, K, 1/\epsilon, \log(1/\delta))$, completely eliminating the exponential dependence on the number of components ($K$) seen in previous literature.
  • Strongly Polynomial: In the real-arithmetic model, the algorithm's running time is independent of the actual numerical value of the TV distance, making it highly robust.
  • Generalization to Circuits: The authors extend this framework to smooth, deterministic, structured-decomposable probabilistic circuits and Weighted Tree Automata (WTAs), providing the first relative-approximation guarantees for TV distance over these expressive models.

Limitations and Future Work

  • Shared Architecture Constraint: For the probabilistic circuit extension, both input circuits must be structured with respect to a common v-tree. If the two distributions are represented by circuits with radically different, incompatible variable decompositions, this algorithm cannot compare them.
  • Practical Efficiency: Although the algorithm is strictly polynomial in theory, the exponents involved in calculating Lewis weights and executing matrix multiplications mean that a naive implementation might still be slow in practice. Optimizing the constants and developing a practical heuristic toolkit remains an open area for future engineering work.

Summary updated

BibTeX
@misc{bhattacharyya2026total,
  author = {Arnab Bhattacharyya and Graham Cormode and Yucheng Fu and Kuldeep S. Meel},
  title = {{Total Variation Distance Estimation through Domain Reduction}},
  year = {2026},
  eprint = {2609.18707},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.18707},
}
Figure