arXiv:2610.41211cs.DSOct 2026

Manuscript Offprint

arXiv:2610.41211

Random-Sign IBLTs: Calibration-Free Self-Sizing After Decoding Failure

Min Wu

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 dd 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 d≥2d \geq 2 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 AA and BB to find their symmetric difference A△BA \triangle B, 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 MM cells and hashes each element into the count, keySum, and checksum fields of kk 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 d=∣A△B∣d = |A \triangle B| differing elements. An element present only in AA has direction +1, and an element present only in BB has direction -1. When the difference size dd is small enough relative to the table size MM (the load d/Md/M 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 dd exceeds the table's capacity, peeling stalls and decoding fails.

An IBLT presents a basic tension: the table size MM must be fixed at construction, yet the difference size dd remains unknown until synchronization completes. In practice, dd 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 dd is small. After recovery from a network partition or a batch write, dd 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 dd differing elements. The receiver estimates an upper bound UU on dd from the sum of squared counts in this table. The second round allocates sufficient capacity based on UU and completes synchronization. The key requirement is to control the underestimate risk conditioned on failure (the conditional miss rate). If U<dU < d (a miss), insufficient capacity puts the second-round table at risk of another failure. An overly conservative UU 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 d^\hat{d} and obtain an upper bound UU by inversion. Estimating dd 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 AA to those from BB). When we estimate dd 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 kk (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 dd 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 MM 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 (±1)2=1(\pm 1)^2 = 1) and recovers the original key. Computing the key's random sign and comparing it with count then reveals whether the key belongs to set AA or BB. 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 d^\widehat{d} is exactly unbiased on every fixed mapping, giving conditional mean dd 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 dd 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.

References (25)