One-Permutation MinHash: Efficient Jaccard Estimation
- One-Permutation MinHash is a method that applies one permutation to the feature space and partitions it into bins to estimate Jaccard similarity, reducing the need for multiple permutations.
- It computes the minimum nonzero element per bin, ensuring an unbiased estimator with a sample‐without‐replacement effect and lower computational cost.
- Extensions such as advanced densification, circulant reuse, and differential privacy adaptations demonstrate its versatility in large-scale similarity search and learning tasks.
to=arxiv_search.search 北京赛车女郎 天天中彩票有人? {"query":"\"one permutation hashing\" minhash arXiv", "max_results": 10} to=arxiv_search.search 】【。】【”】【json {"query":"one permutation hashing minhash", "max_results":5, "sort_by":"relevance"} to=arxiv_search 】【。】【”】【json {"query":"one permutation hashing minhash", "max_results":5} One-Permutation MinHash denotes a family of minwise-hashing methods that estimate Jaccard similarity while avoiding the independent random permutations required by classical MinHash. In the canonical formulation introduced as One-Permutation Hashing (OPH), one applies a single permutation to the feature universe, partitions the permuted coordinates into equal-sized bins, and stores the minimum nonzero location in each bin; later work developed densification schemes for empty bins, search and learning variants, privacy-preserving forms, and a distinct circulant line in which one permutation is reused for both structure-breaking and hash generation (Li et al., 2012, Li et al., 2021).
1. Classical formulation and the one-permutation objective
For sets with , or equivalently for binary vectors , the target similarity is the Jaccard similarity
Classical MinHash draws or independent permutations and computes . The estimator
0
is unbiased, with collision probability equal to resemblance and variance 1 (Li et al., 2012).
The motivation for one-permutation methods is computational and storage cost. The standard implementation of MinHash requires applying 2 random permutations, which is expensive in preprocessing, expensive at test time for previously unseen points, and costly to store when 3 and 4 are large (Li et al., 2012, Li et al., 2021). One-permutation methods attempt to preserve the collision-probability semantics of MinHash while reducing the permutation budget from 5 to one.
Two distinct lines appear in the literature. The first is OPH, introduced by Li, Owen, and Zhang, which uses one global permutation and bin-wise minima (Li et al., 2012). The second is one-permutation circulant MinHash, denoted C-MinHash-6, which reuses the same permutation for an initial “structure-breaking” shuffle and for 7 circulant shifts (Li et al., 2021). The later C-OPH work states explicitly that C-MinHash is different from the well-known OPH method published in NIPS’12 (Li et al., 2021).
2. The original One-Permutation Hashing construction
In OPH, one applies a single permutation 8 to the universe and divides the permuted coordinates evenly into 9 bins. With 0 divisible by 1, let 2 and define
3
For a set 4, the signature 5 stores, in each bin, the smallest nonzero residue within that bin; if no element of 6 falls into a bin, the bin is marked by the empty symbol 7 (Li et al., 2012).
This construction yields a bin-wise analogue of MinHash. Fix a bin and let 8 and 9 be the elements of 0 and 1 in that bin. If the bin is nonempty for both sets, the smallest permuted item in 2 is equally likely to be any element of that union, so the probability that the two bin-wise minima agree is 3. The OPH analysis shows that any surviving bin’s min-collision probability equals the global resemblance 4, regardless of which bin survives (Li et al., 2012).
The standard OPH estimator is based on matched nonempty bins. Let 5 be the number of simultaneously empty bins and 6 the number of bins in which both signatures are nonempty and the minima agree. Then
7
is unbiased: 8 Its variance is
9
where 0. When 1, this approaches 2, and in fact the paper shows
3
so the one-permutation estimator has no higher variance and is often slightly smaller because of a “sample-without-replacement” effect (Li et al., 2012).
The same work also situates OPH within the b-bit MinHash setting: one often stores only the lowest 4 bits of each hash value, yielding b-bit MinHash without changing the underlying collision probability (Li et al., 2012).
3. Empty bins and densification
The central technical complication in OPH is the presence of empty bins. In sparse data many bins contain no nonzero entries, so direct bin-wise comparison either wastes information or introduces bias. The later OPH literature describes densification as the procedure that refills empty bins by borrowing hashes from nonempty bins, thereby restoring an unbiased estimator, while also noting that poor densification can create dependencies that increase variance (Li et al., 2021).
Shrivastava and Li’s original densification scheme assigns each empty bin the value of the nearest non-empty bin to its right, wrapping around circularly, and adds an offset 5 to prevent spurious collisions. This construction preserves the LSH property: 6 Its query cost remains 7, where 8 is the number of nonzeros in the query vector, but its variance is affected by a randomness-deficiency phenomenon: when there are 9 non-empty bins, two empty bins borrow from the same non-empty bin with probability 0 (Shrivastava et al., 2014).
The improved densification method injects additional randomness by assigning each bin an independent fair coin 1. When a bin is empty, the algorithm looks either left or right, circularly, according to 2. This reduces the corresponding empty-empty borrowing probability to
3
while preserving the same LSH property. The resulting estimator satisfies
4
with the variance gap given explicitly by
5
where 6 is defined in the paper. The cost remains 7, and the only additional storage is 8 coin bits (Shrivastava et al., 2014).
A separate taxonomy appears in the differential privacy treatment of OPH. That work describes three densification strategies. In OPH-fix, each empty bin copies the raw hash of a uniformly chosen non-empty bin. In OPH-re, an empty bin chooses a non-empty bin and re-hashes it under a fresh partial permutation induced by the empty bin. In OPH-rand, each empty bin is filled by a uniformly random value from the hash-value universe. The paper states that all unbiased densifications guarantee
9
so that the corresponding OPH estimator remains unbiased (Li et al., 2023).
4. Computational profile and empirical behavior
The principal advantage of OPH is the reduction in preprocessing and query cost. Standard 0-permutation MinHash requires 1 preprocessing, stores 2 permutations or hash functions, and requires 3 work for a new query. One-permutation hashing requires one global permutation and one pass over the nonzeros, giving 4 preprocessing, 5 query time, and a reduction in random-seed storage from 6 to 7, or to one universal hash in approximate implementations (Li et al., 2012).
The OPH formulation in the privacy paper makes the same point in vector notation. For 8 with 9, standard MinHash costs 0 per vector if the 1 hashes are applied only to the nonzeros. OPH pays 2 once up front to generate or store 3, then 4 to route the nonzeros into bins and update the bin minima, and 5 to densify empties. The total is roughly 6 when 7, which the paper describes as about a 8-fold speedup over classical MinHash (Li et al., 2023).
The original empirical study evaluated OPH in large-scale linear learning. On the Webspam dataset, with 9, 0, and average 1, the original data achieved accuracy 2. The 3-permutation baseline with 4 achieved 5 accuracy and preprocessing time 6, whereas one-permutation hashing with the same 7 and 8 achieved 9 accuracy with preprocessing time 0. On the sparse News20 dataset, with average 1, one-permutation hashing with zero-coding remained stable and at 2 recovered 3 accuracy, outperforming the 4-permutation scheme by up to 5 (Li et al., 2012).
These results support the original claim that one permutation hashing can perform very similarly to the original 6-permutation MinHash and can even be slightly more accurate on sparse data. The papers attribute this to the sample-without-replacement effect and to careful handling of empty bins (Li et al., 2012, Shrivastava et al., 2014).
5. One-permutation circulant MinHash
A later development revisited the permutation budget from a different angle. C-MinHash first showed that two permutations suffice for standard MinHash: one permutation 7 breaks existing structure in the data, and a second permutation 8 is reused 9 times in a circulant-shifting fashion. The two-permutation version was proved unbiased and to have variance strictly smaller than the variance of classical MinHash (Li et al., 2021).
The one-permutation version, C-MinHash-00, reuses the same permutation for both roles. For a binary vector 01, one first computes 02, with
03
For 04, the 05-shifted permutation is defined by
06
and the 07th hash is
08
Given two vectors 09, the estimator is
10
Unlike classical MinHash and the two-permutation C-MinHash, this estimator is slightly biased. The paper derives an explicit closed-form hypergeometric-sum expression for each collision probability 11, proves
12
for fixed sparsities, and reports numerically that 13 or smaller even for moderate 14. Because the 15 terms alternate around 16, the average bias shrinks further with 17, and empirically 18, so 19 (Li et al., 2021).
The empirical conclusion is that
20
and closely matches the variance of the two-permutation C-MinHash estimator. Storage is reduced to one permutation vector of length 21, and the per-vector cost is 22, where 23 is the number of nonzeros after preprocessing (Li et al., 2021). The later C-OPH paper emphasizes that this circulant construction is not the same as OPH: OPH is a bin-splitting method, whereas C-MinHash is a circulant reuse of one or two permutations within a MinHash-style framework (Li et al., 2021).
6. Extensions and domain-specific adaptations
One major extension is C-OPH, which transfers the circulant idea into the OPH setting. After an initial full-length permutation 24 partitions the coordinates into 25 equal-sized bins of length 26, C-OPH uses a single short permutation 27 on 28 and reuses it across bins via circulant shifts 29. When a bin is nonempty, the algorithm applies the shifted short permutation within that bin; when a bin is empty, it densifies by choosing a nonempty bin uniformly at random and applying the same shifted short permutation there. The resulting estimator 30 is unbiased. Its variance is given in the paper through a decomposition involving the number of empty bins 31, the number of nonempty bins 32, and a term 33 for two empty-bin collisions. The key comparison is that, for ReDen, 34, whereas in C-OPH the circulant reuse yields 35, implying
36
On the Words dataset, C-OPH37 outperformed ReDen by 38–39 relative MSE reduction across a range of 40, and replacing 41 by 42-universal hashing achieved virtually identical MSE (Li et al., 2021).
A second extension concerns early termination in similarity search and multimedia near-duplicate detection. Group-based One-Permutation Hashing (GOPH) groups the 43 bins and applies Binomial-tail tests for early accept or reject. Hierarchical OPH (HOPH) recursively partitions the universe with split ratio 44, applies OPH at multiple levels, and uses the same type of Binomial screening to stop early on low-similarity pairs. The paper proves that the OPH estimator is unbiased, that the GOPH early-stop tests respect the prescribed error tolerance 45, and that the HOPH estimator is unbiased. In experiments on the FS dataset, response times were 46 for MinHash with 47, 48 for OPH with 49, 50 for GOPH, and 51 for HOPH with a 52 split; all methods maintained 53 precision and 54 recall at 55 (Zhang et al., 2018).
A third extension is differential privacy. The DP-OPH framework combines OPH with 56-DP and includes three variants, DP-OPH-fix, DP-OPH-re, and DP-OPH-rand, corresponding to the three densification strategies. The same paper extends the construction to bin-wise consistent weighted sampling for non-binary data, producing DP-BCWS. The experimental summary states that DP-BCWS achieves excellent utility at around 57 on classification tasks (Li et al., 2023).
Across these lines, the unifying idea remains the same: replace many independent permutations by a single permutation or a single reusable permutation structure, while preserving exact or near-exact Jaccard estimation, reducing preprocessing cost, and controlling the dependence introduced by binning or circulant reuse.