Papers
Topics
Authors
Recent
Search
2000 character limit reached

One-Permutation MinHash: Efficient Jaccard Estimation

Updated 9 July 2026
  • 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 KK 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 kk 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 S1,S2ΩS_1,S_2 \subseteq \Omega with Ω=D|\Omega|=D, or equivalently for binary vectors v,w{0,1}Dv,w \in \{0,1\}^D, the target similarity is the Jaccard similarity

R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.

Classical MinHash draws kk or KK independent permutations π1,,πk\pi_1,\ldots,\pi_k and computes hj(S)=minπj(S)h_j(S)=\min \pi_j(S). The estimator

kk0

is unbiased, with collision probability equal to resemblance and variance kk1 (Li et al., 2012).

The motivation for one-permutation methods is computational and storage cost. The standard implementation of MinHash requires applying kk2 random permutations, which is expensive in preprocessing, expensive at test time for previously unseen points, and costly to store when kk3 and kk4 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 kk5 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-kk6, which reuses the same permutation for an initial “structure-breaking” shuffle and for kk7 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 kk8 to the universe and divides the permuted coordinates evenly into kk9 bins. With S1,S2ΩS_1,S_2 \subseteq \Omega0 divisible by S1,S2ΩS_1,S_2 \subseteq \Omega1, let S1,S2ΩS_1,S_2 \subseteq \Omega2 and define

S1,S2ΩS_1,S_2 \subseteq \Omega3

For a set S1,S2ΩS_1,S_2 \subseteq \Omega4, the signature S1,S2ΩS_1,S_2 \subseteq \Omega5 stores, in each bin, the smallest nonzero residue within that bin; if no element of S1,S2ΩS_1,S_2 \subseteq \Omega6 falls into a bin, the bin is marked by the empty symbol S1,S2ΩS_1,S_2 \subseteq \Omega7 (Li et al., 2012).

This construction yields a bin-wise analogue of MinHash. Fix a bin and let S1,S2ΩS_1,S_2 \subseteq \Omega8 and S1,S2ΩS_1,S_2 \subseteq \Omega9 be the elements of Ω=D|\Omega|=D0 and Ω=D|\Omega|=D1 in that bin. If the bin is nonempty for both sets, the smallest permuted item in Ω=D|\Omega|=D2 is equally likely to be any element of that union, so the probability that the two bin-wise minima agree is Ω=D|\Omega|=D3. The OPH analysis shows that any surviving bin’s min-collision probability equals the global resemblance Ω=D|\Omega|=D4, regardless of which bin survives (Li et al., 2012).

The standard OPH estimator is based on matched nonempty bins. Let Ω=D|\Omega|=D5 be the number of simultaneously empty bins and Ω=D|\Omega|=D6 the number of bins in which both signatures are nonempty and the minima agree. Then

Ω=D|\Omega|=D7

is unbiased: Ω=D|\Omega|=D8 Its variance is

Ω=D|\Omega|=D9

where v,w{0,1}Dv,w \in \{0,1\}^D0. When v,w{0,1}Dv,w \in \{0,1\}^D1, this approaches v,w{0,1}Dv,w \in \{0,1\}^D2, and in fact the paper shows

v,w{0,1}Dv,w \in \{0,1\}^D3

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 v,w{0,1}Dv,w \in \{0,1\}^D4 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 v,w{0,1}Dv,w \in \{0,1\}^D5 to prevent spurious collisions. This construction preserves the LSH property: v,w{0,1}Dv,w \in \{0,1\}^D6 Its query cost remains v,w{0,1}Dv,w \in \{0,1\}^D7, where v,w{0,1}Dv,w \in \{0,1\}^D8 is the number of nonzeros in the query vector, but its variance is affected by a randomness-deficiency phenomenon: when there are v,w{0,1}Dv,w \in \{0,1\}^D9 non-empty bins, two empty bins borrow from the same non-empty bin with probability R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.0 (Shrivastava et al., 2014).

The improved densification method injects additional randomness by assigning each bin an independent fair coin R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.1. When a bin is empty, the algorithm looks either left or right, circularly, according to R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.2. This reduces the corresponding empty-empty borrowing probability to

R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.3

while preserving the same LSH property. The resulting estimator satisfies

R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.4

with the variance gap given explicitly by

R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.5

where R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.6 is defined in the paper. The cost remains R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.7, and the only additional storage is R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.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

