Skip to main content
QUICK REVIEW

[Paper Review] Siamese Neural Networks with Random Forest for detecting duplicate question pairs

Ameya Godbole, Aman Dalmia|arXiv (Cornell University)|Jan 22, 2018
Topic ModelingComputer Science7 references9 citations
TL;DR

This paper proposes a Siamese bidirectional GRU model combined with handcrafted features and a Random Forest classifier for detecting duplicate question pairs. By leveraging GloVe embeddings, bidirectional GRU encoding, and ensemble learning, the approach achieved a cross-entropy loss of 0.24365, placing it in the top 24% of the Quora Question Pairs Kaggle competition.

ABSTRACT

Determining whether two given questions are semantically similar is a fairly challenging task given the different structures and forms that the questions can take. In this paper, we use Gated Recurrent Units(GRU) in combination with other highly used machine learning algorithms like Random Forest, Adaboost and SVM for the similarity prediction task on a dataset released by Quora, consisting of about 400k labeled question pairs. We got the best result by using the Siamese adaptation of a Bidirectional GRU with a Random Forest classifier, which landed us among the top 24% in the competition Quora Question Pairs hosted on Kaggle.

Motivation & Objective

  • To improve semantic similarity detection in question pairs by combining deep learning with traditional machine learning classifiers.
  • To address the challenge of detecting semantically similar questions despite structural and lexical variations.
  • To enhance performance beyond word-based similarity measures by capturing contextual and semantic representations.
  • To explore the effectiveness of ensemble methods in combining neural network outputs with hand-engineered features.
  • To achieve state-of-the-art performance on the Quora Question Pairs dataset using a hybrid deep learning and tabular ML approach.

Proposed method

  • A Siamese architecture with bidirectional GRUs processes both questions in a pair, sharing weights to learn contextual sentence representations.
  • Word embeddings are initialized using 50-dimensional pre-trained GloVe vectors to capture semantic meaning.
  • The final sentence-level representation is formed by concatenating GRU hidden states with word-level features and passing through a feedforward network with dropout.
  • Three additional handcrafted features are extracted: word overlap, TF-IDF weighted word overlap, and shared duplicate count.
  • The Siamese GRU output and three features are used as input to a secondary classifier, with Random Forest showing the best performance.
  • Model training uses Adam optimizer and binary cross-entropy loss, with hyperparameters tuned on a development set.

Experimental results

Research questions

  • RQ1Can a Siamese bidirectional GRU model effectively learn semantic similarity between question pairs with variable structure and length?
  • RQ2How does combining neural network embeddings with hand-engineered features improve duplicate detection performance?
  • RQ3Which secondary classifier—Random Forest, SVM, or AdaBoost—best leverages the similarity score and auxiliary features for final prediction?
  • RQ4To what extent does data augmentation improve generalization in the context of duplicate question detection?
  • RQ5Does ensembling the GRU similarity score with multiple features lead to better performance than using the neural model alone?

Key findings

  • The Siamese bidirectional GRU with Random Forest classifier achieved the best cross-entropy loss of 0.24365, outperforming SVM and AdaBoost.
  • The Random Forest classifier with maximum depth regularization yielded the highest performance, indicating its robustness to overfitting on the combined feature set.
  • Data augmentation increased training samples by 3x, balancing the positive and negative class ratio to 1:1, which improved model generalization.
  • The inclusion of the shared duplicate count feature acted as a strong indicator of duplication, significantly improving model confidence.
  • The model placed within the top 24% of the Quora Question Pairs competition, demonstrating the effectiveness of the ensemble approach.
  • Dropout regularization in the final fully connected layers led to degraded performance when used with Random Forest, suggesting overfitting or suboptimal interaction with the ensemble.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.