DiffQue: Estimating Relative Difficulty of Questions in Community Question Answering Services

Deepak Thukral, Adesh Pandey, Rishabh Gupta, Vikram Goyal, Tanmoy Chakraborty

Abstract

Community Question Answering (CQA) platforms like Stack Overflow are vital knowledge repositories, yet they lack automated systems to quantify question difficulty. This paper introduces DiffQue, a novel framework that estimates the relative difficulty of question pairs by modeling user interactions as a time-aware network. By framing difficulty estimation as an edge directionality prediction task, DiffQue incorporates temporal dynamics, textual similarity to domain textbooks, and network topology. Experimental results across multiple datasets show that DiffQue outperforms state-of-the-art baselines by approximately 29% in accuracy and effectively addresses the "cold start" problem for new questions.

Introduction

Quantifying question difficulty in CQA services is essential for optimizing platform operations. Accurate difficulty metrics enable efficient question routing, where complex queries are directed to experts, and the design of fair incentive mechanisms that reward users based on the challenge of the problems they solve.

However, difficulty is inherently subjective and dynamic. Existing methods often rely on static snapshots of user reputation or simple metadata, failing to capture how user expertise evolves over time. DiffQue addresses these limitations by leveraging the temporal sequence of user activities and the semantic content of answers to provide a robust relative difficulty ranking.

Methodology: The DiffQue Framework

DiffQue operates by transforming the difficulty estimation problem into a supervised learning task: edge directionality prediction.

The DiffQue pipeline: from dataset to relative difficulty prediction.

1. Network Construction

The framework first constructs a directed graph where nodes represent questions. A directed edge from $Q_A$ to $Q_B$ indicates that $Q_B$ is more difficult than $Q_A$. These edges are drawn based on three time-aware hypotheses:

  • Interaction-based (H1 & H2): If a user answers another's question, the answerer is presumed to have higher expertise. Consequently, questions asked by the answerer are likely more difficult than those they have answered.
  • Evolution-based (H3): Recognizing that expertise grows over time, questions asked by a user later in their tenure are typically more challenging than those asked earlier on the same topic.

2. Feature Engineering and Prediction

DiffQue utilizes a Support Vector Machine (SVM) to predict the direction of difficulty between question pairs using three feature sets:

  • Network Topology: Metrics like PageRank and node degree derived from the interaction graph.
  • Metadata: Factors such as the time taken to receive an accepted answer and the asker's historical success rate.
  • Textual Content: A novel approach comparing answer text to standard domain textbooks. Questions whose answers are found concentrated in a single textbook passage are categorized as easier/fundamental, whereas hard questions require synthesizing knowledge.

3. Handling Cold Starts

For new questions without interaction history, DiffQue employs Doc2Vec embeddings to identify similar historical questions. The network features of these "neighbors" serve as proxies, allowing the model to estimate difficulty even for brand-new posts.

Experimental Evaluation

The model was evaluated on four large-scale datasets from Stack Overflow (SO) and Mathematics Stack Exchange (MSE), spanning nearly a decade of data. To establish ground truth, the authors curated a benchmark of 1,200 question pairs annotated by domain experts, reaching consensus on which question in each pair was harder.

Key Results

  • Superior Performance: DiffQue achieved an average $F_1$ score of 72.89%, surpassing baselines like TrueSkill and RCM by nearly 29%.
  • Domain Generalization: A model trained on programming data (SO) successfully predicted difficulty in mathematics (MSE) with an $F_1$ of 71.49%, demonstrating the universality of its network and metadata features.
  • Robustness: The framework maintained high accuracy even in "cold start" scenarios, outperforming existing methods designed for new content.

Discussion and Future Work

While DiffQue represents a significant advancement, it faces challenges regarding sensitivity to noisy data; performance drops if more than 5% of training edges are incorrect. Furthermore, while excellent at relative ranking, computing a global absolute difficulty score for all questions remains computationally intensive ($O(N^2)$). The inherent subjectivity of the task is reflected in a Fleiss' kappa of 0.56 among human annotators. Future research will focus on improving noise resilience and developing scalable methods for global difficulty estimation through real-time user feedback loops.

Summary updated

BibTeX
@article{thukral2019diffque,
  author = {Deepak Thukral and Adesh Pandey and Rishabh Gupta and Vikram Goyal and Tanmoy Chakraborty},
  title = {{DiffQue: Estimating Relative Difficulty of Questions in Community Question Answering Services}},
  journal = {ACM Trans. Intell. Syst. Technol.},
  year = {2019},
  doi = {10.1145/3337799},
}
Figure