Lune

STOC2021Top-tier venue

Combinatorial Bernoulli factories: matchings, flows, and other polytopes

Rad Niazadeh, Renato Paes Leme, Jon Schneider

Abstract

A Bernoulli factory is an algorithmic procedure for exact sampling of certain random variables having only Bernoulli access to their parameters. Bernoulli access to a parameter p∈[0,1]p \in [0,1] means the algorithm does not know pp, but has sample access to independent draws of a Bernoulli random variable with mean equal to pp. In this paper, we study the problem of Bernoulli factories for polytopes: given Bernoulli access to a vector x∈Px\in \mathcal{P} for a given polytope P⊂[0,1]n\mathcal{P}\subset [0,1]^n, output a randomized vertex such that the expected value of the ii-th coordinate is exactly equal to xix_i. For example, for the special case of the perfect matching polytope, one is given Bernoulli access to the entries of a doubly stochastic matrix [xij][x_{ij}] and asked to sample a matching such that the probability of each edge (i,j)(i,j) be present in the matching is exactly equal to xijx_{ij}. We show that a polytope P\mathcal{P} admits a Bernoulli factory if and and only if P\mathcal{P} is the intersection of [0,1]n[0,1]^n with an affine subspace. Our construction is based on an algebraic formulation of the problem, involving identifying a family of Bernstein polynomials (one per vertex) that satisfy a certain algebraic identity on P\mathcal{P}. The main technical tool behind our construction is a connection between these polynomials and the geometry of zonotope tilings. We apply these results to construct an explicit factory for the perfect matching polytope. The resulting factory is deeply connected to the combinatorial enumeration of arborescences and may be of independent interest. For the kk-uniform matroid polytope, we recover a sampling procedure known in statistics as Sampford sampling.

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.

Questions to start from

Lune can draw on

the full paper · 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.

Builds on1

  1. An Efficient ∊-BIC to BIC Transformation and Its Application to Black-Box Reduction in Revenue MaximizationYang Cai, Argyris Oikonomou, Grigoris Velegkas, Mingfei ZhaoSODA 2021 · 10 citations

Related papers

  1. Fast Reconstruction of Mixtures of Bernoulli Product DistributionsSanyam Agarwal, Pranjal Dutta, Markus BläserICML 2026
  2. On the edge expansion of random polytopesAsaf Ferber, Michael Krivelevich, Marcelo Sales, Wojciech SamotijSODA 2026 · 2 citations
  3. Stochastic matching with few queries: (1-ε) approximationSoheil Behnezhad, Mahsa Derakhshan, MohammadTaghi HajiaghayiSTOC 2020 · 13 citations
  4. Poisson Sampling over Acyclic JoinsLiese Bekkers, Frank Neven, Lorrens Pantelis, Stijn VansummerenSIGMOD 2026 · 1 citation
  5. Perfect Matchings in Random Sparsifications of Dense HypergraphsJie Han, Jingwen ZhaoSODA 2026
Dusk over the sea between two cliffs drawn in fine vertical lines