Joint Multitask Learning for Community Question Answering Using Task-Specific Embeddings

Shafiq R. Joty, Lluís Màrquez, Preslav Nakov · DOI

Abstract

Community Question Answering (cQA) platforms are essential knowledge repositories but often suffer from noise and redundancy. This paper proposes a two-step multitask learning framework that combines the feature-learning capabilities of Deep Neural Networks (DNNs) with the structural modeling of Conditional Random Fields (CRFs). By jointly addressing question-question similarity and answer selection, the model leverages inter-task dependencies to improve performance. Experimental results on the SemEval-2016 Task 3 benchmark show that the joint model achieves state-of-the-art results, highlighting the importance of global inference in structured prediction tasks.

Introduction

Community Question Answering forums, such as Stack Overflow or Quora, provide a platform for users to seek specific information. However, the proliferation of duplicate questions and irrelevant comments complicates information retrieval. Effective cQA systems must solve two primary problems: identifying existing questions similar to a new query (Question-Question Similarity) and finding relevant answers within those threads (Answer Selection). Historically, these tasks have been treated in isolation. This research argues that these tasks are deeply interrelated—a relevant answer to a similar question is likely relevant to the new query—and proposes a joint framework to exploit these dependencies.

Methods

The proposed framework utilizes a hybrid architecture consisting of task-specific embeddings and a global inference layer.

Task-Specific Embeddings

Feed-forward neural networks are employed to learn hidden representations for three subtasks: Subtask A (comment goodness in its original thread), Subtask B (similarity between a new and existing question), and Subtask C (relevance of a comment to a new question). These DNNs process a variety of features, including word embeddings, syntactic information, and machine translation metrics (e.g., BLEU, NIST), to produce "task-specific embeddings" from the final hidden layers.

Joint Learning with Global Inference

These embeddings serve as inputs to a Conditional Random Field (CRF). Unlike local classifiers, the CRF models the entire graph of a question thread, capturing both intra-task dependencies (e.g., similarity between comments in the same thread) and across-task dependencies (e.g., the link between Subtask A and Subtask C). Inference is performed using Loopy Belief Propagation, allowing for global consistency across the network.

Architecture of the feed-forward neural networks and the globally normalized joint conditional model.

Results

The model was evaluated on the SemEval-2016 Task 3 benchmark. A key finding is that the joint CRF model significantly outperforms standalone DNNs. For Subtask C (Answer Selection), the Mean Average Precision (MAP) increased from 54.24 for the DNN to 56.00 for the joint model.

Performance comparison on Subtask C (Answer Selection) using MAP, AvgRec, and MRR metrics.

The system's performance is competitive with the top-ranked models from the SemEval-2016 competition, despite using a more streamlined feature set. Furthermore, experiments using "gold labels" for auxiliary tasks (A and B) demonstrated a potential MAP increase of over 9 points (reaching 63.49), confirming that better joint modeling of these correlated tasks is a primary driver for performance gains.

Conclusion

The integration of DNNs for feature learning and CRFs for structural modeling provides a robust framework for cQA. By moving from local "pipeline" approaches to global joint inference, the model effectively reconciles predictions across complex question-answer webs. Future work will explore end-to-end neural architectures, such as Transformers, to replace the initial embedding step and extend the model to address forum veracity and "trollness" detection.

Summary updated

BibTeX
@inproceedings{joty2018joint,
  author = {Shafiq R. Joty and Lluís Màrquez and Preslav Nakov},
  title = {{Joint Multitask Learning for Community Question Answering Using Task-Specific Embeddings}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1452},
}
Figure