[Paper Review] A new simple and effective measure for bag-of-word inter-document similarity measurement
This paper proposes Sp, a novel inter-document similarity measure that bypasses traditional term weighting by using a probabilistic approach to assess term-level similarity in bag-of-words vectors. It achieves superior performance in binary BoW representation and competitive, more consistent results in term-frequency-based representation compared to cosine similarity and BM25 with various weighting schemes.
To measure the similarity of two documents in the bag-of-words (BoW) vector representation, different term weighting schemes are used to improve the performance of cosine similarity---the most widely used inter-document similarity measure in text mining. In this paper, we identify the shortcomings of the underlying assumptions of term weighting in the inter-document similarity measurement task; and provide a more fit-to-the-purpose alternative. Based on this new assumption, we introduce a new simple but effective similarity measure which does not require explicit term weighting. The proposed measure employs a more nuanced probabilistic approach than those used in term weighting to measure the similarity of two documents w.r.t each term occurring in the two documents. Our empirical comparison with the existing similarity measures using different term weighting schemes shows that the new measure produces (i) better results in the binary BoW representation; and (ii) competitive and more consistent results in the term-frequency-based BoW representation.
Motivation & Objective
- To identify the limitations of existing term weighting assumptions in inter-document similarity measurement.
- To propose a new similarity measure that does not rely on explicit term weighting, improving consistency and performance.
- To evaluate the new measure across diverse datasets and BoW representations, especially in privacy-sensitive domains.
- To demonstrate that Sp achieves better or competitive results than state-of-the-art methods without requiring term weighting adjustments.
Proposed method
- The proposed Sp measure uses a probabilistic framework to compute similarity per term across two documents, based on co-occurrence and distribution patterns.
- It computes a term-specific similarity score that reflects the likelihood of shared relevance, without relying on tf or idf factors.
- The overall document similarity is derived as a weighted sum of per-term similarities, using a normalized aggregation to ensure scale invariance.
- The method is designed to be simple and effective, avoiding complex parameter tuning common in tf-idf or BM25.
- It operates directly on raw BoW vectors—both binary and term-frequency representations—without requiring preprocessing or weighting.
- The approach is grounded in a new assumption: similarity should reflect the probabilistic relevance of terms in context, not just frequency or rarity.
Experimental results
Research questions
- RQ1How do existing term weighting schemes like tf-idf perform in inter-document similarity when applied to query-by-example tasks?
- RQ2Can a similarity measure be designed that avoids explicit term weighting while maintaining or improving performance?
- RQ3Does the proposed Sp measure outperform cosine similarity and BM25 in both binary and term-frequency-based BoW representations?
- RQ4Is Sp more consistent across diverse datasets compared to traditional measures with varying weighting schemes?
- RQ5Can Sp serve as a robust alternative in privacy-sensitive applications where term frequencies are obscured?
Key findings
- Sp achieves significantly better performance than cosine similarity and BM25 with any term weighting scheme in the binary BoW representation.
- In term-frequency-based BoW representation, Sp produces competitive and more consistent results than existing measures across multiple datasets.
- The performance of Sp is stable and does not depend on tuning term weighting parameters, unlike cosine or BM25.
- Sp outperforms weighted Jaccard similarity when combined with tf-idf, indicating its superiority in modeling term-level relevance.
- Sp maintains strong performance even when term frequency information is unavailable, making it suitable for privacy-preserving applications.
- Empirical evaluation confirms that Sp is robust across different text mining tasks, especially in query-by-example scenarios.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.