Rejection Sampling for Weighted Jaccard Similarity Revisited


  • Xiaoyun Li Baidu Research
  • Ping Li Baidu Research



Data Compression, Scalability, Parallel & Distributed Systems, Web Search & Information Retrieval


Efficiently computing the weighted Jaccard similarity has become an active research topic in machine learning and theory. For sparse data, the standard technique is based on the consistent weighed sampling (CWS). For dense data, however, methods based on rejection sampling (RS) can be much more efficient. Nevertheless, existing RS methods are still slow for practical purposes. In this paper, we propose to improve RS by a strategy, which we call efficient rejection sampling (ERS), based on ``early stopping + densification''. We analyze the statistical property of ERS and provide experimental results to compare ERS with RS and other algorithms for hashing weighted Jaccard. The results demonstrate that ERS significantly improves the existing methods for estimating the weighted Jaccard similarity in relatively dense data.




How to Cite

Li, X., & Li, P. (2021). Rejection Sampling for Weighted Jaccard Similarity Revisited. Proceedings of the AAAI Conference on Artificial Intelligence, 35(5), 4197-4205.



AAAI Technical Track on Data Mining and Knowledge Management