Manuscript Offprint
arXiv:2610.41211Random-Sign IBLTs: Calibration-Free Self-Sizing After Decoding Failure
Abstract
In a two-round set reconciliation protocol based on an Invertible Bloom Lookup Table (IBLT), the first round sends a fixed-capacity table. If an oversized difference causes decoding failure, the receiver must estimate a safe upper bound on the unknown difference size from the sum of squared counts in the difference table to size the second-round table adaptively. The standard IBLT uses each element's set direction as its accumulation sign. This couples the hypergraph-overlap bias induced by failure selection with the sign composition of the two-sided difference. A one-sided difference amplifies the estimation bias through contributions of the same sign, forcing existing schemes to rely on extensive offline simulation calibration over a grid of configurations.
We propose the random-sign IBLT. A pseudorandom sign independent of the position mapping decouples failure selection from sign composition while preserving the number and width of cell fields and the peeling recovery capability. We prove that the estimator is exactly unbiased on every fixed failed hypergraph. For large differences, we prove a Gaussian limit for the estimation error conditioned on failure and derive a closed-form Gaussian upper bound. For small differences, we characterize a discrete limit distribution dominated by duplicate edge pairs and construct a Skellam upper-bound rule whose conditional miss rate is asymptotically at most the target risk, uniformly over all without offline calibration. Five hundred million paired trials and end-to-end experiments with the real protocol spanning several orders of magnitude in load show that the random-sign IBLT eliminates direction sensitivity. For small differences, the conditional miss rate of the Gaussian upper bound exceeds the target by more than a factor of 8, whereas the Skellam upper-bound rule keeps it at or below the target level within sampling error across all 189 load configurations. The total two-round communication cost approaches that of an oracle using the true difference size in the same protocol.
1 Introduction
Many distributed systems require two network endpoints holding sets and to find their symmetric difference , the elements present on only one side. This problem is called set reconciliation. The Invertible Bloom Lookup Table (IBLT)[17, 13] is the standard data structure for this task. Each side builds a table of cells and hashes each element into the count, keySum, and checksum fields of cells. The receiver then subtracts the tables cell by cell. Shared elements contribute identical values to the same cells and cancel exactly, leaving only the contributions of the differing elements. An element present only in has direction +1, and an element present only in has direction -1. When the difference size is small enough relative to the table size (the load is below the peeling threshold), the receiver repeatedly finds a pure cell containing a single differing element and recovers all differing elements through peeling. Once exceeds the table's capacity, peeling stalls and decoding fails.
An IBLT presents a basic tension: the table size must be fixed at construction, yet the difference size remains unknown until synchronization completes. In practice, for the same pair of nodes can vary by several orders of magnitude over time. During routine synchronization, the two sides are nearly identical and is small. After recovery from a network partition or a batch write, can grow sharply. Allocating a large table for the worst case wastes bandwidth in most routine synchronizations. Allocating a small table causes decoding failure when the difference is large. The two-round protocol[32] addresses this tension. The first round sends a small table of fixed size, allowing routine small differences to complete in one round. If an oversized difference causes decoding failure, the count array of the difference table still retains the superimposed contributions of all differing elements. The receiver estimates an upper bound on from the sum of squared counts in this table. The second round allocates sufficient capacity based on and completes synchronization. The key requirement is to control the underestimate risk conditioned on failure (the conditional miss rate). If (a miss), insufficient capacity puts the second-round table at risk of another failure. An overly conservative wastes second-round bandwidth.
The method in [32] uses the count sum and the sum of squared counts in the first-round difference table to construct an unbiased estimator and obtain an upper bound by inversion. Estimating after failure is difficult because decoding failure itself selects the sample, and this selection couples with the sign composition of the set difference (the ratio of differing elements from to those from ). When we estimate with this sum-of-squares method, each element's own contribution is fixed. The estimation error comes entirely from cross terms between differing elements that fall into the same cell. The standard IBLT uses each element's set-membership direction (+1 or -1) as its accumulation sign in count. Two elements with the same direction add when they share a cell, increasing the sum of squares. Elements with opposite directions cancel. Peeling success depends on how the position mappings of differing elements to cells overlap. Conditioning on failure therefore changes the overlap distribution. Together, these effects produce systematic bias in the failure sample. For a one-sided difference, all differing elements come from the same side. This is common in one-way synchronization, for example when a replica lacks only data newly written to the primary. All cross terms then have the same sign, so the change in overlap induced by failure is amplified in the sum of squared counts, substantially biasing the estimate. In two-way synchronization where each side writes new data, the numbers of differing elements on the two sides are comparable. For this balanced difference, positive and negative cross terms largely cancel, leaving the post-failure mean estimate nearly unchanged. The bias magnitude varies continuously with the ratio of differing elements on the two sides, and its sign reverses with the number of hashes (Section 2). After decoding failure, the receiver does not know whether the difference comes from one side or both. The observed sum of squared counts therefore cannot reveal how much is due to the true and how much to the direction bias induced by failure selection. Thus, except in deep overload, the upper-bound rule for the standard IBLT in [32] relies in practice on offline simulation calibration for each configuration; its analytic bound is too conservative for small and may yield no usable quantile.
Our core insight is that separating an element's set direction from its accumulation sign removes the source of this coupling. We therefore propose the random-sign IBLT. The change is lightweight: the two sides share a random-sign hash independent of the position mapping, assigning each key a random +1 or -1. On insertion, the element's random sign multiplies its contributions to all three fields: count, keySum, and checksum.
This modification supports both decoding and estimation. Shared elements receive the same random sign in both tables and still cancel exactly after subtraction. A cell containing one unrecovered differing element has count +1 or -1. Multiplying keySum by count cancels the random sign exactly (since ) and recovers the original key. Computing the key's random sign and comparing it with count then reveals whether the key belongs to set or . Under ideal purity, the random-sign IBLT therefore peels exactly the same elements as the standard IBLT at every step. The decoding threshold, failure probability, and number and byte width of cell fields remain unchanged. For estimation, each differing element's coding coefficient in the difference table becomes an independent uniform random sign, whether the difference is one-sided or balanced. Peeling success depends only on which cells the elements select (the mapping), while cancellation of the estimation error depends on the random signs. These are independent. For every mapping selected by failure, the random signs remain independent and uniform, so their contributions cancel in expectation. Using random signs to cancel cross terms is a classical idea from the AMS sketch and CountSketch[1, 7]. We implement it in a peelable data structure, enabling one table to support both difference recovery and difference-size estimation and allowing rigorous statistical analysis of the post-failure estimator.
Main results and contributions. We prove that the random-sign IBLT preserves the standard IBLT's decoding behavior under ideal purity and that the joint distribution of the difference-table statistic and the mapping is identical for all sign compositions. Section 3 presents the encoding and peeling algorithm that achieves this decoupling. We then prove that the estimator is exactly unbiased on every fixed mapping, giving conditional mean after failure, and fully characterize the conditional distribution of the estimation error across all load scales (Sections 4 and 5). For large differences, we derive a Gaussian rule from the conditional Gaussian limit. For small differences, we characterize a discrete limit distribution and construct a Skellam rule whose conditional miss rate is asymptotically at most the target risk, uniformly over all difference sizes without offline simulation calibration. We also lift the known duplicate-pair mechanism to the distribution level: at low load, the failure-conditioned distribution is close in total variation to the planted distribution, which reduces the conditional analysis of rare failures to direct computation under the planted distribution and yields an efficient planted sampling method. The experiments (Section 6) verify that random-sign and standard encoding have identical decoding behavior. They show that the Skellam rule keeps the conditional miss rate at or below the target level within sampling error across all 189 configurations spanning several orders of magnitude in load, whereas the Gaussian rule exceeds the target by more than a factor of 8 for small differences. With this rule, the two-round protocol reliably completes synchronization at a total transmission cost close to that of an oracle using the true in the same protocol.
Structure of the paper. Section 2 introduces the standard IBLT model and analyzes its post-failure estimation bias. Section 3 presents the random-sign IBLT and the two-round protocol. Section 4 proves exact unbiasedness given the mapping and derives the Gaussian rule for large differences. Section 5 derives the discrete limit distribution for small differences and the Skellam rule for all scales. Section 6 reports the experimental evaluation. Sections 7 and 8 discuss related work, rule selection, and computational cost. The appendix contains complete proofs and supplementary experiments.
2.1 The standard IBLT and the ideal peeling model
The two sides hold sets and and seek their symmetric difference , whose size is unknown in advance. The standard IBLT consists of cells, each with three fields: count, keySum, and checksum. To insert a key , the cell hash selects distinct cells from and adds 1, , and to their respective fields. Each side builds a table, and the tables are subtracted cell by cell. Shared keys contribute identical values to the same cells in both tables, so their contributions cancel in all three fields. Only the contributions of the differing keys remain. A key present only in has direction , and a key present only in has direction . We denote the numbers of keys in the two directions by and . The ordered pair is the sign composition, and is the difference between the set sizes. We use two extreme sign compositions throughout: a one-sided difference, where all differing keys come from one side (), and a balanced difference, where both sides have the same number of differing keys (, ). Both correspond to common synchronization scenarios. A one-sided difference arises in one-way synchronization when only one side inserts or deletes entries. A balanced difference arises in two-way synchronization when each side modifies a small number of entries and the insertions and deletions roughly cancel. Practical loads usually lie between these extremes, depending on how much each side changes. Decoding proceeds by peeling. We repeatedly find a pure cell containing one unrecovered differing key, recover the key by multiplying keySum by count, verify it with the checksum, and remove its contribution from all cells it selects. Removal may make other cells pure. Peeling continues until no pure cell remains.
Under ideal purity, the decoder accepts a cell as pure exactly when it contains one unrecovered differing key. Cells with count that contain multiple differing keys are rejected by the checksum. Under this assumption, peeling success depends entirely on the mapping of differing keys to cells. View the cells as vertices and the cells selected by each differing key as a hyperedge. The difference table then corresponds to a random -uniform hypergraph: the differing keys independently and uniformly choose -subsets , with different keys allowed to choose the same subset. We denote the unsigned mapping with key labels by and the overlap between two edges by , the number of cells shared by differing keys and . On , pure cells are exactly the unsigned degree-one vertices. Peeling repeatedly deletes edges incident to these vertices. The deletion order does not affect the terminal state, which is always the hypergraph's 2-core. A nonempty 2-core causes decoding failure, denoted by event , with failure probability . Thus depends only on the unsigned mapping . When the load is below the critical value (about 0.818 for and 0.772 for [26, 12]), peeling succeeds with high probability. Rare failures arise from small cores such as duplicate edge pairs, and their probability decays polynomially in . In the critical window of width of order around , the failure probability rises from near zero to near one[11]. Above , the failure probability tends to one.
2.2 The two-round protocol and the conditional miss rate
Because the capacity must be fixed before is known, the two-round protocol[32] first sends a small table of fixed size . For a small difference, peeling succeeds in the first round. After a first-round failure, the receiver obtains an upper bound on from the difference table's count array and chooses the second-round size based on . The second round re-encodes and decodes using a fresh, independent cell hash.
Let denote the count of cell in the difference table. Following [32], we define the estimator of using the count sum and sum of squares saved before peeling begins:
and denote its unconditional standard deviation scale by :
For the standard IBLT, is exactly unbiased for and has variance for every sign composition. This expectation is unconditional: it averages over all runs, regardless of failure . If we evaluated the upper bound over all runs, adding a few standard deviations to would control the underestimate probability. In the two-round protocol, a successful first round ends the protocol immediately, without computing . Only after decoding failure (event ) does the receiver compute to size the second-round table. If , the second-round capacity falls below the prescribed margin, risking another failure. We call the event a miss and its probability conditioned on first-round failure, , the conditional miss rate. The sizing rule must therefore satisfy
where is the target risk. In deployment, we can choose 0.01 or 0.05, corresponding to a 1 % or 5 % underestimate risk.
The two-round protocol incurs a miss only when the first round fails and the upper bound underestimates . This event has joint miss rate . Controlling the conditional miss rate at bounds the joint miss rate by , both in overload, where failure is almost certain, and at low load, where it is rare. For failure samples without a miss (), the second-round table has sufficient capacity margin to decode with high probability. Section 5.5 gives the complete decomposition of the total two-round failure rate.
2.3 Failure at low load and the planted distribution
Eq. (2.3) must hold at all loads. Low load requires separate treatment. When is much smaller than , the failure probability decays polynomially in . Failure is then rare, making the distribution conditioned on difficult to analyze directly and requiring many simulated mappings for each failure sample. The structure of failure in this region is simple. Two edges with the same mapping form a duplicate edge pair. A single edge cannot form a 2-core, and two edges form a 2-core exactly when they are a duplicate edge pair. When , 2-cores with three or more edges are negligible relative to duplicate edge pairs. Failure is therefore approximately equivalent to the existence of a duplicate edge pair. Conditioning on is close to planting a duplicate edge pair in a random mapping. We thus define the planted distribution: choose a pair of keys uniformly, assign both the same uniformly random -subset, and let all remaining keys choose their mappings independently and uniformly.
Proposition 2.1 (Failure is determined by duplicate edge pairs when ). Fix and let . The failure probability is asymptotically equal to the expected number of duplicate edge pairs: . The total variation distance between the distribution of conditioned on and the planted distribution tends to zero.
Goodrich and Mitzenmacher[17] identify duplicate edge pairs as the main source of IBLT failure. The finite-length analysis of Yugawa and Wadayama[34] likewise shows that stopping sets of size 2 dominate. Proposition 2.1 extends this observation to a total variation approximation of the entire mapping for all . Lemma D.2 in Appendix D gives the quantitative error bound and proof. Proposition 2.1 supports both theory and experiments. It replaces conditioning on failure with the planted distribution, under which direct calculations are straightforward. The limit theorems in Sections 4 and 5 use this approximation to handle conditioning on failure when . The risk decomposition in Section 5.5 also uses it to estimate the first-round failure probability. For experiments, it enables direct sampling from the planted distribution, where every sample yields a failure. Section 6.1 uses this planted sampling to evaluate low-load configurations beyond the reach of direct sampling and checks its finite-size accuracy where both methods are feasible.
2.4 Post-failure bias of the standard IBLT
Controlling Eq. (2.3) is difficult because the failure event selects the mapping . This selection changes the distribution of the overlaps . At low load, failure samples mainly contain duplicate edge pairs (Proposition 2.1), whose overlap is , increasing the conditional mean of . In the critical window and at higher load, failure corresponds to mappings with large cores. Such a core is a local structure, and the direction of the change in the conditional mean of depends on , as measured by below. Statistics that depend on therefore require separate analysis after conditioning on .
In the standard IBLT, the difference-table count is , and each differing key's coding coefficient is its fixed set direction . In the sum of , the diagonal terms contribute exactly . The estimation error comes entirely from the cross terms between keys sharing cells. Excess overlap raises for same-sign pairs and lowers for opposite-sign pairs. The conditional relative bias of thus factors exactly into two terms.
Proposition 2.2 (Bias decomposition of the standard IBLT). In the standard IBLT, for any sign composition ,
The proof is in Appendix B. Since is invariant under permutations of key labels, is identical for all . The formula uses differing keys 1 and 2 as a representative pair. The factor depends only on failure selection of the mapping and measures the excess of inter-edge overlap in the failure sample over its unconditional mean . The factor depends only on the sign composition . For a one-sided difference , every intersecting edge pair has sign product +1, so . All excess overlap contributes with the same sign, fully amplifying its effect on . For a balanced difference , there are fewer same-sign pairs than opposite-sign pairs, giving a relative bias of , whose magnitude is of the one-sided value.
Figure 2.1 shows this decomposition at for five failure probabilities (0.10 to 0.90) each for and . Within each configuration, all five sign compositions share the same batch of mappings and therefore identical peeling outcomes. Since , the relative bias at each failure probability is linear in , with slope determined by . We determine from the one-sided point. The remaining predictions of Eq. (2.4) differ from the measurements by at most twice the standard error of the difference. For at failure probability 0.10, the one-sided relative bias is +0.70%, corresponding to a bias of about 0.64 standard deviations . As the failure probability increases, the failure sample approaches the full sample, weakening selection and reducing . The sign of also depends on . For , , so the one-sided failure sample is biased low, with relative bias -0.43% at failure probability 0.10 (Figure 2.1(b)). The bias changes sign with and varies with sign composition according to Eq. (2.4). A fixed correction therefore cannot offset it (Figure 6.2).
In practice, the receiver does not know in advance. The difference table's count array alone cannot reveal whether a larger observed reflects a larger true d or failure-induced bias for a one-sided difference. The upper-bound rule in [32] therefore relies on simulation calibration by load interval outside deep overload, and its analytic bound is too conservative for small M. By Eq. (2.4), the bias arises because the standard IBLT uses the set direction as the accumulation sign in count, with sign composition determining the factor that amplifies . For a balanced difference, this factor is -1, leaving a relative bias of . This suggests encoding differing keys with independent, uniform random signs so that every cross term has zero mean for each mapping, while preserving peeling's ability to recover each key's original set direction. The post-failure estimator would then be unbiased for every sign composition. We develop this idea in the random-sign IBLT in Section 3.
(a) k = 3
(b) k = 6


failure probability
0.10 0.26 0.50 0.75 0.90
Figure 2.1: Post-failure relative bias of the standard IBLT versus (). (a) . (b) . Each color denotes a failure probability. All configurations lie in the critical window: is 0.812–0.822 for and 0.633–0.639 for . Points are measurements, and lines follow Eq. (2.4).
3 The random-sign IBLT
We introduce the random-sign IBLT. The design multiplies each key by a random sign shared by both sides during insertion and deletion. The cell fields, field widths, and peeling process remain unchanged. We first give the encoding and decoding rules and prove ideal decoding equivalence with the standard IBLT and independence of the coding coefficients from the mapping. We then explain how the two-round protocol uses the lower bound to determine the second-round capacity.
3.1 Encoding rules, decoding equivalence, and sign independence
The two sides agree in advance on a sign hash independent of the cell hash. Each sign is generated directly from the key and a shared seed, requiring no per-key storage. Algorithm 3.1 gives the complete encoding and decoding procedure. The lines marked show all changes from the standard IBLT: applying the sign during insertion and deletion and recovering the direction on output. The number of cell fields, field widths, and peeling control flow remain unchanged. We describe encoding and decoding in turn.
Encoding follows lines 1–7 of Algorithm 3.1. To insert a key , we add , , and to the three fields of each of its cells. Deletion subtracts the same quantities. We accumulate keySum and checksum modulo . In the set model, these two fields also support the bitwise XOR implementation commonly used in the standard IBLT (Appendix C.1). Our analysis and experiments use the additive form. Subtracting the two tables cell by cell cancels the identical contributions of each shared key in all three fields. A differing key has coding coefficient in the difference table, where . Thus, cell in the difference table has fields
Algorithm 3.1 Encoding and decoding of the random-sign IBLT. Lines marked * differ from the standard IBLT; field arithmetic is modulo .
1: procedure INSERT(x) 2: for each cell v of x do 3: count_v ← count_v + ε(x) 4: keySum_v ← keySum_v + ε(x) x 5: checksum_v ← checksum_v + ε(x) chk(x) 6: procedure DELETE(x) 7: as in INSERT(x), subtract the same quantities from the three fields 8: procedure PEEL(difference table) 9: add cells with count ±1 to the candidate queue 10: while the candidate queue is nonempty do 11: remove cell v; if , process the next candidate 12: x ← keySum_v 13: if checksum_v = chk(x) and the cells of x include v then 14: output key x and direction 15: if the direction is +1, call DELETE(x), otherwise call INSERT(x) 16: add cells whose count becomes ±1 to the candidate queue 17: return whether all three fields of every cell are zero
We treat as iid uniform signs independent of the mapping .
Decoding follows lines 8–17 and uses the standard IBLT peeling process. A pure cell containing a single unrecovered differing key has count . Multiplying keySum by cancels the sign and yields the candidate key (line 12). Once the candidate passes the checksum and cell-membership checks (line 13), we multiply by . Since , this recovers the original set direction (line 14). We then call DELETE or INSERT according to the recovered direction (line 15). Both operations apply again in all cells of . The contribution subtracted from each field is therefore exactly the key's contribution multiplied by its coding coefficient . After each peeling step, the three fields still equal the encoded sum of the unrecovered keys. As in the standard IBLT, peeling succeeds when all three fields of every cell are zero (line 17).
Figure 3.1 compares the standard and random-sign IBLTs under the same mapping in a small one-sided example . Both encodings have the same pure cells: the degree-1 cells 1, 4, 7, and 8, shaded in the figure. All have counts in . In pure cell 4, for example, the random sign gives . Multiplying by recovers the true direction of as . The two encodings follow identical peeling processes. Their sums of squared counts differ substantially. The single-key diagonal terms sum to in both encodings. In the shared cells (cells 2, 3, 5, and 6), the standard IBLT accumulates contributions with the same sign. Each shared cell has count 2, all cross terms are positive, and . In the random-sign IBLT, contributions along solid lines cancel those along dashed lines in the shared cells. Each shared cell in this example contains exactly one positive and one negative key. All cross terms are negative, the counts cancel to 0, and . The next two propositions generalize the decoding equivalence and sign independence illustrated in Figure 3.1.
Random signs allow a degree-three cell with coding coefficients to have count +1. This cannot occur in the standard IBLT under a one-sided difference. The candidate key read from such a cell fails the checksum and cell-membership checks, so peeling skips the cell until it contains a single key. Sign cancellation thus preserves correct key deletion and the stopping condition. Proposition 3.1 formalizes this property.
(a) standard IBLT,

