Research
Understanding Circulant Permutation to Extend the CMinHash Estimator
Understanding Circulant Permutation to Extend the CMinHash Estimator Overview Research area: Statistical machine learning / randomized hashing algorithms for similarity estimation (stat.ML). Technical

- arXiv
- 2610.18551
- Published
- 2026-10-13
- Authors
- Keegan Kang, Avery Hood, Benedict H. W. Wong
AI summary
Understanding Circulant Permutation to Extend the CMinHash EstimatorOverview
Research area: Statistical machine learning / randomized hashing algorithms for similarity estimation (stat.ML).
Technical level: Advanced. The paper is built on probability theory, sampling-without-replacement combinatorics, and asymptotic (large-D) variance analysis. The prose is readable, but the results are stated as lemmas and theorems with multi-term variance formulas.
One-sentence scope: The paper replaces the intricate variance analysis behind CMinHash with a simpler, generalizable "sampling without replacement" framework, derives explicit approximate variance expressions, and demonstrates the approach on the Minner estimator for asymmetric hashing.
What This Paper Is About
Estimating the Jaccard similarity J = a / (f_1 + f_2 - a) between two large sets normally requires many independent random permutations (Broder's MinHash), which costs variance and storage. CMinHash reduces this to two permutations (σ, π) by reusing π across K circulant rightward shifts, but its original variance proof is a hard combinatorial calculation that is difficult to transfer to other MinHash estimators. This paper supplies a new, more portable way to compute the expectation and variance under circulant permutation, and shows how to apply it beyond CMinHash.
Key Contributions
-
A new proof of Lemma 2.4 from the CMinHash paper. The authors use a different paradigm — treating the random permutation as a draw order under sampling without replacement — which makes expectations under
σsimpler to compute and, unlike the original approach, reusable for other MinHash estimators. -
A simpler approximate variance expression for the CMinHash estimator. Working under the assumption that
D → ∞(a common assumption in this literature), they derive a variance with a remainder of orderf/D²whenf/D → 0, and of orderD⁻²whenf/Dis bounded away from zero. The authors state the result does not require the equality flagged in Appendix A.2 of the original paper, making it slightly stronger. -
Extension of the circulant permutation framework to the Minner estimator (asymmetric hashing). They analyze a setting where
ℱ₊andℱ₋are different sets, and separately a setting where the statistic is a count (how many elements ofℱ₋are seen before the first element ofℱ₊), going beyond the simple 0/1 collision indicator. -
Numerical validation that the approximation tracks empirical MSE. On synthetic data with varying
D,f,a, and on the Words dataset, the theoretical variance curves are reported to overlap almost perfectly with empirically measured mean square error.
Main Findings
-
Broder's baseline variance: For
Kindependent random permutations,Var(θ^(MH)) = J(1 - J)/K. This is the reference point against which all the paper's comparisons are made. -
Simplified covariance under
σandπ(Lemma 2): For1 ≤ s < t ≤ Kwitht - s = Δ, whenf/D → 0, the covariance is-J(1-J)f / (2(f-1)(D-1)) + O(f/D²)whenDis even andΔ = D/2, and-J(1-J)f / ((2f-1)(D-1)) + O(f/D²)otherwise. TheΔ = D/2case is a special boundary case that the authors handle explicitly via the termλ_{D,K}. -
Non-sparse regime: With
B_D = 2D - f - 1andf/Dbounded away from zero,Cov_{σ,π}(1_s, 1_{s+Δ}) = -J(1-J)/B_D + O(D⁻²)andE_{σ,π}(1_s 1_{s+Δ}) = J² - J(1-J)/B_D + O(D⁻²). -
Simplified CMinHash variance (Theorem 2): When
f/D → 0,Var_{σ,π}(θ^(CMH)) = [J(1-J)/K] · [1 - (f/(D-1)) · {(K-1-λ_{D,K})/(2f-1) + λ_{D,K}/(2(f-1))}] + O(f/D²), whereλ_{D,K} = 1{D even} · (2K - D)₊ / Kand(x)₊ = max{x, 0}. Whenf/Dis bounded away from zero,Var_{σ,π}(θ^(CMH)) = [J(1-J)/K] · (1 - (K-1)/B_D) + O(D⁻²). -
Variance reduction is guaranteed for
K > 1: The covariance proof yields a negative expression for every covariance term, so the CMinHash variance is smaller thanJ(1-J)/K. In the non-sparse regime the first-order reduction is described as approximately scaled by(1 - (K-1)/(2D - f - 1)). -
The leading variance ratio is independent of
awhenD,f, andKare fixed. The authors state this verifies the Uniform Superiority (Theorem 3.4) and Consistent Improvement (Proposition 3.6) claims of the original CMinHash paper. -
Approximation accuracy: Synthetic experiments averaged over 10,000 iterations show the theoretical curves overlapping the empirical MSE almost perfectly at
D = 128andD = 256. AtD = 128withf = 2or4, the variance approximation is slightly higher than the empirical MSE; atD = 1024forf = 2, 4, the lines overlap almost perfectly. On the Words dataset the approximation and empirical MSE also overlap almost perfectly. Full details live in Appendix A.5 (Figures 6 and 7). -
Minner estimators (Theorem 3, heavily modified from the Minner paper): With
y_t = 1{min(π_t(S₂)) ∈ π_t(S₁)}andm_tthe count of elements inπ_t(S₁)strictly less thanmin(π_t(S₂)), the estimatorsf₂ Σ y_t/Kandf₁ - (f₂+1) Σ m_t/Kboth have expectationa, with variancesa(f₂-a)/Kandf₂(f₁-a)(f₁+f₂-a+1)/(K(f₂+2))respectively. -
Circulant permutation applied to
y_t(Corollary 1): WithC_s = a,C_f = f₂ - a,C_n = D - f₂, andB_D = D + C_n - 1, the variance follows the same shape as Theorem 2, replacingfwithC_s + C_fthroughout. The variance of a single trial drawing an element ofℱ₊beforeℱ₋isC_s C_f / (C_s + C_f)², independent ofC_n. -
A practical warning: The magnitude of the variance reduction depends on
C_s + C_f. MinHash algorithms whereℱ₊andℱ₋are small relative toDreceive only a small variance reduction when CMinHash(σ, π)is applied. -
Circulant permutation applied to counts (Lemma 3 and Theorem 4): Taking
ℱ₊ = {bullet-bullet, circle-bullet},ℱ₋ = {bullet-circle}, withC_s = f₂andC_f = f₁ - a, the variance of observingθelements ofℱ₋before the firstℱ₊element isC_s C_f (C_s + C_f + 1) / ((C_s + 1)² (C_s + 2)). Lemma 3 gives the cross-shift expectation withB_Δ = 2C_s - |ℒ₀| + 1, plus covariance expressions for both the "C_s,C_ffixed asD → ∞" regime and the "C_s/D,C_f/Dbounded away from zero" regime. The full statement of Theorem 4 is cut off in the available text and is not reported.
Methodology in Plain English
The central move is a change of mental model. In the original CMinHash paper, a random permutation is manipulated algebraically, and the variance computation becomes a constrained combinatorial sum. Here the authors instead picture a permutation as a draw order: each element of the universe is drawn one at a time without replacement, and min{π(S₁)} is simply the draw on which the first marked element of S₁ appears.
Under that picture, every element of the universe is one of four types — in both sets, in only one, or in neither — and the desired event becomes "an element of ℱ₊ is drawn before an element of ℱ₋," where ℱ₊ and ℱ₋ are chosen to match whichever MinHash variant is being analyzed. Computing the probability of that event is much easier than the original approach, because the paper's own analogy states it cleanly: the probability of drawing a blue marble before a red one is always 1/3 regardless of how many green marbles are in the bag. The neutral category is the green marble and can be ignored.
To get the variance, the authors need the covariance between 1_s and 1_{s+Δ} — the indicator that shift s is a "success" and the indicator that shift s+Δ is a success. They express the counts |{(A,B) | Δ}| (pairs of element types exactly Δ apart) as sums of indicators, take expectations across the random permutation σ, and then take a large-D limit. The sparse case (f/D → 0) is handled by first conditioning on the positions of the f elements that are not neutral, giving an exact expression whose first term involves when two such entries sit next to each other; the non-sparse case applies the delta method to the same exact expression. A leftover bookkeeping term λ_{D,K} tracks the proportion of terms where Δ = D/2, which behaves differently from the rest because of the wrap-around symmetry of circulant shifts.
Validation is by simulation: synthetic vectors with varying D, f, and a, 10,000 iterations per configuration, with the theoretical approximation plotted over the empirical MSE. A supplementary check uses the Words dataset.
Why This Matters
Impact on research. The paper's argument is that its approach should be how MinHash algorithms are analyzed, especially at large D, "as large D necessitated the need of MinHash in the first place." Previously, a researcher wanting to wrap a new MinHash estimator in circulant permutations would have to independently prove a lower variance and would struggle to compare two circulant-permutation algorithms against each other, since the original variance lived as a combinatorial sum under constraints. The new expressions are closed-form enough to compare directly, and the paper claims they remain approximately accurate even at the small value D = 128.
Real-world applications (domains where Jaccard similarity estimation is the underlying primitive; the paper cites non-statistical disciplines as users of this similarity measure):
- Near-duplicate detection across large document or web-page corpora.
- Large-scale record linkage and entity resolution, where pairwise similarity over many records must be computed cheaply.
- Clustering and all-pairs similarity search, where pairwise similarity cost dominates runtime.
- Asymmetric search, where one small baseline set is compared against many larger sets — the exact setting the Minner analysis targets.
Industry relevance. The appeal of CMinHash is that K shifts of a single permutation replace K independent permutations, which is a direct storage and computation saving at scale. The paper's contribution is what makes that saving deployable for algorithms other than CMinHash: it provides the variance estimate an engineer needs to predict how much accuracy is lost or gained when substituting circulant shifts for independent permutations, and it flags when the substitution barely helps (ℱ₊ and ℱ₋ small relative to D).
Future Directions
-
Complete the count-based analysis. Theorem 4 is only partially stated in the available text. The count-based circulant framework for the
m_tstatistic is the paper's most novel structural extension and its full variance comparison toV_Kremains to be laid out. -
Apply the template to the other estimator families. The paper lists k-min sketches / Conditional Random Sampling, b-bit minwise hashing, MinMaxHash, and One Permutation Hashing as existing MinHash approaches. The framework is presented as general, but only CMinHash and Minner are worked out in detail, so each remaining family is a candidate case study.
-
Combine with the frameworks that "always improve" an existing algorithm. The paper groups control variates and maximum likelihood estimation alongside CMinHash as techniques that can be layered onto any MinHash method. Whether these compose with circulant permutation — and whether the variance reductions add or interact — is not addressed.
-
Tighten the small-
Dapproximation. The authors report that atD = 128withf = 2, 4the approximation slightly overstates the empirical MSE. They conclude the approximation is "practical enough to do comparisons," which leaves open whether a refined remainder term could make it accurate at smallDin general.
Target Audience
Researchers and graduate students working on randomized hashing, similarity search, and streaming algorithms — particularly anyone who wants to build a new MinHash estimator on top of circulant permutations and needs a variance result they can actually compute. It is also relevant to practitioners who deploy MinHash at scale (deduplication, record linkage, near-duplicate search) and need to reason about the accuracy cost of trading independent permutations for circulant shifts. The paper presupposes comfort with expectation, covariance, asymptotic notation, and sampling without replacement; readers without that background will find the plain-language intuition in Section 2 (the blue/red/green marble analogy and the draw-order pictograms) the most accessible entry point.
Authors’ abstract
CMinHash promises a new direction for designing MinHash algorithms with reduced variance and storage space via circulant permutations. However, the original variance analysis is difficult to extend to other MinHash estimators. We present a new approach that gives explicit and easily comparable approximate variance expressions, and use it to analyze the Minner estimator. Numerical experiments show that our variance expression matches the empirical mean square error (MSE) of estimates. Our work thereby demonstrates how to apply circulant permutation to other MinHash estimators and compute their approximate variance.