Abstract
In fields like machine learning and statistics, measuring the distance between probability distributions is a fundamental task. For product distributions—where dimensions are independent—most common measures like KL-divergence or Hellinger distance are efficiently computable due to their "tensorization" property. However, the Total Variation (TV) distance has long been recognized as a more challenging metric. This paper provides a formal complexity-theoretic explanation for this difficulty, proving that computing the TV distance for product distributions is #P-complete. This result establishes a significant theoretical boundary, showing that exact computation is as hard as the most difficult counting problems, even for these relatively simple high-dimensional models.
Introduction
When dealing with high-dimensional data, researchers often employ product distributions to simplify analysis. In a product distribution, each dimension is independent, such as a sequence of $n$ independent biased coin flips. For many distance measures, the total distance is simply a combination of the distances in each dimension. This property, known as tensorization, allows for linear-time algorithms ($O(n)$).
The Total Variation (TV) distance, also known as statistical difference, is a notable exception. It does not tensorize. Because the domain of these distributions grows exponentially ($2^n$) with the number of dimensions, a brute-force calculation is infeasible. This paper investigates whether this difficulty is inherent or if a more efficient algorithm exists.
Methodology: Proving #P-Completeness
The authors utilize computational complexity theory to categorize the difficulty of computing TV distance. To establish #P-completeness, they demonstrate two key properties:
- Membership: They show the problem belongs to the class #P by designing a non-deterministic machine capable of "counting" the TV distance.
- Hardness: They perform a sophisticated reduction, showing that an efficient algorithm for TV distance could solve
#SubsetProd—a known hard counting problem involving finding subsets of integers that multiply to a specific target.
The reduction introduces an intermediate problem, #PMFEquals, which involves counting how many points in a distribution have a specific probability mass. By showing that TV distance can be manipulated to reveal this count, the authors bridge the gap between statistical distance and hard counting problems.
Key Insights: The Failure of Tensorization
The primary insight of this work is the "Complexity Gap." While metrics like KL-divergence can be computed in $O(n)$ time, TV distance requires exponential time (assuming standard complexity assumptions). This hardness stems from the fact that TV distance depends on the global interaction of all dimensions. It cannot be decomposed into independent parts, meaning the "succinct" representation of a product distribution (only $n$ parameters) belies the complexity of its global statistical properties.
Results and Theoretical Impact
The paper provides the first formal proof that exactly computing the TV distance between two product distributions is #P-complete. Additionally, it proves that #PMFEquals is also #P-hard.
These results serve as a definitive guide for practitioners: seeking an exact, efficient algorithm for TV distance in high dimensions is likely a futile effort. This shifts the focus of the field toward alternative metrics or approximation techniques.
Discussion and Future Work
While exact computation is hard, the authors note that approximation is more tractable. Recent research has developed Fully Polynomial-Time Randomized Approximation Schemes (FPRAS) that provide close estimates efficiently.
Future research may extend these complexity results to more structured models, such as Markov Chains or Bayesian Networks, where the dependencies between variables likely make the computation even more difficult. For now, this work establishes a clear theoretical boundary for one of the most fundamental tools in statistics.
Summary updated