Manuscript Offprint
arXiv:2611.01028Shared Randomness and Parallel Rounds in Permutation Sampling
Abstract
We study the shared randomness needed to sample a uniform permutation in parallel output rounds. Coordinates committed in the same round are independent conditional on the complete history and the current shared choice. Previous outputs are public; local computation and private randomness are free. We charge each shared choice by the logarithm of its conditional support size and sum these costs along the worst execution path. At every fixed round density , the optimal limiting total-variation error under any shared budget matches the conditional-marginal optimum, even with arbitrary local kernels and adaptive coordination. A fixed improvement requires linear cost. For exact sampling in rounds, the optimum is , where linearly interpolates . A protocol attaining this rate uses an initial seed and at most one further binary shared choice. When , the finite optimum is , attained by an initial seed alone. The approximate converse uses an entropy inequality for sparse injections to control overlap with the target. The exact construction reuses randomness retained in a shared label partition after the first-stage outputs are exposed.
Contents
1 Introduction
2 Model
3 Approximate sampling with sublinear sharing
4 Exact sampling
5 Consequences and open questions
References
A The approximate converse: complete proofs
B Details for exact sampling
C The conditional-marginal survival law
¹ University of Science and Technology of China
The endpoints are immediate. Sequential sampling uses rounds and no shared randomness. In one round, a product law supported on permutations has pairwise disjoint nonempty coordinate supports inside , so each support is a singleton. Exact one-round sampling therefore requires at least shared states. Between these endpoints, a retained seed and public outputs can coordinate many successive batches.
We study irrevocable parallel sampling: each round fills previously unfilled coordinates, independently conditional on the complete history and a new shared choice. This conditional-product model is used in adaptive parallel sampling, where a round commits a batch of coordinates [14, 12, 15]. We allow arbitrary local distributions, random coordinate sets, and adaptation to all earlier outputs. Deterministic computation and private randomness are unrestricted. Earlier outputs are public and can coordinate later rounds, so the shared budget measures the additional common choices supplied during generation. Fresh randomness used to select a coordinate set is part of the shared choice; a set determined by the complete history, including retained shared state, incurs no new charge.
We use the logarithm of each new shared choice's support size conditional on the complete history as an additive measure of coordination capacity. The budget is the maximum accumulated cost over all positive-probability execution paths. Each nondegenerate binary choice costs log 2, including choices with arbitrarily small Shannon entropy. A uniform six-way choice costs log 6 nats. Finite shared choices are primitive operations in the model, with arbitrary probabilities. Their support sizes determine the cost; local computation and private randomness are free.
Even a small amount of randomness can change what a sampling policy achieves. Li, Jin, and Wei [12] give a binary target for which two fair scheduling bits improve accuracy beyond every deterministic adaptive policy at the same round cap. For permutations, Wen et al. [14] identify the optimal linear-depth error of sampling independently from exact conditional marginals. We ask whether biased local kernels and a small shared budget can improve this error. A fixed permutation illustrates the coverage issue: it is a legal one-round product law with overlap with the uniform target. A lower bound must control how much of the uniform target a protocol covers, including the coverage gained by mixing over shared choices.
1.1 Results
Let on , and let be the least total-variation (TV) error attainable in at most rounds with shared cost at most . Write for the minimum shared cost of exact sampling and for its restriction to protocols whose shared randomness is all supplied initially. Section 2 gives the formal definitions. All logarithms are natural.
Approximation with sublinear sharing. The conditional-marginal sampler draws each coordinate of a batch uniformly and independently from the labels unused at the start of that batch. For an optimal schedule, its survival probability converges to the known function at round density [14].

