Sublinear Time Approximation of Text Similarity Matrices
Not on the map. Why?
Abstract (arXiv)
We study algorithms for approximating pairwise similarity matrices that arise in natural language processing. Generally, computing a similarity matrix for n data points requires Omega(n2) similarity computations. This quadratic scaling is a significant bottleneck, especially when similarities are computed via expensive functions, e.g., via transformer models. Approximation methods reduce this quadratic complexity, often by using a small subset of exactly computed similarities to approximate the remainder of the complete pairwise similarity matrix. Significant work focuses on the efficient approximation of positive semidefinite (PSD) similarity matrices, which arise e.g., in kernel methods. However, much less is understood about indefinite (non-PSD) similarity matrices, which often arise in NLP. Motivated by the observation that many of these matrices are still somewhat close to PSD, we introduce a generalization of the popular Nystr"om method to the indefinite setting. Our algorithm can be applied to any similarity matrix and runs in sublinear time in the size of the matrix, producing a rank-s approximation with just O(ns) similarity computations. We show that our method, along with a simple variant of CUR decomposition, performs very well in approximating a variety of similarity matrices arising in NLP tasks. We demonstrate high accuracy of the approximated similarity matrices in the downstream tasks of document classification, sentence similarity, and cross-document coreference.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 25 of its 67 references that are in the map. First posted on arXiv 17 Dec 2021.
Builds on
25 of 67 references.
References · 25
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,375
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,307
- 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,824
- 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
- 2013Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distancescited by 2,316
- 2019TinyBERT: Distilling BERT for Natural Language Understandingcited by 1,167
- 2017SemEval-2017 Task 1: Semantic Textual Similarity - Multilingual and Cross-lingual Focused Evaluationcited by 1,001
- 2019Are Sixteen Heads Really Better than One?cited by 816
- 2019Q8BERT: Quantized 8Bit BERTcited by 300
- 2014Sketching as a Tool for Numerical Linear Algebracited by 288
13 more
- 2020Kernel methods through the roof: handling billions of points efficientlycited by 89
- 2013Revisiting the Nystrom Method for Improved Large-Scale Machine Learningcited by 77
- 2014Fastfood: Approximate Kernel Expansions in Loglinear Timecited by 74
- 2018Word Mover's Embedding: From Word2Vec to Document Embeddingcited by 26
- 2013Improving CUR Matrix Decomposition and the Nystr"om Approximation via Adaptive Samplingcited by 21
- 2017Sublinear Time Low-Rank Approximation of Positive Semidefinite Matricescited by 18
- 2020Streamlining Cross-Document Coreference Resolution: Evaluation and Modelingcited by 16
- 2019Sample-Optimal Low-Rank Approximation of Distance Matricescited by 15
- 2018Sublinear Time Low-Rank Approximation of Distance Matricescited by 11
- 2014Matrix Coherence and the Nystrom Methodcited by 8
- 2019Scalable Global Alignment Graph Kernel Using Random Features: From Node Embedding to Graph Embeddingcited by 8
- 2019Optimal Transport-based Alignment of Learned Character Representations for String Similaritycited by 7
- 2014Metric and non-metric proximity transformations at linear costscited by 5
Built on by
Citing papers per year: 2022: 1; 2023: 0; 2024: 1; 2025: 1.
3 papers.