Enhancing Cosine Similarity: A Unified Approach to Reduce Common Entity Bias in Sentence Similarity

Cosine similarity is widely used for measuring semantic similarity between sentences by calculating the cosine of the angle between their embedding vectors. Despite its widespread application, it often miscalculates, overestimates similarity when common Named Entities (NER) are present among text corpus, as these entities inflate the score without adequately reflecting real intents of the sentence. In this paper, first, the existing statistical and AI based approaches were evaluated for measuring semantic similarity between text corpora. Since the results were not acceptable, an enhanced cosine similarity framework was proposed, which addresses these challenges by using weighted scoring mechanism applied on Named Entity Recognition (NER), sentence intent analysis. Dataset is curated from FAQs of various products and user queries of initial deployment of LLMs. Logistic regression was used to learn optimal weights for these components using annotated data. Experimental results demonstrate improvement from 65% to 85% classification accuracy with proposed method.

Authors

Institutions

Publication Details

Published
2025-07-25
DOI
https://doi.org/10.1109/icdsns65743.2025.11168662
Primary Topic
Topic Modeling
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Enhancing Cosine Similarity: A Unified Approach to Reduce Common Entity Bias in Sentence Similarity

Srikant Gupta, Amit Kumar Gupta, Sushant Jain, A. Gupta et al.
Topic Modeling
article

Enhancing Cosine Similarity: A Unified Approach to Reduce Common Entity Bias in Sentence Similarity

Srikant Gupta, Amit Kumar Gupta, Sushant Jain, A. Gupta, P. Tarun
article en

Abstract

Cosine similarity is widely used for measuring semantic similarity between sentences by calculating the cosine of the angle between their embedding vectors. Despite its widespread application, it often miscalculates, overestimates similarity when common Named Entities (NER) are present among text corpus, as these entities inflate the score without adequately reflecting real intents of the sentence. In this paper, first, the existing statistical and AI based approaches were evaluated for measuring semantic similarity between text corpora. Since the results were not acceptable, an enhanced cosine similarity framework was proposed, which addresses these challenges by using weighted scoring mechanism applied on Named Entity Recognition (NER), sentence intent analysis. Dataset is curated from FAQs of various products and user queries of initial deployment of LLMs. Logistic regression was used to learn optimal weights for these components using annotated data. Experimental results demonstrate improvement from 65% to 85% classification accuracy with proposed method.

University of Delhi (IN), LG (India) (IN)
Openalex Percentile: Top 86%
Topic Modeling
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.