acceptodds
Published as a conference paper at NeurIPS 2026

Sort, Partition, Randomize: Optimal Binary Hypothesis Testing under Local Differential Privacy

Elena Ghazi, Jawad Nasser, Flavio Calmon, Ibrahim Issa

Abstract

We study optimal design of -locally differentially private mechanisms for binary hypothesis testing. Each observation is drawn from one of two known distributions on a finite alphabet of size , privatized by a mechanism , and then used to infer which distribution generated the data. We measure testing utility using an -divergence—including total variation, KL, and hockey-stick divergences—between the two induced output distributions. Previous work established structural properties of optimal mechanisms, but only yielded exponential-time algorithms. We prove a sharp structure: for every and every -divergence objective, after sorting the alphabet by likelihood ratio, there exists an optimal mechanism that partitions the sorted alphabet into contiguous blocks and applies randomized response to the block label. We call this class Sort–Partition–Randomize (SPR). This characterization yields an exact dynamic program that computes an optimal mechanism in time, and more generally in time with an -output budget. Our results make it possible to efficiently compute and characterize the exact optimum across the full privacy range, beyond asymptotic privacy regimes.

Keywords:
Atlanta, Main Track

Reviews

Among:
Shape:
123456this paper, Top 8%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 5.00 over 3 reviews, above 92% of the others.
Reviewer_gyyXOpenReview ↗
Rating
5
Clarity
3
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper introduces the first polynomial-time algorithm to find an optimal ε\varepsilon-locally differentially private (LDP) mechanism for binary hypothesis testing in the finite alphabet case. Previous algorithms were exponential in the alphabet size kk, whereas the optimal algorithm in the paper is O(k3)\mathcal{O}(k^3). For any privacy level ε\varepsilon and any ff-divergence objective, the optimal mechanism has a clean structure: 1) sort the input symbols by their likelihood ratio, 2) group them into contiguous blocks, and 3) apply a randomized response to the block label. The authors call this structure the Sort-Partition-Randomize (SPR) class. This characterization yields a dynamic programming formulation of the optimal mechanism that enables polynomial-time characterization.

Strengths and weaknesses

Strengths:

  • This work characterizes the optimal mechanisms for the full range of privacy budgets ε\varepsilon and non-binary output mechanisms for all ff-divergences, whereas previous works were limited to binary output for sufficiently small ε\varepsilon, or KL-divergence for sufficiently large ε\varepsilon.

  • The idea of Sort, Partition, Randomize (SPR), and the fact that extreme points admit LR-contiguous staircase refinements, although presented for binary hypothesis testing, are insightful and can be viewed as a potential approach for other LDP-related problems in finite alphabet cases beyond hypothesis testing.

  • The dynamic programming approach and the characterization of the optimal mechanism in polynomial time that replaces the exponential search enables the design of optimal mechanisms for alphabet sizes that were previously computationally heavy.

  • The optimal SPR mechanism via dynamic programming (Algorithm 1) is not only computationally efficient and theoretically optimal, but also interpretable.

  • The paper is well-written. Its logical flow and the way it motivates the problem, builds on tools, and solves the problem step by step are clear. The connection to previous work is also well established: Zamanlooy et al.'s [9] upper bound for EγE_\gamma-divergence and the binary mechanism of Kairouz et al. [8] are special cases.

Weaknesses:

  • In practice, the privatized data may need to support tasks beyond hypothesis testing as well. Although Algorithm 1 is optimal for binary hypothesis testing, it outputs only a noisy block label rather than a privatized version of the original sample, so it may discard information useful for other downstream analyses.

  • As mentioned in the paper, the mechanism is restricted to binary hypothesis testing and the discrete finite alphabet case. It is not clear how the likelihood-sorting idea would generalize to non-binary or continuous cases.

Questions

The SPR structure relies on ordering the likelihood-ratio of P0(x)/P1(x)P_0(x)/P_1(x). In multi-hypothesis testing with three or more classes, do you believe an analogous sorted-partition structure exists?

Limitations

Yes

Paper formatting concerns

N/A

Final justification