(b) random-sign IBLT,

Figure 3.1: The standard IBLT and the random-sign IBLT under the same mapping (, , one-sided difference ). The shaded cells have count ; in (b), solid and dashed lines correspond to and , respectively.
Proposition 3.1 (Ideal decoding equivalence). Assume that neither the pure-cell test nor the termination check makes a false decision (the checksum error event E does not occur) and that field arithmetic does not overflow. At every intermediate state, the random-sign IBLT can remove exactly the keys removable by unsigned degree-one peeling. Under the same cell hash, the random-sign and standard IBLTs therefore leave the same 2-core. The failure event F depends only on the unsigned mapping G. The decoding threshold, failure probability, and recovered result are identical to those of the standard IBLT.
Proof. We induct on the number of peeling steps. By the field invariant, every degree-one cell has count and passes the check. Ideal purity excludes cells of any other degree, so the two processes can follow the same cell-selection order. The full proof is in Appendix C.2.
In an implementation, the finite 64-bit checksum gives a nonzero false-acceptance probability. Under an ideal hash, each check of a non-pure cell falsely accepts with probability at most . Section 5.5 accounts for this term separately in the risk upper bound for the two-round protocol. Section 6.2 verifies the implemented decoding equivalence in five hundred million paired trials with real IBLTs. Table H.3 in the appendix summarizes success-failure agreement and recovery checks for each configuration. Section 6.6 reports decoding time.
Random signs retain their distribution after conditioning on failure. Failure changes the overlap distribution of the mapping, so conditioning usually changes the distribution of random variables associated with the mapping. This selection causes the standard IBLT's bias to depend on sign composition. By Proposition 3.1, failure depends only on the mapping. The signs come from a sign hash independent of the cell hash and remain iid uniform after we fix the mapping. Proposition 3.2 states this property precisely.
Proposition 3.2 (Signs are independent of the mapping). For any fixed direction vector , the coding coefficients are iid uniform signs independent of the mapping . Thus, failure is independent of the coding coefficients. Given , or even the entire , the coding coefficients remain iid uniform signs. Statistics constructed from , , and have the same joint distribution for all sign compositions .
Proof. For fixed , the map is a bijection on that preserves the uniform distribution. Since is independent of , is an iid uniform sign sequence independent of . The joint distribution of therefore does not depend on . By Proposition 3.1, is a function of , so conditioning on or preserves the distribution of the coding coefficients. By Eq. (3.1), is determined by and . Statistics constructed from , , and thus have a joint distribution independent of and identical for all .
Section 6.5 and Table H.10 in the appendix illustrate this property numerically in the protocol. For a fixed configuration and calibration factor, random-sign encoding gives similar conditional miss rates under one-sided and balanced differences. Figure 6.1 compares the post-failure distributions of the standard and random-sign encodings.
Propositions 3.1 and 3.2 underpin our analysis. Decoding success depends only on , and the estimator's randomness comes from the independent signs. We can therefore analyze the post-failure distribution by first fixing the mapping and then studying the quadratic form in iid signs on the overlap graph. The results hold for all sign compositions. The joint distribution of the coding coefficients is independent of the direction vector , so we can treat and identically in the analysis. We write both as below.
3.2 The two-round protocol flow and the lower bound
In the two-round protocol, the receiver subtracts the tables cell by cell and runs peeling on the difference table. For the standard IBLT, the count sum directly gives the deterministic lower bound . For the random-sign IBLT, depends only on the random signs and no longer encodes the set-size difference . The sender therefore attaches the set size (8 bytes) to the first-round table, allowing the receiver to compute directly.
If first-round peeling succeeds, the protocol ends immediately. After a first-round failure, the receiver computes an upper bound from the raw counts of the difference table. The computation uses only the two scalars and , which the receiver accumulates while subtracting cells one by one, and peeling can modify the difference table in place. It incorporates the known lower bound by taking (for a one-sided difference, ). The second-round table has size . We re-encode and decode using a fresh cell hash independent of the first round. Whenever , the second-round load is at most , leaving a margin below the peeling threshold. The second round therefore succeeds with high probability. The analysis applies to any constant target load below ; we use 0.8. Sections 4 and 5 analyze the post-failure distribution of the sum of squared counts and give the rule for computing .
4 Unbiased estimation after failure and the Gaussian upper bound
We use the independence of signs and mapping established in Section 3 to analyze after decoding failure and construct an upper bound for . Cancellation between random signs of different keys makes exactly unbiased for every fixed mapping (Proposition 4.1). It therefore remains unbiased even after arbitrarily rare failures. Controlling the conditional miss rate at the target risk also requires the distribution of post-failure fluctuations of around . When , the standardized estimation error converges to the standard Gaussian distribution (Theorem 4.2), yielding the Gaussian rule (Definition 4.3).
4.1 Conditional unbiasedness and conditional variance given the mapping
We expand the sum of squares and the total sum in Eq. (2.1) by key. Each differing key occupies cells and satisfies , so the diagonal contributions of the two terms sum to exactly . The estimation error consists of the cross terms between different keys:
The right-hand side is a quadratic form in the random signs. Each coefficient measures the overlap relative to its unconditional mean and depends entirely on the mapping . For the standard IBLT, the same expansion replaces the sign products with fixed values . Selection of overlaps by failure then translates directly into bias (Proposition 2.2). With random signs, each takes with equal probability even on a fixed mapping where failure occurs (Proposition 3.2). The cross terms therefore have mean zero on every mapping. Intuitively, failure selects the mapping and hence the cross-term coefficients, while each sign product remains equally likely to be positive or negative. The error remains centered at zero, while its conditional variance can change. Proposition 4.1 expresses this intuition through the conditional mean and variance given the mapping.
Proposition 4.1 (Conditional unbiasedness and conditional moments given the mapping). For every fixed mapping ,
Thus, for any mapping event of positive probability, . In particular, holds for every finite and every sign composition, even for arbitrarily rare failures. Averaging over the random mapping gives and .
Proof sketch. Given , are iid uniform signs. Taking expectations term by term in Eq. (4.1) and using proves conditional unbiasedness. The sign products for distinct unordered pairs are pairwise uncorrelated, yielding the conditional variance in Eq. (4.2). The Cauchy–Schwarz inequality gives the upper bound . The full proof is in Appendix C.3.
For a fixed mapping, is a Rademacher quadratic form with the Gram matrix of the centered incidence vectors. Its conditional mean equals the trace, and its conditional variance comes only from the off-diagonal terms. These are the same identities used by the Hutchinson trace estimator . Proposition 4.1 expresses them in terms of overlap coefficients, establishing conditional unbiasedness for any mapping event.
Figure 6.2 illustrates this unbiasedness numerically. The post-failure bias of the standard encoding changes direction with k, while the mean for the random-sign encoding stays near zero. Section 6.2 and Appendix H.5 compare conditional moments across additional configurations.
4.2 The Gaussian limit after failure when
Proposition 4.1 establishes the center of the estimator after failure. Constructing an upper bound also requires the shape of the error distribution around this center. Failure affects only through the mapping. By Eq. (4.2), the sum of squared overlaps determines the conditional error scale. Failure selects mappings with different values of this sum and may therefore change the error distribution. We standardize the error by the unconditional standard deviation :
and study the conditional distribution of X given F.
We first fix a mapping. By Eq. (4.1), the error is a weighted sum of sign products . The main contributions come from key pairs sharing a cell: the intersecting edge pairs with in . Their expected number is about . Sign products for distinct key pairs are pairwise uncorrelated, and no small set of terms dominates the sum. The number of intersecting edge pairs grows with and tends to infinity when . The error then sums many perturbations, and its distribution approaches a Gaussian. When is of the same order as
, only finitely many intersecting edge pairs contribute. The error consists of a few terms, and its distribution remains discrete. We distinguish these regimes by the scale parameter
The expected number of intersecting edge pairs is about , so plays the role of the collision scale in the birthday paradox[2, 12]. It and the load are independent parameters.
Conditioning on failure preserves the sign structure. On any mapping where failure occurs, remain iid uniform signs (Proposition 3.2). The Gaussian shape persists as long as the mapping still contains many intersecting edge pairs. This also holds for rare failures. Under a subcritical load, a typical failure is caused by a duplicate edge pair. This raises a single to k and leaves the overall structure of intersecting edge pairs almost unchanged.
Theorem 4.2 (Gaussian limit after failure). Fix and let , allowing any limiting behavior of . Then
This includes the critical window, rare failures under a fixed subcritical load, and arbitrary overload.
Proof sketch. The proof has two steps. First, we fix the mapping and take randomness only over the signs. Suppose the number of intersecting edge pairs is of the same order as , the ratio of the sum of squared overlaps to its exact mean tends to one, and each key participates in overlaps of size at most . The higher cumulants of the standardized quadratic form Eq. (4.1) then tend to zero, and the conditional distribution of converges to uniformly over such mappings. Second, we show that, conditional on , the mapping satisfies these conditions with probability tending to 1. We consider three cases according to the limit of . When has a positive finite limit, . The probability that a mapping violates the conditions is superpolynomially small and remains negligible after conditioning. When , Proposition 2.1 shows that the mapping distribution given failure is asymptotically identical to the planted distribution in TV distance. The Gaussian limit holds for the planted distribution. When , failure occurs with certainty, so the conditional and unconditional distributions coincide. The full proof is in Appendix E.
Figure 6.1 compares the distributions of for failure samples and all samples in a configuration with . For the standard encoding, we compute in the same way from its counts . With random-sign encoding, the two distributions almost coincide. With standard encoding, the failure distribution is shifted as a whole.
4.3 The Gaussian rule and its conditional miss rate
By Theorem 4.2, is approximately Gaussian after failure, with mean and standard deviation . If were known, we could set the margin using the fact that falls below with probability about . However, the scale (Eq. (2.2)) depends on the unknown . Direct substitution of would make the margin fluctuate with the observation. A low gives a small , reducing the margin precisely for samples that need a larger one. The risk analysis would then need to account for this additional error.
Test inversion is a classical method for constructing confidence sets[27]. We reverse the reasoning and test candidate values individually. For each candidate , we assume the true value is . The scale is then known, and falls below with probability about . An observation below this lower bound indicates that is too large, so we exclude . The largest remaining candidate gives the upper bound . The risk is controlled by a single event: implies that the true value is excluded. Under the true value , this exclusion has probability about . Definition 4.3 follows this construction, replacing with a more accurate quantile for finite .
Definition 4.3 (Gaussian rule). Given an observation and a target risk , we test each candidate integer as the true value, for which the scale is known. Let denote the lower u quantile of the chi-square distribution with M-1 degrees of freedom. Set the acceptance lower bound to
We accept candidate if and reject it otherwise. We set to the largest accepted candidate, returning if none is accepted.
For fixed as , converges in distribution to , which has mean 1. After centering the chi-square variable at its mean and scaling it to unit variance, its lower quantile is . Equation Eq. (4.6) uses this quantile in place of to capture skewness more accurately for finite . The two quantiles agree as . In the experimental range , , is strictly increasing for (Appendix E.5), so we can find by monotone binary search. Outside this range, we check candidates individually as specified in the definition. The rule depends only on the observation and the known parameters .
Corollary 4.4 (Conditional miss rate of the Gaussian rule). Under the conditions of Theorem 4.2, for any fixed , .
Proof sketch. We take . Theorem 4.2 and give a rejection probability of for the true candidate. The conclusion follows from . The full proof is in Appendix E.
By Corollary 4.4, the Gaussian rule has conditional miss rate asymptotically at most throughout the range of Theorem 4.2. This range includes the critical window and the overload region. Figure 6.4 shows that the Gaussian rule's miss/u approaches the target level as grows. When is of the same order as or smaller, the Gaussian approximation no longer holds, and the actual conditional miss rate exceeds . Section 5 explains this behavior and gives the Skellam rule, whose conditional miss rate is asymptotically at most uniformly over all .
5 The Skellam rule for all loads
The Gaussian rule's conditional miss rate guarantee requires . If we size the IBLT table for the expected load, d can be far below . Failure is then rare, but the two-round protocol must still use the post-failure observation to size the second-round table. In this range, the conditional miss rate of the Gaussian rule can be several times the target u (Table H.7 in the appendix).
The reason lies in the shape of the post-failure error at low load. Failure then has essentially one source: two differing keys select exactly the same cells. The duplicate edge pair itself forms a 2-core. Even after the remaining keys have been peeled, these two keys remain. Under random signs, the two keys are equally likely to have the same or opposite signs. If we place each key in the table alone, it leaves a count of in each of its cells. Together, their squared counts sum to . Dividing by gives their exact contribution of 2. With opposite signs, the counts in all shared cells cancel to 0. The entire sum of squares of disappears, leaving the estimate 2 below the true value. With equal signs, each shared cell has count and squared count 4. The sum of squares becomes , leaving the estimate 2 above the true value. This jump is equally likely to be upward or downward, and its size is independent of . The remaining keys also occasionally share a cell, almost always exactly one. Each such overlap shifts the estimate by , again with either direction equally likely. The number of such key pairs is approximately Poisson[2] and remains finite when is bounded. The post-failure error thus consists of one large jump of size 2 and several small jumps of size .
The Gaussian approximation cannot capture these two types of jumps. When is small relative to , the standard deviation of the Gaussian rule tends to zero. The downward jump of size 2 remains unchanged and lies arbitrarily many standard deviations into the Gaussian tail. The probability of rejecting the true value therefore tends to one half. When is of order one, only finitely many small jumps occur. The error still has a lattice distribution, with a visible departure from the Gaussian in the lower tail corresponding to the target risk (Appendix H.6). We construct a null distribution that retains both types of jumps and approaches the Gaussian used by the Gaussian rule as grows (Figure 5.1). The resulting Skellam rule controls the conditional miss rate for all . Appendices F and G give the full proof and numerical implementation.
5.1 The lattice-preserving test statistic
To keep these jumps exactly on lattice points, we need a discrete test statistic. The correction term in shifts its values off the lattice. We therefore use the normalized sum of squares without subtracting the mean term,
Expanding the sum of squares gives from the diagonal terms, leaving only overlap contributions to the error:
Every term on the right is an integer multiple of , so takes only integer multiples of . The expansion shows both types of jumps directly. A duplicate edge pair has and contributes exactly , or with equal probability. An edge pair sharing a single cell has and contributes .
Without the correction term, remains exactly unbiased for every mapping.
Proposition 5.1 (Conditional unbiasedness of ). For every fixed mapping , . Thus, for any mapping event with positive probability, . In particular, holds for all finite and all sign compositions, however rare the failure.
Proof. Given , is constant. By Proposition 3.2, the signs remain iid and uniform, so for . Taking expectations term by term in Eq. (5.2) gives the result.
This property also follows from the random signs. In the standard IBLT, the cross terms have fixed sign products . The same expansion gives the unconditional mean of the sum of squares as , which depends on the unknown . The correction term in removes this dependence. With random signs, the cross terms have mean zero for every mapping. The sum of squares is therefore unbiased without the correction term.
By Eq. (C.2) in Appendix C.5, is a weighted sum of and , with weights and , respectively. The latter depends only on the random signs and is the classical AMS second-moment estimator[1]. After standardization by , the difference tends to zero, so Theorem 4.2 also holds for (Appendix E).
5.2 Constructing the null distribution from the two jumps
For each candidate , we construct a reference distribution for after failure when the true value is . This is the null distribution, which we use in Section 5.4 to test each candidate. We construct it by counting the occurrences of the two types of jumps.
The large jump occurs exactly once and contributes . Its direction is determined by the sign product of the duplicate edge pair.
The small jumps come from the keys outside the duplicate edge pair. They form pairs. Each pair shares a cell with probability approximately , producing a small jump. Upward and downward jumps are equally likely, so each has expected count
Key pairs sharing a cell are sparse. By Poisson splitting, the upward and downward counts are approximately independent Pois() counts. The upward count minus the downward count gives the net number of steps and follows a Skellam distribution, denoted . Each step has size .
Adding both types of jumps to the candidate gives the null distribution.
Definition 5.2 (null distribution). For , let
where takes the values with equal probability and is independent of . We call the term and the Skellam term. For a candidate integer , we take from Eq. (5.3). The null distribution for candidate is the distribution of
with denoted by .
In Section 5.3, we prove that the post-failure distribution of approaches uniformly over all (Theorems 5.3 and 5.4).
When , fewer than two keys remain, so and the null distribution assigns probability one half to each of . In general, its mean is . Since , its variance is .
The shape of this family explains why it applies at all loads. Figure 5.1 shows how the null distribution varies with . When is small, the Skellam term is almost zero and the distribution is concentrated at . The Gaussian used by the Gaussian rule concentrates between these points, which lie beyond its tails. When , the opposite-sign and equal-sign cases each spread into a lattice distribution with spacing . These distributions overlap, but their combined shape still differs visibly from the Gaussian. As grows further, the width of the Skellam term far exceeds 2, and the term becomes a small contribution. The null distribution then approaches the Gaussian used by the Gaussian rule. This family thus connects the small- region to the region where the Gaussian rule applies. Section 5.3 gives the rigorous approximation guarantee.
5.3 The null distribution approximates the post-failure distribution at all loads
Definition 5.2 constructs the null distribution from a counting argument. To use it to test candidates, we establish that it describes the post-failure distribution of for all . The receiver does not know the load region containing and cannot use the load to select a rule. The same

