NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Instance-Optimality for Private KL Distribution Estimation

Jiayuan Ye, Vitaly Feldman, Kunal Talwar

Introduction

Estimating discrete distributions from observed samples is a fundamental task in statistical machine learning and data science. While various metrics exist to evaluate the quality of these estimates, the Kullback-Leibler (KL) divergence is often preferred because it captures the information-theoretic distance between distributions. However, KL divergence is particularly sensitive to "zero-mass" assignments—where an estimator assigns zero probability to a symbol that actually appears in the underlying distribution. This sensitivity makes the task exceptionally challenging under the constraints of Differential Privacy (DP), which aims to protect individual data points from being inferred from the aggregate output.

The Limitations of Minimax Optimality

Traditionally, the performance of private estimators is measured using minimax risk, which evaluates an algorithm's performance against the most difficult possible distribution (the "worst-case"). In many scenarios, the worst-case distribution is a uniform distribution. However, real-world data—such as word frequencies in natural language or user behavior on social platforms—rarely follows a uniform distribution. Instead, it often follows power-law or "long-tail" distributions.

A minimax-optimal algorithm, such as the standard "Add-constant" estimator, may perform poorly on these structured, real-world distributions because it is designed for a pessimistic scenario that does not reflect the data's actual complexity. This paper shifts the focus toward instance-optimality: developing algorithms that adapt to the specific hardness of the distribution being estimated, performing nearly as well as an optimal estimator tailored to that specific "local neighborhood."

The "Sampling Twice" Mechanism

Achieving instance-optimality under DP is non-trivial. High-performance non-private estimators, like the Good-Turing estimator, are often highly sensitive to small changes in the input data. In the context of DP, high sensitivity requires adding significant noise, which can destroy the estimator's accuracy.

The authors introduce a novel "Sampling Twice" technique to overcome this sensitivity trap. The core idea involves splitting the dataset into two independent halves:

  1. Identification of Rare Symbols: The first half of the data is used to identify "small" symbols—those that appear with a frequency below a certain threshold.
  2. Mass Estimation: The second half is used to estimate the aggregate probability mass of these rare symbols.

By decoupling the identification of symbols from the estimation of their mass, the authors significantly reduce the sensitivity of the algorithm. This allows for the addition of much less noise during the privatization process. The algorithm further employs Calibrated Thresholding, where the threshold ($\tau$) is carefully tuned to the privacy parameters ($\epsilon, \delta$) to balance the risk of missing high-probability symbols against the risk of overestimating the tail.

Theoretical Contributions: Additive Neighborhoods

A key theoretical innovation in this work is the definition of "additive neighborhoods." Previous research into instance-optimality often relied on permutation-based neighborhoods, which are insufficient for capturing the nuances of KL divergence. The authors propose a neighborhood structure that allows for small additive perturbations, providing a more robust framework for proving instance-optimality. They demonstrate that their DP "Sampling Twice" algorithm is instance-optimal up to constant factors and that their chosen neighborhood size is the smallest possible to permit such guarantees.

Experimental Results

The proposed approach was evaluated against synthetic power-law distributions and real-world datasets, including Reddit comments, Enron emails, and the MMLU (Massive Multitask Language Understanding) corpus. Using both GPT-2 and BERT tokenizers to vary the distribution dimensions, the researchers found that:

  • Superior Performance: The instance-optimal DP algorithm consistently outperformed the minimax-optimal "Add-constant" baseline across all real-world datasets.
  • Privacy Efficiency: For frequent items, the "cost" of privacy was found to be negligible. The algorithm's primary advantage lies in its sophisticated handling of the "tail" of the distribution.
  • Scalability: The performance gap between the proposed method and standard baselines widened as the dataset size ($n$) or the privacy budget ($\epsilon$) increased, confirming that the algorithm effectively leverages the underlying structure of the data.

Conclusion and Future Directions

This research provides the first instance-optimal algorithms for private KL divergence estimation, bridging the gap between theoretical worst-case bounds and practical performance. While the "Sampling Twice" approach introduces a constant factor of 2 in error due to data splitting, it represents a significant step forward in private statistics. Future work remains to close this constant factor gap and to develop fully automated, private methods for hyperparameter tuning, such as selecting the optimal threshold $\tau$ without manual intervention.

Summary updated

BibTeX
@inproceedings{ye2025instance,
  author = {Jiayuan Ye and Vitaly Feldman and Kunal Talwar},
  title = {{Instance-Optimality for Private KL Distribution Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=K0FbK2GOGj},
}
Figure