PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
September 16, 2025Computers8 citationsOpen Access

Transformer Models for Paraphrase Detection: A Comprehensive Semantic Similarity Study

View Full Paper
DMDianeliz Ortiz MartesEGEvan GundersonCNCharles P. Neuman

Key Points

  • MPNet achieved the highest accuracy of 75.6% for paraphrase detection using cosine similarity.
  • BERT and RoBERTa showed competitive performance but were sensitive to the choice of similarity metric.
  • Optimal thresholds for similarity measures varied significantly, indicating challenges in establishing a universal benchmark.
  • Fine-tuning similarity metrics alongside model selection is crucial for effective semantic similarity systems.

Abstract

Semantic similarity, the task of determining whether two sentences convey the same meaning, is central to applications such as paraphrase detection, semantic search, and question answering. Despite the widespread adoption of transformer-based models for this task, their performance is influenced by both the choice of similarity measure and BERT (bert-base-nli-mean-tokens), RoBERTa (all-roberta-large-v1), and MPNet (all-mpnet-base-v2) on the Microsoft Research Paraphrase Corpus (MRPC). Sentence embeddings were compared using cosine similarity, dot product, Manhattan distance, and Euclidean distance, with thresholds optimized for accuracy, balanced accuracy, and F1-score. Results indicate a consistent advantage for MPNet, which achieved the highest accuracy (75.6%), balanced accuracy (71.0%), and F1-score (0.836) when paired with cosine similarity at an optimized threshold of 0.671. BERT and RoBERTa performed competitively but exhibited greater sensitivity to the choice of Similarity metric, with BERT notably underperforming when using cosine similarity compared to Manhattan or Euclidean distance. Optimal thresholds varied widely (0.334–0.867), underscoring the difficulty of establishing a single, generalizable cut-off for paraphrase classification. These findings highlight the value of fine-tuning of both Similarity metrics and thresholds alongside model selection, offering practical guidance for designing high-accuracy semantic similarity systems in real-world NLP applications.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Martes et al. (2025) studied this question.

synapsesocial.com/papers/68d454c531b076d99fa5a250https://doi.org/10.3390/computers14090385
Ask AI
Helpful
Bookmark
Share
View Full Paper