← Latest papers
💻 computer science

Hybrid Siamese Deep Learning Framework for Duplicate Question Detection using Contextual and Lexical Feature Fusion

This paper proposes a hybrid Siamese deep learning framework that fuses contextual BERT embeddings, lexical Glove-based CNN-BiLSTM features, and handcrafted linguistic metrics to effectively detect duplicate questions on Community Question Answering platforms, achieving 85.03% accuracy on the Quora Question Pairs dataset.

Original authors: Meherzadi Muntaha, Muhammad Junaid Asif, Naveed Hussain, Rana Fayyaz Ahmad

Published 2026-07-29
📖 6 min read🧠 Deep dive

Original authors: Meherzadi Muntaha, Muhammad Junaid Asif, Naveed Hussain, Rana Fayyaz Ahmad

Original paper licensed under CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are walking through a massive, bustling library where millions of people are shouting questions into the air every second. Some ask, "How do I bake a cake?" while others scream, "What's the best way to make a sponge cake?" Even though the words are different, they are asking the exact same thing. In the world of computers, this is called "Duplicate Question Detection." It's a branch of Artificial Intelligence (AI) and Natural Language Processing (NLP) that tries to teach machines to understand that two sentences can look totally different but mean the same thing.

To do this, computers usually use two main tricks. First, they look at the "dictionary" meaning of words, like checking if two books share the same vocabulary. Second, they try to understand the "context" or the vibe of the sentence, realizing that "I'm feeling blue" doesn't mean the sky is raining paint, but that someone is sad. The challenge is that sometimes computers get too focused on the dictionary and miss the vibe, or they get too lost in the vibe and miss the specific words. This paper tackles that problem by building a super-smart system that uses both tricks at the same time to spot duplicate questions on sites like Quora, saving users from reading the same answer twice and helping moderators keep the library tidy.


The Two-Headed Detective

The researchers behind this study, led by Meherzadi Muntaha and her team, built a "hybrid" detective system to solve the duplicate question mystery. Think of it as a team of two detectives working side-by-side, each with a different superpower, who then combine their notes to solve the case.

Detective A: The Context Master (The BERT Stream)
The first detective, named "Model A," is an expert at understanding the deep meaning and context of a sentence. It uses a powerful tool called BERT, which is like a super-reading machine that has read almost the entire internet. This detective doesn't just look at the words; it understands how they fit together. If someone asks, "How do I fix a flat tire?" and another asks, "What's the best way to repair a deflated wheel?", Detective A realizes that "fix" and "repair" and "flat" and "deflated" are dancing to the same tune, even if the words are different. It uses a special neural network structure called a Siamese Neural Network, which is like a mirror that looks at both questions at the same time to see if they are reflections of each other.

Detective B: The Word Counter (The GloVe Stream)
The second detective, "Model B," is a bit more old-school but incredibly sharp at spotting patterns in the words themselves. It uses GloVe embeddings, which are like a giant map of how words usually hang out together. This detective looks for specific word overlaps and the order of words. It also uses a 1D-CNN (a pattern-spotter) and a BiLSTM (a memory keeper) to remember the sequence of words. It's great at catching things like, "How do I bake a cake?" and "How do I bake a cake?" where the words are almost identical.

The Secret Sauce: Handcrafted Clues
But the team didn't stop there. They realized that sometimes the computers miss the obvious. So, they added a third layer of "handcrafted" clues. These are simple, human-made math tricks that count things like:

  • How many words do the two questions share?
  • What is the longest string of letters they have in common?
  • How similar do the sentences look if you squint at them (fuzzy matching)?

The Big Mix-Up
Here is where the magic happens. The team took the deep, smart understanding from Detective A, the pattern-spotting skills from Detective B, and the simple math clues from the handcrafted layer, and smashed them all together into one giant "feature fusion." Imagine taking a high-definition photo, a sketch, and a written description of a suspect and feeding them all into a single brain. This combined brain then makes the final decision: Are these two questions duplicates or not?

What They Found

The team tested their new "Hybrid Siamese Deep Learning Framework" on the Quora Question Pairs (QQP) dataset, which is a massive collection of over 400,000 pairs of questions labeled by humans as either duplicates or not. They split this data so 80% was used to teach the model and 20% was used to test it.

The results were quite impressive. The hybrid model managed to get an accuracy of 85.03%. This means it correctly identified whether questions were duplicates or not more than 85 times out of 100.

  • For questions that were not duplicates, it was very sure, with a precision of 91.23%.
  • For questions that were duplicates, it found 86.14% of them (recall) and had an F1-score of 0.8095.

The F1-score is a special number that balances how many correct guesses the model made against how many mistakes it made. The team's model scored 0.81, which is better than many of the older, single-method models they compared it against.

Why the Mix Matters

To prove that their "two-detective" approach was actually necessary, the researchers ran a little experiment called an ablation study. This is like taking apart a car to see which parts actually make it drive.

  • When they used only the Context Master (Model A), the accuracy dropped to 83.9%.
  • When they used only the Word Counter (Model B), the accuracy dropped even lower to 80.6%.
  • When they combined the two detectives but removed the handcrafted clues, the accuracy was 84.4%.
  • But when they used all three (Context + Word Patterns + Handcrafted Clues), the accuracy jumped to the final 85.03%.

This suggests that while the deep learning models are powerful, they still benefit from the simple, explicit math of the handcrafted features. The combination allows the system to be robust, handling both the subtle changes in meaning and the obvious word overlaps.

The Bottom Line

The paper concludes that this hybrid approach is a strong, scalable way to handle the messy, real-world problem of duplicate questions. It doesn't claim to have solved the problem perfectly—there were still some mistakes, like confusing questions that look similar but mean different things (false positives) or missing questions that are very cleverly rephrased (false negatives). However, by fusing contextual understanding, lexical patterns, and simple linguistic rules, the team showed that a "hybrid" system is more effective than relying on just one type of AI brain. It's a reminder that sometimes, the best way to understand human language is to use every tool in the toolbox at once.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →