Approximate Profile Maximum Likelihood

Dmitri S. Pavlichin, Jiantao Jiao, Tsachy WeissmanarXiv 2017

Abstract

Profile Maximum Likelihood (PML) is a theoretically optimal approach for estimating symmetric properties of discrete distributions, such as entropy or support size, particularly in the small-sample regime. Despite its statistical appeal, computing the exact PML is #P-hard. This paper introduces Approximate PML (APML), an efficient algorithm that achieves state-of-the-art estimation performance in linear time. APML leverages the "clumping" property of PML distributions—where symbols with similar empirical counts are assigned identical probabilities—allowing for a tractable optimization via dynamic programming.

Introduction: The Challenge of Small-Sample Estimation

In statistical inference, estimating functionals of a discrete distribution (e.g., Shannon entropy, support size, or distance metrics) is a fundamental task. The standard "plug-in" Maximum Likelihood Estimator (MLE) often fails when the number of samples $n$ is small relative to the alphabet size $S$.

Profile Maximum Likelihood (PML) offers a solution by maximizing the probability of the profile (or fingerprint) of the data—the set of frequencies of the observed counts—rather than the likelihood of specific labeled outcomes. While statistically powerful, PML requires computing a matrix permanent, a problem known to be #P-hard. This computational bottleneck has historically limited PML to small datasets or theoretical discussions.

Methods: The APML Framework

The authors propose Approximate PML (APML) to bridge the gap between theoretical optimality and practical utility. The core of APML is built on several key technical innovations:

1. The Clumping Intuition

By analyzing exactly solvable small-scale cases, the authors observed that the PML distribution typically assigns the same probability to symbols that have similar empirical counts. This "clumping" behavior suggests that the optimal distribution can be represented as a step function over the sorted empirical frequencies.

Visualization of the clumping intuition in APML. The approximate PML distribution (red line) groups symbols with similar empirical counts into level sets to approximate the underlying distribution (black).

2. Lower Bounding the Permanent

To avoid the #P-hard computation of the matrix permanent, APML optimizes a tight lower bound. Instead of summing over all possible permutations of symbols, the algorithm considers only a subgroup of permutations that swap symbols within the same "clump." This simplification transforms the problem into a manageable optimization over partitions.

3. Efficient Optimization via Dynamic Programming

For one-dimensional distributions, the authors prove that optimal clumps must be contiguous relative to observed counts. This allows the use of a dynamic programming (DP) approach to find the best clumping strategy in $O(n)$ time, making the algorithm highly scalable.

Key Insights: Phase Transitions and Symmetry

A significant theoretical contribution of the paper is the characterization of "phase transitions" in the PML estimate. When empirical counts are very close—specifically within a range of $O(1/\sqrt{n})$—the PML prefers to treat the symbols as coming from a uniform distribution. As the counts diverge beyond this threshold, the PML estimate "branches" into distinct probability levels.

The phase transition phenomenon in PML. When empirical counts are within $O(1/\sqrt{n})$ of each other, the PML estimate collapses to a uniform distribution (the horizontal segment at 0.5).

By focusing on the profile rather than individual labels, APML effectively ignores irrelevant label information. This symmetry allows the algorithm to infer properties of "unseen" symbols, which is critical for accurate estimation in the small-sample regime.

Experimental Evaluation

The authors evaluated APML against established estimators like the Valiant-Valiant (VV) and JVHW estimators across various synthetic distributions, including Uniform, Zipf (Power Laws), and Geometric distributions.

Key Results

  • Computational Efficiency: APML is deterministic and runs in linear time, a massive improvement over the exponential complexity of exact PML.
  • Accuracy: APML consistently matches or outperforms specialized state-of-the-art estimators for entropy and support size.
  • Multi-dimensional Performance: For comparing two distributions (e.g., $L_1$ distance), a greedy heuristic version of APML showed more stable and monotonic error decay than standard baselines.

Limitations and Future Directions

While APML solves the 1D case optimally, multi-dimensional estimation currently relies on greedy heuristics because the natural ordering used for DP is lost. Finding a truly optimal multi-dimensional partition remains an open challenge. Additionally, while APML performs well on smooth distributions, its inherent bias toward discrete "clumps" might be slightly less efficient than specialized smooth estimators in certain edge cases. Future work aims to extend the framework to more complex functionals like mutual information.

Summary updated

BibTeX
@misc{pavlichin2017approximate,
  author = {Dmitri S. Pavlichin and Jiantao Jiao and Tsachy Weissman},
  title = {{Approximate Profile Maximum Likelihood}},
  year = {2017},
  eprint = {1712.07177},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1712.07177},
}
Figure