The rebuttal addresses my main concern regarding extending the problem beyond binary hypothesis testing. I think the proposed discussion of MM-ary hypothesis testing and continuous distributions would further strengthen the paper by better positioning the current contribution and pointing to a natural direction for future work. Overall, I view this as a strong paper, particularly because it develops the first polynomial-time algorithm for computing an optimal ε\varepsilon-locally differentially private (LDP) mechanism for binary hypothesis testing.

Reviewer_iwCmOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
Read review
Summary

This paper considers the problem of binary hypothesis testing under pure, noninteractive local differential privacy. To begin, they define the fixed-output joint range, which is the set of all achievable pairs of output distributions for pure-DP mechanisms applied to data drawn from either P0P_0 or P1P_1. The authors then show that any extreme point of this set can be realized by an "SPR" mechanism which first sorts input symbols by likelihood ratio, partitions the sorted symbols into contiguous blocks, and then applies randomized response to block labels. Using this characterization, they propose a dynamic programming algorithm the finds the optimal SPR mechanism with running time polynomial in the input alphabet size.

Strengths and weaknesses

Strengths

At a technical level, I understand the paper to improve over prior work in two primary respects:

  • Kairouz et al. (2016) showed that the binary mechanism and randomized response are (near-)optimal in the high-privacy and low-privacy regimes, respectively. The SPR mechanism proposed in this work is exactly optimal for any value of ε\varepsilon. In particular, the authors use numerical experiments to show that for certain input distributions and "intermediate" values of ε\varepsilon, the SPR mechanism can outperform both binary and k-ary randomized response substantially.
  • Kairouz et al. (2016) also provide a linear program for finding exactly optimal mechanisms which runs in O(2k)O(2^k) time. Subsequent work by Pensia et al. (2025) improved this to polynomial in kℓ2k^{\ell^2} and 2O(ℓ3log⁡ℓ)2^{O(\ell^3 \log \ell)}. The SPR mechanism can be computed with a dynamic program and requires only O(k3)O(k^3) time, making it much more usable in practice.

Taken together, these contributions represent a meaningful technical advance on an important statistical problem.

The paper is also written clearly. Its contributions are laid out clearly and precisely early on, and section 2 provides a nice overview of the key proof techniques.

Weaknesses

