[Paper Review] On Approximating Total Variation Distance
This paper establishes that computing the total variation (TV) distance between two product distributions over {0,1}ⁿ is #P-complete, indicating inherent intractability for exact computation. However, it presents a fully polynomial-time deterministic approximation scheme (FPTAS) for cases where one distribution is uniform or has a constant number of distinct marginals, offering efficient approximation in these key settings despite the general hardness.
Total variation distance (TV distance) is a fundamental notion of distance between probability distributions. In this work, we introduce and study the problem of computing the TV distance of two product distributions over the domain $\{0,1\}^n$. In particular, we establish the following results. 1. The problem of exactly computing the TV distance of two product distributions is $\#\mathsf{P}$-complete. This is in stark contrast with other distance measures such as KL, Chi-square, and Hellinger which tensorize over the marginals leading to efficient algorithms. 2. There is a fully polynomial-time deterministic approximation scheme (FPTAS) for computing the TV distance of two product distributions $P$ and $Q$ where $Q$ is the uniform distribution. This result is extended to the case where $Q$ has a constant number of distinct marginals. In contrast, we show that when $P$ and $Q$ are Bayes net distributions, the relative approximation of their TV distance is $\mathsf{NP}$-hard.
Motivation & Objective
- To understand the computational complexity of computing the total variation (TV) distance between two high-dimensional product distributions over {0,1}ⁿ.
- To determine whether efficient approximation algorithms exist for TV distance when distributions are represented succinctly via marginals.
- To identify tractable subclasses of product distributions where TV distance can be approximated efficiently, particularly when one distribution is uniform or has few distinct marginals.
- To contrast the complexity of TV distance with other divergences like KL, Chi-square, and Hellinger, which tensorize and allow efficient computation.
- To explore the boundary between tractable and intractable cases, especially in the context of Bayesian networks and structured probabilistic models.
Proposed method
- Proves #P-completeness of exact TV distance computation between two product distributions using reductions from hard counting problems, including #SAT.
- Develops a fully polynomial-time deterministic approximation scheme (FPTAS) for TV distance when one distribution is uniform, leveraging finite-precision arithmetic and interval approximation over exponentially many subsets.
- Adapts the FPTAS to cases where the second distribution has a constant number of distinct one-dimensional marginals by partitioning the domain based on marginal types and solving multiple #Knapsack instances.
- Uses a normalized representation of TV distance to confine it within a multiplicative interval [1, V) with V ≤ 2^{poly(n)}, enabling logarithmic search over geometrically increasing intervals.
- Employs a recursive counting strategy over subsets S ⊆ [n] to estimate the sum of positive differences P(x) - Q(x), using dynamic programming and approximation for #Knapsack instances.
- Applies a transformation when p_i < 1/2 by switching to (1 - p_i) to maintain numerical stability and ensure polynomial-time approximation, doubling the number of parameters but preserving efficiency for constant k.
Experimental results
Research questions
- RQ1Is the exact computation of TV distance between two product distributions #P-complete?
- RQ2Can a fully polynomial-time deterministic approximation scheme (FPTAS) be designed for TV distance when one distribution is uniform?
- RQ3Does the existence of an FPTAS extend to cases where the second distribution has only a constant number of distinct marginals?
- RQ4What is the complexity of relative approximation of TV distance for more general models like Bayes nets?
- RQ5How does the computational complexity of TV distance compare to other divergences such as KL, Chi-square, and Hellinger, which tensorize over marginals?
Key findings
- The exact computation of TV distance between two product distributions is #P-complete, even when the second distribution has at most three distinct one-dimensional marginals.
- An FPTAS exists for computing the TV distance between a product distribution P and the uniform distribution Q over {0,1}ⁿ, with approximation error (1±ε) and running time polynomial in n and 1/ε.
- The FPTAS extends to cases where Q has a constant number of distinct marginals, maintaining polynomial runtime via partitioning and approximate counting over #Knapsack instances.
- When P and Q are Bayes net distributions, relative approximation of their TV distance is NP-hard, indicating a sharp contrast with the tractable product case.
- The TV distance can be expressed as a sum over subsets S ⊆ [n] of max(0, P(S) - Q(S)), and this sum is approximated by partitioning the domain and estimating contributions via finite-precision arithmetic.
- For distributions with p_i < 1/2, the method reparameterizes using (1 - p_i) to maintain approximation accuracy, doubling the number of parameters but preserving polynomial runtime for constant k.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.