Lune

FOCS2024Top-tier venue

Instance-Optimality in I/O-Efficient Sampling and Sequential Estimation

Shyam Narayanan, Václav Rozhon, Jakub Tetek, Mikkel Thorup

Abstract

Suppose we have a memory storing 0s and 1s and we want to estimate the frequency of 1s by sampling. We want to do this I/O-efficiently, exploiting that each read gives a block ofBBbits at unit cost; not just one bit. If the input consists of uniform blocks: either all 1s or all Os, then sampling a whole block at a time does not reduce the number of samples needed for estimation. On the other hand, if bits are randomly permuted, then getting a block ofBBbits is as good as gettingBBindendent bit samples. However, we do not want to make any such assumptions on the input. Instead, our goal is to have an algorithm with instance-dependent performance guarantees which stops sampling blocks as soon as we know that we have a probabilistically reliable estimate. We prove our algorithms to be instance-optimal among algorithms oblivious to the order of the blocks, which we argue is the strongest form of instance optimality we can hope for. We also present similar results for I/O-efficiently estimating mean with both additive and multiplicative error, estimating histograms, quantiles, as well as the empirical cumulative distribution function. We obtain our above results on I/O-efficient sampling by reducing to corresponding problems in the so-called sequential estimation. In this setting, one samples from an unknown distribution until one can provide an estimate with some desired error probability. Sequential estimation has been considered extensively in statistics over the past century. However, the focus has been mostly on parametric estimation, making stringent assumptions on the distribution of the input, and thus not useful for our reduction. In this paper, we make no assumptions on the input distribution (apart from its support being a bounded set). Namely, we provide non-parametric instance-optimal results for several fundamental problems: mean and quantile estimation, as well as learning mixture distributions with respect toℓ∞\ell_{\infty}and the so-called Kolmogorov-Smirnov distance. All our algorithms are simple, natural, and practical, and some are even known from other contexts, e.g., from statistics in the parameterized setting. The main technical difficulty is in analyzing them and proving that they are instance optimal.

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.

1 top-tier paper has 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 papers1

  1. Instance Dependent Testing of Samplers Using Interval ConditioningRishiraj Bhattacharyya, Sourav Chakraborty, Yash Pote, Uddalok Sarkar et al.AAAI 2026

Builds on6

  1. Towards Instance-Optimal Offline Reinforcement Learning with PessimismMing Yin, Yu-Xiang WangNeurIPS 2021 · 93 citations
  2. Instance-Optimal Compressed Sensing via Posterior SamplingAjil Jalal, Sushrut Karmalkar, Alex Dimakis, Eric PriceICML 2021 · 62 citations
  3. Instance-optimal PAC Algorithms for Contextual BanditsZhaoqi Li, Lillian J. Ratliff, Houssam Nassif, Kevin Jamieson et al.NeurIPS 2022 · 26 citations
  4. CountSketches, Feature Hashing and the Median of ThreeKasper Green Larsen, Rasmus Pagh, Jakub TetekICML 2021 · 10 citations
  5. Optimality in Mean Estimation: Beyond Worst-Case, Beyond Sub-Gaussian, and Beyond 1+α MomentsTrung Dang, Jasper C. H. Lee, Maoyuan Raymond Song, Paul ValiantNeurIPS 2023 · 9 citations

Related papers

  1. Optimality of Frequency Moment EstimationMark Braverman, Or ZamirSTOC 2025 · 7 citations
  2. Sequential Mode Estimation with Oracle QueriesDhruti Shah, Tuhinangshu Choudhury, Nikhil Karamchandani, Aditya GopalanAAAI 2020 · 7 citations
  3. Instance-Optimality for Private KL Distribution EstimationJiayuan Ye, Vitaly Feldman, Kunal TalwarNeurIPS 2025
  4. Frequency Estimation with One-Sided ErrorPiotr Indyk, Shyam Narayanan, David P. WoodruffSODA 2022 · 1 citation
  5. Non-Stochastic CDF Estimation Using Threshold QueriesPrincewill Okoroafor, Vaishnavi Gupta, Robert KleinbergSODA 2023 · 2 citations
Dusk over the sea between two cliffs drawn in fine vertical lines