Lune

KDD2023Top-tier venue

OPORP: One Permutation + One Random Projection

Ping Li, Xiaoyun Li

Abstract

OPORP is an improved variant of the count-sketch data structure by using a fixed-length binning scheme and a normalization step for the estimation. In our experience, we find engineers like the name "one permutation + one random projection" as it tells the exact steps. Consider two data vectors (e.g., embeddings): u, v ∈ R D . In many embedding-based applications where vectors are generated from trained models, D = 256 ∼ 1024 are common and D > 1024 is not rare (e.g., GPT models). D can be much larger in applications where the vectors are generated without training. With OPORP, we first apply a permutation on the data vectors. A random vector r ∈ R D is generated with moments: Note that s = 3 if r i follows the standard Gaussian distribution. We multiply r (element-wise) with all permuted data vectors. Then we break the D columns into k equal-length bins and aggregate (i.e., sum) the values in each bin to obtain k samples from each data vector. One key step is to normalize the k samples to the unit l 2 norm. In this way, for the two original data vectors u, v ∈ R D , we obtain two new vectors x, y ∈ R D with unit l 2 norms. The inner product of x, y approximates the original correlation ρ (i.e., the cosine) between u and v. Our main contribution is to show that the estimation variance has essentially the following expression: (s -1)A + D -k D -1

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Smooth Flipping Probability for Differential Private Sign Random Projection Methods cites Dynamic Malware Analysis with Feature Engineering and Feature Learning
  • Smooth Flipping Probability for Differential Private Sign Random Projection Methods cites Federated Reconstruction: Partially Local Federated Learning
  • Smooth Flipping Probability for Differential Private Sign Random Projection Methods cites FetchSGD: Communication-Efficient Federated Learning with Sketching
  • GraSS: Scalable Data Attribution with Gradient Sparsification and Sparse Projection cites Token-wise Influential Training Data Retrieval for Large Language Models
  • Understanding Impact of Human Feedback via Influence Functions cites Token-wise Influential Training Data Retrieval for Large Language Models
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. GraSS: Scalable Data Attribution with Gradient Sparsification and Sparse ProjectionPingbang Hu, Joseph Melkonian, Weijing Tang, Han Zhao et al.NeurIPS 2025 · 12 citations
  2. Understanding Impact of Human Feedback via Influence FunctionsTaywon Min, Haeone Lee, Yongchan Kwon, Kimin LeeACL 2025 · 11 citations
  3. Smooth Flipping Probability for Differential Private Sign Random Projection MethodsPing Li, Xiaoyun LiNeurIPS 2023 · 7 citations
  4. Token-wise Influential Training Data Retrieval for Large Language ModelsHuawei Lin, Jikai Long, Zhaozhuo Xu, Weijie ZhaoACL 2024 · 1 citation
  5. Scout Before You Attend: Sketch-and-Walk Sparse Attention for Efficient LLM InferenceHoang Anh Duy Le, Sahil Joshi, Zeyu Yang, Zhaozhuo Xu et al.ICML 2026

Builds on11

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. FetchSGD: Communication-Efficient Federated Learning with SketchingDaniel Rothchild, Ashwinee Panda, Enayat Ullah, Nikita Ivkin et al.ICML 2020 · 425 citations
  3. Pre-training Tasks for Embedding-based Large-scale RetrievalWei-Cheng Chang, Felix X. Yu, Yin-Wen Chang, Yiming Yang et al.ICLR 2020 · 325 citations
  4. Federated Reconstruction: Partially Local Federated LearningKaran Singhal, Hakim Sidahmed, Zachary Garrett, Shanshan Wu et al.NeurIPS 2021 · 175 citations
  5. Dynamic Malware Analysis with Feature Engineering and Feature LearningZhaoqi Zhang, Panpan Qi, Wei WangAAAI 2020 · 153 citations

Related papers

  1. CountSketches, Feature Hashing and the Median of ThreeKasper Green Larsen, Rasmus Pagh, Jakub TetekICML 2021 · 10 citations
  2. Sampling Methods for Inner Product SketchingMajid Daliri, Juliana Freire, Christopher Musco, Aécio S. R. Santos et al.VLDB 2024 · 8 citations
  3. JoinSketch: A Sketch Algorithm for Accurate and Unbiased Inner-Product EstimationFeiyu Wang, Qizhi Chen, Yuanpeng Li, Tong Yang et al.SIGMOD 2023 · 20 citations
  4. Matrix Product Sketching via Coordinated SamplingMajid Daliri, Juliana Freire, Danrong Li, Christopher MuscoICLR 2025
  5. Tight Bounds for the Subspace Sketch Problem with ApplicationsYi Li, Ruosong Wang, David P. WoodruffSODA 2020 · 5 citations
Dusk over the sea between two cliffs drawn in fine vertical lines