The paper seems to engage with only a very small number of prior works on the topic of (local) DP hypothesis testing, which is problematic to the extent that it makes it difficult for a reader unfamiliar with the area to assess which aspects of the work are novel. In particular,

  • The prior work section gives a good description of the several works that the paper builds on most directly. However, there is no mention of the (fairly large) existing literature on hypothesis testing under local DP beyond those works. As a non-exhaustive list of examples, [1][2][3][4] are all well-established papers studying closely related problems, and there are quite a few more recent works that build on them. I believe the paper would be strengthened by including more discussion on how it fits in to this broader context.
  • Even with the works that are already cited, there are places where clearer attribution to prior work would be appropriate. For example, when the fixed-output joint range is introduced on line 111, there is no mention of the fact that this is apparently a special case of the joint range studied extensively in Pensia et al. If there is something novel about the definition of joint range used in this work, then that should be emphasized more explicitly. If the main contribution of this work is a more precise characterization of the same set studied by Pensia et al., then that should be acknowledged more clearly.
  • (Less critical) There is a recent preprint [5] that studies the optimization problem (3) for the special case where DfD_f is KL divergence and ℓ=2\ell=2. I think it would be helpful to include some comparison between the results and methods of the two papers (but I believe [5] would be considered contemporaneous under NeurIPS policy, so its existence doesn't bear on any question of novelty).

The following issues are more minor:

  • It is asserted on line 279 that Rℓ(P0,P1)\mathcal{R}_\ell(P_0, P_1) is a compact, convex polytope. Ideally this should be either proved somewhere in the paper (possibly an appendix) or accompanied by a citation if it was shown in prior work.
  • The paper specifically studies non-interactive local DP, but this is never stated explicitly until the conclusion. I would prefer to see the distinction mentioned much earlier in the paper, since interactive and non-interactive LDP can behave very differently for many problems.
  • The sentence beginning on Line 44 ("The intermediate regime, where privacy and utility must genuinely be balanced—and arguably the case of greatest practical interest...") strikes me as overly negative to the point of being somewhat misleading. Firstly, because there is no argument given for why this 'intermediate regime' is of greater practical interest than the regimes studied in prior work. And secondly because it implies that privacy and utility don't need to be balanced outside of the "intermediate" regime, which is false.
  • At several points, the paper uses inequalities like 1≤ℓ≤k1 \leq \ell \leq k. As I understand it, a mechanism with ℓ=1\ell=1 would be incapable of communicating any information at all. So it might make more sense to say 1<ℓ≤k1 < \ell \leq k.

[1] Gopi, Kamath, Kulkarni, Nikolov, Wu and Zhang, Locally Private Hypothesis Selection, PMLR 2020
[2] Sheffet, Locally Private Hypothesis Testing, ICML 2018
[3] Gaboardi and Rogers, Local Private Hypothesis Testing: Chi-Square Tests, ICML 2018
[4] Acharya, Cannone, Freitag and Tyagi, Test without Trust: Optimal Locally Private Distribution Testing, AISTATS 2019
[5] Saha and Ramdas, Optimal e-variables under constraints, arXiv

Questions
  • Can the authors clarify whether there is a technical difference between the fixed-output joint range introduced on line 109 and the joint range studied by Pensia et al.?
  • The results are stated entirely in terms of distributions on finite alphabets. However, nothing about the structure of the SPR mechanism seems to fundamentally require this - even for continuous distributions, one could discretize the likelihood ratio into bins and apply randomized response to the bin label. Would it be possible to extend the characterization of optimal LDP mechanisms as instances of SPR to continuous distributions (even if the specific dynamic programming algorithm for finding them would no longer be applicable)?
  • I was a little confused by some of the motivating examples given on line 165. In what contexts would a platform want to use an LDP hypothesis testing algorithm for e.g. fraud detection or content moderation?
  • I was also confused by the final suggestion for future work on line 329. What does it mean for P0P_0 and P1P_1 to be specified through "uncertainty classes"? I assume that this is distinct from standard composite hypothesis testing, which is already mentioned earlier in the paragraph.
Limitations

Yes, although as mentioned above I would prefer to see the question of interactive vs. noninteractive LDP discussed somewhere in the introduction.

Paper formatting concerns

N/A

Final justification

The authors have addressed all of my outstanding concerns. I maintain my positive score.

Reviewer_gT3eOpenReview ↗
Rating
5
Clarity
4
Confidence
4
Originality
3
Quality
4
Significance
3
Read review
Summary

This paper studies the problem of binary LDP hypothesis testing in which the goal is to maximize an f-divergence. This captures a range of natural settings including TV distance and hockey-stick divergence. The result also extends to the setting where the number of symbols that may be transmitted through the LDP channel is limited. This is motivated by minimizing communication costs.

The work has two main technical stages.

The first and most significant part is a geometric analysis of the space of distribution pairs realizable under an LDP channel. The authors argue that this space is a compact convex polytope whose extreme points are realized by a family of staircase mechanisms they call SPR mechanisms. SPR mechanisms simply apply randomized response over groups of points with similar likelihood ratios.

To show this, the authors first argue that the extreme points of the polytope are realized by staircase mechanisms that marginally respect the ordering of the likelihood ratios. The argument involves showing that any marginal violation of the likelihood ratio order witnesses the mechanism as lying in the interior of the polytope. Next, the authors show constructively that a mechanism satisfying this condition must be a convex combination of padded SPR mechanisms. Finally, the authors show that any non-trivial convex combination of padded SPR mechanisms cannot be extremal.

The second technical piece of the paper is a dynamic programming solution to optimize over exponential-size space of SPR mechanisms. The dynamic programming solution finds the optimal partitition of the sequence of likelihood ratios by considering all numbers of blocks as well as prefixes of the domain (ordered by likelihood ratio). The key observation is that the f-divergence for a particular partition is a linear combination of contributions from each block. These may be precomputed in linear time. This approach leads to an overall O(ℓ⋅k2)O(\ell \cdot k^2) algorithm for a maximum of ℓ\ell blocks and a cubic time algorithm when the number of blocks is unconstrained.

Strengths + Weaknesses:

This work provides an efficient solution to an interesting outstanding problem in hypothesis testing under local privacy. The geometric techniques are satisfying and lead to a straightforward algorithm with reasonable time complexity. It also seems independently interesting that the class of mechanisms that group together similar likelihood ratios and apply randomized response is extremal. It is plausible that the SPR mechanisms may find other applications.

The only weakness I can see is that it is not fully clear to me how the problem of maximizing f-divergence of the induced distributions relates to the overall problem of binary hypothesis testing. I elaborate on this concern in the following two questions.

Strengths and weaknesses

This work provides an efficient solution to an interesting outstanding problem in hypothesis testing under local privacy. The geometric techniques are satisfying and lead to a straightforward algorithm with reasonable time complexity. It also seems independently interesting that the class of mechanisms that group together similar likelihood ratios and apply randomized response is extremal. It is plausible that the SPR mechanisms may find other applications.

The only weakness I can see is that it is not fully clear to me how the problem of maximizing f-divergence of the induced distributions relates to the overall problem of binary hypothesis testing. I elaborate on this concern in the following two questions.

Questions
  • Does maximizing f-divergence of channelized distributions fully capture binary hypothesis testing? The authors claim that ``A natural design objective is therefore to find LDP mechanisms that maximize an f-divergence between the privatized output distributions induced by P0 and P1.'' This is a reasonable claim but it is not clear

  • As a more specific example of this concern, how does the problem of maximizing f-divergence interact with sample complexity? For example can I view the SPR mech. as essentially an optimal preprocessing that maintains the sample complexity of binary hypothesis testing with minimal type II error for a given type I error?

  • A small comment: It's probably worth mentioning somewhere that the runtime of their algorithm is O(ell*k^2) assuming evaluating f takes O(1) time.

Limitations

Yes

Paper formatting concerns

N/A

Comments on the paper

1 comment
Meta-review

The authors study optimal design of pure locally differentially private mechanisms for binary hypothesis testing. Each observation is drawn from one of two known distributions on a finite alphabet of size, privatized by a mechanism, and then used to infer which distribution generated the data. The authors measure testing utility via ff-divergences (i.e., total variation, KL, and hockey-stick divergences) between the two induced output distributions. Previous work established structural properties of optimal mechanisms, but only yielded exponential-time algorithms. The authors prove that there exists an optimal mechanism class, Sort–Partition–Randomize (SPR), that partitions the sorted alphabet into contiguous blocks and applies randomized response to the block label.

I, the Area Chair handling this paper, am leaning toward accepting this paper.

The reviewers uniformly regard the paper as a strong technical contribution: the exact SPR structural characterization is viewed as elegant and useful, and the polynomial-time dynamic program is considered a meaningful advance over prior exponential-time approaches. The main requested clarifications concern the statistical interpretation, positioning relative to prior work, and scope of the characterization rather than its correctness.

Please address reviewer gT3e’s concern regarding how maximizing an ff-divergence translates into optimal binary hypothesis testing performance. Explain which testing criteria are captured for common choices of ff, how this objective relates to the type-I/type-II trade-off, and whether the SPR mechanism can be interpreted as optimal preprocessing for minimizing sample complexity or achieving a given testing-power target. Please also state the runtime assumption for evaluating ff. Please address reviewer iwCm’s concerns regarding prior-work attribution and scope: clarify the relationship between the fixed-output joint range and the joint range studied by Pensia et al.; cite or prove the compact-convex-polytope assertion; state prominently that the results concern non-interactive LDP; and situate the work in the broader literature on locally private hypothesis and distribution testing. A brief discussion of the contemporaneous KL-specific result would also improve positioning. Please address reviewer gyyX’s concern regarding generalization beyond binary, finite-alphabet testing, including whether any analogue of likelihood-ratio ordering may survive for multiple hypotheses or continuous distributions. It would also be useful to acknowledge more explicitly that a task-optimal SPR release may discard information needed for unrelated downstream analyses.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.