Implementation Notes for the Soft Cosine Measure
Not on the map. Why?
Abstract (arXiv)
The standard bag-of-words vector space model (VSM) is efficient, and ubiquitous in information retrieval, but it underestimates the similarity of documents with the same meaning, but different terminology. To overcome this limitation, Sidorov et al. proposed the Soft Cosine Measure (SCM) that incorporates term similarity relations. Charlet and Damnati showed that the SCM is highly effective in question answering (QA) systems. However, the orthonormalization algorithm proposed by Sidorov et al. has an impractical time complexity of mathcal O(n4), where n is the size of the vocabulary. In this paper, we prove a tighter lower worst-case time complexity bound of mathcal O(n3). We also present an algorithm for computing the similarity between documents and we show that its worst-case time complexity is mathcal O(1) given realistic conditions. Lastly, we describe implementation in general-purpose vector databases such as Annoy, and Faiss and in the inverted indices of text search engines such as Apache Lucene, and ElasticSearch. Our results enable the deployment of the SCM in real-world information retrieval systems.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). First posted on arXiv 28 Aug 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 0; 2023: 0; 2024: 2.
3 papers.
- 2021Regressive Ensemble for Machine Translation Quality Evaluationcited by 6
- 2024A Benchmark Dataset with Larger Context for Non-Factoid Question Answering over Islamic Textcited by 4
- 2024FedAnchor: Enhancing Federated Semi-Supervised Learning with Label Contrastive Loss for Unlabeled Clientscited by 2
- 2024A Benchmark Dataset with Larger Context for Non-Factoid Question Answering over Islamic Text15 Sep 2024
- 2024FedAnchor: Enhancing Federated Semi-Supervised Learning with Label Contrastive Loss for Unlabeled Clients15 Feb 2024
- 2021Regressive Ensemble for Machine Translation Quality Evaluation15 Sep 2021