Skip to main content
QUICK REVIEW

[Paper Review] Question Relatedness on Stack Overflow: The Task, Dataset, and Corpus-inspired Models

Amirreza Shirani, Bowen Xu|arXiv (Cornell University)|May 2, 2019
Expert finding and Q&A systemsComputer Science11 citations
TL;DR

This paper introduces a multi-class question relatedness task on Stack Overflow, categorizing knowledge unit pairs into duplicate, direct, indirect, or isolated. It presents a large-scale dataset of over 300,000 annotated pairs and proposes a BiLSTM-based model (DotBiLSTM) and a soft-cosine SVM model, both outperforming state-of-the-art methods on duplicate detection, with DotBiLSTM achieving 75% F-micro score on the four-class task and 91% on a reformulated binary duplicate detection task.

ABSTRACT

Domain-specific community question answering is becoming an integral part of professions. Finding related questions and answers in these communities can significantly improve the effectiveness and efficiency of information seeking. Stack Overflow is one of the most popular communities that is being used by millions of programmers. In this paper, we analyze the problem of predicting knowledge unit (question thread) relatedness in Stack Overflow. In particular, we formulate the question relatedness task as a multi-class classification problem with four degrees of relatedness. We present a large-scale dataset with more than 300K pairs. To the best of our knowledge, this dataset is the largest domain-specific dataset for Question-Question relatedness. We present the steps that we took to collect, clean, process, and assure the quality of the dataset. The proposed dataset Stack Overflow is a useful resource to develop novel solutions, specifically data-hungry neural network models, for the prediction of relatedness in technical community question-answering forums. We adopt a neural network architecture and a traditional model for this task that effectively utilize information from different parts of knowledge units to compute the relatedness between them. These models can be used to benchmark novel models, as they perform well in our task and in a closely similar task.

Motivation & Objective

  • To define and formalize the task of multi-class question relatedness detection in domain-specific community question answering, particularly on Stack Overflow.
  • To create a large-scale, high-quality dataset of over 300,000 question-thread pairs annotated with four degrees of relatedness: duplicate, direct, indirect, and isolated.
  • To develop and benchmark effective models—both neural and traditional—for predicting relatedness in technical forums.
  • To evaluate model performance on both the proposed multi-class task and a closely related binary duplicate detection task for cross-comparison.

Proposed method

  • The relatedness task is formulated as a multi-class classification problem with four labels: duplicate, direct, indirect, and isolated.
  • A large-scale dataset was collected using URL sharing patterns on Stack Overflow, where shared URLs indicate perceived relatedness.
  • Data cleaning and quality assurance were performed through multiple stages, including expert annotation and a user study to validate reliability.
  • A lightweight Bidirectional Long Short-Term Memory (BiLSTM) network with a dot-product attention mechanism (DotBiLSTM) was adapted to model semantic similarity between question threads.
  • A Support Vector Machine (SVM) model was trained using hand-crafted soft-cosine similarity features derived from title, body, and answer text.
  • The models were evaluated on both the original four-class task and a reformulated binary duplicate detection task, with class balancing via under-sampling for fairness.

Experimental results

Research questions

  • RQ1How can question relatedness in technical forums like Stack Overflow be meaningfully categorized into multiple degrees of similarity beyond simple duplicate/non-duplicate?
  • RQ2What is the reliability and scalability of using URL sharing as a proxy for relatedness in community question-answering platforms?
  • RQ3How do neural and traditional machine learning models perform on a large-scale, multi-class question relatedness task in a domain-specific setting?
  • RQ4To what extent can models trained on this dataset generalize to related tasks, such as binary duplicate detection, and how do they compare to state-of-the-art approaches?

Key findings

  • The proposed dataset contains over 300,000 question-thread pairs annotated with four relatedness classes, making it the largest domain-specific relatedness dataset to date.
  • The DotBiLSTM model achieved an F-micro score of 75% on the four-class relatedness classification task, significantly outperforming the SoftSVM model (59% F-micro).
  • On a reformulated binary duplicate detection task, DotBiLSTM achieved 91% F-score, demonstrating strong performance on a simplified but common variant of the problem.
  • The SoftSVM model with hand-crafted soft-cosine features achieved 70% F-score on the binary task, showing competitive performance despite its traditional nature.
  • Both models outperformed the state-of-the-art Hybrid DCNN model on the AskUbuntu dataset, achieving 88% and 90% F-scores respectively, indicating robustness across datasets.
  • The user study confirmed the reliability of using URL sharing as a proxy for relatedness, validating the dataset collection methodology.

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.