Neural Duplicate Question Detection without Labeled Training Data

Andreas Rücklé, Nafise Sadat Moosavi, Iryna Gurevych

Abstract

Detecting duplicate questions in Community Question Answering (cQA) platforms is essential for maintaining information quality but is traditionally constrained by the need for large-scale human-labeled datasets. This paper presents two novel unsupervised training strategies: Weak Supervision with Title-Body pairs (WS-TB) and Duplicate Question Generation (DQG). These methods utilize the natural relationship between a question's title and its body to synthesize training signals. Experimental results across multiple StackExchange domains demonstrate that these approaches can match or exceed the performance of supervised models, particularly when leveraging the vast amounts of unlabeled data available in online forums.

Introduction

In online forums like StackExchange, duplicate questions lead to fragmented information and increased search friction. While deep learning models have shown promise in identifying duplicates, their "data-hungry" nature makes them difficult to deploy for smaller or niche communities that lack thousands of manually labeled question pairs. Traditional domain transfer methods often fail due to significant vocabulary shifts between technical domains. This research explores how to train robust duplicate detectors using only the raw, unlabeled content inherent to every forum.

Proposed Methodology

The authors propose two strategies to circumvent the need for manual labels by exploiting the structural properties of forum posts.

1. Weak Supervision with Title-Body Pairs (WS-TB)

The WS-TB method operates on the assumption that a question's title and its body are semantically equivalent descriptions of the same underlying problem. The model is trained to "restore" the relationship by predicting whether a given title and body belong to the same post. This provides a rich, albeit noisy, signal that helps the model learn semantic relatedness without explicit duplicate labels.

2. Duplicate Question Generation (DQG)

DQG involves training a sequence-to-sequence model (specifically a Multi-task Question Answering Network with a pointer-generator) to generate a synthetic title based on a question's body. This generated title is then paired with the original title and treated as a "duplicate" pair for training the detection model. The use of a pointer-generator is critical here, as it allows the model to copy specific technical terms (e.g., software versions) from the body into the synthetic title, preserving technical accuracy.

Overview of the WS-TB and DQG training frameworks.

Experimental Evaluation

The models were evaluated on several StackExchange communities, including AskUbuntu, SuperUser, Apple, and Android. These datasets provided a mix of small, manually annotated sets for testing and massive unlabeled dumps for training.

Key Findings

  • Scaling with Unlabeled Data: A primary advantage of these methods is their ability to utilize the full volume of available forum data. As shown in Figure 5, the performance of the WS-TB model (measured by AUC) improves significantly as the amount of training data increases, often surpassing supervised baselines trained on smaller labeled sets.
  • Cross-Domain Generalization: The DQG approach proved highly effective at generating training data even when the generation model was trained on a different domain. This suggests that the skill of summarizing a question body into a title is largely domain-independent.
  • Integration with Pre-trained Models: When applied to BERT, the WS-TB method with 8x more data outperformed standard supervised training on the Android and Apple datasets, highlighting the value of "quantity over quality" in large-scale neural training.
Performance of WS-TB across different domains as training data scales.

Conclusion

This work demonstrates that labeled data is not a prerequisite for high-performing duplicate question detection. By leveraging the internal structure of forum posts through WS-TB and DQG, models can be trained to a level of accuracy that rivals supervised systems. These techniques offer a scalable solution for smaller online communities to improve their information retrieval systems without the prohibitive cost of manual data annotation. Future research may extend these unsupervised objectives to cross-lingual duplicate detection and other low-resource NLP tasks.

Summary updated

BibTeX
@inproceedings{ruckle2019neural,
  author = {Andreas Rücklé and Nafise Sadat Moosavi and Iryna Gurevych},
  title = {{Neural Duplicate Question Detection without Labeled Training Data}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2019},
  doi = {10.18653/v1/d19-1171},
}
Figure