Uniform contingency-table sampling with arbitrary margins
The question is whether for any nonnegative row and column margins with equal totals, an exact uniform sampler for integer contingency tables terminates almost surely and has expected bit complexity polynomial in both dimensions and the binary input length.
For every precision , a bounded-time algorithm samples a contingency table within total variation distance of uniform in time polynomial in the two dimensions, and k, where N is the common margin total. This holds for arbitrary nonnegative row and column margins of equal total.
Why it matters and what counts as progress
Why it matters: Exact sampling with binary-input polynomial expectation avoids both approximation error and an implicit unary dependence on large margins.
What counts as progress: Construct an exact uniform sampler with polynomial expected bit complexity for arbitrary feasible margins; approximate uniformity or unary dependence on totals is a weaker target.
How the problem developed
- 1998 · Sampling framework [4]
Persi Diaconis and Bernd Sturmfels Introduced Markov-basis algorithms for sampling discrete conditional distributions, including contingency tables with fixed margins. A chain with the desired stationary law does not by itself provide a polynomial-time perfect uniform sampler.
- 2000 · Approximate sampler [5]
Martin Dyer and Catherine Greenhill Proved rapid mixing for a two-row contingency-table Markov chain, yielding polynomial-time approximately uniform sampling in the number of columns and logarithm of the total count. This was approximate rather than perfect sampling, and restricted to two rows.
- 10 Apr 2003 · Restricted exact sampler [3]
Shuji Kijima and Tomomi Matsui Kijima and Matsui gave a perfect sampler for two-row contingency tables, with expected running time , where N is the total of the margins. This addressed a restricted number of rows, rather than arbitrary dimensions.
OpenAI The dated manuscript reports an exact uniform sampler for integer contingency tables with arbitrary nonnegative margins of equal total. It terminates almost surely with expected bit complexity polynomial in both dimensions and the binary input length. A rare exhaustive branch means the guarantee is not a polynomial bound on every run.
- 24 Sept 2026 · Further reported results [1]
OpenAI For every precision , a bounded-time algorithm samples a contingency table within total variation distance of uniform in time polynomial in the two dimensions, and k, where N is the common margin total. This holds for arbitrary nonnegative row and column margins of equal total.
Follow new AI contributions to this problem.
How the problem developed
AI Proof Watch
Uniform contingency-table sampling with arbitrary margins
References
- [1]Original manuscript
- [2]OpenAI mathematics release
- [3]Polynomial-Time Perfect Sampling Algorithm for Two-Rowed Contingency Tables
- [4]Algebraic algorithms for sampling from conditional distributions
- [5]Polynomial-time counting and sampling of two-rowed contingency tables
AI contribution
Exact Uniform Sampling of Contingency Tables with Arbitrary Margins
For any nonnegative row and column margins with equal totals, an exact uniform sampler for integer contingency tables terminates almost surely and has expected bit complexity polynomial in both dimensions and the binary input length. For every precision , a bounded-time algorithm samples a contingency table within total variation distance of uniform in time polynomial in the two dimensions, and k, where N is the common margin total. This holds for arbitrary nonnegative row and column margins of equal total.
Sources
- Original manuscript
- Research announcement · OpenAI mathematics release
- PDF · Polynomial-Time Perfect Sampling Algorithm for Two-Rowed Contingency Tables
- Journal article · Algebraic algorithms for sampling from conditional distributions
- Journal article · Polynomial-time counting and sampling of two-rowed contingency tables
- Repository document · Lean formalization scope
- Repository README · OpenAI: model production and verification disclosure
- Repository README · Manuscript version and checking notice
Publication history
Exact Uniform Sampling of Contingency Tables with Arbitrary Margins
OpenAI reports exact uniform sampling of contingency tables with arbitrary margins
Daily emails by default, only when there’s an update.