A Tri-Role Topic Model for Domain-Specific Question Answering

Zongyang Ma, Aixin Sun, Quan Yuan, Gao Cong

Abstract

Community-based question answering (CQA) platforms like Stack Overflow rely on specialized expertise. Traditional topic models often fail to distinguish between a user's interests and their actual knowledge. This paper introduces the Tri-Role Topic Model (TRTM), which explicitly models users as askers, answerers, and voters. By leveraging voting data as a topical constraint and decoupling interest from expertise, TRTM significantly improves answer ranking performance, outperforming standard models by over 10% in ranking high-quality answers.

Introduction

General CQA sites like Yahoo! Answers cover broad topics where "common sense" often suffices. However, domain-specific sites like Stack Overflow (programming) or MedHelp (medicine) require deep technical expertise. In these specialized communities, user behavior is complex: a user might ask questions about topics they are learning (interests) but provide answers only in areas where they are experts.

Existing topic models often treat users as a single entity or ignore the critical signal provided by community voting. The Tri-Role Topic Model (TRTM) addresses this gap by formalizing how three distinct roles—Asker, Answerer, and Voter—interact at a topical level to help users find the best answers quickly.

The Tri-Role Framework

TRTM is an extension of Probabilistic Latent Semantic Analysis (PLSA). While standard models assume a document is just a mixture of topics, TRTM adds layers of role-based constraints.

The interaction between Asker, Answerer, and Voter roles in a CQA environment.

The model assigns each user two distinct topic distributions: one for their role as an Asker (representing what they want to know) and one as an Answerer (representing what they actually know). Instead of modeling votes as text, TRTM uses them as a constraint. If an answer receives many positive votes, the model assumes a high topical similarity between the answerer’s expertise and the question’s requirements.

The "secret sauce" of the framework is the Exponential KL-Divergence (eKL) function. This function models the probability of a user choosing to answer a specific question by measuring how well a user's expertise profile "fits" a question's topic profile.

Modeling Expertise vs. Interest

A core insight of this research is that a user's interests do not necessarily equal their expertise. A user might ask many questions about "Web Development" while providing expert answers in "Server-client programming." TRTM is the first model to decouple these effectively.

Comparison of a user's topic distribution as an asker versus an answerer.

As shown in the figure above, a user's probability distribution across topics can vary wildly depending on whether they are acting as an asker or an answerer. By modeling these roles separately, TRTM captures the nuanced relationship between learning and knowing.

Evaluation and Results

The researchers evaluated TRTM using a massive real-world dataset from Stack Overflow, comprising over 16,000 questions and 180,000 answers from active users. The model was tested on the task of Answer Ranking—predicting which answers will eventually be voted the best before the community has finished voting.

Key results include:

  • Superior Accuracy: TRTM outperformed the baseline Topic Expertise Model (TEM) by 11.6% and standard LDA by 10.1% on the nDCG@1 metric.
  • Robustness: The model remained effective across different topic counts, with 20 topics proving to be the optimal configuration for the Stack Overflow dataset.
  • Cold Start Advantage: TRTM was particularly effective at ranking answers for new or less popular questions where voting data is sparse, as it could rely on the learned expertise profiles of the answerers.

Conclusion

TRTM provides a robust framework for understanding user behavior in technical communities. By explicitly modeling the "selection" activity—the mental self-assessment an expert performs before answering—the model aligns latent topics more accurately than previous methods.

Future work will address the "bag-of-words" limitation by incorporating semantic word order and code snippets. Additionally, the authors plan to explore temporal dynamics, modeling how a user's expertise and roles evolve over time.

Summary updated

BibTeX
@inproceedings{ma2015tri,
  author = {Zongyang Ma and Aixin Sun and Quan Yuan and Gao Cong},
  title = {{A Tri-Role Topic Model for Domain-Specific Question Answering}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2015},
  doi = {10.1609/aaai.v29i1.9182},
}
Figure