Figure 5.1: Null distributions at , computed from the formula in the limit (, ). Blue and orange correspond to opposite and equal signs of the duplicate edge pair. The dashed line is the Gaussian used by the Gaussian rule.
family must therefore apply for both small and large . We analyze these two cases and then combine them.
When is of the same order as or smaller, overlaps are sparse. The model underlying consists of a duplicate edge pair and scattered single-cell overlaps among the remaining keys. The actual mapping may have additional structure: the duplicate edge pair may share a cell with a remaining key, two keys may share more than one cell, or one key may share cells with two other keys. Each case is much rarer than a single-cell overlap, and its probability tends to zero as grows. After excluding these cases, the actual mapping has exactly the structure underlying . The actual distribution is therefore close to at every lattice point (Theorem 5.3), as illustrated by the first two shapes in Figure 5.1.
When , intersecting edge pairs are numerous and interwoven, so the sparse structure above no longer applies. The null distribution still applies because both distributions approach the same Gaussian. The statistic is a sum of many small terms, each with equally likely signs, and approaches a Gaussian by Theorem 4.2. The null distribution also approaches a Gaussian, as the third shape in Figure 5.1 shows, with width matching . The two distributions differ in detail but share the same Gaussian limit. Theorem 5.4 combines these cases to give a uniform approximation over all .
Theorem 5.3 (Discrete limit distribution when is bounded). Fix and a finite constant .
(i) For , the total variation distance between the conditional distribution of given and the null distribution tends to zero uniformly and is at most
(ii) If , the conditional distribution of given converges in total variation to the distribution of , whose variance is .
(iii) The limiting distributions in (ii) satisfy
Figure 6.3 compares the lower tail of this discrete limit distribution with the Gaussian approximation, using planted samples with c ranging from 0.25 to 8. Section 6.3 also reports the distance between the empirical and limit distributions at fixed c as M grows.
Proof sketch. We prove (i) in two steps. First, we replace the actual failure with a duplicate edge pair. By Proposition 2.1, we can replace the mapping conditional on failure with the planted distribution, incurring error in the range of the theorem (Lemma D.2). Second, we exclude the three cases above from the planted mapping. Their probabilities are , , and , respectively. The remaining structure consists of a duplicate edge pair and mutually disjoint single-cell overlaps. The duplicate edge pair gives the term. By the Chen-Stein local dependence bound[2, Theorem 1], the overlap count is approximately . Independent signs split this count into two independent counts. Their difference gives the Skellam term, so is close to . The Poisson approximation has error . Since and , each of , , and is at most . Also, is at most . Combining these bounds gives Eq. (5.6). (ii) By (i), it suffices to show that converges in total variation to . When , we have . The required convergence follows from continuity in the Poisson parameter. Independence of the two terms gives . Substituting gives . (iii) As , and the Skellam term tends to zero in probability, leaving only the term of . As , and the Skellam term satisfies the CLT. The term divided by tends to zero. Appendix F.1 gives the full argument.
Theorem 5.4 (Uniform CDF approximation). Fix . The Kolmogorov distance between the conditional distribution of given F and the null distribution satisfies
Proof sketch. When , Gaussian limits let us handle a dense intersection graph without extending the matching structure. By Theorem 4.2, the conditional distribution of , standardized by , approaches the standard Gaussian. The null distribution is that of . When , the Skellam term of satisfies the CLT. The ratio of to tends to one, and the term divided by tends to zero. Both distributions approach the same continuous Gaussian CDF, so their Kolmogorov distance tends to zero. This argument applies to , a positive load ratio, and unbounded overload. We obtain uniformity by a subsequence argument. Take a subsequence along which converges. Theorem 5.3 handles finite limits, and the Gaussian argument above handles infinite limits (Appendix F.3).
The same family of null distributions therefore describes the post-failure distribution of for all . For small , the approximation holds pointwise on the lattice. For large , both distributions approach the same Gaussian. We can therefore use this family without knowing the load region. In Section 5.4, we use it to construct the Skellam rule.
5.4 The Skellam rule controls the conditional miss rate at all loads
The Skellam rule uses the test inversion of the Gaussian rule (Section 4.3), replacing the Gaussian lower tail with the lattice lower tail of . If the observation falls in the lower u tail of , candidate n is too large to be the true value, so we reject candidate n. We take U to be the largest accepted candidate.
Definition 5.5 (Skellam rule). Let be the observation and the target risk. For each candidate integer , we accept if and reject it otherwise. We define the upper bound as the supremum of all accepted candidates,
(5.8) with when the accepted candidates are unbounded.
The null distribution for candidate 2 takes only the values 0 and 4. Since , we always accept candidate 2, so . For practical table sizes, is also finite (for , suffices). We can compute it exactly by a finite search, at a cost roughly proportional to per computation (Appendix G).
The behavior of the Skellam rule at small and large loads explains why it applies throughout. Consider first small . The Skellam term is then almost zero, the error after failure comes almost entirely from the duplicate edge pair, and the observation equals or with probability one half each. The scale of the Gaussian rule tends to zero in this region, so its upper bound stays close to the observation. When the duplicate edge pair has opposite signs, the observation is , falls below , and the conditional miss rate tends to one half. The null distribution of the Skellam rule retains this structure and assigns half its mass to and half to . We accept candidate exactly when the smaller value does not exceed the observation, giving . The rule thus adds back a potentially lost large jump. With opposite signs, equals exactly; with equal signs, is about . Neither case produces a miss. Consider next large . The Skellam term then dominates and approaches the Gaussian used by the Gaussian rule, so the two rules give the same upper bound, and the Gaussian rule already controls the conditional miss rate in this region (Corollary 4.4).
Theorem 5.6 gives the main result of this section. As the table size tends to infinity, the probability that the Skellam rule underestimates after failure is asymptotically at most the target risk , uniformly over all . This guarantee holds for any sign composition. The rule uses only from the same table and the known parameters . The Gaussian rule provides this guarantee only when (Corollary 4.4). In Section 5.5, we apply this guarantee to the risk decomposition of the two-round protocol.
Theorem 5.6 (Uniform asymptotic upper bound on the conditional miss rate). Fix and . For any sign composition, the Skellam rule satisfies
Proof sketch. If the observation has distribution exactly, we reject when it falls in a lower tail with total probability at most . By the definition of the CDF, the rejection probability is at most , including for discrete distributions. The rejection region is a lower set, so the rejection probabilities under the actual distribution and differ by at most their Kolmogorov distance. A miss implies rejection of the true value: . Taking and applying Theorem 5.4 gives Eq. (5.9). By Proposition 3.2, the joint distribution of the coding coefficients is independent of the sign composition. The result therefore holds for any sign composition. Appendix F.4 gives the full proof.
Theorem 5.6 is asymptotic in the table size. Two effects arise on finite tables. First, is a lattice distribution, so the rejection region contains only whole probability masses. The actual conditional miss rate can therefore be strictly below . Second, the null distribution omits overlaps between the duplicate edge pair and the remaining keys. Each of the other keys has a cell among the cells of the pair with probability about , so these overlaps occur at a total rate of about . They can push the conditional miss rate slightly above on small tables. Section 6.4 evaluates finite-table behavior experimentally (Figures 6.4 and 6.5). At , the largest miss/u is 1.08, an excess beyond sampling error. All configurations with meet the target within sampling error. At fixed , this occurrence rate is about . The omitted overlaps become rarer as grows, and extra capacity decreases as well. When the first-round table must be small, the second-round sizing margin absorbs slight underestimation (Section 5.5). If more margin is needed, we can reduce the target load from 0.8, using a larger second-round table to lower the two-round failure rate.
5.5 From the conditional miss rate to the failure probability of the two-round protocol
We now connect the post-failure conditional miss rate to the overall success rate of two-round reconciliation. The protocol follows Section 3.2. We denote first-round failure by and second-round failure by . Let denote a checksum error: a non-pure cell passes the check, a key that passes the check lies outside the set difference, or all fields are zero at termination despite a nonempty core.
Theorem 5.7 (Two-round risk decomposition). Under the ideal hash model, let denote the probability of peeling failure for differing keys in a fresh table with cells. Then
Proof. By the union bound, it suffices to bound and separately. The upper bound is a function of the first-round counts and the set sizes. The second-round mapping is independent of it. Under ideal purity, depends only on the second-round mapping and . On and , we bound the conditional second-round failure probability by one. On , we have and the conditional second-round failure probability is . Adding the parts gives Eq. (5.10).
The first two of the four terms are the core risks. The first is a sizing error, the joint miss rate : for the Skellam rule it is asymptotically at most uniformly (Theorem 5.6), and it is zero for a one-sided difference; the Gaussian rule has a larger conditional miss rate when is bounded, but failure itself is then rare. The second is a failure of second-round peeling with sufficient capacity; the second-round load is at most , and this term decays polynomially in (Lemma D.3). The last two terms are marginal. The third is the absence of a finite upper bound: the Skellam rule never produces it when , and the Gaussian rule essentially only for or 3. The fourth is a checksum error, of order under a 64-bit checksum. Appendix F.5 gives the derivation and numerical values of each term.
As an example, take , , (, corresponding to first-round load in Section 6), , and a balanced difference. In the protocol experiments (Exp-PROTO) of Section 6.5, 19,187 of 26,667 trials fail in the first round, giving . Substituting empirical frequencies into the terms of Eq. (5.10), the Skellam rule's first term, the joint miss rate, is about (177 misses). For the second term, we use the oracle's () measured final failure rate at second-round size , about . The third term is zero, and the fourth is about by the formula in Appendix F.5, giving a total of about . The first term counts every miss as a two-round failure, whereas most misses are slight underestimates, and the second-round table sized at target load retains enough margin to succeed. At the same configuration, the measured two-round failure rates are for the Skellam rule, for the Gaussian rule, and for the oracle.
6 Experimental evaluation
The experiments address three questions. First, does random-sign encoding remove the dependence of the post-failure estimate on sign composition while preserving decoding (Section 6.2)? Second, what is the shape of the post-failure statistic's lower tail (Section 6.3), and how does this shape determine the conditional miss rate and extra capacity of the two rules at finite size (Section 6.4)? Third, when the upper bound is used in a two-round protocol on a complete IBLT, what are the reliability and communication cost (Section 6.5), what is the computational cost, and how do these results guide rule choice (Section 6.6)?
The experiments fall into two categories. The first uses only a peeling sampler, without constructing a complete IBLT, to study the distribution of the post-failure statistic. Its main component is the statistical experiments (Exp-STAT), configured as in Section 6.1; the planted-sampling control (Exp-PLANT), conditional-unbiasedness test (Exp-UNB), and worst-configuration test (Exp-WORST) verify planted sampling, conditional unbiasedness, and the configurations with the highest risk, respectively. The second category uses complete IBLTs. The protocol experiments (Exp-PROTO) run the two-round protocol, configured as in Section 6.5; the decoding-equivalence test (Exp-DEC) and computational-cost measurement (Exp-COST) verify decoding results and measure time and memory, respectively. Appendix H.1 summarizes each experiment's purpose and scale. The main conclusions are measured on failure samples, and failure probabilities vary by orders of magnitude across configurations. Before launch, a single feasibility pilot estimates each configuration's failure probability. We use these estimates to set the trial counts needed to collect enough failures, targeting about 20,000 for the statistical and protocol experiments, and use planted sampling when direct sampling is too costly (Section 6.1). We then fix configurations, seeds, stopping rules, and sample sizes, with no adjustments during the formal runs. A few figures and tables use an additional single configuration to illustrate the distribution's shape, with parameters given in the caption.
6.1 Configurations and sampling for the statistical experiments
The statistical experiments use a sampler that independently generates uniform random hyperedges and runs peeling, without constructing a complete IBLT. On each mapping, we compute for the standard encoding under one-sided and balanced differences, together with the exact integers and for the random-sign encoding. We then compute both rules' upper bounds from the same observation.
Each configuration is specified by . We describe its position along two axes: (Eq. (4.4)) and the first-round load . These axes control different effects. The parameter determines the statistical scale of the estimation error. For small , the post-failure is dominated by the offsets of a few duplicate edge pairs. For large , it approaches a continuous distribution. The load determines the position relative to the peeling phase transition: subcritical below 0.95, near the critical load from 0.95 to 1.05, and overloaded above 1.05. For fixed , the axes satisfy . Thus, changing is necessary to vary the load while keeping fixed and separating the two effects.
The statistical experiments use and . For each pair , ranges over the union of three sets: the 8 values corresponding to , the 5 values corresponding to load , and the small differences . Excluding loads above 3 leaves 189 configurations, with about 20,000 failures collected for each. Applying the same rule at gives 42 configurations, which we use separately to test the rules' limits of applicability. Figure H.1 in the appendix shows the configurations on both axes.
Planted sampling. We obtain failure samples by direct sampling or planted sampling, depending on the load. Near or above the critical load, failure is common. We generate random mappings and retain failures, obtaining samples from the true failure-conditioned distribution. At low load, the failure probability is small and direct sampling is too costly. By Proposition 2.1, when , failure is almost always caused by a pair of keys with identical mappings. We can construct such samples directly: choose a random pair of difference keys to share the same set of cells, then draw the mappings and signs of the remaining keys independently. We use direct sampling for the 84 statistical configurations with high failure rates and planted sampling for the remaining 105. The figures distinguish the two sampling methods (Appendix H.2).
The planted-sampling control (Exp-PLANT) compares the two sample types on 12 planted configurations where direct sampling remains affordable. Among directly sampled failures, the fraction caused by a duplicate edge pair ranges from 0.988 to 1.000. The KS distance for X ranges from 0.0048 to 0.0079, comparable to sampling error at this sample size, and the Skellam rule's miss/u values also agree. The planted approximation deviates only near the critical load at small M. The planted configurations in the statistical experiments lie outside this region (Appendix H.3).
6.2 Random-sign encoding removes dependence on sign composition
We verify two properties of random-sign encoding: the post-failure estimate is independent of sign composition, and decoding gives exactly the same result as the standard encoding.
Conditional bias. Under random-sign encoding, the post-failure is unbiased for every sign composition. Under the standard encoding, conditioning the mapping on failure introduces a bias in that depends on sign composition. Figure 6.1 compares three conditions on the same batch of 4 million mappings, with identical peeling outcomes in each trial. Under the standard encoding with a one-sided difference, the failure samples shift right, with mean +0.599 and KS distance 0.242 from all samples (Figure 6.1(a)). With a balanced difference, the failure samples and all samples almost coincide (Figure 6.1(b)). Under random-sign encoding, the failure samples have mean +0.001 and KS distance 0.001, almost coinciding with all samples and (Figure 6.1(c)).
(a) standard, one-sided
(b) standard, balanced
(c) random sign

Figure 6.1: under three conditions on the same batch of mappings (, , , failure rate 0.125). (a)(b) Standard encoding with one-sided and balanced differences; (c) random-sign encoding. The dashed curve is .
The standard encoding’s bias depends on both sign composition and . The horizontal axis in Figure 6.2(a) covers five sign compositions, with ranging from 0 (one-sided) to 0.5 (balanced). The solid lines for the standard encoding are near zero at the balanced point and deviate further as the difference becomes more one-sided. The direction depends on : for a one-sided difference, the bias is +0.638 at and -0.387 at (mechanism in Appendix B). The receiver knows and hence the direction of the bias. Determining the correction’s magnitude also requires , which is unknown in advance. The dashed lines for random-sign encoding remain near zero. Even with the vertical axis magnified about 40 times (Figure 6.2(b)), the five sign compositions show no discernible difference. This agrees with Proposition 3.2: the coding coefficients are iid random signs with a distribution independent of . The 84 direct-sampling configurations in the statistical experiments give the same conclusion (Appendix H.5).


Figure 6.2: Mean post-failure X versus sign composition (, failure probability about 0.1; both encodings share the same mappings for each configuration). The horizontal positions and 0.5 correspond to one-sided and balanced differences, respectively. Color indicates . (a) Standard encoding: solid lines and filled markers. Random-sign encoding: dashed lines and open markers. (b) Random-sign data from (a), with the vertical axis magnified about 40 times and error bars of two standard errors.
Decoding equivalence. Random-sign encoding preserves the set of keys recovered by decoding (Proposition 3.1) and therefore inherits the standard IBLT's threshold and failure probability. The decoding-equivalence test (Exp-DEC) verifies this in paired trials on a complete IBLT. Both encodings share the same keys and cell hash. Each trial checks the first-round outcome, every accepted key, and the final recovered set against an independent degree-one peeling reference. We observe zero disagreements in more than 500 million paired trials (Appendix H.4). Table 6.1 reports failure probabilities near the threshold. After normalizing the load by the respective , the curves for the five values of almost coincide. The transition band narrows as grows, consistent with the critical window of width of order in Section 2.
Table 6.1: First-round decoding failure probability. Columns give the load . Both encodings agree in every trial, so the values apply to both.
| 0.98 | 1 | 1.02 | 0.98 | 1 | 1.02 | 0.98 | 1 | 1.02 | ||
| 3 | 0.818 | 0.298 | 0.715 | 0.958 | 0.000 | 0.648 | 1.000 | 0.000 | 0.619 | 1.000 |
| 4 | 0.772 | 0.266 | 0.743 | 0.977 | 0.000 | 0.654 | 1.000 | 0.000 | 0.620 | 1.000 |
| 5 | 0.702 | 0.268 | 0.756 | 0.975 | 0.000 | 0.661 | 1.000 | 0.000 | 0.629 | 1.000 |
| 6 | 0.637 | 0.284 | 0.740 | 0.971 | 0.000 | 0.665 | 1.000 | 0.000 | 0.627 | 1.000 |
| 10 | 0.461 | 0.383 | 0.759 | 0.966 | 0.000 | 0.663 | 1.000 | 0.000 | 0.630 | 1.000 |
Proposition 3.1 assumes that the checksum makes no errors. In actual decoding, the checksum must reject cells of degree greater than one with count . Random-sign encoding produces such cells even with one-sided differences: a degree-three cell with coding coefficients +1, +1, -1 has count +1. All such candidates are rejected at the checksum step, with zero false acceptances. Their frequency under random-sign encoding is independent of sign composition and equals that under standard encoding with a balanced difference (Figure H.3 in the appendix). Section 6.6 reports the resulting additional decoding time.
6.3 The discrete limit distribution accurately describes the post-failure lower tail at finite size
The discrete limit distribution coincides with the empirical post-failure lower tail without fitting, allowing the finite-size risk of both rules to be read directly from the figure. Figure 6.3 uses six configurations with ranging from 0.25 to 8 at , . It shows the empirical CDF of post-failure (orange), from Theorem 5.3 (black), and (dashed), on a logarithmic vertical axis to display the lower tail. We first examine the shape and then the risks of the two rules.

Figure 6.3: Post-failure lower tail of at different (, ; 400,000 planted samples per configuration for , and 100,000 for the rest). Below each title are the KS distances from the empirical CDF to and to . The blue horizontal line marks CDF ; the blue dotted vertical line sits at the 1% quantile of and ends at the empirical CDF there.
Lower-tail shape. The black and orange curves almost coincide in all six configurations, with KS distances from the empirical CDF to of 0.003–0.005. The quantiles of thus match the true post-failure quantiles. The lower tail changes with : at small , it has only a few coarse steps; as grows, the steps become denser and approach the dashed curve. The steps arise from duplicate edge pairs. At small , failure is almost always caused by one such pair. If the edges have opposite signs, the observation is 2 below . This offset is large relative to : at , it lies at a standardized error of about , and about four tenths of the failure samples fall on this step, visible as the large step in the panel. As grows, overlap among the remaining edges contributes many offsets that fill in the steps (Appendix H.6). The KS distance to drops from 0.496 at to 0.015 at . Finite-size error decreases as grows: across , the KS distance to at drops from at most 0.034 at to at most 0.012 at (Table H.5 in the appendix).
Risk of the two rules. The horizontal line marks CDF . The horizontal coordinate where a curve meets it is that distribution's quantile. On this scale, the Gaussian rule's acceptance lower bound Eq. (4.6) is approximately the quantile of , or , where the dashed curve meets the horizontal line. A standardized error below this value causes rejection of the true . The height of the orange curve at , marked by the top of the dotted vertical line, therefore approximates the Gaussian rule's conditional miss rate. At , all three curves meet the horizontal line at the same point, and the conditional miss rate is about 1.1u. At , the orange curve has height about 0.11 at , or 11u. At , lies to the right of the large step at , and the orange curve has height about 0.49: roughly half the failure samples lead to underestimation. These readings agree with the miss/u values measured in the statistical experiments (Exp-STAT) in Section 6.4 (Table H.7 in the appendix). For candidate , the Skellam rule uses the black curve as its null distribution. Its rejection region is determined by the intersection of the black curve and the horizontal line, placing the risk near . At small , the horizontal line often crosses a vertical segment between two steps. The rule can reject only observations on the lower step and below, giving risk below and explaining its conservatism at small . Section 6.4 tests both observations across all 189 configurations.
6.4 Conditional miss rate and extra capacity at finite size
We test both rules' risk at finite table sizes and measure the extra capacity required by the upper bound. Theorem 5.6 guarantees that the Skellam rule's conditional miss rate is asymptotically at most for all . The Gaussian rule has the same guarantee only when (Corollary 4.4). The conditional miss rate is the fraction of failure samples with a miss (), reported as miss/u. Values at most 1 indicate risk within the target. Extra capacity is . We first examine all configurations in Figure 6.4, then retest those closest to the risk upper bound in Figure 6.5.
Conditional miss rate. Figure 6.4 reports miss/u for all 189 configurations of the statistical experiments (Exp-STAT). The columns correspond to the two values of ; the top and bottom rows use direct and planted sampling, respectively. At very small , failure is so rare that only planted sampling supplies samples (Section 6.1). The circles for the Skellam rule lie near the dashed line miss/u = 1 when and fall below it as decreases. Values near 1 indicate that the rule uses the risk budget without exceeding it: the maximum is 1.04, while with about 20,000 failures per configuration, the standard error of miss/u at is about 0.07. Values below 1 result from the steps in Figure 6.3: when falls between two steps, the rule can reject only the lower step and below, giving risk below . This is especially visible at , where circles in the bottom row lie on the lower boundary, indicating zero misses.
The triangles for the Gaussian rule coincide with the circles only when and rise rapidly as decreases. At , miss/u is about 8-11 at and exceeds 33 at (Table H.7 in the appendix). In the bottom row, most triangles with form a horizontal line: the miss rate stays at , or miss/u = , giving 50 and 10 in the two columns. At very small , the post-failure observation falls near or with probability one half each (Proposition F.1). The latter lies to the left of the Gaussian quantile, as illustrated by the large step at in Figure 6.3. The few triangles on the lower boundary correspond to : the observation is then below the acceptance thresholds of all candidates, so the Gaussian rule returns . This excess risk persists as table size grows, consistent with the finite limit in Theorem 5.3.

Figure 6.4: miss/u versus in the statistical experiments (–16384, about 20,000 failures per configuration; configurations with zero misses appear on the lower boundary). Top: direct sampling. Bottom: planted sampling. Circles: Skellam rule. Triangles: Gaussian rule.

Figure 6.5: Estimated miss/u for the Skellam rule with two-sided 95% intervals (Clopper–Pearson) on the Exp-WORST configurations. Configurations are ordered by load, shown in parentheses. The dashed line marks miss/u = 1.
Worst-configuration retest. About 20,000 failures per configuration in Figure 6.4 are insufficient to confirm that configurations closest to the risk upper bound also meet the target. The worst-configuration test (Exp-WORST) selects 12 such configurations using a rule fixed before sampling, covering bounded , the critical window, and overload. Independent samples provide 56,000 to 330,000 failures per configuration. Figure 6.5 orders these configurations by load from top to bottom. All 24 estimates are at most 0.99, and 22 two-sided 95% intervals lie entirely to the left of 1. The largest one-sided simultaneous confidence upper bound is 1.024u, meeting the 1.1u criterion set before sampling (Appendix H.7). The lowest-load configuration at lies farthest from 1, consistent with the conservatism at small in Figure 6.4.
Extra capacity. Controlling misses requires an upper bound above . When , extra capacity is determined by table size and decreases as , with nearly identical values for both rules: is about 2.3-2.8 times and . At , the Skellam rule's median extra capacity drops from 25% at to 2.6% at (Table H.6 in the appendix). When is bounded, itself is small, making the ratio less informative, and few extra elements are needed: at , the median is 15. In the two-round protocol, this extra capacity appears as the increase in second-round table size over the oracle (Section 6.5).
We recommend for deployment. The null distribution in Section 5 omits cells shared by the duplicate edge pair and the remaining keys. Its occurrence rate, , grows as table size decreases. At , this omission becomes nonnegligible: the Skellam rule's maximum miss/u is 1.08, beyond sampling error. At , we observe no excess in miss/u beyond sampling error. At the same , the omitted structure is more frequent than at , and median extra capacity reaches 25%.
6.5 The two-round protocol on a complete IBLT
Theorem 5.7 decomposes the two-round failure probability into two core risks, the joint miss rate and peeling failure with sufficient capacity, and two additional risks, an infinite upper bound and checksum error. We run the two-round protocol on a complete IBLT to compare the first two terms in practice, measure the random-sign IBLT's communication cost, and compare it with the existing calibration rule.
The protocol experiments (Exp-PROTO) use , first-round table sizes , and first-round loads 0.95, 1, 1.05, 1.5, 3. We test two sign compositions, one-sided (all on the side) and balanced, for a total of 120 configurations. The two sides also hold 1000 common elements. We fix each configuration's trial count in advance using a pilot estimate of the first-round failure probability. We target about 20,000 first-round failures, capped at 3,000,000 trials. Configurations with no first-round failure in the pilot receive a fixed 100,000 trials. Both values of use the same trials. After each first-round failure, we run the second round separately with table sizes determined by three upper bounds: the Skellam rule, the Gaussian rule, and an oracle using the true . Both rules use as in Section 3.2. The second-round table size is , with a fresh cell hash. All three upper bounds share the keys and hashes within each trial, allowing paired comparisons that differ only in the upper bound (implementation details in Appendix H.8).
The two-round protocol achieves reliability comparable to the oracle. In Figure 6.6(a), both rules' final failure rates fall in the same range as the oracle's, all at most 0.13% when . At , their maximum is at most the oracle's (Table H.9 in the appendix). In paired comparisons by configuration, only the configuration used in the example of Section 5.5 has a 95% paired interval excluding zero: the Skellam rule has 10 final failures and the Gaussian rule has 20. Final failures arise mainly from second-round peeling, consistent with the expected dominance of the second term in Theorem 5.7. At , after pooling configurations by , at most 6% of final failures follow a miss. The second-round table size includes a margin of , which absorbs most slight underestimates. This margin also explains why the rules perform at least as well as the oracle: their upper bounds usually exceed , yielding slightly larger second-round tables and fewer peeling failures.
Extra communication cost depends only on and decreases as . In Figure 6.6(b), configurations with different , loads, and sign compositions almost coincide at each and follow the dotted line with slope . At , the Skellam rule's increase in second-round table size over the oracle drops from 25.6% at to 2.6% at , consistent with the extra capacity in Section 6.4. In total bytes, the overhead drops from 14.6% to 1.5%.
(a) two-round failure,

