- Rating
- 4
- Clarity
- 2
- Confidence
- 2
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
In this paper, the authors propose a new variance analysis of CMinHash algorithm which is easily comparable to approximate variance expressions and is used to analyze other types of MinHash estimators. Numerical experiments show that the new variance expressions matches empirical mean squared error of estimates.
Strengths and weaknesses
Strength:
- New analysis of CMinHash which eases the variance approximation (calculation) compared to the original work which can be used to analyze other hashing algorithms. This contributions seems to be novel and significant.
- Numerical simulations agree with the new variance approximation.
Weakness:
-
The paper is not easy to read. Among all the NeurIPS papers that were assigned to me for review, I spent the longest time for this paper and yet I did not fully understand the paper. Clarity can be improved.
-
Here is my main confusion. Following the sampling without replacement paradigm a random permutation can be thought of as a random draw order (draw 1 to ), which is perfectly clear from Fig1. and Fig. 2. Now, $\mathbb{E} (\mathbb{1}_{s} \mathbb{1}_{s+\Delta})>0 $ means that both and must hold (line 422-424). So, that means must be the tuple for permutation . Then, according to the description (starting from line 425),`` $\mathbb{E} (\mathbb{1}_{s} \mathbb{1}_{s+\Delta})>0 $ can be thought of as the probability of a sequence of draws of the nine different types of D tuples where the first appears before the first in both entries of the tuple.” These entries corresponds to fixed positions of the location vector and correct? For example, in Fig. 6, how to interpret Draw 1 for Example 1 ? Is it a random permutation (a sequence of draw orders (as per Fig 1 andFig 2.)) such that in location vector position we have and position we have ? If that is the case, each Draw in Fig. 6 is a random permutation and the success is being defined over different permutation sequences focusing on position and of the location vector? But then the quantity we are interested in, has expectation over the permutation and would mean that if we randomly pick a permutation what is the probability that we would see tuple in position and of the location vector. So that means sequence of Draws in Fig. 6 cannot be sequence of permutations. So what those Draws correspond to? This part is not clear to me even after reading the main paper and appendix A many times and that is precisely the reason why I could not properly evaluate this paper. If the authors could kindly clarify this confusion, it would help me appreciate their contribution.
-
because of the length of the supplementary material, checking all the proofs in detail was beyond time and scope.
-
There is a Big Oh notation in the variance calculation in Theorem 2. In the numerical experiments, while comparing empirical variance with the new variance results of Theorem 2, what constants (for the Big Oh notation) are used is not clear.
Questions
Please see weakness.
Limitations
Yes.
Paper formatting concerns
None.
Final justification
The authors have answered my questions and I am increasing my score from 3 to 4. Having said that, I have not checked all the proofs in the supplementary material and can not confirm the accuracy of the theoretical results with absolute certainty. Since the primary contribution of this paper is "Theory", I would request AC to take that into account when making a final decision.
We thank the reviewer for their detailed review. Here is our rebuttal.
We acknowledge this, as analyzing circulant permutation is difficult and necessarily dense. We spent time understanding the combinatorics of the original Li and Li paper, which uses an exact constrained combinatorial analysis, before deciding to write this theory paper (rather than general paper). We describe this in lines 276-281 in our main paper, and in more detail in lines 369-372 of our Appendix.
This is not an excuse since parts of our explanation can be made clearer. In particular, the relationship between one random permutation and the sequence of tuples in Figures 6 and 7 can be stated more directly (re: second question). We will correct the captions and add the toy example described below.
Moreover, we provide intuition behind our proof strategies, e.g. see lines 125-156 in the main paper, and lines 415-450 and 488-499 in our Appendix in detail, rather than diving into calculations immediately.
We thank the reviewer for describing your confusion, as this has helped us understand where you are coming from.
First, we apologize for the captions of Figure 6 and Figure 7. The captions say vertical row, but we meant vertical column. We will change this. The caption may have made this part more confusing, although the main confusion appears to be what each Draw represents, as the reviewer correctly understood the column of draws.
Each Example column in Figure 6 comes from one random permutation π. Each Draw row is one successive tuple from that same random permutation. We explain this carefully below.
We first restate what the reviewer mentioned in the first line, so the AC and other reviewers are on the same page before giving an example of what we mean, since it is probably at least a month since anyone last looked at this paper.
Theorem 1 (lines 40-42) gives Broder's MinHash estimator as
∑t=1K1min(πt(S1))=min(πt(S2))/K.
Let's use the shorthand 1t to denote this indicator function.
As the reviewer has correctly noted, each πt is a random permutation, and t indexes the corresponding trial. Each random permutation can be seen as a draw order as in Figure 2.
We have a success when we see an O before an X. For example, suppose D=5 and one random permutation gives the draw order [−,−,O,X,O]. This is a success because:
Since we drew an O at the third draw before an X at the fourth draw, this is a success.
Now, Broder's MinHash is straightforward because Var(∑t=1K1t/K) can be written as Var(1t)/K. Each random permutation is independent of another, so there are no covariance terms.
In contrast, for the circulant permutation in lines 116-118, after applying σ, all K indicators reuse one random permutation π through circular shifts. Please see lines 54-63, as well as the display of the actual CMinHash algorithm in Appendix A.1. Thus, we have additional covariance terms to compute. We eventually need to compute Cov(1s,1t) for all s,t, which in turn requires us to know E(1s1t), since
Cov(1s,1t)=E(1s1t)−E(1s)E(1t),
and we know that E(1s)=E(1t)=J.
Using the notation in line 116, where we write
1t=1min(π→t(S1))=min(π→t(S2)),
the variance of CMinHash is
Var(∑t=1K1t/K)=K21(∑t=1KVar(1t)+∑s=tKCov(1s,1t)).
Note: We are overloading the index t in 1t in this rebuttal for brevity.
As acknowledged in line 118 of the main paper, the tricky part is to find an expression for this covariance, or rather, an expression for E(1s1t).
The observation is to write this expression as E(1s1s+Δ), which is what you have noticed, and where our clarification now starts.
For the D=5 example, let Δ=4. Note that we wrap around to the start of the draw order if required (see table example below).
For each Draw, the first entry is what we see under π→s, and the second entry is what we see under π→s+Δ. We continue down the same draw order from the same random permutation. Hence, each Draw gives one tuple with two entries.
Now, 1s1s+Δ=1 when we see an O before an X for both entries of the tuple sequence.
Importantly, the first O in the first entry and the first O in the second entry can appear in different Draws. An (O,O) tuple is one way to get a success, while (O,−) and (−,O) can give the two Os in different Draws.
Let's return to the same draw order [−,−,O,X,O] with Δ=4. The first entry is the draw order above. For the second entry, we examine what we see after we “shift right by 4”:
Please note that this still uses the same random permutation throughout.
In this case, 1s1s+Δ=1 because we see an O before an X for both entries. The first entry has its first O at Draw 3 and its first X at Draw 4. The second entry has its first O at Draw 1 and its first X at Draw 5.
It helps to think of the random permutation π as comprising a draw order, but we take “two elements” at a time. The first element is "as usual, similar to Figure 2 and Broder's MinHash". The second element has an offset Δ. A success occurs when we see an O before an X for both elements.
So back to Fig 6, each Example column comes from one permutation. We shift by Δ to get the second entry of each tuple. Draw 1 is the first tuple seen, Draw 2 is the next tuple, and so on.
In Example 1, Draw 1 equal to (−,−) means that the first tuple seen has − in both entries.
We will add the toy example above to Appendix A.3 and correct the captions of Figures 6 and 7. Please see lines 125-139 in the main paper, followed by lines 417-439 in the Appendix. However, please note that adding in the above toy example would additionally extend the appendix (re: question below).
Please let us know if this resolves your confusion, especially when read together with lines 417-424 of the Appendix.
We explain the reason behind the long Appendix and how our proofs can be checked.
Our sampling without replacement approach is less combinatorially intensive than Li's approach. Please see Appendix A.2, or equivalently the proofs in their paper. However, the tradeoff is a tedious but straightforward calculation, as we need to compute the relevant expectations, variances, and covariances. We work out these calculations and explicitly show each step so other people can replicate our work with different algorithms.
We describe the approach in the main paper at lines 144-156, and then in more detail in Appendix lines 488-499. Appendix lines 500-556 show each step for the original CMinHash algorithm. Lines 635-707 repeat the approach for the Minner estimator, where we apply circulant permutation to a count-based estimator (count number of X before first O, rather than seeing an O before the first X), which is substantially different from the Broder MinHash / CMinHash setup.
We have used Mathematica to check the expansions in our Appendices. Then, the NeurIPS PAT has checked our paper (which is why we went ahead with submission). Figures 3, 5, 9, 10, and 12-17 also has the approximate theoretical variance curves match or closely overlap the empirical MSE curves. Because our estimators are unbiased, the MSE is the variance.
Hence, if the approach in lines 144-156 of the main paper and lines 488-499 of the Appendix makes sense, the remaining parts of the Appendix consist of the expectations, variances, covariances, and expansions shown step by step (which could be checked by a computer).
We want to clarify that no numerical value was assigned to the constant hidden in the big O term. For every variance expression, we plot the terms before the big O remainder.
For example, in Theorem 2, lines 164-166, the variance when f/D does not tend to zero is
Var(..)=J(1−J)/K(1−(K−1)/BD)+O(BD−2).
We would then plot
J(1−J)/K(1−(K−1)/BD).
Thus, for all variance expressions, we plot the non big O terms, which are our theoretical variance approximations. The O(BD−2) remainder does not appear at all in our plots.
Based on our plots, these big O terms are essentially negligible when D increases. Please also see lines 150-156 and our response to point 2 for pYxU.
We acknowledge that stating that we “plot the approximate variance” may cause confusion. We will clarify this in our revised paper to ensure readers know exactly which terms are plotted.
If we have resolved your concerns (in particular what each Draw and each Example column in Figure 6 represent), please let us know, or feel free to ask if you have any further questions or comments about our paper.