Introduction
In modern machine learning and statistics, quantifying the difference between two high-dimensional probability distributions, $P$ and $Q$, is a fundamental task. Among various metrics, the Total Variation (TV) distance is considered a gold standard. Defined as the maximum possible difference in probability that the two distributions can assign to the same event, it provides a clear, physical interpretation of "closeness."
Despite its utility, TV distance presents a significant computational challenge. Unlike other common measures such as KL divergence or Chi-square distance, TV distance does not "tensorize." In product distributions—where features are independent—tensorizing measures allow researchers to calculate the total distance by simply summing or multiplying individual dimensions. Because TV distance lacks this property, calculating it requires grappling with the geometry of the entire high-dimensional space simultaneously. This paper explores the computational complexity of this task and provides the first deterministic approximation schemes for specific cases.
The Complexity of Exact Computation
The authors first establish the inherent difficulty of calculating TV distance exactly. By employing reductions from known "hard" counting problems, they demonstrate that calculating the TV distance between two simple product distributions is #P-complete.
Specifically, the problem is shown to be equivalent to solving #SubsetProd (counting the number of subsets that multiply to a specific target). This result is striking because it holds even when the distributions are relatively simple—for instance, when they possess only three distinct marginals. This classification places exact TV distance computation in the same complexity class as the most difficult counting problems in computer science, suggesting that exact solutions are likely intractable for high-dimensional data.
Algorithmic Design: The Path to Approximation
To circumvent the #P-completeness of exact computation, the authors focus on developing a Fully Polynomial-Time Approximation Scheme (FPTAS). Their approach relies on a "reorganization trick" that transforms the summation required for TV distance into a combinatorial counting problem.
Mapping to #Knapsack
The key insight is that computing the TV distance is essentially a task of counting how many points in the domain have a higher probability under $P$ than under $Q$. The authors show that this counting problem resembles the #Knapsack problem (counting the number of ways to fill a knapsack of a certain capacity).
By leveraging existing deterministic approximation frameworks for #Knapsack—specifically the work of Gopalan et al.—the authors developed a deterministic algorithm. This algorithm can approximate the TV distance between a product distribution and a uniform distribution (or distributions with a constant number of distinct parameters) within a $(1 + \epsilon)$ factor in time polynomial in the number of dimensions ($n$) and $1/\epsilon$.
The Boundary of Tractability: Bayes Nets
The paper also identifies a sharp "complexity jump" when moving beyond independent product distributions. While an FPTAS exists for product distributions compared to uniform ones, the authors prove that the problem becomes significantly harder when variables are dependent. For Bayesian Networks with an in-degree of just two, the authors demonstrate that it is NP-hard to even decide if the TV distance is non-zero. This suggests that for models with even minimal correlation structures, efficient deterministic approximations may be impossible to achieve.
Conclusion and Future Directions
This research bridges a critical gap in theoretical computer science by providing the first deterministic approximation for TV distance in product distributions. It highlights the unique "Curse of Non-Tensorization" that makes TV distance computationally elusive compared to its peers.
However, the "Holy Grail" of this field remains: determining whether a deterministic FPTAS exists for the TV distance between any two arbitrary product distributions $P$ and $Q$. Additionally, the hardness results for Bayes nets suggest that future work should investigate whether "nearly" independent models—such as those with low treewidth—might offer a middle ground where approximation remains computationally feasible.
Summary updated