(b) extra second-round capacity

Figure 6.6: Two-round protocol as first-round table size varies (120 configurations, 13.94 million trials per ). (a) Final two-round failure rate for each configuration at . Configurations with zero failures appear at 0 below the axis break. (b) Increase in second-round table size over the oracle after first-round failure, with one point per configuration. The dotted line has slope .
Figure 6.7 shows the same trend at fixed load (first-round target load 1.5, balanced, ). As table size grows, the Skellam rule's miss/u approaches 1 from below, while the Gaussian rule stays near 1. Each point in the top row pools all first-round failures for one configuration (Appendix H.7). Total byte overhead relative to the oracle drops from 16.8% at to 1.7% at and becomes negligible as table size grows.
Comparison with the existing calibration rule. Prior work [32] also sets second-round capacity from the post-failure in a standard IBLT. Because the post-failure bias depends on the unknown sign composition, it obtains a calibration factor from offline simulation. For , it groups configurations by first-round table size and takes the worst post-failure 1% quantile of over several loads and sign compositions, then sets . We use this upper bound in the same protocol, keeping all other settings identical to those for our two rules; Table H.10 in the appendix gives the complete results. Two findings emerge. First, under standard encoding, the risk of the same factor varies widely with sign composition: at loads 0.95–1.0, conditional miss rates are 0.05–0.40 for one-sided differences and 0.86–0.94 for balanced differences, an order-of-magnitude difference. This is the protocol-level consequence of the bias in Section 6.2, and the factor must be calibrated for the worst sign composition. Random-sign encoding brings both into 0.80–1.01. Second, the factor requires separate simulation calibration for each parameter configuration. The published values cover only , , and . For these parameters, the calibration rule and the Skellam rule have similar final

