A Comparison of RNN based Seq2Seq and Transformer Models for Detecting Similar Questions

There are millions and billions of questions on various knowledge sharing websites like Quora.It’s very common that various questions are duplicate in it. An automatic tool for detectingsimilar questions out of these millions of questions is known as similar question detectionapproach. So, this paper presents an approach for detecting similar questions. The semanticsimilarity between pairs of questions represents that questions are similar. The approach detectssimilar questions by comparing the sentence embeddings. All the questions from Quoraquestion pair dataset have been converted into sentence embeddings and then the givenquestion is passed to the model for detecting similar questions. The comparison of detectingsimilar questions has been done with two methods i.e. Cosine and Jaccard similarity. Thecombination of Jaccard and cosine similarity can perform better for detecting similar questionsas Jaccard similarity is able to detect lexical and cosine can detect semantic similarity. Theimportant phase in this study is the conversion of questions into embeddings. So, the questionshave been converted into embeddings using three models: average vector, RNN based Seq2Seqand transformer model. Two datasets have been used for the comparison: one is Quora questionpairs dataset in English and second is the translated Quora question pairs in Punjabi. The BLEUsimilarity metric has been applied for the evaluation of the proposed similar question detectionapproach. The embeddings of the detected and the input question have also been compared forin-depth evaluation.

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2025-09-30
DOI
https://doi.org/10.5281/zenodo.17272677
Primary Topic
Cell Image Analysis Techniques
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A Comparison of RNN based Seq2Seq and Transformer Models for Detecting Similar Questions

Zenodo (CERN European Organization for Nuclear Research)
Cell Image Analysis Techniques
article

A Comparison of RNN based Seq2Seq and Transformer Models for Detecting Similar Questions

article en

Abstract

There are millions and billions of questions on various knowledge sharing websites like Quora.It’s very common that various questions are duplicate in it. An automatic tool for detectingsimilar questions out of these millions of questions is known as similar question detectionapproach. So, this paper presents an approach for detecting similar questions. The semanticsimilarity between pairs of questions represents that questions are similar. The approach detectssimilar questions by comparing the sentence embeddings. All the questions from Quoraquestion pair dataset have been converted into sentence embeddings and then the givenquestion is passed to the model for detecting similar questions. The comparison of detectingsimilar questions has been done with two methods i.e. Cosine and Jaccard similarity. Thecombination of Jaccard and cosine similarity can perform better for detecting similar questionsas Jaccard similarity is able to detect lexical and cosine can detect semantic similarity. Theimportant phase in this study is the conversion of questions into embeddings. So, the questionshave been converted into embeddings using three models: average vector, RNN based Seq2Seqand transformer model. Two datasets have been used for the comparison: one is Quora questionpairs dataset in English and second is the translated Quora question pairs in Punjabi. The BLEUsimilarity metric has been applied for the evaluation of the proposed similar question detectionapproach. The embeddings of the detected and the input question have also been compared forin-depth evaluation.

Zenodo (CERN European Organization for Nuclear Research)
Punjabi University (IN)
Openalex Percentile: Top 34%
Cell Image Analysis Techniques
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.