[Paper Review] Textual Spatial Cosine Similarity
This paper introduces Textual Spatial Cosine Similarity (TSCS), a novel document similarity measure that enhances traditional cosine similarity by incorporating word position and spatial distribution within texts. By modeling semantic similarity through spatial word placement, TSCS achieves real-time performance while detecting paraphrasing and semantic similarity, bridging the gap between efficiency and semantic depth in enterprise search systems.
When dealing with document similarity many methods exist today, like cosine similarity. More complex methods are also available based on the semantic analysis of textual information, which are computationally expensive and rarely used in the real time feeding of content as in enterprise-wide search environments. To address these real-time constraints, we developed a new measure of document similarity called Textual Spatial Cosine Similarity, which is able to detect similitude at the semantic level using word placement information contained in the document. We will see in this paper that two degenerate cases exist for this model, which coincide with Cosine Similarity on one side and with a paraphrasing detection model to the other.
Motivation & Objective
- To address the computational inefficiency of deep semantic similarity methods in real-time enterprise search environments.
- To develop a similarity measure that captures semantic relationships beyond term frequency, using word placement patterns.
- To create a method that degrades gracefully into standard cosine similarity and paraphrasing detection under degenerate conditions.
- To balance semantic accuracy with computational efficiency for scalable document retrieval.
- To provide a practical alternative to expensive semantic models in production search systems.
Proposed method
- TSCS extends standard cosine similarity by weighting terms based on their spatial distribution across document sections or sentences.
- It models document structure by dividing texts into spatial bins (e.g., sentence-level or paragraph-level regions) and computing term frequencies per bin.
- The method computes a cosine similarity score using a modified vector representation that encodes both term frequency and spatial positioning.
- The approach includes a normalization scheme that preserves interpretability and ensures consistency across documents of varying lengths.
- TSCS is designed to reduce to standard cosine similarity when spatial information is ignored and to a paraphrasing detection model when word order and proximity are maximized.
- The model is trained and evaluated on a real-world enterprise search dataset, demonstrating robustness across diverse document types.
Experimental results
Research questions
- RQ1Can a document similarity measure achieve semantic sensitivity without relying on computationally expensive NLP pipelines?
- RQ2How does incorporating word position improve similarity detection in real-time search systems?
- RQ3What happens to TSCS when spatial information is removed or maximized?
- RQ4Does TSCS outperform standard cosine similarity in detecting paraphrases and semantic similarity?
- RQ5Can TSCS be efficiently deployed in enterprise-wide search environments?
Key findings
- TSCS successfully degrades into standard cosine similarity when spatial features are disabled, validating its backward compatibility.
- Under high spatial coherence, TSCS aligns with a known paraphrasing detection model, confirming its sensitivity to word order and proximity.
- The method achieves improved semantic similarity detection over baseline cosine similarity, particularly in identifying paraphrased or semantically related documents.
- TSCS maintains low computational overhead, making it suitable for real-time indexing and retrieval in enterprise search systems.
- Empirical evaluation on a 12th Annual Research Day dataset shows consistent performance gains in semantic similarity detection without sacrificing speed.
- The model demonstrates robustness across diverse document structures, indicating generalizability beyond specific text types.
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.