Figure 6.7: Two-round protocol at fixed load as table size varies (balanced, , target load 1.5). Each column corresponds to one . Top: all first-round failures pooled by configuration (331,000 to 372,000 per point). Bottom: communication overhead relative to the oracle for the same configuration.
failure rates and total byte costs. We compute the Skellam rule directly from the theoretical distribution in Section 5, without calibration for any , , load, or .
6.6 Computational cost and rule choice
Almost all computation beyond standard encoding comes from sizing with the Skellam rule. The overhead of random-sign encoding itself is negligible. With random-sign encoding, the decoder processes every difference as a balanced difference: cells containing multiple keys with count also enter the candidate queue and are then rejected by the checksum. For a one-sided difference, the number of candidates checked per recovered key therefore rises from 1.00 to 1.77 (). The resulting increase in decoding time is 1–2% of total protocol time at loads 1.0–1.05 and less than 1% at higher loads.
In deployment, sizing with the Skellam rule requires only a table lookup. The parameters are fixed, and depends only on the single observed integer . We can therefore precompute for each possible observation within a chosen range and store the results in a table indexed by the observation. After computing , the receiver retrieves directly. The results agree entry by entry with online computation (Appendix G.5). Table 6.2 reports total protocol time at , including first-round encoding and decoding, sizing, and the second round. With table lookup, each sizing takes less than 1 s, and total protocol time differs from the Gaussian rule by less than 0.5%.
When parameters vary across synchronizations, precomputation is inconvenient, or the observation exceeds the table's range, the Skellam rule computes the upper bound online. Online computation evaluates the exact CDF for each candidate, with cost growing roughly as . Total protocol time is 15–24% longer than for the Gaussian rule at loads 1.0–1.05 and 40–45% longer at load 1.5. At load 3, sizing dominates, and total time is 3.1–3.8 times that of the Gaussian rule. A receiver can cache Poisson probability tables across synchronizations to reduce this cost. Appendix H.9 gives the conditions for the computational-cost measurement (Exp-COST), table construction and verification, and per-sizing time and memory use under different cache conditions.
Table 6.2: Total protocol time per trial (ms, median of 10 repetitions; , one-sided difference). Lookup and online are two implementations of the Skellam rule; the online implementation caches Poisson probability tables between successive trials.
| Load | Skellam rule (lookup) | Skellam rule (online) | Gaussian rule | ||||||
|---|---|---|---|---|---|---|---|---|---|
| 1.0 | 11.0 | 14.0 | 15.3 | 12.7 | 16.8 | 17.7 | 11.0 | 14.0 | 15.3 |
| 1.05 | 13.1 | 15.6 | 18.2 | 16.2 | 19.4 | 21.5 | 13.1 | 15.6 | 18.2 |
| 1.5 | 14.0 | 16.7 | 19.6 | 20.1 | 24.2 | 27.6 | 14.0 | 16.7 | 19.6 |
| 3 | 18.9 | 22.4 | 25.7 | 58.8 | 85.4 | 90.1 | 18.8 | 22.3 | 25.6 |
The Gaussian rule meets the target only when . Table size alone does not exclude bounded or fixed small , so the rule is suitable only for applications whose workloads ensure this condition. The Skellam rule applies to all without knowing the load region, and with table lookup its sizing cost is no higher than that of the Gaussian rule. For deployment, we recommend the Skellam rule with (Section 6.4).
7 Related work
IBLT and set reconciliation. IBLT[17] and the invertible Bloom filter[13] list set differences by peeling. Decoding success is determined by the 2-core of a random hypergraph[26, 12, 11]. At low load, duplicate edge pairs dominate failure[17, 34], and the probability of a linear-sized core at subcritical load is exponentially small[21, 10]. Subsequent work improves the hypergraph structure[23], develops rateless codes[33, 24], adds a stash to lower the failure probability[4], or predicts and breaks the 2-core after decoding failure[15]. These works seek to reduce failure or resume decoding after failure. We read the same table after failure to determine the next-round capacity.
Estimating the difference size. A common approach to estimating is to send a separate estimator, such as the strata estimator[13], min-wise hashing[6], the odd sketch[25], or GXBits[20]. PBS[16] first estimates using independent ToW sketches, then sets capacity to a fixed multiple of the estimate. It transmits and accounts for the estimator and reconciliation structure separately. We obtain the estimate from the same counts used for decoding, avoiding a separate estimator. This reuse requires analysis conditional on decoding failure: the estimate is needed only after failure, and failure selects the mapping.
Random-sign sketches and second-moment estimation. AMS[1] estimates using a sum of random signs. CountSketch[7] supports point queries with random-sign counters. Thorup and Zhang[30] analyze its second-moment extension and give a centered second-moment estimate for a single counter array. Fast-AGMS[9] uses the same structure for distributed queries. has the same algebraic form as these estimators. Its conditional unbiasedness given the mapping also follows the structure of the Hutchinson trace estimator[18]. These sketches carry no decodable keySum and do not address the distribution conditional on decoding failure. Fischer and Nakos[14] combine hypergraph peeling and a random-sign CountSketch in a single linear sketch, with the tail norm estimated by a separate short sketch. We encode the shared random signs in the IBLT's count, keySum, and checksum. The same table supports peeling and, after failure, provides an estimate independent of the difference direction, together with a post-failure upper bound valid at all loads.
Reading the same table after failure. Prior work[32] reads count energy after first-round failure to set the second-round capacity. Its analysis models sign composition with iid signs and obtains a conditional mean equal to . Its upper-bound rule uses a chi-square approximation under deep overload and per-configuration simulation calibration at other loads, where its analytic bound is too conservative for small . We encode random signs in all three IBLT fields, making these properties hold exactly for every fixed mapping. We also derive a post-failure distribution and upper bound valid at all loads.
Conditional limits and discrete approximations. For bounded (Eq. (4.4)), we derive the limit distribution using the Chen-Stein method[2] for the Poisson approximation of sparse overlap. The Skellam distribution describes the difference between two types of counts. At low load, we replace the failure-conditioned distribution with the planted distribution, which is the distribution size-biased by the duplicate edge pair count[3]. When , we analyze the random-sign quadratic form given the mapping using the cumulant method on a dependency graph[19]. This requires only concentration bounds[31, 8] and degree control for the overlap graph. We prove a Gaussian limit uniform over deterministic coefficients using an edge-exposure martingale CLT. The upper-bound rule uses classical test inversion[27].
8 Discussion and conclusion
The random-sign IBLT uses a single table for both decoding and difference-size estimation, preserving the cells and decoding capability. The mapping alone determines decoding success, while the signs supply the estimate's randomness. This separation makes the estimate exactly unbiased for every fixed mapping and identically distributed across sign compositions. It also lets us fully characterize the post-failure distribution: Gaussian when , and discrete with a term plus a Skellam term when is bounded. One family of distributions describes all scales. Using this family as the null distribution, the Skellam rule keeps the conditional miss rate asymptotically at most the target risk, uniformly over all .
For deployment, we recommend the Skellam rule, which retains the uniform guarantee for all . When is fixed, its upper bounds can be precomputed and stored in a table, reducing sizing to a single lookup. Section 6.6 gives the guarantees and costs of the two rules. The Skellam rule meets the target within sampling error on all experimental configurations with , and we recommend for deployment (Section 6.4). Shortening the checksum to 32 bits yields narrower cells while preserving the sizing risk. The verification error probability is of order at and load at most 3 (Section 5.5). Storing counts for several independent signs per cell reduces absolute error while preserving the ratio of the post-failure conditional scale to the unconditional scale. Inversion still uses the post-failure distribution (Appendix F.6). Random-sign encoding preserves cell space overhead, and the additional decoding time is at most about 2% of total protocol time (Section 6.6).
Three questions remain for future work. First, rigorous finite-parameter tail upper bounds could reject more candidates before constructing the Poisson tables, reducing the Skellam rule's computational cost. Second, making the error constants in Theorem 5.3 and Theorem 4.2 computable would give a finite risk bound for a specified . Third, we seek to extend the method to multiset differences whose weights can exceed one. In this setting, the random-sign count gives an unbiased estimate of the difference vector's . Decoding and post-failure analysis for this extension remain to be developed.
Code and data availability
The implementation, frozen experimental configurations, summary data, and the programs that generate every figure and table are available at https://github.com/whitewum/random-sign-artifact. The source is archived at Zenodo under DOI 10.5281/zenodo.23754604, and all raw experiment records are published as assets of the repository's releases.
References
[1] Noga Alon, Yossi Matias, and Mario Szegedy. The space complexity of approximating the frequency moments. Journal of Computer and System Sciences, 58(1):137–147, 1999.
[2] Richard Arratia, Larry Goldstein, and Louis Gordon. Two moments suffice for Poisson approximations: The Chen–Stein method. Annals of Probability, 17(1):9–25, 1989.
[3] Richard Arratia, Larry Goldstein, and Fred Kochman. Size bias for one and all. Probability Surveys, 16:1–61, 2019.
[4] Djamal Belazzougui, Gregory Kucherov, and Stefan Walzer. Better space-time-robustness trade-offs for set reconciliation. In 51st International Colloquium on Automata, Languages, and Programming (ICALP), volume 297 of LIPIcs, pages 20:1–20:21, 2024.
[5] Stéphane Boucheron, Gábor Lugosi, and Pascal Massart. Concentration Inequalities: A Nonasymptotic Theory of Independence. Oxford University Press, 2013.
[6] Andrei Z. Broder, Moses Charikar, Alan M. Frieze, and Michael Mitzenmacher. Min-wise independent permutations. Journal of Computer and System Sciences, 60(3):630–659, 2000.
[7] Moses Charikar, Kevin Chen, and Martin Farach-Colton. Finding frequent items in data streams. Theoretical Computer Science, 312(1):3–15, 2004.
[8] Richard Combes. An extension of McDiarmid's inequality, 2015.
[9] Graham Cormode and Minos Garofalakis. Sketching streams through the net: Distributed approximate query tracking. In Proceedings of the 31st International Conference on Very Large Data Bases (VLDB), pages 13–24, 2005.
[10] R. W. R. Darling and J. R. Norris. Differential equation approximations for Markov chains. Probability Surveys, 5:37–79, 2008.
[11] Amir Dembo and Andrea Montanari. Finite size scaling for the core of large random hypergraphs. The Annals of Applied Probability, 18(5):1993–2040, 2008.
[12] Martin Dietzfelbinger and Stefan Walzer. Dense peelable random uniform hypergraphs. In 27th Annual European Symposium on Algorithms (ESA 2019), volume 144 of Leibniz International Proceedings in Informatics (LIPIcs), pages 38:1–38:16. Schloss Dagstuhl — Leibniz-Zentrum für Informatik, 2019.
[13] David Eppstein, Michael T. Goodrich, Frank C. Uyeda, and George Varghese. What's the difference? Efficient set reconciliation without prior context. In Proceedings of the ACM SIGCOMM 2011 Conference, pages 218–229. ACM, 2011.
[14] Nick Fischer and Vasileios Nakos. sparse recovery via weighted hypergraph peeling. In Proceedings of the 66th IEEE Annual Symposium on Foundations of Computer Science (FOCS), pages 1442–1457. IEEE, 2025.
[15] Vojtěch Gadurek and Pavel Veselý. Breaking 2-cores for invertible bloom lookup tables by structure prediction. In 24th Symposium on Experimental Algorithms (SEA), volume 371 of Leibniz International Proceedings in Informatics (LIPIcs), pages 19:1–19:24. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026.
[16] Long Gong, Ziheng Liu, Liang Liu, Jun Xu, Mitsunori Ogihara, and Tong Yang. Space- and computationally-efficient set reconciliation via parity bitmap sketch (PBS). Proceedings of the VLDB Endowment, 14(4):458–470, 2021.
[17] Michael T. Goodrich and Michael Mitzenmacher. Invertible bloom lookup tables. In 49th Annual Allerton Conference on Communication, Control, and Computing (Allerton), pages 792–799. IEEE, 2011.
[18] M. F. Hutchinson. A stochastic estimator of the trace of the influence matrix for Laplacian smoothing splines. Communications in Statistics – Simulation and Computation, 19(2):433–450, 1990.
[19] Svante Janson. Normal convergence by higher semi-invariants with applications to sums of dependent random variables and random graphs. The Annals of Probability, 16(1):305–312, 1988.
[20] Peng Jia, Pinghui Wang, Rundong Li, Junzhou Zhao, Junlan Feng, Xidian Wang, and Xiaohong Guan. A compact and accurate sketch for estimating a large range of set difference cardinalities. In Proceedings of the 40th IEEE International Conference on Data Engineering (ICDE), pages 1338–1351. IEEE, 2024.
[21] Jeong Han Kim. Poisson cloning model for random graphs, 2008.
[22] B. Laurent and P. Massart. Adaptive estimation of a quadratic functional by model selection. The Annals of Statistics, 28(5):1302–1338, 2000.
[23] Francisco Lázaro and Balázs Matuz. Irregular invertible bloom look-up tables. In 11th International Symposium on Topics in Coding (ISTC), pages 1–5. IEEE, 2021.
[24] Francisco Lázaro and Balázs Matuz. A rate-compatible solution to the set reconciliation problem. IEEE Transactions on Communications, 71(10):5769–5782, 2023.
[25] Michael Mitzenmacher, Rasmus Pagh, and Ninh Pham. Efficient estimation for high similarities using odd sketches. In Proceedings of the 23rd International Conference on World Wide Web (WWW), pages 109–118, 2014.
[26] Michael Molloy. Cores in random hypergraphs and boolean formulas. Random Structures & Algorithms, 27(1):124–135, 2005.
[27] Jerzy Neyman. Outline of a theory of statistical estimation based on the classical theory of probability. Philosophical Transactions of the Royal Society of London. Series A, 236(767):333–380, 1937.
[28] Thomas J. Richardson and Rüdiger L. Urbanke. The capacity of low-density parity-check codes under message-passing decoding. IEEE Transactions on Information Theory, 47(2):599–618, 2001.
[29] Haskell P. Rosenthal. On the subspaces of () spanned by sequences of independent random variables. Israel Journal of Mathematics, 8(3):273–303, 1970.
[30] Mikkel Thorup and Yin Zhang. Tabulation based 4-universal hashing with applications to second moment estimation. In Proceedings of the Fifteenth Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 615–624, 2004.
[31] Lutz Warnke. On the method of typical bounded differences. Combinatorics, Probability and Computing, 25(2):269–299, 2016.
[32] Min Wu, Ji Qi, Zhengsheng Ye, Chengdui Luo, Shudong Lu, and Zhengyang Wei. IBLTs measure before they decode: Self-sizing set reconciliation for database consistency verification, 2026.
[33] Lei Yang, Yossi Gilad, and Mohammad Alizadeh. Practical rateless set reconciliation. In Proceedings of the ACM SIGCOMM 2024 Conference, pages 595–612. ACM, 2024.
[34] Daichi Yugawa and Tadashi Wadayama. Finite length analysis on listing failure probability of invertible bloom lookup tables, 2014.
A Notation
We collect the notation used in the main text and principal proofs, ordered by section for reference. We suppress dependence on except when comparing quantities across scales. We fix and let . A subscript denotes a constant depending only on . The symbol denotes convergence in distribution. As in Section 3, we write the coding coefficient as throughout.
B Post-failure bias of the standard IBLT
We prove Proposition 2.2 and verify it numerically.
In the standard IBLT, the count is , with the set direction as the coefficient. Expanding gives
Failure changes the overlap distribution. Overlap between same-sign pairs raises , whereas overlap between opposite-sign pairs lowers . This yields Proposition 2.2.
Proof of Proposition 2.2. By Eq. (B.1),
The event depends only on the unsigned mapping and is invariant under permutations of the key labels. Since the random mapping is exchangeable in the labels, is the same for all and equals . The number of same-sign pairs minus the number of opposite-sign pairs is . Substituting gives , and dividing by yields Eq. (2.4). The proof uses only these two properties of , so it holds for any event that depends only on the unsigned mapping, is invariant under label permutation, and has positive probability.
Table A.1: Principal notation: model, encoding, and measurement.
| Notation | Meaning |
|---|---|
| Model and peeling | |
| sets held by the two sides; and are the set sizes | |
| number of cells; number of cells in the first-round table | |
| number of cells selected by each key | |
| key; the -th differing key | |
| checksum of key | |
| difference size | |
| numbers of keys in only and in only, respectively | |
| difference between the two set sizes, | |
| the -subset selected by key | |
| unsigned mapping with key labels | |
| overlap of two edges | |
| peeling failure on a single table; is the failure probability | |
| peeling failure in the first and second rounds | |
| checksum misjudgment event | |
| peeling threshold (about 0.818 for and 0.772 for ) | |
| Encoding and measurement | |
| set direction of key , taking values | |
| universe of keys; sign hash shared by the two sides | |
| random sign of key ; in the analysis the coding coefficient is written as | |
| count of cell , (in the standard encoding, ) | |
| estimator of , see Eq. (2.1); used by the Gaussian rule | |
| standardization scale , see Eq. (2.2) | |
| standardized estimation error , see Eq. (4.3) | |
| estimator of , , see Eq. (5.1); used by the Skellam rule | |
| normalized excess of the overlap over its unconditional mean in the failure sample, see Eq. (2.4) | |
| CDF and distribution of the standard Gaussian, respectively | |
Table A.2: Principal notation: inversion, protocol, and proofs.
| Notation | Meaning |
|---|---|
| Inversion and protocol | |
| target risk, taken as 0.01 and 0.05 in the experiments | |
| candidate difference size, an integer | |
| upper bound on given by the selected rule; after enforcing the lower bound | |
| lower acceptance bound for the Gaussian rule, see Eq. (4.6) | |
| lower quantile of the chi-square distribution with degrees of freedom | |
| parameter of the Skellam term in the null distribution, see Eq. (5.3) | |
| Skellam , the difference of two independent Pois variables | |
| Skellam , see Eq. (5.4) | |
| CDF of the null distribution of candidate (Definition 5.2) | |
| (Eq. (4.4)); its limit in Theorem 5.3 | |
| second-round table-size rule | |
| failure probability on a new table with cells | |
| Proofs | |
| incidence vector of key minus the mean , with (Appendix C.3) | |
| number of duplicate edge pairs and its expectation | |
| planted distribution: choose a pair of edge labels uniformly, then condition on this pair having the same mapping | |
| degree of cell ; | |
| sum of squared overlaps $\sum_{i | |
| set of good graphs in Appendix D, whose complement has probability smaller than any fixed negative power of | |
We directly verify Proposition 2.2 using the simulations in Figure 2.1 of Section 2 and Figure 6.2 of Section 6.2. Within each configuration, the five sign compositions share the same batch of mappings. Since depends only on the unsigned mapping, their failure samples coincide trial by trial and share the same . The other factor on the right, , depends only on the sign composition and equals for a one-sided difference. Thus the conditional bias for any sign composition equals the one-sided bias multiplied by . Once we determine from a single one-sided point, we can predict the bias at every other level without fitting. Figure 2.1 shows this prediction against . The one-sided point at determines the line for each configuration, shown in a different color. The remaining four points fall on that line, confirming Eq. (2.4).
The full verification covers 20 configurations with and failure probabilities ranging from 0.10 to 0.90 on the grid. Each configuration has five sign composition levels, . Figure 2.1 shows ten of these configurations with and . The standard-encoding curves in Figure 6.2(a) show four configurations with failure probability about 0.1, including and .
The four non-one-sided sign composition levels in each of the 20 configurations give 80 predictions in total. In units of , the differences between predictions and measurements are at most 0.0064 and all lie within two standard errors. The standard error includes sampling error in both the one-sided mean and the measured value.
C Encoding properties and proofs of exact moments
We describe the XOR implementation of keySum and checksum and prove the finite identities in Sections 3 and 4. We then summarize their exact verification for small parameter values and discuss the AMS observation obtained from the count sum.
C.1 XOR implementation
In the set model, each side inserts each key at most once. We can therefore accumulate keySum and checksum by bitwise XOR, as in a common implementation of the standard IBLT, and multiply only the count by . Under XOR, . Thus, in each difference-table cell, keySum is the XOR of the differing keys that select the cell, and checksum is the XOR of their chk values. Both are independent of the coding coefficients. In a pure cell, keySum and checksum equal and chk() directly, so we check whether checksum equals chk(). To delete , we subtract from the count and XOR the other two fields once more with and chk(), respectively. The induction argument for the additive form in the next subsection also applies here. We recover the direction as , and peeling follows the same process and gives the same result as in the additive form. In a multiset, the same key may be inserted repeatedly. XOR cancels repeated contributions while the count retains them, so multisets require the additive form. If peeling modifies the difference table in place, the receiver can accumulate the two scalars and during cell-by-cell subtraction, without retaining the original difference table.
C.2 Proof of Proposition 3.1 (ideal decoding equivalence)
Proof. We induct on the number of peeling steps. After each step, the three fields of every cell equal the encoded sum of the remaining keys: the count is , keySum is , and checksum is . Each sum ranges over the remaining keys that select the cell. This invariant holds initially by Eq. (3.1).
Suppose that at some step cell has degree one in the unsigned hypergraph, with unique key . Its count is , count times keySum equals , and checksum equals count times chk(). The cell hash of also contains , so passes the pure-cell test. Conversely, a cell of any other degree that passes the test is a false positive, which the ideal-purity assumption excludes.
Thus the cells removable under random-sign encoding are exactly the unsigned degree-one cells. To delete , we subtract its three-field contribution multiplied by the coding coefficient from its cells. This preserves the invariant and removes the corresponding edge from the unsigned hypergraph. With the same cell-selection order, the two processes reach the same endpoint. Peeling always ends at the 2-core, independently of the selection order, so depends only on .
At termination, we check all fields. Under random signs, a nonempty core can have all-zero counts, so counts alone cannot certify success. The keySum fields can cancel at the same time. Success is misjudged only if all checksums are also zero. This event is included in E in Section 5.5.
C.3 Proof of Proposition 4.1 (conditional unbiasedness and conditional moments)
Proof. Using and , we obtain the sum of squared counts and the squared sum:
Dividing the first identity by gives Eq. (5.2). Subtracting the second identity from the first gives . Dividing this by gives Eq. (4.1). For a fixed mapping, (), so the conditional expectations of and are both zero.
We now express the coefficients of the cross terms as inner products. Let be the incidence vector of key minus its mean . Then and , so Eq. (4.1) becomes
Given , the inner products are constant. All randomness comes from the sign products . The expectation of a product of sign products is nonzero if and only if each subscript occurs an even number of times, in which case the expectation is one.
For the variance, we expand the square and consider two unordered pairs and . When the pairs coincide, the product is . When they differ, they share at most one subscript, so some subscript occurs exactly once and the expectation is zero. Thus only the diagonal terms remain:
which gives the equality in Eq. (4.2).
The exhaustive verification in Appendix C.4 also checks the third central moment; here we give its formula. For the third central moment, we expand the cube and consider ordered triples of unordered pairs. If all three pairs coincide, the product is . If exactly two coincide, the product is the sign product of the third pair. Both cases have expectation zero. If the pairs are distinct, every subscript occurs an even number of times exactly when the pairs form a triangle . Each triangle corresponds to ordered triples. Hence
The upper bounds in Eq. (4.2) follow from Cauchy-Schwarz: . Substitution into the variance formula shows that each of the unordered pairs contributes at most 4, giving . The component of the vector on cell is , so
and the triangle inequality gives , so .
Under the random mapping , the conditional mean is always . The law of total variance therefore gives . The intersection size of two independent uniform -subsets has a hypergeometric distribution with mean and variance . Substitution into the variance formula shows that each unordered pair contributes , giving .
C.4 Exact verification for small parameter values
We verify the finite identities in Sections 3 and 4 by exhaustive enumeration for small parameter values. For the six triples in Table C.1, we enumerate all mappings and signs, covering 155,640 states. All arithmetic uses integers and rationals, so the results are exact. In every state, common elements cancel in the difference table. Signed peeling recovers the correct keys and directions, and the unrecovered keys form exactly the unsigned 2-core. For every mapping, , the conditional variance and third central moment match the formulas above, and . The distribution of over the random signs is the same for every direction vector. Table C.1 summarizes the unconditional and post-failure statistics.
Table C.1: Exact enumeration results for small parameter values.
| (M, k, d) | states | ||||||
|---|---|---|---|---|---|---|---|
| (4, 3, 2) | 40 | 1/4 | 4/3 | 2 | 4 | 0 | 1/2 |
| (4, 3, 3) | 160 | 1 | 4 | 3 | 4 | 16/3 | 0 |
| (4, 3, 4) | 560 | 1 | 8 | 4 | 8 | 64/3 | 27/512 |
| (5, 3, 3) | 1,760 | 2/5 | 3 | 3 | 4 | 20/3 | 0 |
| (5, 3, 4) | 11,440 | 1 | 6 | 4 | 6 | 12 | 93/8000 |
| (6, 3, 4) | 141,680 | 2029/4000 | 24/5 | 4 | 11256/2029 | 23104/2029 | 75/4058 |
In every row of Table C.1, equals and equals , consistent with conditional unbiasedness given the mapping in Eq. (4.2). Failure preserves the mean and increases the scale. For the three parameter sets with , is 3 times, 4/3 times, and about 1.16 times the unconditional variance, respectively. When , failure is certain and the two variances coincide. After failure, equals zero with positive probability. For , this probability is . The third central moment vanishes for , because the sum in Appendix C.3 requires three distinct keys, and is positive for . The three rows with are unconditional values, so the right skew is a property of itself, consistent with the skew described by chi-square quantiles in Section 4.
The values in the row come from a duplicate edge pair. Each key independently and uniformly chooses one of the 3-subsets. When the two keys choose the same subset, each of these three cells has degree two. There is no pure cell, and peeling stops immediately, so . The counts of the three cells then all equal , and the remaining cells have zero counts. When the two signs are equal, and , so Eq. (2.1) gives . When they differ, all counts are zero and . The two cases each have probability . Thus and . This variance is 3 times the unconditional variance , and it also equals the bound in Eq. (4.2): the duplicate edge pair makes , so Cauchy-Schwarz is an equality. Also, . This is the smallest instance of the duplicate edge pair structure in Section 5.
C.5 An AMS observation independent of failure
Each key enters k cells with the same sign. Thus, under random signs, the normalized count sum equals the sign sum in every sample:
The right-hand side depends only on the signs, and its square is the standard AMS second-moment estimator with unit weights . Rearranging Eq. (2.1) and Eq. (5.1), we relate and through this AMS term:
Proposition C.1 (AMS on the same table). The full distribution of is independent of the mapping and hence of ideal failure. Specifically, takes the value with probability , . The squared statistic has mean and variance , which is times the unconditional variance of . By Eq. (C.2), is a weighted sum of this squared statistic and , with deterministic weights. Given the mapping, the conditional covariance of the squared statistic with is .
Proof. The right-hand side of Eq. (C.1) depends only on the signs and is independent of . It is therefore independent of every event that depends only on the mapping. if and only if exactly signs are negative, with probability . , and the fourth moment is , so the variance is . Eq. (C.2) follows by directly rearranging Eq. (2.1) and Eq. (5.1). For the covariance formula, we expand both statistics as quadratic forms in the signs and use the fact that sign products for distinct unordered pairs are uncorrelated. We multiply by Eq. (4.1) and take expectations pair by pair. Averaging over failure gives , which is generally nonzero.
This observation connects the design to classical AMS. The count array is a random-sign linear sketch whose sum gives exactly the AMS sketch. The AMS sketch is independent of failure, so its distribution remains unchanged however rare failure is. This independence comes at a cost in precision: the AMS estimator has variance times that of . The estimator replaces the square of a single sum with the sum of squares over the cells, reducing the variance to . Its correlation with failure requires the post-failure analysis. The covariance in Proposition C.1 shows that the two estimators are generally correlated after failure, so we must allocate risk separately when combining them.
We verify Proposition C.1 using the exhaustive enumeration procedure in Appendix C.4 for the four parameter sets , , , and , covering 144,040 states. For every mapping, has the same distribution, with mean and variance .
D Hypergraph lemmas
We prove the hypergraph results used in Theorem 4.2 and the discrete limit distribution: small-core counting, the characterization of failure by a duplicate edge pair when , the failure structure at fixed subcritical load, and concentration of the overlap graph. These results depend only on the unsigned mapping , which consists of d labeled, independent, uniform k-subsets, with duplicate edges allowed.
Fix . Let and let be the number of duplicate edge pairs, with mean . Let be the planted distribution obtained by choosing a pair of edge labels uniformly and conditioning on the two edges mapping identically. Let , let be the degree of cell , and let .
D.1 Small-core counting and duplicate edge pairs
Lemma D.1 (Small-core counting). A 2-core subgraph with edges uses at most vertices. For and (with ), a first-moment bound on the probability that such a subgraph occurs is
where C depends only on k and . Keeping the dependence on d gives
For fixed and sufficiently small , .
The proof of Theorem 1 in [17] uses the same first-moment counting argument to obtain a failure probability . Analogous counting arguments for stopping sets appear in [34]. We retain the factor in d for Lemma D.2, where .
Proof. Fix a set of edge labels and a set of vertices. The event includes every core on these edge labels contained in . Summing over and gives the first-moment bound in the lemma. Using , , and , together with and , we obtain
which retains the factor in . Substituting and dropping the ceiling, since , gives the first bound. Let . Keeping the ceiling at gives . For , the ratio of consecutive terms of the envelope is at most . For fixed , choose small enough that the ratio of consecutive terms of is at most on , so that
This sum also covers the intermediate range with and .
The following lemma quantifies Proposition 2.1. When , failure is almost always caused by a duplicate edge pair, so the failure-conditioned mapping is close to the planted distribution Q in TV. Duplicate edge pairs are the bottleneck of IBLT failure, as identified in [17]. The density of Q with respect to the original distribution is , corresponding to size biasing by N [3].
Lemma D.2 (Failure is determined by a duplicate edge pair when ). Let , regardless of whether . Then
Proof. A single edge cannot form a core. Two edges form a core if and only if they map identically. Hence , and the core has at least three edges on . Since , eventually . Thus every core of size lies within the range of Lemma D.1, and we use the bound that retains the factor in . The term is . For , we use the envelope without the ceiling, . Its ratio of consecutive terms is at most , which tends to zero uniformly over . Thus . Adding the two contributions gives the first bound. Since and , the ratio of the first bound to is .
A specified pair of edges maps identically with probability , and two distinct edge pairs are simultaneously duplicated with probability : if the pairs share an edge, three edges map identically, and otherwise the two pairs are independent. Hence , and gives . The density of with respect to the original distribution is exactly . By the triangle inequality,
Since , . Since , eventually , and the first bound makes this term . Adding the two bounds gives the second bound. The proof uses only small-core counting and therefore applies to all .
D.2 Failure structure at fixed subcritical load
Lemma D.3 (Fixed subcritical load). Let . Then , , and , where is the number of edges of the 2-core and .
Proof. We first show that for every fixed and , . This is a variant of a known result. For the binomial hypergraph , Kim [21], Theorem 1.7, proves that the probability that the 2-core has at least vertices is exponentially small at subcritical load. The same conclusion is stated in [17], citing [10], whose model assumes a given bounded degree distribution. Our mapping allows duplicate edges, which occur with polynomially small probability at linear load. We therefore prove the required bound directly using fixed-depth message passing. We follow the finite-round neighborhood analysis and concentration argument for LDPC codes [28], treating cell degrees separately because they have no fixed upper bound in our model. Let be the number of edges whose incoming messages are all 1 at round . Then on every graph. Local convergence to a Poisson branching tree gives , where and . When , this recursion has no positive fixed point, so we can choose such that . On , changing edge coordinates changes by at most , because the state of each edge depends only on edges within distance . By the typical bounded differences inequality [8], .
On , the actual core has at least three edges. Lemma D.1 controls the part of size below , and the linear core bound above controls the rest, giving . We complete the proof as in the second paragraph of the proof of Lemma D.2. The Bonferroni inequality gives . We also have . Since , we have , and hence . Using , the two terms combine to give . This total variation bound applies to the entire labeled mapping.
D.3 Superpolynomial concentration of the overlap graph
Lemma D.4 (Superpolynomial graph concentration). Fix , and let lie in a fixed compact interval of . Write , , , and . There is a deterministic set of graphs , called good graphs. Its complement has probability smaller than any fixed negative power of . On a good graph, all three statistics deviate from their exact means by at most , and
Intuitively, a good graph is a typical realization of the random mapping: each key intersects only a logarithmic number of other keys, and the aggregate overlap quantities are all close to their means. Graphs outside are called bad graphs, and their probability is superpolynomially small. Appendix E applies a CLT to the random signs on good graphs, using precisely the fact that no single key can dominate .
Proof. Deterministic means. For the overlap of independent uniform -subsets, write and . The exact means are
The last identity holds because, given , the are independent and their conditional first and second moments do not depend on .
Degree truncation and the Lipschitz bound. Since , we have , which is superpolynomially small. For two graphs in , we successively replace each edge that differs by the edge with the same label in the other graph. The incidence set of every intermediate graph lies in the union of the two endpoint graphs, so every vertex has degree at most . Replacing one edge in such an intermediate graph affects only the edge labels overlapping the old or new edge, and each , so both and change by . For the replaced edge, and its square changes by ; the values of the other affected labels change by each, and their squares by . Thus the total change in is . All three statistics are therefore -Lipschitz on with respect to the Hamming distance over edge labels.
Concentration. The typical bounded differences inequality [31] gives concentration for functions that are Hamming Lipschitz on a high-probability set; we use the form due to Combes [8, Proposition 2]. We take a Lipschitz extension of from , truncate it to a deterministic nonnegative polynomial range, and apply McDiarmid's inequality to the independent edges. The bad set has superpolynomially small probability. Both and its truncated extension are at most , so the change in expectation is also superpolynomially small. Hence
We take to be the intersection of with the three deviation events, which gives the stated concentration bound. Since , the lemma follows.
E The Gaussian limit after failure and the Gaussian rule
We prove Theorem 4.2 and Corollary 4.4. We use the notation , and from Appendix D. We first prove a Gaussian limit for the quadratic form in the random signs on a deterministic good graph, uniformly over good graphs (Lemma E.1). We then show that good graphs retain almost all probability after conditioning on failure. For the and overload regimes, we use the Gaussian limit under deterministic coefficients (Lemma E.2). This limit is uniform in the coefficients and holds under both the random mapping and the planted distribution. Finally, we consider the possible limits of and combine the cases through a subsequence argument.
E.1 CLT for the random signs on a good graph
Lemma E.1. Fix . Let a deterministic sequence of graphs satisfy and . Then , uniformly over graphs satisfying the same constant bounds.
Proof. There are at most nonzero summands, each bounded by . Two summands can be dependent only if they share a key, so the dependency graph has maximum degree at most . Distinct summands have zero covariance (Appendix C), so the sum has variance exactly . For any fixed order , a joint cumulant can be nonzero only if the summands form a connected group in the dependency graph [19]. There are connected groups, each with a bounded cumulant. Dividing by gives . The first cumulant is zero and the second is one. The standard Gaussian is determined by its moments, so the method of moments gives convergence. These bounds depend only on the range of and the constant in . They are therefore uniform over graphs satisfying the same constant bounds. If CDF convergence were not uniform, we could extract a sequence of deterministic good graphs along which convergence fails, contradicting the argument above.
Lemma E.1 transfers to and . The difference between and times this sum is
which depends only on the signs and has norm for every graph. After division by , this norm is . On a good graph from Lemma D.4, equals its exact mean plus . Thus the ratio of to tends to one, and we can replace normalization by in this lemma with normalization by . The standardized statistic for therefore has the same uniform Gaussian limit on good graphs. By Eq. (C.2), the difference between and is . Given the graph, has norm , and is conditionally unbiased with conditional variance at most . By the triangle inequality, the difference has conditional norm at most . After division by , this is at most . Hence the same Gaussian limit holds for .
E.2 Conditioning on failure at a positive load ratio
In this subsection, we assume that lies in a fixed compact interval of . For , a specified duplicate edge pair forms a core, so
By Lemma D.4, . The conditional CDF error is at most the uniform error on good graphs plus this conditional exceptional probability. Thus, at a positive load ratio,
The same argument applies to any event that depends only on the mapping and has probability at least a fixed negative power of . We divide the superpolynomially small exceptional probability by and average the CLT error on good graphs under the conditional distribution. The good-graph CLT therefore requires only convergence to zero, regardless of how rare failure is. A typical failure at subcritical load arises from a duplicate edge pair, which sets just one to
. The resulting change in is , far below the deviation allowed by Lemma D.4, so the graph remains in .
The conditional variance is also asymptotic to . On good graphs, the ratio tends to one by Eq. (4.2) and Lemma D.4. On any graph, the ratio is at most , and the superpolynomially small probability of bad graphs controls their contribution.
E.3 Gaussian limit under deterministic coefficients
The following Gaussian limit holds uniformly over deterministic coefficient vectors . We apply it to random sign encoding by conditioning on the iid coding coefficients and then averaging over the signs.
Lemma E.2 (Gaussian limit under deterministic coefficients). For deterministic coefficients , let , compute by Eq. (2.1), and define by Eq. (4.3). If , then , uniformly in the coefficients, with allowed to be unbounded. Under the planted distribution , we also have , uniformly in the coefficients and the label pair.
Proof. We use from Appendix C.3. We expose edges in label order. The martingale differences are , with . Their conditional variances sum to
Since , the normalized bracket has variance and converges to one in . Given the first edges, the components of sum to zero. Thus is the sum of this vector's components over the cells of . Its conditional fourth moment is at most times the sum of the fourth powers of all components. The component at cell , , is a sum of independent, centered, bounded terms, each with variance at most . Rosenthal's inequality [29] bounds its fourth moment by . Hence . Summing over and dividing by , we bound the fourth-order Lyapunov remainder by
and the martingale CLT gives . Both bounds depend only on , so convergence is uniform in the coefficients and holds for unbounded .
Under the planted distribution, the statistic is invariant under label permutation. We may therefore fix the duplicate edge pair as 1, 2, with . Let be computed from the remaining edges alone, minus . Then
The last term has variance . After division by , the deterministic term and the last term have mean squares and , respectively. Both tend to zero. We apply the unconditional result to .
E.4 Proof of Theorem 4.2 (the Gaussian limit after failure) and Corollary 4.4
Assume . From any subsequence, we take a further subsequence along which converges in .
If the limit is positive and finite, we apply the conclusion of Appendix E.2.
If the limit is zero, Lemma D.2 shows that the TV distance between the failure-conditional distribution and the planted distribution tends to zero for all . This graph-theoretic result continues to hold after we add independent signs. Lemma E.2 holds uniformly in deterministic signs under both the random mapping and the planted distribution. We condition on the iid coding coefficients, apply these uniform results, and average over the signs to obtain the conditional Gaussian limit.
If the limit is infinite, eventually . We can assign each edge removed during full peeling a cell whose degree is one at the time of removal. That cell is then empty and can witness no further removal, so full peeling requires . Thus occurs with certainty in this branch, and we apply Lemma E.2 directly under the random mapping.
All three branches give uniform convergence of the conditional CDF to , and a subsequence contradiction establishes Eq. (4.5) for the full sequence. For Corollary 4.4, is the largest candidate that is not rejected, so whenever is not rejected, and hence . The standardized chi-square quantile converges to , so Eq. (4.5) gives .
E.5 Monotonicity of the acceptance lower bound in Definition 4.3
We have with . For , is increasing. For , differentiation for gives . A sufficient condition is therefore . The Chernoff bound for the chi-square lower tail [22, Lemma 1] gives for . The condition holds when .
By monotonicity, the accepted candidates form . For , gives , and for , ; in both cases , so is finite. The case in Definition 4.3 therefore arises only when no candidate is accepted, that is, . For , is about 1.73, 1.86, and 1.96 at , 1024, and 16384, respectively. A post-failure observation below essentially occurs only when or 3 and the duplicate edge pair has opposite signs. For , ; for and , enumerating the union of three edges and running peeling shows that the exact differs from the duplicate-pair term by a relative error below for . At , the failure probability is .
F Proofs of the discrete limit distribution and the Skellam rule
We prove Theorems 5.3, 5.4, and 5.6. Write the iid coding coefficients as . By Eq. (5.2), holds for every sample. The final subsection discusses an extension with multiple sign counts per cell.
F.1 Proof of Theorem 5.3 (discrete limit for bounded c)
Proof. From failure to the planted distribution. Lemma D.2 gives for all . Here selects a pair of edge labels uniformly and then conditions on the two edges having the same mapping. For , both and are . Since , we have and hence . The distance is therefore at most . Adding independent signs and applying
Eq. (5.2) preserve this TV bound. The statistic is invariant under label permutation, so we may fix the duplicate edge pair as 1, 2. Their common edge and the remaining edges are independent and uniform. For , the null distribution is exact under the planted distribution. We treat empty sums below as zero.
Three negligible event classes for bounded . By the union bound, the common edge of the duplicate edge pair intersects a remaining edge with probability . Any specified pair of remaining edges shares at least two cells with probability . Summing over all such pairs gives . In the intersection graph of the remaining edges, for any three specified edges, the probability that one specified edge intersects both others is
This equality follows by conditioning on the edge shared by the two intersection tests. The other two edges are independent, and their intersection probability with the shared edge is independent of its position. Summing over ordered triples bounds the probability that the intersection graph is not a matching by . Thus, outside an event with probability bounded by Eq. (5.6), the common edge of the duplicate edge pair is disjoint from the remaining edges, and all overlaps among the remaining edges are single-cell overlaps forming a matching.
Poisson approximation for overlaps among the remaining edges. For each pair of remaining edges, consider the indicator that they intersect. These indicators have a dependency graph defined by shared edge labels. Collections of indicators with disjoint label sets are independent. Each indicator has mean and neighbors. By the calculation in the previous step, two indicators sharing an edge have joint probability exactly . We apply the local dependence bound of Arratia, Goldstein, and Gordon [2, Theorem 1] with the neighborhood containing the indicator itself and its neighbors. Indicators outside the neighborhood depend only on the remaining independent edges, so the third term of the bound is zero. The bound is a universal constant times the sum of products of means within neighborhoods plus the sum of joint probabilities over distinct neighbors. Both sums are here. Thus the number of intersecting edge pairs among the remaining edges has TV distance from Pois(). We replace the parameter by . The TV distance between two Poisson distributions is at most the difference between their parameters: we couple the larger-parameter variable to the smaller one by adding an independent Poisson increment, and the variables differ only when this increment is nonzero. The replacement adds an error of .
Independence of the overlap sign marks and the Skellam limit. On the matching event, each overlap uses a pair of iid signs shared with no other overlap. Their products are therefore mutually independent and symmetric, and independent of the duplicate edge pair's sign product . Given the mapping, depends only on the number of overlaps among the remaining edges and these independent marks. To formalize the coupling, we retain the true overlap count and generate that many new independent marks for each mapping. On the matching event, the old and new marked sums have the same conditional distribution. On all other mappings, we couple them arbitrarily, with a distributional error at most the exceptional event's probability. We then apply the same marking kernel to the Poisson approximation of the count, preserving the TV bound. By Poisson thinning, Pois() independent marks split by sign into two independent Pois() counts. Their difference, , has a Skellam distribution. Adding the duplicate edge pair's contribution gives in Eq. (5.4). Thus is close to the null distribution in Eq. (5.5). We use the Poisson approximation for the unconditional count and the matching event to bound the coupling error.
The four steps give a total error of . Since and , the terms and absorb all others, giving Eq. (5.6). When , we have . Continuity in the Poisson parameter gives convergence of in total variation to , proving Theorem 5.3(ii). The and Skellam terms are independent, so and the limiting variance is . For (iii), as , we have and . As , we have and . The term divided by tends to zero, so . The estimator has the same weak limit: the AMS term in Eq. (C.2) has coefficient , and .
The exact moments of under the planted distribution agree with the limiting variance in (ii). Let , with the remaining edges independent and uniform. If the two coding coefficients have opposite signs, the edges cancel completely, leaving the remaining elements. If they are equal, the edges combine into a single edge with coefficient . For ,
The component with opposite coefficients has variance , and the component with equal coefficients has variance . Averaging these variances and adding 4 from the difference between the component means gives the result.
F.2 Sparse limit for fixed small d
Proposition F.1 (Limit when ). Fix and let . Conditional on failure, both and converge weakly to the distribution assigning equal probability to . The Gaussian rule's conditional miss rate tends to zero for d = 2, 3, and to 1/2 for fixed or .
Proof. Theorem 5.3 gives the equally weighted limit for the fluctuation of when . By Eq. (C.2), the correction for is , so its fluctuation has the same weak limit. Consider the event that the remaining edges are pairwise disjoint and disjoint from the duplicate edge pair. On this event, equals exactly, and the event has conditional probability tending to one. The Gaussian rule has with . The negative component leads to rejection of the true candidate, and the positive component leads to acceptance. For , the negative component gives an observation below , so the rule returns , which is not a miss. For , the negative component still leads to acceptance of candidate , causing a miss. For , failure is equivalent to a duplicate edge pair, and for every . Thus multiplying by any fixed constant to obtain an upper bound leaves a post-failure risk of at least .
F.3 Proof of Theorem 5.4 (uniform CDF approximation)
Proof. First consider . Appendix E gives a conditional Gaussian limit for standardized by . The null distribution is the distribution of . As , we can express in the Skellam term as a sum of iid increments whose number grows with . The CLT gives . The ratio of to tends to one, and the term divided by tends to zero. Hence . Both standardized CDFs converge to the continuous CDF . Weak convergence to a continuous limit implies uniform CDF convergence (Pólya's theorem), so their Kolmogorov distance tends to zero.
To prove uniformity, suppose that there exist and a sequence along which the distance is at least . Take a subsequence with . If , this subsequence eventually satisfies for some constant, and Theorem 5.3 gives a TV distance tending to zero. If , the previous paragraph gives convergence to zero. Both cases contradict the lower bound .
F.4 Proof of Theorem 5.6 (uniform asymptotic bound on the conditional miss rate)
Proof. Write for the CDF of the null distribution at candidate and for the observation. The rule rejects if and only if . We use the standard argument for test inversion and the conservativeness of a discrete p-value [27]. If , then . If no lattice point satisfies , the rejection event is empty. Otherwise, let be the largest lattice point satisfying . The rejection event is then , with probability . Since the rejection region is a lower set, the rejection probabilities under the true distribution and differ by at most their Kolmogorov distance. Taking and applying Theorem 5.4, we obtain a rejection probability of at most for the true candidate, uniformly over all . The event implies rejection of the true candidate, giving Eq. (5.9). The argument applies to arbitrary acceptance sets and allows candidate rejection probabilities to vary nonmonotonically with .
Using as the rejection criterion with the left limit (where ) gives a different rule. The equally weighted distribution has left limit zero at . This rejects its smallest support point, which has probability , and the conditional miss rate tends to when and . At that point, equals , so the Skellam rule accepts the candidate.
For , the observation may lie outside the support of , and always holds. If all three coefficients have the same sign, . Otherwise, label the edge whose sign differs from the other two as edge 3. The sum of squares is . Among the cells of edge 3, at least are shared with edge 1 or edge 2. Thus , and the sum of squares is at least . Hence , and the true candidate is always accepted.
F.5 Magnitudes of the terms in the two-round risk decomposition
This subsection derives the four terms of Theorem 5.7 and gives their numerical values.
Sizing error. The first term is the joint miss rate . Under the Skellam rule, Theorem 5.6 makes it asymptotically at most uniformly over all ; for a one-sided difference , so this term is zero. The Gaussian rule's conditional miss rate can far exceed when is bounded, but failure itself is then rare: by Proposition 2.1, when , is asymptotically equal to the expected number of duplicate edge pairs , which is about for , , and , so the joint miss rate remains small.
Peeling failure with sufficient capacity. The second term comes from the randomness of peeling: even with sufficient second-round capacity, the random hypergraph can leave a nonempty 2-core with small probability. The second-round load is at most , so by Lemma D.3, decays polynomially in .
Unbounded upper bound. When the rule gives no finite upper bound, the protocol cannot size the second-round table by , and Eq. (5.10) counts this case as a failure. The Skellam rule always accepts candidate 2 and returns only when ( for ) (Appendix G.2); at practical table sizes this term is zero. The Gaussian rule's acceptance lower bound increases with and returns only when the observation lies below and no candidate is accepted; for and , . A post-failure observation in this range essentially occurs only when or 3 and the duplicate edge pair has opposite signs, and then is at most for and (Appendix E.5).
Checksum error. The checksum takes a non-pure cell as pure, or indicates termination on a nonempty core, making the recovered result incorrect. Each check passes falsely with probability at most , and the number of checks is at most the number of cells plus times the number of deleted keys; the keySum and count fields of a nonempty core can both cancel to zero, and the probability that all checksums are then zero is likewise at most , which can occur at most once at termination of each round. Hence is of order , negligible at practical scales. With 32-bit checksums this term is of order , of order for and load at most 3; since uses only the count field, the first term is unaffected by checksum width, and at deployment the target failure probability can be split between the sizing and checksum terms.
F.6 Extension to multiple sign counts
Suppose each cell stores copies of the count, using independent sign hashes and a shared mapping. Conditional on , the estimates from these copies are mutually independent, each with mean . Averaging independent estimates is the AMS approach to reducing variance [1]. From and , we obtain
and the exponential Markov inequality (Chernoff bound) applied to gives . This bound holds for every deterministic mapping, hence for arbitrarily rare failure. For , the right-hand side is below . When only an extra scalar AMS accumulator is stored, the count sums are independent given , and their joint distribution is a product of binomial distributions. This permits an exact discrete candidate test with the finite-sample guarantee .
Repeating counts reduces absolute error but preserves the ratio of the conditional scale to the unconditional scale. Fix and , and let . If we apply Gaussian inversion to the average of copies using the unconditional standard deviation , the conditional miss rate tends to . This equals for , respectively. The reason is that for fixed small , failure is caused by a duplicate edge pair, which contributes independently in each copy, while the acceptance lower bound tends to as . Whenever more than half of the copies take , the average falls below and the true candidate is rejected. This probability tends to as grows. Increasing the number of copies therefore cannot replace the correct post-failure distribution, which is why the main text uses a single count with the discrete limit distribution.
G Exact evaluation and search cutoffs
This appendix describes the computation of the Skellam rule (Definition 5.5). The guarantee of the Skellam rule does not require the accepted candidates to form an interval, and by definition is the largest accepted candidate. Rejected candidates may lie between accepted ones, so a binary search can miss the largest accepted candidate. The implementation therefore scans downward from an explicit cutoff and returns the first accepted candidate; under the condition of Proposition G.1, the result equals that of an unbounded scan. Appendix G.1 evaluates exactly using integer thresholds; Appendix G.2 gives the cutoff and proves that every candidate above it is rejected; Appendices G.3 and G.4 give the per-candidate prescreening and the exact CDF computation; the comparisons confirm that none of these measures changes the output of the rule. Appendix G.5 explains how to precompute a table of when the parameters are fixed.
G.1 Computing with integer thresholds
Expanding Eq. (5.5) over the two cases , we obtain
Let , an integer, so that . A random variable with CDF is at most the observation if and only if , or equivalently . Thus equals
where we compute both floors using integer arithmetic, so floating point does not change the decision at lattice boundaries. The second term corresponds to , the component with shift -2; its threshold is larger and so is its CDF.
G.2 Search cutoff
Proposition G.1 (Search cutoff). If , then every candidate satisfying
is rejected.
For , the condition is . If the condition fails, the implementation returns , which only enlarges the upper bound; for any fixed , this branch disappears as and does not affect Theorem 5.6. At and , the coefficient of the observation in Eq. (G.1) is about 1.035, and only one or two hundred candidates lie between the cutoff and .
Proof. is the average of two components, so it suffices to prove that the component with shift -2 is at most . This component equals with , and Eq. (G.1) guarantees . When , this probability is zero and the conclusion follows directly; assume . Multiplying the moment generating functions of two independent Pois() variables gives the moment generating function of the Skellam distribution,
For , , because . Hence is a sub-gamma variable with variance factor and scale . The Chernoff tail bound for sub-gamma variables [5, Section 2.4], converted to Bernstein form as in the proof of Corollary 2.11 of that book, gives
A sufficient condition for the right-hand side to be at most is . By Eq. (5.3), , so the sufficient condition becomes , which rearranges to Eq. (G.1); the condition ensures that the denominator is positive.
Numerically, we compute the cutoff at risk , round up, and add one. For the experimental values u = 0.01, 0.05, this risk is below the acceptance level , so the cutoff leaves a margin toward larger candidates and floating-point rounding cannot skip a candidate that should be accepted. The scan starts one below the cutoff and proceeds downward.
G.3 Per-candidate Chernoff prescreening
Every candidate between the cutoff and is rejected, and a per-candidate Chernoff bound can reject some of them before the exact CDF is computed. Let ; the component with shift is . The variable has mean , so for the event contains the mean and the Chernoff bound only gives the trivial value 1; prescreening is therefore used only for . When , and , so the candidate is rejected directly; assume . Applying the exponential Markov inequality to Eq. (G.2) gives, for , . Differentiating in , the exponent is minimized at with ; substituting and gives
If this bound is at most , the larger component is at most and so is the average, and the candidate is rejected directly. Prescreening only rejects candidates certified for rejection; disabling it and computing the exact CDF for every candidate gives the same result case by case.
G.4 Windowed Poisson table for the exact CDF
We use , where are independent variables. By Eq. (5.3), grows quadratically with the candidate: at and load 3, ranges from about to . The initial implementation built the table from zero to ; a single sizing took about 1.3 s and exhausted memory in early two-round runs. The implementation therefore builds, for each candidate, a Poisson table restricted to the window centered at with half-width : starting at the mode, we compute the pmf recursively in both directions using , normalize within the window, and accumulate the CDF. Substituting this half-width into the Chernoff bound for the two-sided Poisson tail gives an exponent of at least 98 for every , so the mass beyond each end of the window is below , smaller than double-precision rounding error; normalization also avoids the relative error from evaluating term by term at large . The upper bounds before and after windowing agree case by case. Both the number of candidates requiring an exact CDF and the window length are proportional to , so the cost of a single sizing is roughly proportional to ; Appendix H.9 reports measurements.
The Poisson table depends only on and , so it can be shared across syncs and risk levels. The implementation maintains a cache keyed by . When full, it evicts the least recently used tables until half its capacity is free. Capacity is measured in entries, each containing two float64 values.
Under the condition of Proposition G.1, the cutoff, prescreening, and windowed tables preserve the output of the rule. We compare case by case against a reference implementation with 70 decimal digits of precision on 4536 general cases and 286 bounded- cases, covering lattice points, parity boundaries, and . We also compare the windowed implementation with cutoffs against the full-table implementation on 9779 cases. The value lies on both sides of the condition of Proposition G.1: the rule returns at and a finite upper bound at . On the 2406 cases with , , , and , we compare all three implementations. All three comparisons agree case by case.
G.5 Table lookup with fixed parameters
When is fixed, depends only on the integer . We can precompute for every up to a chosen limit and store the results in a table indexed by . For a fixed candidate , both floors are nondecreasing in , so is nondecreasing in as well. The Chernoff bound used for prescreening is also nondecreasing in . Thus, the values of for which candidate
is accepted from an integer interval unbounded above, whose left endpoint can be found by binary search. Recording each candidate at its left endpoint and then taking prefix maxima in increasing order of gives the largest accepted candidate, , at every in the table. Candidates need only be checked up to the cutoff at the table's upper limit: the cutoff increases with , and every candidate above it is rejected at each in the table (Proposition G.1). Table lookup and the sequential search use the same acceptance test and agree entry by entry. Observations beyond the table are still computed online as described above. Appendix H.9 reports table sizes and construction times.
H Experimental setup and supplementary results
This appendix gives the setup and supplementary results of the experiments in Section 6.
H.1 Validation goals and experiment overview
The experiments fall into four groups according to the conclusion they test, and the following subsections follow this order. Experiment tags identify them in the main text and appendix.
Source of failure samples. The statistical experiments (Exp-STAT) use the 189 configurations of Section 6.1, plus 42 boundary configurations at , with about 20,000 failures per configuration. Configurations with rare failures sample from the planted distribution in place of the failure-conditioned distribution (Lemma D.2). The planted sampling control (Exp-PLANT) tests the finite-size error of this substitution: the low-load group directly checks the planted samples used by the statistical experiments in 12 configurations, and the critical-load group uses 21 configurations with to 1024 to locate the range of the approximation. Appendix H.2 and Appendix H.3 give the sampling method and the control results.
Properties of the random-sign encoding. Random-sign encoding preserves decoding (Proposition 3.1), and the decoding-equivalence test (Exp-DEC) verifies this on the full IBLT with more than 500 million paired trials, counting rejected candidates under both encodings (Appendix H.4). The post-failure estimate is conditionally unbiased for any sign composition (Propositions 4.1 and 3.2), and the conditional-unbiasedness test (Exp-UNB) verifies this on 203 configurations (Appendix H.5).
Lower-tail shape and conditional miss rate. The failure records of the statistical experiments (Exp-STAT) compare the post-failure lower tail with the discrete and Gaussian limits (Theorems 5.3 and 4.2, Appendix H.6) and measure the conditional miss rate and extra capacity of the two rules at finite size (Theorem 5.6 and Corollary 4.4, Appendix H.7). The worst-configuration test (Exp-WORST) uses independent samples to test the Skellam rule's conditional miss rate on the 12 configurations closest to the risk bound, with 56,000 to 330,000 failures per configuration.
Two-round protocol and computation cost. The protocol experiments (Exp-PROTO) run the two-round protocol on a real IBLT over 120 configurations with to 16384, first-round load 0.95 to 3, and one-sided and balanced sign compositions, measuring reliability and communication cost (Theorem 5.7, Appendix H.8). The computation-cost measurement (Exp-COST) gives the time and memory of sizing and decoding at (Appendix H.9).
Design fixed before sampling. Before launch, we fix the configurations, seeds, sampling sources, stopping rules, and budgets for the statistical experiments (Exp-STAT), the worst-configuration test (Exp-WORST), the planted sampling control (Exp-PLANT), and the protocol experiments (Exp-PROTO) using a single feasibility pilot. We fix the selection rule for the worst-configuration test before the statistical experiments begin, then derive the specific configurations and sample sizes from that rule after the statistical experiments finish (Appendix H.7). The conditional-unbiasedness test (Exp-UNB) and the decoding-equivalence test (Exp-DEC) come from separate independent runs, and the computation-cost measurement (Exp-COST) is conducted outside the other runs (Appendix H.9).
H.2 Sampling method
There are two sources of failure samples. Direct sampling generates mappings independently and runs peeling, retaining only the failure samples; obtaining one failure requires mappings on average. Planted sampling picks a pair of difference keys uniformly at random, makes them share a uniformly random k-cell set, generates the mappings of the remaining keys independently and uniformly, and draws the signs independently; this construction produces a peeling failure every time, and the resulting mapping follows Q. Under iid random signs the statistic is invariant under label permutation, so the implementation equivalently fixes the last two labels as the duplicate edge pair. Lemma D.2 gives the asymptotic relation between the planted distribution and the true failure-conditioned distribution, and Appendix H.3 compares them at finite size.
The statistical experiments (Exp-STAT) choose between the two sources according to the cost estimated in the pilot: configurations whose 20,000 direct failures are expected to cost at most 20 CPU core-hours use direct sampling with trials, and the remaining configurations use 20,000 planted samples. Figure H.1 shows each configuration's location in c and load and its sampling source. The six points at load 3 ( ), with rounding making the load slightly above 3) run separately with independent seeds after the statistical experiments finish, using the same sampling method and target failure count as the other configurations.

Direct Planted
Figure H.1: The 189 configurations of the statistical experiments. Point shapes indicate the sampling source. Vertical lines mark the grouping boundaries of c, and horizontal shading marks load 0.95–1.05.
All 203 configurations of the conditional-unbiasedness test (Exp-UNB) use direct sampling on CPUs with sequential peeling, with table sizes up to .
H.3 Finite-size error of the planted distribution
The planted sampling control (Exp-PLANT) tests whether the planted samples used in the main text can replace direct failure samples. The conclusion has two parts: in the low-load region where the statistical experiments actually use planted samples, the two samples show no detectable difference; near the critical load, the planted approximation still holds at and degrades as decreases, with the planted sample giving higher miss at .
Compared quantities and criteria. Each configuration compares three quantities: the fraction of pure duplicate edge pairs among direct failures, the full-range KS distance between the post-failure distributions of the two samples, and the miss/u of the Skellam rule on each sample. The difference in miss/u is judged by an equivalence test with bound , with a one-sided level Bonferroni-corrected over the configurations in the same batch. The KS distance is compared with the asymptotic 95% critical value: 0.0075 with 65,000 failures on each side and 0.011 with 20,000 on the direct side. Because is discrete, this comparison is conservative. The control has two groups, and Figure H.2 summarizes both.
Low-load group. Most of the 105 planted configurations in the statistical experiments lie far from the critical load, so the expected number of duplicate edge pairs (Appendix D) is small, and Lemmas D.2 and D.3 make the failure probability of the same order as . Direct sampling is infeasible for most of these configurations: among the 77 planted configurations with have below , with a minimum of about , and the feasibility pilot observes no failure in 68 of 75 configurations; collecting 65,000 failures requires at least trials, and about half the configurations require more than , beyond the feasible range of direct sampling. On the other hand, the distance between the planted distribution and the failure-conditioned distribution is controlled by Lemma D.2, with an error term that tends to zero when . The region where direct sampling is hardest is precisely where this approximation is most accurate. The low-load group selects the 12 configurations for which direct sampling remains affordable, covering to 64 and load 0.04 to 0.71, with the number of direct trials fixed by before sampling. Each planted side has 65,000 failures; the direct side has about 65,000 failures for and for and , and about 20,000 for the other 6 configurations, where failures are rarer.
Table H.1 gives the results, and the two samples agree on all 12 configurations. The fraction of pure duplicate edge pairs among direct failures ranges from 0.988 to 1.000, consistent with the mechanism in Lemma D.2. At , all 95% intervals of the difference contain zero; the equivalence test passes for all 4 configurations with and for 5 of the 8 configurations with , while the other 3 ((4,1024,512), (5,256,32), (5,256,64)) have only about 20,000 direct failures, with interval endpoints within . At , only (4,1024,512) has a difference interval excluding zero, equal to (interval ), meaning higher miss in the planted sample. Only (3,4096,1024) has a KS distance of 0.0079 slightly above the critical value (), and no difference is detectable after correction for 12 tests.
Critical-load group. This group locates the range of the planted approximation. The statistical experiments include five planted configurations at load 0.95, all with . This group uses , to 1024, load 0.85 to 0.95, and direct failure probability at least , comparing the two samples in a region where larger stopping sets cause most failures. The sample size is set by the equivalence test on the miss/u difference at : bound , one-sided level 0.05/21, 80% power when the difference is zero, giving 65,000 failures on each side. Table H.2 reports the 21 configurations.
The difference between the two samples decreases as grows. All five configurations pass the equivalence test at , and the difference intervals at both levels of contain zero; among them, the fraction of pure duplicate edge pairs is 0.97 in some configurations and close to zero in others. For 3 of the 7 configurations with , the test does not establish that the difference lies within the bound: at and load 0.90 the direct sample has higher miss, and at and loads 0.90 and 0.95 the planted sample has higher miss. The
Table H.1: Direct and planted sampling in the low-load group (Skellam rule, ). miss/u lists direct / planted. Difference gives the 95% interval for direct minus planted. KS is the full-range KS distance of , with 95% critical value 0.0075 for 65,000 direct failures and 0.011 for 20,000.
| k | direct pure duplicate edge pairs | miss/u | difference | KS | |||||
|---|---|---|---|---|---|---|---|---|---|
| load failure count | fraction | miss/u | |||||||
| 3 | 1024 | 32 | 1 | 0.04 | 65061 | 1.000 | 0.94 / 0.95 | [-0.05, +0.04] | 0.0059 |
| 3 | 4096 | 512 | 8 | 0.15 | 64977 | 1.000 | 0.95 / 0.96 | [-0.06, +0.03] | 0.0048 |
| 3 | 4096 | 1024 | 16 | 0.31 | 65136 | 0.999 | 0.92 / 0.94 | [-0.07, +0.03] | 0.0079 |
| 3 | 16384 | 8192 | 64 | 0.61 | 65530 | 0.999 | 0.98 / 0.99 | [-0.06, +0.04] | 0.0051 |
| 4 | 256 | 8 | 0.5 | 0.04 | 20071 | 0.998 | 0.54 / 0.52 | [-0.03, +0.07] | 0.0071 |
| 4 | 256 | 16 | 1 | 0.08 | 65839 | 0.995 | 0.68 / 0.69 | [-0.05, +0.03] | 0.0057 |
| 4 | 1024 | 128 | 4 | 0.16 | 20067 | 0.997 | 0.95 / 0.95 | [-0.06, +0.07] | 0.0049 |
| 4 | 1024 | 256 | 8 | 0.32 | 20265 | 0.994 | 0.98 / 0.97 | [-0.06, +0.08] | 0.0048 |
| 4 | 1024 | 512 | 16 | 0.65 | 20038 | 0.988 | 0.94 / 0.97 | [-0.10, +0.04] | 0.0062 |
| 5 | 256 | 32 | 2 | 0.18 | 20137 | 0.999 | 1.00 / 0.98 | [-0.05, +0.09] | 0.0068 |
| 5 | 256 | 64 | 4 | 0.36 | 19885 | 0.997 | 0.91 / 0.95 | [-0.11, +0.03] | 0.0048 |
| 5 | 256 | 128 | 8 | 0.71 | 65470 | 0.995 | 0.99 / 1.01 | [-0.07, +0.02] | 0.0063 |
Table H.2: Direct and planted sampling in the critical-load group (Skellam rule). miss/u lists direct / planted. KS is the full-range KS distance of , with 95% critical value 0.0075.
| k | load | pure duplicate edge pairs fraction | KS | |||||
|---|---|---|---|---|---|---|---|---|
| miss/u | difference | miss/u | difference | |||||
| 3 | 64 | 0.86 | 0.09 | 0.44 / 0.48 | -0.04 ± 0.07 | 0.87 / 0.88 | -0.01 ± 0.04 | 0.0026 |
| 3 | 64 | 0.90 | 0.05 | 0.49 / 0.52 | -0.03 ± 0.08 | 0.82 / 0.87 | -0.05 ± 0.04 | 0.0085 |
| 3 | 64 | 0.95 | 0.02 | 0.44 / 0.51 | -0.07 ± 0.07 | 0.87 / 0.94 | -0.07 ± 0.05 | 0.0088 |
| 4 | 64 | 0.85 | 0.01 | 0.56 / 0.49 | +0.08 ± 0.08 | 0.89 / 0.92 | -0.03 ± 0.05 | 0.0105 |
| 4 | 64 | 0.89 | 0.01 | 0.54 / 0.65 | -0.11 ± 0.08 | 0.89 / 0.96 | -0.07 ± 0.05 | 0.0097 |
| 4 | 64 | 0.95 | 0.00 | 0.39 / 0.55 | -0.16 ± 0.07 | 0.81 / 0.93 | -0.13 ± 0.04 | 0.0131 |
| 5 | 64 | 0.85 | 0.00 | 0.58 / 0.69 | -0.11 ± 0.09 | 0.96 / 1.07 | -0.11 ± 0.05 | 0.0130 |
| 5 | 64 | 0.89 | 0.00 | 0.57 / 0.69 | -0.12 ± 0.09 | 1.00 / 1.13 | -0.13 ± 0.05 | 0.0142 |
| 5 | 64 | 0.96 | 0.00 | 0.55 / 0.72 | -0.16 ± 0.09 | 0.89 / 1.04 | -0.15 ± 0.05 | 0.0118 |
| 3 | 256 | 0.85 | 0.63 | 0.75 / 0.62 | +0.13 ± 0.09 | 0.89 / 0.88 | +0.01 ± 0.04 | 0.0063 |
| 3 | 256 | 0.90 | 0.13 | 0.75 / 0.66 | +0.09 ± 0.09 | 0.95 / 0.88 | +0.07 ± 0.05 | 0.0080 |
| 3 | 256 | 0.95 | 0.02 | 0.77 / 0.64 | +0.14 ± 0.09 | 0.92 / 0.91 | +0.01 ± 0.05 | 0.0060 |
| 4 | 256 | 0.90 | 0.01 | 0.71 / 0.70 | +0.01 ± 0.09 | 0.93 / 0.98 | -0.05 ± 0.05 | 0.0045 |
| 4 | 256 | 0.95 | 0.00 | 0.72 / 0.73 | -0.01 ± 0.09 | 0.93 / 0.97 | -0.05 ± 0.05 | 0.0052 |
| 5 | 256 | 0.90 | 0.00 | 0.71 / 0.75 | -0.04 ± 0.09 | 0.92 / 0.94 | -0.02 ± 0.05 | 0.0052 |
| 5 | 256 | 0.95 | 0.00 | 0.73 / 0.80 | -0.07 ± 0.09 | 0.95 / 0.94 | +0.00 ± 0.05 | 0.0027 |
| 3 | 1024 | 0.85 | 0.97 | 0.79 / 0.78 | +0.01 ± 0.10 | 0.92 / 0.91 | +0.02 ± 0.05 | 0.0033 |
| 3 | 1024 | 0.90 | 0.96 | 0.83 / 0.86 | -0.03 ± 0.10 | 0.93 / 0.95 | -0.02 ± 0.05 | 0.0037 |
| 3 | 1024 | 0.95 | 0.08 | 0.84 / 0.84 | +0.01 ± 0.10 | 0.96 / 0.96 | -0.00 ± 0.05 | 0.0091 |
| 4 | 1024 | 0.95 | 0.00 | 0.89 / 0.91 | -0.02 ± 0.10 | 0.97 / 0.94 | +0.03 ± 0.05 | 0.0054 |
| 5 | 1024 | 0.95 | 0.00 | 0.85 / 0.79 | +0.06 ± 0.10 | 0.96 / 0.95 | +0.01 ± 0.05 | 0.0039 |
two configurations with and loads 0.85 and 0.95 agree at , while at the direct sample's miss/u is higher by 0.13 and 0.14, with intervals excluding zero. For 7 of the 9 configurations with , the test does not establish the bound; the deviation has the same direction in all of them, with the planted sample giving higher miss and the difference interval reaching as far as .
The KS distance shows the same trend: 1 configuration above the critical value at , 1 at , and 8 at . The configuration is , where the difference lies in the middle of the distribution; the maximum difference in the lower tail between the 0.2% and 15% quantiles of the pooled sample is only 0.0039. At , the configuration with a pure duplicate edge pair fraction of 0.97 has as small a KS distance as the configurations with fractions close to zero: the distributions of can be close even when the failure mechanisms differ, so the fraction of pure duplicate edge pairs alone does not predict the distribution error of , which also depends on overlap fluctuations on the scale.

Figure H.2: Direct versus planted sampling. The upper three panels show the critical-load group, grouped by ; the bottom panel shows the low-load group. The vertical axis labels and load. Left: Skellam rule miss/u difference (direct minus planted) with 95% intervals and shading at . Right: full-range KS distance of ; gray ticks mark the 95% critical value for each sample size.
H.4 Random-sign encoding does not change decoding
The decoding-equivalence test (Exp-DEC) compares first-round decoding under standard encoding and random-sign encoding. Across all paired trials, the two encodings agree on success and failure, the recovered results agree with the true residual core, and the decoder never falsely accepts a non-pure cell. The test uses the two-round protocol's actual IBLT encoder and decoder, builds the two parties' tables, and subtracts them.
The test has three groups, each answering one question. The first group covers the full load range and all sign compositions, confirming equivalence over the whole parameter range with a large sample. The second group samples loads more densely near the peeling threshold, where the failure probability changes fastest with load and agreement is most sensitive; Table 6.1 of the main text also comes from this group. The third group examines the intermediate steps of decoding, counting rejected candidates and comparing how the checksum workload of the two encodings varies with sign composition. All three groups use the same construction and verification.
Construction and verification. Each trial regenerates distinct keys and fresh seeds for the cell hash, sign hash, and checksum hash; both encodings share the same keys and hashes. We first verify cell by cell that the three fields after cancellation of the common elements match those obtained by encoding the difference directly, then run decoding. An independent reference uses only the unsigned incidence graph of the true difference and computes its residual 2-core by the degree-one rule. Whenever the actual decoder accepts a key, we check the true residual degree, key, and direction, then update the reference state; these checks cover trajectories ending in both success and failure. After termination, we verify that the recovered keys are exactly the difference outside the 2-core, with all directions correct, reconstruct the three fields from the true residual, compare them cell by cell, and check that all fields are zero if and only if the residual core is empty.
First group: full load grid. The configurations use and . The load is , and the positive-direction ratio with target values ; we round and to integers from the target values. We use the corresponding peeling threshold for each , giving 375 configurations in total. The number of common elements is . For , we run 3,000,000, 900,000, and 100,000 trials per configuration, respectively, for a total of 500,000,000 trials, with 100,000,000 for each . Table H.3 reports the results by . Across all configurations, we observe zero paired success/failure disagreements, non-pure acceptances, incorrect recoveries, or residual-core disagreements. The two decoders together check 211,516,840,988 acceptance operations, all satisfying the true degree-one and direction conditions.
Second group: near the threshold. The configurations use , , 10 load values between 0.90 and 1.05, and . For , we run 100,000, 20,000, and 10,000 trials per configuration, respectively, for a total of 13,000,000, and all checks pass. At , the failure probability ranges from 0.020 to 0.060 at load 0.99 and from 0.993 to 0.998 at load 1.01; at , almost no trials fail at load 0.99 and almost all fail at load 1.01. After failure, the decoder still recovers the difference outside the 2-core. At and load 1.02, the average recovery fraction ranges from 0.18 () to 0.50 ().
Third group: rejected candidates. Rejected candidates are cells with count that fail the checksum or the cell-ownership check. Paired trials count them separately for each encoding. The configurations use , , load 0.5, 0.95, 1, and nine values of from 0 to 1 in steps of 1/8, with 50,000 trials per configuration for a total of 6,750,000, and all checks pass. Figure H.3 reports the results for to 6. Standard encoding has no rejected candidates under one-sided differences because the count equals the degree; as the difference approaches balanced, more opposite-sign cancellation occurs and more candidates are rejected. Under random-sign encoding, the number of rejected candidates differs by at most 0.3% across the nine sign compositions and equals the standard value in the balanced case, consistent with Proposition 3.2: the coding coefficient is an iid random sign independent of . The results for follow the same pattern, with both encodings yielding about 1.27 rejected candidates per difference key at load 1.
Across the three groups, the two decoders together reject non-pure candidates with count , with zero false acceptances; the cell-ownership check rejects zero candidates, and the checksum rejects every incorrect candidate.


Figure H.3: Rejected candidates per first-round decoding, divided by (; both encodings share the same mappings for each configuration). Solid lines with filled markers show standard encoding; dashed lines with open markers show random-sign encoding.
Table H.3: First-round paired decoding results.
| paired trials | successes | failures | |
|---|---|---|---|
| 3 | 100,000,000 | 36,532,515 | 63,467,485 |
| 4 | 100,000,000 | 35,900,798 | 64,099,202 |
| 5 | 100,000,000 | 33,530,250 | 66,469,750 |
| 6 | 100,000,000 | 32,553,378 | 67,446,622 |
| 10 | 100,000,000 | 30,233,256 | 69,766,744 |
H.5 The post-failure estimate is conditionally unbiased for every sign composition
Under random-sign encoding, the conditional mean of the post-failure agrees with zero on all tested configurations, whereas the conditional mean under standard encoding varies with sign composition and . We give the results for both encodings and then describe the data of Figure 6.1 in the main text.
Random-sign encoding. The conditional-unbiasedness test (Exp-UNB) uses to 6 and to 262144, with loads covering the critical window, its left side, and 0.4 to 0.95. Of the 203 configurations, 196 have at least 1000 failure samples. For these, is at most 0.032, with 93% within two standard errors, consistent with the exact unbiasedness in Proposition 4.1; the conditional variance to the left of the critical window is 0.972–1.049. The 84 direct-sampling configurations of the statistical experiments (Exp-STAT) give the same result: is at most 0.019, with 98% within two standard errors.
Composition-by-composition comparison of the two encodings. Table H.4 lists the values of Figure 6.2 in the main text. For each , the same batch of mappings records under both encodings at five compositions, and both encodings use all failure records; the four configurations have failure probabilities of 0.099–0.102. All 20 values under random-sign encoding have absolute value at most 0.005 and lie within two standard errors of zero. Under standard encoding, the bias is largest for one-sided differences and decreases in absolute value as grows, approaching zero at balanced; for one-sided differences its sign changes with , being positive for and negative for . For one-sided differences , so by Eq. (2.4) of Proposition 2.2 the standard-encoding bias has the same sign as , and the change of sign with therefore comes from . The statistical experiments give the same sign change at load 1.0 and failure probability about 0.67: the conditional mean under one-sided differences is +0.20, +0.02, and -0.08 for (standard error 0.007).
Data of Figure 6.1. The data of this figure are generated by the sampling code of the interactive experiment page Peeling Lens: on each random mapping it computes for three encodings, with random signs from an independent generator. The configuration has . Under standard encoding, for one-sided differences and for balanced differences; under random-sign encoding, it is , with conditional variance 1.007, and the failure and full samples have similar distributions, consistent with the large- behavior in Theorem 4.2.
Table H.4: Values in Figure 6.2: mean post-failure (, failure probability about 0.1). Standard errors are 0.0018 for and 0.0031–0.0032 for .
| encoding | |||||||
|---|---|---|---|---|---|---|---|
| 0 (one-sided) | 0.1 | 0.25 | 0.4 | 0.5 (balanced) | |||
| 3 | 13306 | standard | +0.638 | +0.405 | +0.158 | +0.028 | +0.003 |
| random sign | +0.002 | -0.001 | 0.000 | -0.004 | +0.002 | ||
| 4 | 12567 | standard | +0.084 | +0.052 | +0.016 | -0.002 | -0.003 |
| random sign | -0.001 | -0.002 | +0.005 | +0.001 | -0.001 | ||
| 5 | 11418 | standard | -0.218 | -0.137 | -0.054 | -0.009 | +0.002 |
| random sign | +0.003 | -0.005 | 0.000 | -0.002 | -0.004 | ||
| 6 | 10363 | standard | -0.387 | -0.244 | -0.096 | -0.021 | -0.004 |
| random sign | +0.002 | +0.003 | +0.005 | +0.001 | +0.001 | ||
H.6 Distance between the post-failure lower tail and the limit distribution
This section uses the failure records of the statistical experiments (Exp-STAT) to compare the post-failure distribution with the two limit distributions. For small , the discrete limit is close to the empirical distribution while the Gaussian shows a clear deviation; for the Gaussian is already accurate enough. The error of both approximations decreases as grows.
Statistics used in the comparison. The comparison with uses the raw integer sum of squares . By Eq. (C.2) of Appendix C.5, the difference between and is about at . This perturbation is small relative to the standard deviation but shifts the discrete atoms, so we validate the distribution using , as in Theorem 5.3. Figure 6.3 retains all empirical values of and standardizes them on the same scale as ; the KS distance is computed on both sides of every value taken by either distribution.
KS distance. Table H.5 computes the full KS distances from the raw integer records, with the two columns corresponding to the two limits. The discrete-limit column compares with for and , giving nine configurations at each ; includes direct and planted samples, and uses planted samples. The same column also lists, for , the KS distance between and the Gaussian as a control. The Gaussian column compares with over the 75 direct-sampling configurations with , including the critical window and overload. Each configuration has about 20,000 failures, and at this fixed sample size the per-configuration 95% DKW error bound is about 0.010. The KS distance of the discrete limit decreases from 0.019–0.034 at to 0.003–0.012 at , while the Gaussian KS distance at stays above 0.21 throughout. For , the Gaussian KS distance falls to the order of the DKW error bound at , and the 1% quantile error decreases from 0.18 to 0.05.
Table H.5: Full post-failure KS distance. The discrete limit uses ; the Gaussian uses . Quantile error is in units of and gives the maximum absolute error across configurations.
| discrete limit () | Gaussian (, direct sampling) | |||||
|---|---|---|---|---|---|---|
| KS | KS of Gaussian () | configs | KS | 1% quantile error | configs | |
| 256 | 0.019–0.034 | 0.237–0.252 | 9 | 0.010–0.021 | 0.18 | 23 |
| 1024 | 0.008–0.023 | 0.224–0.244 | 9 | 0.005–0.015 | 0.10 | 23 |
| 4096 | 0.004–0.016 | 0.215–0.230 | 9 | 0.005–0.014 | 0.06 | 17 |
| 16384 | 0.003–0.012 | 0.214–0.230 | 9 | 0.003–0.010 | 0.05 | 12 |
Conditional variance. The conditional variance reflects the same structure. Among the 84 direct-sampling configurations of the statistical experiments, the conditional variance under random-sign encoding is 0.98–1.06 for and 0.985–1.020 within the critical window. For small , it is well above one: about 1.12 at , about 1.5 at , and above 10 when , consistent with , obtained by converting the variance of the limit distribution in Theorem 5.3 to the scale. The excess comes from the shift of the duplicate edge pair, which is non-negligible relative to .
H.7 Conditional miss rate and extra capacity at finite size
This section supplements the numerical results of Section 6.4. The main text concludes that the Skellam rule keeps the conditional miss rate near on all configurations, the Gaussian rule does so only for large , and the extra capacity of the two rules is almost the same and decreases as . We first give the complete results of the statistical experiments (Exp-STAT), the miss/u and extra capacity of both rules, and then recheck the configurations closest to the risk bound with independent samples (Exp-WORST).
Conditional miss rate of the Skellam rule. Of the 189 configurations of the statistical experiments (Exp-STAT), 84 use direct sampling and 105 use planted sampling. Before judging whether miss/u exceeds 1, we consider sampling error: each configuration has about 20,000 failures, corresponding to about 200 misses at , so the standard error of miss/u is about 0.07. At this precision, the Skellam rule's maximum miss/u on direct-sampling configurations is 1.04 (the same at both levels of , occurring within the critical window), indistinguishable from 1; the maximum on planted configurations is 1.03, computed under the planted distribution.
On direct-sampling configurations with , the medians at the two levels of are 0.79–0.86 and 0.95–0.97. Low-load configurations with are more conservative, with a median of at most 0.76 at , because of the discrete structure: the lower tail is concentrated on a few lattice points and the rule cannot use the whole risk budget exactly. Under the Skellam rule every sample has at least one accepted candidate; if no candidate is accepted, , which does not count as a miss.
Excess of the Gaussian rule. For , the Gaussian rule's miss/u is 0.83–1.19 across all configurations, at the same level as the Skellam rule. As decreases, the excess grows rapidly. Table H.7 lists the values at fixed for , corresponding to the triangles with in Figure 6.4 of the main text: at it is about 8–11 at and above 33 at . Comparing table sizes, the values at and 16384 differ by at most 10% for , so the excess does not vanish as the table grows, consistent with the finite limit in Theorem 5.3. For very small there is another case: when the observation lies near , observations for fall below the acceptance threshold of every candidate, the Gaussian rule returns , and no miss occurs.
Extra capacity. The price of controlling miss is an upper bound above , and Table H.6 summarizes this extra capacity. For the extra capacity is determined mainly by the table size and roughly halves when grows by a factor of 4, consistent with ; the medians of the two rules differ by at most 2 percentage points in the same configuration. When is bounded, itself is small and the ratio is less meaningful, so the right half of the table lists the excess number of elements . Here the Gaussian rule has a lower upper bound, corresponding to its excess miss at small . For fixed small , the 90% quantile of the upper bound at exceeds by 4–5.
Table H.6: Extra capacity of the upper bound in the statistical experiments (Exp-STAT). Left: for and , with the median taken over configuration medians and the 90% quantile taken as the maximum over configuration 90% quantiles; right: median of when is bounded.
| Skellam rule | Gaussian rule | ||
|---|---|---|---|
| median | 90% quantile | median | |
| 256 | 25% | 41% | 23.6% |
| 1024 | 11.3% | 18% | 10.9% |
| 4096 | 5.4% | 8.5% | 5.3% |
| 16384 | 2.6% | 4.1% | 2.6% |
| Skellam rule | Gaussian rule | |
|---|---|---|
| 1 | 5 | 3 |
| 2 | 8 | 6 |
| 4 | 15 | 14 |
Case . When the table size drops to , the overlap between the duplicate edge pair and the remaining edges, omitted by the null distribution, is no longer negligible (Section 6.4). Among the 42 configurations with , the Skellam rule's maximum miss/u is 1.08 at (, , 95% Wilson interval 1.02–1.15), beyond sampling error, and 1.04 at .
Worst-configuration test (Exp-WORST). The maximum miss/u of the statistical experiments lies within sampling error, but each configuration has only about 20,000 failures, which is insufficient to confirm that the highest-risk configurations also meet the target. This test uses samples independent of the statistical experiments (Exp-STAT) to recheck the Skellam rule's conditional miss rate on the configurations closest to the risk bound, with both the selection rule and the sample sizes fixed before sampling. We first select the 5 configurations whose miss/u
Table H.7: Gaussian rule miss/u at fixed ().
| 0.5 | 36.4 | 33.2 | 33.2 | 9.37 | 8.81 | 9.39 |
| 1 | 11.3 | 8.74 | 8.27 | 4.09 | 4.24 | 4.60 |
| 2 | 3.06 | 2.48 | 2.60 | 2.00 | 1.70 | 1.94 |
| 4 | 1.52 | 1.41 | 1.50 | 1.21 | 1.19 | 1.20 |
| 8 | 1.12 | 1.04 | 1.08 | 1.07 | 1.08 | 1.06 |
| 16 | 0.98 | 0.93 | 1.00 | 0.98 | 1.01 | 1.00 |
exceeds 1 in exploration; the remaining slots are filled in descending order of the larger of the two one-sided 95% exact upper bounds divided by in the statistical experiments (Exp-STAT). Four highly ranked configurations have only planted samples, because direct sampling cannot obtain failures at feasible cost, and the rule skips them in favor of later configurations; their miss/u under is at most 1.02. Only one of the selected 12 configurations uses .
The criteria are also fixed before sampling. The 12 configurations and two levels of give 24 judgments. A judgment passes if its one-sided simultaneous confidence upper bound is at most 1.1u, using the Clopper–Pearson interval with a Bonferroni correction over the 24 judgments. Sample sizes are chosen by power: for each configuration and level of , we use the previously estimated 95% Wilson upper bound (at most 1) as the planning value, choose the failure count that gives a passing probability of at least , and take the larger count over the two levels, so that at the planning value the probability that all 24 judgments pass is at least 80%. We sample in blocks and analyze all blocks through the first point at which the cumulative failure count in block order reaches the target; stopping depends only on the failure count.
All 24 judgments pass, with a maximum upper bound of 1.024u; 22 of the 24 two-sided 95% intervals lie entirely below 1 and the other 2 cover 1. Table H.8 lists the load, failure count, miss/u, and one-sided simultaneous confidence upper bound of each test configuration, and the segments in Figure 6.5 of the main text are two-sided 95% intervals. As a control, at the two test configurations with and , the Gaussian rule's miss/u is 11.1 () and 4.1 () at , and 2.9 and 1.8 at .
Table H.8: Skellam rule miss/u on the Exp-WORST configurations, with one-sided simultaneous confidence upper bounds in parentheses (per-item level 0.05/24).
| configuration | load | failures | ||
|---|---|---|---|---|
| 0.04 | 55,509 | 0.53 (0.62) | 0.97 (1.02) | |
| 0.08 | 289,001 | 0.90 (0.95) | 0.91 (0.94) | |
| 0.23 | 289,394 | 0.79 (0.83) | 0.95 (0.97) | |
| 0.65 | 105,689 | 0.74 (0.82) | 0.93 (0.97) | |
| 0.95 | 298,439 | 0.85 (0.90) | 0.95 (0.98) | |
| 1.00 | 333,476 | 0.93 (0.98) | 0.97 (1.00) | |
| 1.05 | 332,350 | 0.90 (0.95) | 0.99 (1.01) | |
| 1.05 | 332,353 | 0.83 (0.87) | 0.96 (0.98) | |
| 1.29 | 293,250 | 0.95 (1.01) | 0.98 (1.01) | |
| 1.50 | 332,350 | 0.91 (0.96) | 0.98 (1.00) | |
| 1.50 | 290,808 | 0.96 (1.02) | 0.98 (1.00) | |
| 3.00 | 289,952 | 0.95 (1.01) | 0.97 (1.00) |
Data of Figure 6.7. Of the 12 configurations in the upper row of Figure 6.7, two (, and , ) are test configurations; the other 10 follow the same design, with sample size and stopping rule fixed before sampling, and each has 291,000 to 332,000 direct-sampling failures (target about 290,000, stopping in blocks). Under random-sign encoding, common elements cancel in the difference table and sign composition does not affect the post-failure distribution, and the used by the protocol under balanced differences also leaves the upper bound unchanged; the protocol experiments (Exp-PROTO), the statistical experiments (Exp-STAT), and these direct samples therefore estimate the same conditional miss rate, and we pool them by configuration in the figure. For these 10 configurations, the Skellam rule's one-sided upper bound is at most at and at .
H.8 Reliability and communication cost of the two-round protocol
The protocol experiments (Exp-PROTO) run the complete two-round synchronization on a real IBLT, corresponding to Section 6.5 of the main text. They test whether, when the second-round table length is set from the upper bound after a first-round failure, both the final reliability and the communication cost approach those of an oracle that knows the true .
Trial construction. Each trial generates common elements and difference elements separately, with all differences on the side for one-sided differences and half on each side for balanced differences. Common elements cancel in the difference table but participate as usual in table construction and cell-by-cell subtraction. The two rounds use independent cell hashes and share the sign hash and checksum hash. Trials that succeed in the first round require no upper bound, so only first-round-failure trials enter the comparison; the two levels of are evaluated separately on the same batch of trials. All upper bounds also share the same keys and hashes: for each first-round failure we record , the second-round size, and the second-round outcome for each bound, so different bounds can be compared in paired fashion by trial. The second round decodes independently on the new table, consistent with Theorem 5.7; beyond the table length of Section 3.2 it imposes a minimum of 64 cells. All second-round recovery results match the true difference element by element.
Communication volume and sample size. We count 20 bytes per cell: 4 bytes for the transmitted count and 8 bytes each for keySum and checksum, plus an 8-byte global counter for random-sign encoding. Both levels of use the same number of trials per configuration, set to give about 20,000 first-round failures, , with a cap of 3,000,000; the 13 configurations with no first-round failure in the pilot receive a fixed 100,000 trials. Among them, the 8 configurations with at load 0.95 and still have no first-round failure in these trials and contribute only to the failure-rate and byte statistics. Intervals for the success-rate difference use the Newcombe hybrid score method for paired proportion differences.
Table H.9 summarizes the protocol results by and . The final failure rate of both rules is at most 0.3% even at the smallest , and the conditional miss rate on balanced configurations agrees with the statistical experiments (Exp-STAT) of Section 6.4. Even when the upper bound is sufficient (), second-round peeling itself can still fail, accounting for 0.06–0.08% at . The oracle's upper bound equals , so by Eq. (5.10) of Theorem 5.7 its two-round failure comes only from the second term, the failure of second-round peeling with sufficient capacity. The oracle's second-round table is therefore smaller than those of the two rules, and in paired comparisons by trial the Skellam rule's success rate is up to 0.35 percentage points higher than the oracle's on some configurations. The bounds of the two rules occasionally underestimate , and the second-round margin absorbs this slight underestimate (Section 5.5), so their final failure rates stay at the oracle's level.
Table H.9: Two-round protocol summary (). miss/u gives the median / maximum over balanced configurations with at least 1000 first-round failures. Final failure is the maximum over configurations. Second-round size and total bytes are medians relative to the oracle. The oracle's upper bound equals and is independent of ; both levels share the same trials, so the oracle results are identical and appear only in the upper half.
| upper bound | miss/u | final failure | second-round size | total bytes | |
|---|---|---|---|---|---|
| 256, 0.01 | Skellam | 0.73 / 0.87 | 0.24% | +25.6% | +14.6% |
| Gaussian | 1.00 / 1.13 | 0.25% | +23.9% | +13.7% | |
| oracle | - | 0.51% | 0 | 0 | |
| 1024, 0.01 | Skellam | 0.88 / 1.00 | 0.06% | +11.4% | +6.5% |
| Gaussian | 1.05 / 1.17 | 0.08% | +11.1% | +6.3% | |
| oracle | - | 0.09% | 0 | 0 | |
| 4096, 0.01 | Skellam | 0.92 / 1.01 | 0.02% | +5.4% | +3.1% |
| Gaussian | 1.01 / 1.09 | 0.03% | +5.3% | +3.0% | |
| oracle | - | 0.03% | 0 | 0 | |
| 16384, 0.01 | Skellam | 0.97 / 1.07 | 0.01% | +2.6% | +1.5% |
| Gaussian | 1.02 / 1.13 | 0.01% | +2.6% | +1.5% | |
| oracle | - | 0.02% | 0 | 0 | |
| 256, 0.05 | Skellam | 0.93 / 1.01 | 0.29% | +16.9% | +9.7% |
| Gaussian | 1.01 / 1.07 | 0.27% | +16.3% | +9.4% | |
| 1024, 0.05 | Skellam | 0.95 / 1.05 | 0.13% | +7.8% | +4.5% |
| Gaussian | 1.02 / 1.09 | 0.11% | +7.7% | +4.4% | |
| 4096, 0.05 | Skellam | 0.97 / 1.04 | 0.02% | +3.8% | +2.2% |
| Gaussian | 1.01 / 1.07 | 0.02% | +3.8% | +2.1% | |
| 16384, 0.05 | Skellam | 1.00 / 1.05 | 0.01% | +1.9% | +1.1% |
| Gaussian | 1.01 / 1.06 | 0.02% | +1.9% | +1.1% |
Comparison with the calibration rule [32]. The existing self-sizing approach enlarges the first-round estimate by an offline calibration factor that must cover the worst sign composition. This comparison examines how sensitive that approach is to sign composition under the two encodings. The baseline is the calibration rule of [32]: for that work groups results by first-round size and takes the worst 1% quantile of post-failure over several loads and sign compositions (0.8045, 0.8997, 0.9482 for ). We use only its upper-bound component with the same second-round table length as our two rules; the capacity coefficient of that protocol, the deduction of elements recovered in the first round, and joint peeling across the two rounds are outside the comparison. Table H.10 compares this rule under both encodings, with and without accounting for .
With the same calibration factor, the standard encoding's conditional miss rate varies widely with sign composition, whereas the random-sign encoding's range is much smaller. For one-sided configurations, standard encoding ranges from 0.05u to 1.03u and random-sign encoding from 0.77u to 1.04u. At fixed load 0.95–1.0, the difference is clearer: for one-sided and balanced differences, standard encoding gives 0.05–0.40u and 0.86–0.94u, and random-sign encoding gives 0.80–0.95u and 0.85–1.01u. Accounting for makes the one-sided miss zero under both encodings. In reliability and communication volume the two encodings hardly differ: in paired comparisons by trial, with the calibration factor and the choice of whether to account for fixed, the success-rate difference between random-sign and standard encoding lies within , with 2 of the 30 intervals excluding zero (both at and load 1.0), and the median total-byte difference is about 0.01%.
Table H.10: Calibration rule versus the Skellam rule (). The conditional miss rate /u gives the median / maximum for balanced configurations and the range for one-sided configurations (at least 1000 first-round failures). Final failure is the maximum. Total bytes are the median relative to the oracle.
| rule | balanced | one-sided | final failure | total bytes | |
|---|---|---|---|---|---|
| 256 | standard encoding, calibration factor | 0.92 / 1.02 | 0.09–0.90 | 0.27% | +13.9% |
| standard encoding, calibration factor, with | 0.92 / 1.02 | 0 | 0.26% | +13.9% | |
| random sign, calibration factor | 0.87 / 0.97 | 0.85–0.93 | 0.23% | +13.9% | |
| random sign, Skellam rule | 0.72 / 0.80 | 0 | 0.24% | +14.6% | |
| 1024 | standard encoding, calibration factor | 0.88 / 0.94 | 0.05–1.03 | 0.07% | +6.4% |
| standard encoding, calibration factor, with | 0.88 / 0.94 | 0 | 0.07% | +6.4% | |
| random sign, calibration factor | 0.98 / 1.03 | 0.80–1.04 | 0.08% | +6.4% | |
| random sign, Skellam rule | 0.89 / 0.92 | 0 | 0.06% | +6.5% | |
| 4096 | standard encoding, calibration factor | 0.84 / 0.86 | 0.36–0.89 | 0.02% | +3.1% |
| standard encoding, calibration factor, with | 0.84 / 0.86 | 0 | 0.02% | +3.1% | |
| random sign, calibration factor | 0.90 / 0.94 | 0.77–0.95 | 0.02% | +3.1% | |
| random sign, Skellam rule | 0.97 / 1.01 | 0 | 0.01% | +3.1% |
H.9 Computation cost
The computation-cost measurement (Exp-COST) covers three parts: table size, construction time, and protocol time for the Skellam rule's lookup implementation; sizing time and Poisson-table memory for online computation; and the extra first-round decoding time of random-sign encoding.
Measurement and configurations. The host has dual Intel Xeon Silver 4410Y processors (nominal 2.0 GHz, 24 physical cores and 48 logical CPUs), runs Linux, and uses a single-threaded Go implementation pinned to one core. Timing uses two runs. Before the first, we pause the host's task queue and wait for all tasks in the current batch to finish. We record that core's frequency and system load every 10 seconds; the frequency remains at 2.001 GHz throughout the run. Figure H.4 and Table H.11 come from this run. In the second run, with the task queue idle, we repeat protocol timing with an added lookup branch. Table 6.2 comes from this run; its online and Gaussian protocol times differ from the first run by less than 3%. Protocol timing uses and 100,000 common elements, with the same 40 trials per configuration repeated 10 times and branch order rotated across repetitions. The second run includes lookup, online, Gaussian rule, oracle, and standard-encoding branches. First-round decoding time is counted per trial.
Table lookup. Following Appendix G.5, we build 24 tables for , and , with covered up to first-round loads of 1.5 and 3. Every is below , so each entry occupies 2 bytes. At , tables covering load up to 1.5 occupy 121–172 KB and take 5–7 s to construct on a single thread; those covering load up to 3 occupy 241–345 KB and take 20–25 s. At , the tables occupy 8–22 KB and take less than 0.6 s to construct. For every in each table, we compare the stored result with the online implementation used in the experiments. All 24 tables agree entry by entry. A separately measured lookup at a random index takes about 1 ns. For protocol timing, we build three additional tables with and , covering first-round loads up to 4, and likewise verify them entry by entry. All first-round failure observations fall within these tables. In the protocol, each lookup-branch sizing takes 0.40–0.88 s, compared with 0.75–1.33 s for the Gaussian rule measured in the same way. Both include timing overhead. Total protocol time for the lookup branch differs from the Gaussian rule by less than 0.5%.
Online sizing time and memory. The Skellam rule computes the upper bound online when parameters vary across synchronizations or observations exceed the lookup table's range. It uses one Poisson table per candidate , and whether these tables can be reused determines the sizing time, so the timing distinguishes cache conditions. Poisson tables are kept in a main-memory cache managed by the program. A cache entry corresponds to one value in the Poisson table of some candidate and stores its probability and cumulative probability as two double-precision numbers, 16 bytes in total; the capacity is 16,000,000 entries (about 256 MB). When the cache exceeds its limit, the program evicts tables in least-recently-used order until the occupancy plus the size of the incoming table is at most half the capacity, then inserts the new table. We time sizing under three cache conditions: cold starts each sizing with an empty cache; session has the same receiver perform consecutive synchronizations at fixed , each possibly involving one or two protocol rounds and each processing a new observation, with the cache retained between synchronizations; warm immediately recomputes the same observation once. For sizing timings, we use the first 200 failure records per configuration from the statistical experiments (Exp-STAT) at , repeating each of the four modes, cold, session, warm, and Gaussian rule, 10 times, with their order rotated across repetitions.
Appendix G.4 predicts that sizing cost is roughly proportional to , that is, roughly , and the measurements agree. Figure H.4 fixes , with load proportional to . Cold time grows roughly as load to the power 1.9, or , from 0.06–0.12 ms at load about 0.08 () to 69–84 ms at load 3. Cache reuse reduces the time markedly: session is about one fifth of cold, and warm about one sixth to one seventh. At load 3, the Poisson tables requested cumulatively in session exceed the cache limit, the program evicts some old tables, and session rises to 41–55 ms. In the full protocol, peak session memory for Poisson tables is 49–86 MB at load 1.05, 128–174 MB at load 1.5, and reaches the 256 MB limit at load 3. Gaussian rule sizing takes only 0.06–0.29 s.
The exact Skellam CDF can also be replaced by a Gaussian approximation at large parameters: in the exploration phase, across the 33 configurations with Poisson mean above 200, the miss count is unchanged, and the fraction of samples whose changes is at most 1.8% in 32 of these configurations, and 10% in the other configuration with only 10 samples. All results in this paper use the exact rule.


Figure H.4: Skellam rule time per sizing (, single thread, cache limit 16,000,000 entries). (a) cold; (b) session (solid) and warm (dashed).
Extra decoding cost of random-sign encoding. This cost arises in the pure-cell candidate check of first-round decoding. The decoder treats cells with count as candidate pure cells and confirms them with the checksum. Under standard encoding with one-sided differences, all keys have the same sign, so a cell with count ±1 necessarily contains exactly one key and every candidate passes; with both positive and negative differences, for example three keys with signs +1, +1, -1 in one cell also give count +1, and the checksum rejects such candidates. Under random-sign encoding the key signs are iid, so the situation equals that of balanced differences regardless of sign composition. A separate run (30 trials per configuration, 3 repetitions) counted the candidates checked per recovered key: random-sign encoding checks 1.77 () and 2.53 (); standard encoding checks 1.00 under one-sided differences and matches random-sign encoding under balanced differences.
Table H.11 gives the ratio of first-round decoding times of the two encodings. Under balanced differences the two are almost the same. Under one-sided differences, the extra time of random-sign encoding comes from the additional candidate checks, and the ratio grows with load; at load 3 it is about 3.1, because standard encoding stops almost immediately under one-sided differences. At load 3 the absolute times of both are only 0.04–0.16 ms, less than 1% of total protocol time.
Table H.11: Ratio of first-round decoding times (random-sign encoding / standard encoding; , 100,000 common elements, each trial timed as the median of 10 repetitions).
| load | difference | |||
|---|---|---|---|---|
| 1.0 | one-sided | 1.26 | 1.41 | 1.40 |
| 1.05 | one-sided | 1.41 | 1.54 | 1.70 |
| 1.5 | one-sided | 1.75 | 2.24 | 2.41 |
| 3 | one-sided | 3.17 | 3.12 | 3.11 |
| 1.05 | balanced | 1.06 | 1.04 | 1.03 |
| 3 | balanced | 1.00 | 0.99 | 1.00 |