Quantifying the Dissimilarity of Texts
Not on the map. Why?
Abstract (arXiv)
Quantifying the dissimilarity of two texts is an important aspect of a number of natural language processing tasks, including semantic information retrieval, topic classification, and document clustering. In this paper, we compared the properties and performance of different dissimilarity measures D using three different representations of texts -- vocabularies, word frequency distributions, and vector embeddings -- and three simple tasks -- clustering texts by author, subject, and time period. Using the Project Gutenberg database, we found that the generalised Jensen--Shannon divergence applied to word frequencies performed strongly across all tasks, that D's based on vector embedding representations led to stronger performance for smaller texts, and that the optimal choice of approach was ultimately task-dependent. We also investigated, both analytically and numerically, the behaviour of the different D's when the two texts varied in length by a factor h. We demonstrated that the (natural) estimator of the Jaccard distance between vocabularies was inconsistent and computed explicitly the h-dependency of the bias of the estimator of the generalised Jensen--Shannon divergence applied to word frequencies. We also found numerically that the Jensen--Shannon divergence and embedding-based approaches were robust to changes in h, while the Jaccard distance was not.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 14 of its 54 references that are in the map. First posted on arXiv 3 May 2023.
Builds on
14 of 54 references.
References · 14
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2020MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained Transformerscited by 1,414
- 2014Distributed Representations of Sentences and Documentscited by 677
- 2019Learning Deep Transformer Models for Machine Translationcited by 309
- 2016Learning Distributed Representations of Sentences from Unlabelled Datacited by 90
- 2018A standardized Project Gutenberg corpus for statistical analysis of natural language and quantitative linguisticscited by 64
- 2018Word Mover's Embedding: From Word2Vec to Document Embeddingcited by 26
- 2015Similarity of symbol frequency distributions with heavy tailscited by 6
2 more
Built on by
Citing papers per year: 2024: 1.
1 paper.