Skip to content
AI.info

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

Understanding Circulant Permutation to Extend the CMinHash Estimator
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 Estimator

Overview

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

  1. 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.

  2. 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 order f/D² when f/D → 0, and of order D⁻² when f/D is 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.

  3. 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.

  4. 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 K independent 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): For 1 ≤ s < t ≤ K with t - s = Δ, when f/D → 0, the covariance is -J(1-J)f / (2(f-1)(D-1)) + O(f/D²) when D is even and Δ = D/2, and -J(1-J)f / ((2f-1)(D-1)) + O(f/D²) otherwise. The Δ = D/2 case is a special boundary case that the authors handle explicitly via the term λ_{D,K}.

  • Non-sparse regime: With B_D = 2D - f - 1 and f/D bounded away from zero, Cov_{σ,π}(1_s, 1_{s+Δ}) = -J(1-J)/B_D + O(D⁻²) and E_{σ,π}(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)₊ / K and (x)₊ = max{x, 0}. When f/D is 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 than J(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 a when D, f, and K are 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 = 128 and D = 256. At D = 128 with f = 2 or 4, the variance approximation is slightly higher than the empirical MSE; at D = 1024 for f = 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₁)} and m_t the count of elements in π_t(S₁) strictly less than min(π_t(S₂)), the estimators f₂ Σ y_t/K and f₁ - (f₂+1) Σ m_t/K both have expectation a, with variances a(f₂-a)/K and f₂(f₁-a)(f₁+f₂-a+1)/(K(f₂+2)) respectively.

  • Circulant permutation applied to y_t (Corollary 1): With C_s = a, C_f = f₂ - a, C_n = D - f₂, and B_D = D + C_n - 1, the variance follows the same shape as Theorem 2, replacing f with C_s + C_f throughout. The variance of a single trial drawing an element of ℱ₊ before ℱ₋ is C_s C_f / (C_s + C_f)², independent of C_n.

  • A practical warning: The magnitude of the variance reduction depends on C_s + C_f. MinHash algorithms where ℱ₊ and ℱ₋ are small relative to D receive 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}, with C_s = f₂ and C_f = f₁ - a, the variance of observing θ elements of ℱ₋ before the first ℱ₊ element is C_s C_f (C_s + C_f + 1) / ((C_s + 1)² (C_s + 2)). Lemma 3 gives the cross-shift expectation with B_Δ = 2C_s - |ℒ₀| + 1, plus covariance expressions for both the "C_s, C_f fixed as D → ∞" regime and the "C_s/D, C_f/D bounded 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_t statistic is the paper's most novel structural extension and its full variance comparison to V_K remains 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-D approximation. The authors report that at D = 128 with f = 2, 4 the 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 small D in 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.

Read the original paper