Lune

STOC2024Top-tier venue

Testing Closeness of Multivariate Distributions via Ramsey Theory

Ilias Diakonikolas, Daniel M. Kane, Sihan Liu

Abstract

We investigate the statistical task of closeness (or equivalence) testing for multidimensional distributions. Specifically, given sample access to two unknown distributions p, q on d, we want to distinguish between the case that p=q versus ||p−q||Ak > є, where ||p−q||Ak denotes the generalized Ak distance between p and q — measuring the maximum discrepancy between the distributions over any collection of k disjoint, axis-aligned rectangles. Our main result is the first closeness tester for this problem with sub-learning sample complexity in any fixed dimension and a nearly-matching sample complexity lower bound. In more detail, we provide a computationally efficient closeness tester with sample complexity O((k6/7/ polyd(є)) logd(k)). On the lower bound side, we establish a qualitatively matching sample complexity lower bound of Ω(k6/7/poly(є)), even for d=2. These sample complexity bounds are surprising because the sample complexity of the problem in the univariate setting is Θ(k4/5/poly(є)). This has the interesting consequence that the jump from one to two dimensions leads to a substantial increase in sample complexity, while increases beyond that do not. As a corollary of our general Ak tester, we obtain dTV-closeness testers for pairs of k-histograms on d over a common unknown partition, and pairs of uniform distributions supported on the union of k unknown disjoint axis-aligned rectangles. Both our algorithm and our lower bound make essential use of tools from Ramsey theory.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

4 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers4

  1. Replicable Uniformity TestingSihan Liu, Christopher YeNeurIPS 2024 · 6 citations
  2. Are Two Datasets Close Enough With Statistical Significance? A Kernel Distributional Closeness Testing ApproachZhijian Zhou, Liuhua Peng, Xunye Tian, Mingming Gong et al.ICML 2026 · 1 citation
  3. Testing Distributions against Bounded DistinguishersMark Bun, Rathin Desai, Renato Ferreira Pinto Jr.STOC 2026
  4. An Auditing Test to Detect Behavioral Shift in Language ModelsLeo Richter, Xuanli He, Pasquale Minervini, Matt J. KusnerICLR 2025

Builds on2

  1. Efficiently learning structured distributions from untrusted batchesSitan Chen, Jerry Li, Ankur MoitraSTOC 2020 · 12 citations
  2. Optimal testing of discrete distributions with high probabilityIlias Diakonikolas, Themis Gouleakis, Daniel M. Kane, John Peebles et al.STOC 2021 · 1 citation

Related papers

  1. Sequential Algorithms for Testing Closeness of DistributionsAadil Oufkir, Omar Fawzi, Nicolas Flammarion, Aurélien GarivierNeurIPS 2021 · 4 citations
  2. Replicable Distribution TestingIlias Diakonikolas, Jingyi Gao, Daniel Kane, Sihan Liu et al.NeurIPS 2025 · 3 citations
  3. Nearly-Tight Bounds for Testing Histogram DistributionsClément L. Canonne, Ilias Diakonikolas, Daniel Kane, Sihan LiuNeurIPS 2022 · 9 citations
  4. Tight Lower Bound on Equivalence Testing in Conditional Sampling ModelDiptarka Chakraborty, Sourav Chakraborty, Gunjan KumarSODA 2024 · 1 citation
  5. Testing Self-Reducible SamplersRishiraj Bhattacharyya, Sourav Chakraborty, Yash Pote, Uddalok Sarkar et al.AAAI 2024 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines