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 about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext afc630ae-e97e-4d63-bd50-a761ba53cb7aCited by top-tier papers5
- GraSS: Scalable Data Attribution with Gradient Sparsification and Sparse ProjectionPingbang Hu, Joseph Melkonian, Weijing Tang, Han Zhao et al.NeurIPS 2025 · 12 citations
- Understanding Impact of Human Feedback via Influence FunctionsTaywon Min, Haeone Lee, Yongchan Kwon, Kimin LeeACL 2025 · 11 citations
- Smooth Flipping Probability for Differential Private Sign Random Projection MethodsPing Li, Xiaoyun LiNeurIPS 2023 · 7 citations
- Token-wise Influential Training Data Retrieval for Large Language ModelsHuawei Lin, Jikai Long, Zhaozhuo Xu, Weijie ZhaoACL 2024 · 1 citation
- 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
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- FetchSGD: Communication-Efficient Federated Learning with SketchingDaniel Rothchild, Ashwinee Panda, Enayat Ullah, Nikita Ivkin et al.ICML 2020 · 425 citations
- 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
- Federated Reconstruction: Partially Local Federated LearningKaran Singhal, Hakim Sidahmed, Zachary Garrett, Shanshan Wu et al.NeurIPS 2021 · 175 citations
- Dynamic Malware Analysis with Feature Engineering and Feature LearningZhaoqi Zhang, Panpan Qi, Wei WangAAAI 2020 · 153 citations
Related papers
- CountSketches, Feature Hashing and the Median of ThreeKasper Green Larsen, Rasmus Pagh, Jakub TetekICML 2021 · 10 citations
- Sampling Methods for Inner Product SketchingMajid Daliri, Juliana Freire, Christopher Musco, Aécio S. R. Santos et al.VLDB 2024 · 8 citations
- JoinSketch: A Sketch Algorithm for Accurate and Unbiased Inner-Product EstimationFeiyu Wang, Qizhi Chen, Yuanpeng Li, Tong Yang et al.SIGMOD 2023 · 20 citations
- Matrix Product Sketching via Coordinated SamplingMajid Daliri, Juliana Freire, Danrong Li, Christopher MuscoICLR 2025
- Tight Bounds for the Subspace Sketch Problem with ApplicationsYi Li, Ruosong Wang, David P. WoodruffSODA 2020 · 5 citations