Figure 1: Two boundaries of the resource tradeoff. Left: the optimal limiting TV error for arbitrary adaptive product kernels and every shared budget (Theorem 1.1); s is the conditional-marginal survival function of Wen et al. [14]. Right: the asymptotic exact-sampling cost per coordinate . In the shaded range, , Theorem 1.3 also gives the finite optimum.
Its limiting TV error is . For an integer such that , this function is
The adjacent formulas agree at their endpoints; for , . Appendix C gives the derivation.
Theorem 1.1 (Stability under sublinear sharing). If and , then
The conditional-marginal error is therefore optimal throughout the sublinear-budget regime, across arbitrary local kernels, value-dependent coordinate sets, and adaptive shared choices. A fixed improvement requires shared cost. A linear budget suffices even for exact sampling, so this order is sharp. For example, at , the limiting optimum is throughout the sublinear-budget regime.
Exact sampling. Let be the continuous function that is affine between consecutive reciprocal integers and satisfies for each integer .
Theorem 1.2 (Exact cost at linear depth). For every there is such that, whenever and ,
The upper bound uses a deterministic schedule and at most one shared choice after initialization, with conditional support at most two.
If , the boundary rate also suffices for vanishing TV error (Corollary 4.3).
At a reciprocal density, parallel streams use one initial partition into equal buckets. Between reciprocal points, the optimal first-order cost is attained by changing from to streams and recycling the shared randomness left at that transition. When at least half the sequential rounds are available, we can determine the finite optimum as well.
Theorem 1.3 (Exact finite cost of saving rounds). For , put . Then
An initial seed with states attains the minimum over the full adaptive class for saving rounds, independently of . The construction first fills coordinates sequentially, then uses the seed for a balanced partition of the remaining labels into two labeled size- buckets [2, 7]. It samples one label from each bucket per round.
1.2 Proof overview
Both lower bounds quantify how much of the uniform target independent local choices can cover. For approximation, we use an entropy inequality for uniform injections with coefficient , where a batch draws b labels from m available labels. Entropy duality gives a product-moment bound with an exponent close to one. The deficit of this exponent determines the contribution of shared choices. To keep it small, we split large batches while fixing their original kernels and stop after exposing all but a small fraction of the coordinates. The resulting bound controls the mixture over adaptive histories, with only a small increase in rounds.
For exact sampling, the coordinate supports in each batch must be disjoint. Maximizing their sizes over round schedules gives a private-support capacity. Its logarithm bounds the entropy supplied by private choices; the missing entropy must come from sharing. For bounded batch size and a large remaining alphabet, the leading deficit is . Convexity of this function over integer batch sizes yields adjacent sizes and determines . In the finite range , an exchange argument uses singleton rounds to eliminate batches larger than two. To attain the general rate, we change the number of parallel streams once and convert the randomness remaining in the old partition, conditional on the output prefix, into the next partition. This reuse yields the upper bound with constant overhead.
Related work. Wen et al. [14] determine optimal permutation schedules and their limiting error when each batch uses exact conditional marginals. For the same conditional-marginal sampler, Wu [15, Appendix O] shows that causal randomized schedules have the same finite optimal survival probability as fixed schedules. Li, Jin, and Wei [12, Theorem 4] exhibit binary targets for which randomized schedules outperform deterministic adaptive policies; their TV lower bound permits arbitrary within-round product kernels. In our model, a shared choice may determine both the next coordinate set and its product kernel, and its conditional support contributes to the budget along each execution. Theorem 1.1 determines the sharp permutation error for every sublinear budget in this model. Its converse controls the full output mixture, including value-dependent batches and nonuniform adaptive sharing.
Our local entropy inequality is an entropic-independence estimate [1], related to entropy factorization [3, 5]. Section 3 compares its sparse-injection coefficient with the permutation inequality of Bristiel and Caputo [4]. The passage to product moments uses the standard entropy duality [13].
Common-randomness generation is connected to product mixtures and, in the bipartite setting, nonnegative rank [11]. We retain public outputs and shared state, whereas [16] constrains live memory. Label partitions are classical in parallel permutation generation [8, 9, 2].
We establish their optimality in the finite range of Theorem 1.3 and reuse residual partition randomness at general linear depth. The conversion uses the interval method [10]; randomness recycling also appears in online random-source generation [6].
2 Model
For , let and view as a subset of . The target is uniform on , but an approximate protocol may output a word with repeated labels. We measure error in total variation and use relative entropy in the converse. For finite probability laws, write
Their overlap is . We use the usual conventions at zero and write .
Protocols. Before round , the history records every earlier shared choice and all committed coordinate positions and values. At a positive-probability history , the protocol draws a finite shared variable from a law depending on . A nonempty set of unfilled coordinates is determined by . Conditional on this state, the new values have the product law
where each kernel is an arbitrary probability distribution on . The values become public and cannot be revised. Every coordinate is filled exactly once, in at most nonempty rounds on every execution. An approximate protocol also completes executions that contain collisions, so its final law may assign positive probability to .
Shared-randomness cost. Let . The cost of a protocol is
The initial seed is charged in the first round; a deterministic choice costs zero. Branch probabilities may be nonuniform; each choice is charged by the logarithm of its support size. Past shared state is retained. Private randomness, public output feedback, and deterministic computation are free. Thus counts output rounds, while measures the support cost of new shared choices. The quantity is an integer, the largest product of conditional support sizes along a path. A protocol is static if only its initial shared choice is random; it may still adapt to public outputs.
If is the final law and the maximum number of rounds, set
Restricting the second infimum to static protocols defines . We take : sequential sampling uses no shared randomness, and a shared permutation index gives an exact one-round protocol. A visible prefix contains only the committed positions and values; the full history also contains all earlier shared choices. Conditional independence always refers to (5).
Example. Let the initial shared bit satisfy . A fresh fair shared bit is drawn exactly when , with no other new choices. The worst-path cost is ; reusing the known bit incurs no charge, since its value is already contained in the complete history.
3 Approximate sampling with sublinear sharing
The approximate converse turns a local product-moment bound into control of the overlap of an adaptive output mixture. The moment exponent determines the cost of shared branching. Refining large batches and truncating the observed execution keep that exponent close to one.
Entropy of sparse injections. Let be uniform on , and let be uniform on the ordered injections from to . For and , Lemma A.1 shows that every law on with coordinate marginals satisfies
The coefficient is one when . To see the source of the coefficient, let and set . The comparison law makes the next coordinate independent of its predecessors. Its collision probability is
The events summed in are disjoint because is injective; the inequality follows by data processing to the collision indicator. The scalar estimate from Lemma A.2 gives
Take the supporting tangent of at and sum over . Each has total error coefficient at most , so, with ,
The identity now gives (7). The full argument appears in Appendix A.1.
The dependence on is important. Uniform completion to a permutation followed by the entropy inequality of Bristiel and Caputo [4] gives the coefficient , with deficit . Equation (7) instead gives a deficit of order ; Remark A.3 records the direct comparison.
Entropy duality [13] converts (7) into the estimate used by the protocol analysis. If the nonnegative vectors have row sums at most one, then
Uniform rows attain equality. The estimate controls the fractional moment on injections for arbitrary coordinate distributions. The row-sum condition allows us to discard labels already used by the protocol. The proof is in Corollary A.4.
Refinement and truncation. The coefficient in (8) is useful when is small, whereas the protocol may choose any batch size. Fix an integer . Split each original batch into consecutive pieces of size at most , evaluating every coordinate kernel at its original pre-batch history. Thus the newly exposed values do not change the remaining kernels of that batch. Conditional independence preserves the output law. Added rounds use deterministic shared choices, so the shared cost is unchanged. The round cap becomes
Lemma A.5 proves this bound. For , stop observing after coordinates have been committed, truncating the final observed batch if necessary. Along a legal observed history, each observed batch leaves at least unused labels, so is valid throughout.
For comparison with conditional-marginal sampling, let be its optimal survival probability over deterministic batch schedules:
Set for . Let be the corresponding optimum for schedules committing exactly coordinates. Truncating and then completing a schedule by singletons gives .
Theorem 3.1 (Finite overlap bound). Let , , and be integers. Put and . For every admissible protocol with output law and at most rounds, the bound is
The bound separates the extra rounds from the shared-randomness cost. Refinement and completion replace by , while sharing contributes . Thus we need an exponent tending to one without a significant change in round density.
To prove the bound, observe the refined execution until coordinates are fixed. Let be the probability of a complete observed transcript. Each legal transcript determines a set of extending permutations with target mass . Different shared histories may determine overlapping sets. Pointwise subadditivity of the minimum gives , so we can sum over transcripts even in the presence of these overlaps.
We bound this sum by backward induction. At a legal observed history with unused labels and at most observed rounds left, use the potential . The survival recurrence and (8) control each batch. Suppose the product of future conditional support sizes is at most on every continuation. At a shared node with branches of probabilities , each child's future support sizes have product at most , and . The latter factor is canceled by the reduction from to in the induction bound . At the root, , and the factorial in cancels . This gives (9); Appendix A.2 gives the full induction, including adaptive choices of coordinate sets.
Passing to the sublinear regime. For the budget sequence in Theorem 1.1, choose with and set . Refinement and completion add rounds, while , , and . The round density therefore still tends to . Thus (9) and the survival limit imply an asymptotic overlap of at most . A maximizing fixed conditional-marginal schedule needs no shared choices and attains overlap , proving Theorem 1.1. The detailed limit argument is in Appendix A.3. The same finite inequality gives an explicit positive linear lower bound on the budget for any fixed improvement; Corollary A.6 states it, together with a matching budget order from an initial ordered partition.
4 Exact sampling
Exactness turns the overlap problem into a support problem. Every conditional product law must avoid collisions, so its coordinate supports must be disjoint. We first determine how many permutations private randomness can generate under this restriction. Shared choices must supply the gap between the resulting entropy bound and the target entropy.
4.1 Private support and an entropy converse
With labels available, the largest support size of a legal batch of size is the largest product of positive integers summing to :
Let be the largest output support size of an always-legal protocol that fills the remaining coordinates using only private randomness in at most rounds.
Lemma 4.1 (Private capacity). The boundary values are and for . For ,
An attaining protocol is uniform on a support of size and therefore has the largest possible output entropy, .
Proof. If two coordinate supports intersect, their independent draws collide with positive probability. Disjointness therefore bounds the first-batch support by , and each outcome has at most continuations. Conversely, partition the labels into balanced parts and draw independently and uniformly from them. After each outcome, use a maximizing continuation, relabeled to the remaining labels. Induction gives equally many equally likely continuations for every first-batch outcome.
Shared choices may depend on earlier outputs. We therefore account for the two sources of randomness through conditional entropy. The potential bounds the private contribution at each history, and the entropy chain rule charges shared choices as they occur.
Proposition 4.2 (Exact converse). Define . Every exact protocol using at most rounds satisfies , and hence
Proof. At a complete history with labels and rounds remaining, condition on the next shared choice. The private output entropy is at most
These potential differences telescope along each execution. Thus the expected sum of private conditional entropies is at most . The shared conditional entropies sum in expectation to at most . Pad terminated executions with deterministic symbols and apply the entropy chain rule: the transcript, which determines the output, has entropy at most . Uniformity requires output entropy . Finally, is an integer, giving the rounded bound.
4.2 The finite optimum: singletons before pairs
For , put . An optimal private schedule consists of singletons followed by pairs. To see why, first split batches until there are exactly rounds. If counts singletons and , counting coordinates gives
Thus every batch larger than two has a singleton available to help split it. Moving singletons earlier does not decrease capacity. Nor does replacing a segment of one singleton, k pairs, and a batch of size by pairs and a batch of size b-1; both u and e decrease by one. After moving all singletons to the beginning, apply this replacement to the last singleton and the first subsequent batch larger than two, with the pairs between them. The invariant persists, so the process continues until no larger batch remains. The three exchange inequalities are proved in Lemma B.1. The resulting schedule has capacity
The lower bound is attained by a balanced split [2]. Draw an initial uniform seed with states, then fill coordinates sequentially, independently of that seed, drawing each label uniformly from those unused. Use the seed to choose a uniform ordered partition of the residual labels into two labeled buckets of size , with the seed indexing the choices in the canonical order of the residual set. In each remaining round, draw independently and uniformly one unused label from each bucket. Conditional on the visible prefix and averaging over the seed, each residual permutation has probability . Together with Equations (12) and (14), this proves Theorem 1.3, including .
4.3 Why the rate uses adjacent batch sizes
For a batch define its capacity deficit . The factorials telescope, so
For bounded , . This suggests minimizing the sum of over integer batch sizes, subject to the coordinate and round constraints. The line through and lies below at every positive integer . For , summing this affine lower bound over at most rounds gives at least . Equality in this leading optimization uses only batch sizes and . At density , constant batches of size have leading cost per coordinate; mixing the adjacent sizes gives the linearly interpolated rate between reciprocal densities.
To pass from this optimization to the finite-sample bound, we control the errors uniformly over schedules. For bounded batches, the errors sum to . For large batches, the estimate already dominates the supporting line beyond a constant threshold. These estimates give
Lemma B.2 and Appendix B.3 give the uniform error calculation.
4.4 Reusing the seed between two stages
The preceding optimization suggests rounds of size q, followed by rounds of size . Within each stage, fixed label buckets permit independent sampling. At the transition, the next stage needs a different partition. Choosing it independently would leave unused the randomness still present in the initial partition. We use that remaining randomness to reduce the cost of changing stages.
Suppose , and write . Choose balanced summing to , and fix the output positions of the streams in both stages. The initial ordered partition has buckets of sizes . Let count these partitions, count those compatible with any fixed injective first-stage prefix, and count the desired second-stage partitions into buckets of size :
Balancing factorials gives . The initial seed chooses one of the partitions uniformly and includes an independent uniform index in , where . During each first-stage round, the streams independently draw one uniform remaining label from their respective buckets.
Conditional on a compatible initial partition, the probability of a first-stage prefix depends only on the bucket sizes. Each injective prefix has exactly compatible partitions, so the prefix is uniform. Conditional on the visible prefix, the compatible partition and the extra index are uniform over possibilities. Their rank is known from the complete history. This is the shared randomness available for the transition.
Because , interval conversion maps this uniform rank to a uniform choice among the new partitions, with at most two possible outcomes conditional on each source state [10]. Partition the unit interval into equal source cells and equal target cells. Each source cell is no longer than a target cell and meets at most two of them; intersection lengths give the conversion probabilities. Lemma B.3 verifies the uniform marginal. Sampling independently within the new buckets gives a uniform residual permutation. Together with the uniform prefix, this proves correctness. At every complete history the current buckets are fixed, so the within-round product law holds.
The initial support is . Since , the total cost is
The ratio is divided by this schedule's private capacity; the last inequality follows from . The additive comes from rounding and from the one binary conversion, each costing at most . Full marginal and cost calculations appear in Appendix B.5. If , one initial partition into equal buckets suffices, without conversion. This proves Theorem 1.2.
Corollary 4.3 (Vanishing error at the exact-sampling rate). If and , then .
Proof. Write and , and put
Since and , some with has . Set
Eventually, these choices satisfy . First expose batches of size by independent uniform draws from the labels unused at each batch's start. The collision probability is .
The prefix is a uniform injection given no collision. For and , the remaining adjacent-size schedule gives
On a legal prefix, the exact construction for the remaining labels thus costs at most
after a collision, finish deterministically. Every path respects the budget and round cap. The output is uniform conditional on no collision, so its TV error is at most the collision probability.
Corollary 4.4 (Static protocols at special densities). If , then
for every and every reciprocal density with integer .
Proof. For , use Theorem 1.3 and . For , put . Use streams of length and a final stream of length . Choose their ordered label partition initially and sample each stream independently without replacement. Eventually is or . The normalized stream sizes converge to entries equal to , with possibly one additional entry tending to zero. Stirling's formula and continuity of at zero show that the normalized logarithm of the partition count tends to . The matching lower bound is Theorem 1.2. This argument includes approached from either side.
5 Consequences and open questions
For , a zero-sharing conditional-marginal schedule attaining the limiting error uses pairs first and singletons last: collisions are cheaper while many labels remain. The exact construction in Theorem 1.3 uses singletons first to reduce the set that must be partitioned by the shared seed. Both schedules use pairs and singletons, placing the pair rounds at opposite ends of the execution.
For fixed round density , the remaining approximation problem is the error frontier at positive budget rates below . If and , Theorem 1.2 gives for all sufficiently large . At , Corollary 4.3 gives vanishing TV error. The finite overlap bound constrains the intermediate range , whose optimal error is open. Determining the least budget rate for TV error tending to zero would locate the transition.
It is also open whether static protocols attain at every density below . They do at reciprocal densities by Corollary 4.4, and Theorem 1.3 settles the full finite range . The two-stage construction attains the rate at the remaining densities with at most one later binary shared choice.
For other matching distributions, the two lower-bound arguments suggest studying conditional entropy inequalities and private-support capacities. The former control approximate overlap; the latter measure how many legal outputs private randomness can produce within the round cap.
References
[1] Nima Anari, Vishesh Jain, Frederic Koehler, Huy Tuan Pham, and Thuy-Duong Vuong. Entropic Independence I: Modified Log-Sobolev Inequalities for Fractionally Log-Concave Distributions and High-Temperature Ising Models. arXiv:2106.04105, 2021. https://arxiv.org/abs/2106.04105.
[2] Axel Bacher, Olivier Bodini, Alexandros Hollender, and Jérémie Lumbroso. MergeShuffle: A Very Fast, Parallel Random Permutation Algorithm. arXiv:1508.03167, 2015. https://arxiv.org/abs/1508.03167.
[3] Antonio Blanca, Pietro Caputo, Zongchen Chen, Daniel Parisi, Daniel Štefanković, and Eric Vigoda. On Mixing of Markov Chains: Coupling, Spectral Independence, and Entropy Factorization. Electronic Journal of Probability, 27:1–42, 2022. Article 142. https://doi.org/10.1214/22-EJP867.
[4] Alexandre Bristiel and Pietro Caputo. Entropy inequalities for random walks and permutations. Annales de l'Institut Henri Poincaré, Probabilités et Statistiques, 60(1):54–81, 2024. https://doi.org/10.1214/22-AIHP1267.
[5] Pietro Caputo and Justin Salez. Entropy factorization via curvature. Journal of Functional Analysis, 291(1):111498, 2026. https://doi.org/10.1016/j.jfa.2026.111498.
[6] Thomas L. Draper and Feras A. Saad. Efficient Online Random Sampling via Randomness Recycling. In Proceedings of the 2026 Annual ACM-SIAM Symposium on Discrete Algorithms, pages 2473–2511. Society for Industrial and Applied Mathematics, 2026. https://doi.org/10.1137/1.9781611978971.89.
[7] Jens Gustedt. Sublinear Communication for Integer Permutations. Research Report RR-6403, INRIA, 2007. https://hal.inria.fr/inria-00201503.
[8] Jens Gustedt. Efficient sampling of random permutations. Journal of Discrete Algorithms, 6(1):125–139, 2008. https://doi.org/10.1016/j.jda.2006.11.002.
[9] Jens Gustedt. Engineering Parallel In-Place Random Generation of Integer Permutations. In Experimental Algorithms: 7th International Workshop, WEA 2008, volume 5038 of Lecture Notes in Computer Science, pages 129–141. Springer, 2008. https://doi.org/10.1007/978-3-540-68552-4_10.
[10] Te Sun Han and Mamoru Hoshi. Interval Algorithm for Random Number Generation. IEEE Transactions on Information Theory, 43(2):599–611, 1997. https://doi.org/10.1109/18.556116.
[11] Rahul Jain, Yaoyun Shi, Zhaohui Wei, and Shengyu Zhang. Efficient protocols for generating bipartite classical distributions and quantum states. IEEE Transactions on Information Theory, 59(8):5171–5178, 2013. https://doi.org/10.1109/TIT.2013.2258372.
[12] Da Li, Bo Jin, and Xiaopeng Wei. Randomization Beyond Deterministic Adaptivity in Parallel Sampling. arXiv:2610.03335, 2026. https://arxiv.org/abs/2610.03335.
[13] Jingbo Liu, Thomas A. Courtade, Paul Cuff, and Sergio Verdú. Smoothing Brascamp-Lieb Inequalities and Strong Converses of Coding Theorems. IEEE Transactions on Information Theory, 66(2):704–721, 2020. https://doi.org/10.1109/TIT.2019.2953151.
[14] Chuling Wen, Weijie Liang, Jian Lu, and Zhouchen Lin. Serial Depth of Adaptive Parallel Sampling: Lower Bounds and Schedules for Masked Diffusion Models. arXiv:2608.25505v2, 2026. https://arxiv.org/abs/2608.25505v2.
[15] Tianyi Wu. KL Before and After Mixing: A Round-Complexity Separation in Parallel Sampling. arXiv:2610.13924, 2026. https://arxiv.org/abs/2610.13924.
[16] Zhen Zhang and Amr Alanwar. The Cost of Conservation: Coordination-Memory Laws for Exact-Support Generation. arXiv:2609.26126, 2026. https://arxiv.org/abs/2609.26126.
A The approximate converse: complete proofs
A.1 Entropy of a uniform injection
Write , let be the ordered injections from to , and let . We first state the entropy inequality underlying the local product bound.
Lemma A.1 (Entropy of an injection). Let and . Every probability law on , with coordinate marginals , satisfies
For b = 1, the inequality holds with coefficient one.
The proof uses the following estimate for the collision probability of two independent draws. It connects marginal relative entropy to the mutual information required to exclude collisions.
Lemma A.2 (A collision-probability estimate). For probability vectors on ,
Proof. Set , with its continuous value at zero. We claim that
For , the left-hand side is minimized over at . Its value there is , and
The last inequality follows from . Since , the minimum is nonnegative. Continuity covers . Average (20) with , , and to obtain (19).
Proof of Lemma A.1. Let , put , and define the total correlation and the entropy cost of exclusion by
The identity
reduces the claim to a lower bound on .
For , compare the actual law of with . Under the actual law, never equals a preceding coordinate. Under the independent comparison law, the collision probability is
The events in this sum are disjoint because the preceding tuple is injective. Also : the comparison law assigns positive probability to every positive-probability atom of the joint law, each of which is collision-free. Data processing to the collision indicator therefore gives
By Lemma A.2,
Apply the supporting tangent of at to obtain
This use of the tangent is valid even when the displayed lower bound on is negative.
After summing over i, the coefficient of in the error term is
For j < b,
Hence , and
Substitute this into (21). For b = 1, the claimed inequality is an equality.
An injection can be encoded by its row-label edges. Projection onto a uniformly selected edge identifies Lemma A.1 as an entropic-independence estimate in the terminology of Anari et al. [1]. Its useful feature for the present application is the explicit dependence on .
Remark A.3 (Comparison with completion to a permutation). The entropy inequality of Bristiel and Caputo [4, Section 4] has, for a law on , the form
Given on , complete it uniformly on the unused labels to define . Then , so
Keeping the first nonnegative marginal terms proves (18) with coefficient instead. Stirling's formula gives
For , the deficit of Lemma A.1 has smaller order.
Corollary A.4 (Product moments). Let , , and . For nonnegative vectors on with row sums at most one,
For , this holds for every . Uniform probability vectors attain equality.
Proof. For positive functions , put
By Lemma A.1 and the variational formula for relative entropy,
The last step also follows directly by comparing with the probability law proportional to . Apply the result to , whose uniform averages are at most , and multiply by . The nonnegative case follows by positive approximation and continuity. For , Jensen's inequality gives the result.
A.2 Refinement and the transcript bound
Lemma A.5 (Batch refinement). Let and be integers. Any admissible protocol using at most R rounds has a realization preserving its output law and the product of conditional support sizes on each path, with batches of size at most K and at most
rounds.
Proof. After each original shared choice and selection of coordinates, partition the chosen set deterministically into subsets of size at most K. Generate these subsets in successive rounds using their original conditional coordinate kernels. The kernels remain evaluated at the original pre-batch history, which can be recovered from the retained complete history. Conditional independence of the original batch gives exactly the same joint output law. Resume the original protocol once all its batch coordinates have been generated.
Each added round has a deterministic shared choice. Each original shared choice has the same conditioning information and conditional support as before. Thus each corresponding execution preserves the product of conditional support sizes. On a path with original batches, the refined round count is at most
The final inequality uses monotonicity in integer of .
For , define as the maximum conditional-marginal survival probability over schedules that commit exactly coordinates in at most rounds. Truncating any full schedule, splitting its final observed batch if needed, cannot decrease survival. Conversely, adding singletons to a partial schedule completes it without further survival loss. Therefore
Proof of Theorem 3.1. Apply Lemma A.5. Observe the refined execution until exactly coordinates have been recorded. If a batch crosses this threshold, record a subset of the required size, chosen deterministically before its values are sampled, and stop observation. Integrating out the other coordinates preserves the product law of the recorded subset.
Every observed batch has size and, at a legal history, leaves unused labels. In particular, and
Thus Corollary A.4 applies to each observed batch with the common exponent . For each coordinate, restrict its conditional kernel to the labels unused at the start of the batch. These restricted kernels have total mass at most one and satisfy the corollary's row-sum condition.
Let denote the complete observed transcript, including shared choices, chosen coordinate sets, and recorded values. On the original full execution space, define the subprobability measures and their masses by
These measures sum to the final output law . A legal transcript fixes distinct coordinate values, hence specifies a cylinder of target mass . An illegal transcript has no extension in . The cylinders may overlap. The pointwise inequality gives
(26)
We bound the final sum by backward induction on the observed execution tree, conditioning on the complete retained history. Set
where and for . For and , the survival recurrence is equivalent to
We claim that if future conditional support sizes have product at most , then the sum of the -powers of legal continuation probabilities is at most .
Consider a shared node with branches of positive probabilities . At each child, future conditional support sizes have product at most . For a branch with batch size , induction and Corollary A.4 bound the sum over injective batch outputs by
Including the shared-branch probabilities multiplies each such contribution by . Since , summing the branches proves the claim. At the observed execution stops, and the claim is immediate. When and , there is no successful continuation. The recurrence maximizes over all feasible batch sizes, so the argument includes value-adaptive batch sizes and coordinate sets.
At the root . Insert the induction bound into (26); the factors and cancel. This gives the first inequality in (9). The second follows from (25).
A.3 The limit and the budget required for an improvement
Complete proof of Theorem 1.1. Choose integers such that , and put
For example, works for all sufficiently large . These choices give
Thus eventually. The refined round cap satisfies
The finite bound in Theorem 3.1 is uniform over all allowed protocols. Taking the supremum of their overlaps and using the survival law in Appendix C gives
For the upper bound, use an optimal fixed conditional-marginal schedule with no sharing. On legal executions, sample each batch's coordinates independently and uniformly from the unused labels; after a collision, complete the remaining coordinates by any fixed admissible rule. Each legal permutation has probability , with all remaining mass on vectors with repeated labels. Its total variation distance from is therefore exactly , which tends to .
Corollary A.6 (A positive linear budget for a fixed improvement). Suppose , and let have output law and use at most rounds. If
then, with for integers ,
Proof. Fix and as in the statement. Apply Theorem 3.1 with .
For large , this satisfies . Then
Taking logarithms in (9) and then a limit inferior gives the corresponding term of (28). The positive part follows from , and taking the supremum is valid because the inequality holds for every fixed . Finally, continuity of allows to be chosen sufficiently large and then sufficiently small that .
An initial ordered partition shows that the budget order in Corollary A.6 is sufficient even for exact generation. Put , and choose positive integers summing to . Fix disjoint streams of output positions with these lengths. Initially choose a uniform ordered partition of into label buckets of sizes . In each round, every active stream independently draws a uniform remaining label from its bucket. Each permutation determines exactly one partition and one ordering within each bucket, so its probability is
The protocol uses at most rounds and has initial shared support . At fixed positive round density, is bounded, and therefore its shared cost is .
B Details for exact sampling
B.1 Schedule exchanges
For a schedule with remaining sizes , its private capacity product is . The following lemma justifies the canonical schedule used in Section 4.2.
Lemma B.1 (Capacity exchanges). The following changes do not decrease the capacity product:
-
replace a batch of size by batches of sizes 1, b - 1;
-
move a singleton earlier past an adjacent batch;
-
replace a segment of one singleton, k pairs, and a batch of size by pairs followed by a batch of size b-1.
The first change adds a round; the other two preserve the number of rounds. All three preserve the number of coordinates filled.
Proof. For the first change, let attain . The last parts sum to . Increase them, if needed, to a partition of . Then
For the second change, the required inequality is
Write , . If , then , and equality holds. If , the ratio is , and Equation (29) follows from .
For the third change, first establish
In a maximizing partition of , merge the two smallest parts into . The other parts sum to at least two. This is immediate for ; for , a remaining largest part of one would force . Hence , and
where the first inequality follows from . The merged partition proves Equation (30).
Suppose the segment starts with labels and put . Let be the capacity product of consecutive pairs starting with labels. The ratio of the new capacity product to the old one is
The identities and give
If , Equation (30) makes Equation (31) at least one. If , then and is even. Both the first factor in Equation (31) and equal one. This includes the smallest possible segment.
B.2 Batch deficits and the rate lower bound
Recall . A product of disjoint coordinate supports contains only injections, so . Iterating Equation (11) and telescoping the factorials gives Equation (15).
Lemma B.2 (Batch deficit estimates). For every ,
Proof. The arithmetic-geometric mean inequality gives . Also : the mean of the first entries of the decreasing list , , is at least the mean of the whole list, which is at least -1 by the integral bound . These facts prove the lower bound in Equation (33).
For the upper bound, fix and set . Writing , , gives
since the numerator minus the denominator is . As for fixed and , it follows that . Finally,
Together with , this proves Equation (34).
B.3 A uniform logarithmic remainder
We prove the lower bound in Theorem 1.2. On , the interpolation defining is
For an integer , write
Convexity of implies that the line through its values at and lies below it at every positive integer:
with equality at . Let . For , Equation (33) yields . For and , Equation (34) yields
The numbers of unused labels decrease strictly along each schedule, so these errors sum to at most , where . Once , fewer than coordinates remain. Since , the loss relative to the affine lower bound over this final portion is at most . Every schedule with therefore satisfies
With , we have . Since , the error is . Minimizing over schedules and applying Proposition 4.2 proves the lower bound.
B.4 Interval conversion and the two-stage construction
The construction uses an ordered-partition decomposition [2, 9]. The following finite interval coupling is the random-source conversion step [10].
Lemma B.3 (Finite interval conversion). If are positive integers, a uniform variable on can be mapped to a uniform variable on by a kernel with at most two positive entries in each row.
Proof. For source state j and target state s, define
This is the intersection length of a source interval of length and a target interval of length , divided by . The row sums are one. Each target interval receives total intersection length , giving probability under a uniform source. Since , a source interval meets at most two target intervals in positive length.
B.5 The construction's marginal law and cost
We complete the upper-bound proof of Theorem 1.2. Recall , , and . These integers satisfy and . First suppose . Put and choose balanced positive integers summing to ; each . Define as in Equation (16).
To verify , start from and transfer units from entries above into the last entry until all entries equal . In each transfer, the donor exceeds the recipient by at least one, so the product of factorials never increases. Hence .
Set . The initial shared state is a uniform ordered partition of into parts of sizes , together with an independent uniform index in . Its support has size . In each of the first rounds, stream draws one uniform remaining label from its part. For a compatible first-stage prefix, its probability conditional on the partition is , where
Every injective visible prefix is compatible with exactly partitions. Consequently its probability is
It is therefore uniform over the ordered injections of length . Conditional on this prefix, all compatible partitions have equal probability, and the independent index remains uniform. Enumerate these possibilities by a rank . The rank is uniform conditional on the visible prefix and is known conditional on the complete history.
Immediately before the first second-stage round, apply Lemma B.3 to . This costs at most , since the new shared choice has at most two outcomes conditional on each complete history. The target state specifies one of the ordered partitions of the remaining labels into parts of size . During the next rounds each stream samples uniformly without replacement from its part. Conditional on the visible prefix, this partition is uniform. Thus every residual permutation has probability
Together with Equation (40), this gives probability to each full permutation. At a complete history, all current parts are fixed and the new draws are independent. Retaining the earlier shared state does not change this product law. The conversion precedes an already counted output round; the schedule has exactly R nonempty rounds.
For the cost calculation, let
Within each stage, the parts remain balanced as all active streams advance. Thus is the product of the local capacities along this two-stage schedule.
Since , , and
Equation (33) bounds each batch deficit.
Summing along the schedule gives
This proves the upper bound with the asserted overhead and at most one further binary shared choice.
If , then and one initial uniform partition into parts of size suffices. Independent sequential sampling within each part gives the uniform permutation in rounds. Its cost is , and Equation (42) follows directly from Equation (33), with no interval conversion. Combining these upper bounds with Equation (37) establishes both bounds in Theorem 1.2; continuity of gives its limiting rate.
C The conditional-marginal survival law
We give the survival law of Wen et al. [14] in the form used in Theorem 1.1. The argument below evaluates the associated variational problem and verifies its agreement with discrete schedules. This is the conditional-marginal baseline; the extension to arbitrary product kernels and sublinear shared budgets is proved in Section 3.
For a fixed schedule with batch sizes , let . Its probability of producing no repeated label is . Write
Theorem C.1 (Wen et al. [14]). Suppose . Choose an integer such that , and put
Then
The formulas from adjacent values of k agree at their common endpoint. In particular, for .
C.1 The variational problem
The continuous variable represents the fraction of labels still unused. For a measurable function , define
where may be infinite. The first quantity is the round density; the second is the limiting logarithmic collision cost.
We first establish
For A > 0, the Lagrange multiplier A/2 leads to pointwise minimization of
The consecutive differences increase with j, so a minimizing integer satisfies
Choose . Resolve ties so that the resulting minimizer takes values at most . Away from thresholds, it takes the value on , with intervals clipped to . In particular, on . Each complete interval with has length , and the last interval has length . Hence
The choice of in Theorem C.1 makes this equal to ; the allowed interval for is equivalent to .
Pointwise minimization gives, for every admissible ,
If , it follows that . Thus solves the problem with the inequality constraint in (45). Direct integration yields
The sum telescopes to the expression for in (43). Adjacent formulas agree at each threshold, so is continuous on , is decreasing, and has . The optimizer has near zero, where its cost vanishes; there is no contribution from the singular factor on that interval.
C.2 Comparison with discrete schedules
The cost of a batch of size b with m unused labels is
Using , we obtain
Consequently, every batch in a schedule of total cost at most obeys
Assign a batch with the constant control on .
Its continuous cost is
The inequality and (48) give
Lower bound. Consider schedules with at most rounds and costs . Let , and retain all initial batches whose starting states satisfy . Let be the number of labels left. For large , no retained batch ends at zero: a batch with would have cost at least by (48). By (49), every retained batch has relative size at most
Build the piecewise constant control from these batches and set on . Each retained batch contributes exactly to the round density. Equation (50) therefore gives
Applying (45), for sufficiently large n, yields
Continuity of implies . This proves the required lower bound: any finite limit inferior can be considered along a subsequence of bounded costs, and an infinite limit inferior already satisfies it.
Upper bound. Fix , and let be the variational optimizer at density . Its values are bounded by a fixed integer . At a discrete state , take a batch of size , using a fixed rule at thresholds. For sufficiently large , this is feasible: states below use singletons, while every batch of size greater than one starts with a number of unused labels proportional to .
Let be the piecewise constant control of this discrete schedule. It differs from only on at most k-1 intervals of length at most k/n around the thresholds. The number of rounds is thus
for all sufficiently large n. On every batch of size greater than one,
uniformly, since and is proportional to . Summing over at most batches gives a discrepancy . The threshold intervals contribute another , and all terminal singleton batches have zero cost. The constructed schedule consequently has cost tending to .
We conclude that . Letting and using continuity proves (43); exponentiation proves (44).