Two Party Distribution Testing: Communication and Security

Alexandr Andoni, Tal Malkin, Negev Shekel Nosatzki

TL;DR

This paper introduces the study of two-party distribution testing, where Alice and Bob hold separate sets of sample data and want to test properties like closeness or independence with minimal communication. The authors demonstrate that having more samples allows parties to test distributions with dramatically less communication, prove near-matching communication lower bounds, and construct cryptographically secure protocols where neither party learns unnecessary information about the other's data.

What Problem Does This Paper Address?

In traditional distribution property testing, an algorithm has direct, centralized access to independent and identically distributed (i.i.d.) samples from one or more probability distributions. In many real-world scenarios (such as distributed sensors, federated analytics, or privacy-conscious institutions), data cannot simply be pooled in one place.

This paper investigates two fundamental testing problems in a two-party communication model:

  1. Closeness Testing ($2\text{pCT}$): Alice has $t$ samples from distribution $a$ and Bob has $t$ samples from distribution $b$ over an alphabet of size $n$. They must decide whether $a = b$ or $\|a - b\|_1 \ge \epsilon$.
  2. Independence Testing ($2\text{pIT}$): Alice and Bob hold the first and second coordinates, respectively, of $t$ joint samples drawn from $p = (a, b)$ over $[n] \times [m]$. They must determine if $a$ and $b$ are independent or $\epsilon$-far from being a product distribution.

The authors ask: Can communication scale down as the number of available samples grows beyond the minimal information-theoretic threshold? Can this be done securely so parties reveal nothing beyond the test's binary outcome?

Methods

  • Sample-to-Communication Trade-offs via $\ell_2$ Sketching: The paper leverages the "split distribution" framework to reduce $\ell_1$ distance testing to $\ell_2$ testing. For closeness testing, the authors show that when given a larger sample size $t$, one can tolerate a significantly cruder $(1 \pm \alpha)$-approximation of the $\ell_2$ distance between sample occurrence vectors ($\alpha = \Omega(t \epsilon^2 / n)$). By computing $\ell_2$ sketches (e.g., AMS sketches), the required communication decreases quadratically with $t$.
  • Domain Reduction for Independence: For independence testing, parties down-sample letters from one marginal and simulate joint draws on a smaller domain of size $[\tilde{\Theta}(n^3 m / t^3 + n^2 m / t^2 + 1)] \times [m]$, achieving efficient communication.
  • Lower Bounds via Exact Gap Hamming Distance (GHD): Communication lower bounds are notoriously difficult for distribution testing because inputs are random i.i.d. draws rather than worst-case strings. The authors design an intricate embedding reducing a variant of the two-way Exact GHD problem to closeness testing, generating Poisson-distributed sample counts that closely match true sample distributions in total variation distance.
  • Secure Distribution Testing Framework: The authors formulate a definition of secure distribution testing that allows at most 1 bit of leakage when the promise (close vs. far) is violated, but zero leakage when satisfied. Using secure circuits with Read-Only Memory (ROM) and Oblivious Transfer (OT), they compile their communication-efficient protocols into secure versions with only polylogarithmic communication overhead.

Datasets

Not discussed in the paper. As a purely theoretical work, no empirical datasets were evaluated or created.

Key Insights and Ideas

  • More Samples Yield Faster Communication: If Alice simply sends raw samples to Bob, the communication matches the sample complexity. But when $t \gg n^{2/3}$, Alice does not need to send full samples. Instead, parties can locally aggregate counts and communicate low-dimensional sketches. At the extreme where $t \gg n$, communication drops to nearly $O(1)$.
  • Quadratic Gain Over Naïve Adaptations: Adapting asymmetric single-party closeness testers would suggest a communication bound of $\tilde{O}(n / \sqrt{t})$. The authors' sketching approach achieves $\tilde{O}(n^2 / t^2)$, which is quadratically better.
  • Fundamental Barrier in Independence Testing: While closeness testing communication can approach $O(1)$ as $t \to \infty$, independence testing has an intrinsic barrier: even with infinite samples ($t \to \infty$), testing independence requires $\Omega(\sqrt{m})$ communication for one-way protocols.

Key Results

  • Closeness Testing Upper Bound: For $t \ge C \cdot k \cdot \max\{n^{2/3}\epsilon^{-4/3}, \sqrt{n}\epsilon^{-2}\}$, there is a secure protocol requiring: $$\tilde{O}_k\left(\frac{n^2}{t^2 \epsilon^4} + 1\right) \text{ bits of communication.}$$
  • Closeness Testing Lower Bound: Any two-way communication protocol distinguishing $a = b$ from $\|a - b\|_1 \ge 1/2$ requires $\tilde{\Omega}(n^2 / t^2)$ communication for $t \le n / \log^c n$, matching the upper bound up to polylogarithmic factors.
  • Independence Testing Upper Bound: For $m \le n$, there is a secure protocol communicating: $$\tilde{O}_k\left(\frac{n^2 m}{t^2 \epsilon^4} + \frac{nm}{t \epsilon^4} + \frac{\sqrt{m}}{\epsilon^3}\right) \text{ bits.}$$
  • Independence Testing Lower Bound: Any one-way protocol for $2\text{pIT}_{n,n,t,1}$ requires $\Omega(\sqrt{n})$ communication, matching the asymptotic behavior as $t \to \infty$.

Limitations and Future Work

  • Tightness of Independence Lower Bound: The lower bound for independence testing ($\Omega(\sqrt{m})$) was only established for one-way communication in the limit of unbounded samples ($t \to \infty$). Establishing a tight lower bound for two-way communication across finite sample regimes remains an open conjecture.
  • Polynomial Dependency on Security Parameter: The secure protocols rely on cryptographic primitives (OT and ROM-based garbled circuits) that introduce overhead polynomial in the security parameter $k$.
  • Distribution Restrictions: The closeness lower bound specifically requires $t \le n / \log^c n$, leaving a minor gap near the extreme regime where $t$ approaches $n$.

Summary updated

BibTeX
@inproceedings{andoni2019two,
  author = {Alexandr Andoni and Tal Malkin and Negev Shekel Nosatzki},
  title = {{Two Party Distribution Testing: Communication and Security}},
  booktitle = {ICALP},
  year = {2019},
  url = {https://openreview.net/forum?id=juwJ1qUIg7H},
}
Figure