R=S1S2S1S2orJ(v,w)=vwvw.R = \frac{|S_1 \cap S_2|}{|S_1 \cup S_2|} \quad\text{or}\quad J(v,w)=\frac{|v\wedge w|}{|v\vee w|}.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 kk0-permutation MinHash requires kk1 preprocessing, stores kk2 permutations or hash functions, and requires kk3 work for a new query. One-permutation hashing requires one global permutation and one pass over the nonzeros, giving kk4 preprocessing, kk5 query time, and a reduction in random-seed storage from kk6 to kk7, 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 kk8 with kk9, standard MinHash costs KK0 per vector if the KK1 hashes are applied only to the nonzeros. OPH pays KK2 once up front to generate or store KK3, then KK4 to route the nonzeros into bins and update the bin minima, and KK5 to densify empties. The total is roughly KK6 when KK7, which the paper describes as about a KK8-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 KK9, π1,,πk\pi_1,\ldots,\pi_k0, and average π1,,πk\pi_1,\ldots,\pi_k1, the original data achieved accuracy π1,,πk\pi_1,\ldots,\pi_k2. The π1,,πk\pi_1,\ldots,\pi_k3-permutation baseline with π1,,πk\pi_1,\ldots,\pi_k4 achieved π1,,πk\pi_1,\ldots,\pi_k5 accuracy and preprocessing time π1,,πk\pi_1,\ldots,\pi_k6, whereas one-permutation hashing with the same π1,,πk\pi_1,\ldots,\pi_k7 and π1,,πk\pi_1,\ldots,\pi_k8 achieved π1,,πk\pi_1,\ldots,\pi_k9 accuracy with preprocessing time hj(S)=minπj(S)h_j(S)=\min \pi_j(S)0. On the sparse News20 dataset, with average hj(S)=minπj(S)h_j(S)=\min \pi_j(S)1, one-permutation hashing with zero-coding remained stable and at hj(S)=minπj(S)h_j(S)=\min \pi_j(S)2 recovered hj(S)=minπj(S)h_j(S)=\min \pi_j(S)3 accuracy, outperforming the hj(S)=minπj(S)h_j(S)=\min \pi_j(S)4-permutation scheme by up to hj(S)=minπj(S)h_j(S)=\min \pi_j(S)5 (Li et al., 2012).

These results support the original claim that one permutation hashing can perform very similarly to the original hj(S)=minπj(S)h_j(S)=\min \pi_j(S)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 hj(S)=minπj(S)h_j(S)=\min \pi_j(S)7 breaks existing structure in the data, and a second permutation hj(S)=minπj(S)h_j(S)=\min \pi_j(S)8 is reused hj(S)=minπj(S)h_j(S)=\min \pi_j(S)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-kk00, reuses the same permutation for both roles. For a binary vector kk01, one first computes kk02, with

kk03

For kk04, the kk05-shifted permutation is defined by

kk06

and the kk07th hash is

kk08

Given two vectors kk09, the estimator is

kk10

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 kk11, proves

kk12

for fixed sparsities, and reports numerically that kk13 or smaller even for moderate kk14. Because the kk15 terms alternate around kk16, the average bias shrinks further with kk17, and empirically kk18, so kk19 (Li et al., 2021).

The empirical conclusion is that

kk20

and closely matches the variance of the two-permutation C-MinHash estimator. Storage is reduced to one permutation vector of length kk21, and the per-vector cost is kk22, where kk23 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 kk24 partitions the coordinates into kk25 equal-sized bins of length kk26, C-OPH uses a single short permutation kk27 on kk28 and reuses it across bins via circulant shifts kk29. 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 kk30 is unbiased. Its variance is given in the paper through a decomposition involving the number of empty bins kk31, the number of nonempty bins kk32, and a term kk33 for two empty-bin collisions. The key comparison is that, for ReDen, kk34, whereas in C-OPH the circulant reuse yields kk35, implying

kk36

On the Words dataset, C-OPHkk37 outperformed ReDen by kk38–kk39 relative MSE reduction across a range of kk40, and replacing kk41 by kk42-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 kk43 bins and applies Binomial-tail tests for early accept or reject. Hierarchical OPH (HOPH) recursively partitions the universe with split ratio kk44, 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 kk45, and that the HOPH estimator is unbiased. In experiments on the FS dataset, response times were kk46 for MinHash with kk47, kk48 for OPH with kk49, kk50 for GOPH, and kk51 for HOPH with a kk52 split; all methods maintained kk53 precision and kk54 recall at kk55 (Zhang et al., 2018).

A third extension is differential privacy. The DP-OPH framework combines OPH with kk56-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 kk57 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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to One-Permutation MinHash.