Multi-Label Community-Based Question Classification via Personalized Sequence Memory Network Learning

Xinyu Duan, Shengyu Zhang, Zhou Zhao, Fei Wu, Yueting Zhuang

Abstract

Automated tagging in Community-Based Question Answering (CQA) platforms is often hindered by textual sparsity, semantic ambiguity, and complex dependencies between labels. This paper introduces the Personalized Sequence Memory Network (PSMN), a novel architecture that integrates question content with user-specific posting history and models tags as sequential dependencies. Evaluated on a large-scale Stack Exchange dataset, PSMN demonstrates superior performance over state-of-the-art baselines, particularly in capturing long-tail tag distributions.

Introduction

In CQA ecosystems like Stack Exchange, tags serve as the primary mechanism for routing questions to subject matter experts. However, manual tagging is error-prone, and automated systems face significant challenges. Questions are frequently brief (textual sparsity), and terms can be ambiguous without context (e.g., "Apple" as a fruit vs. a corporation). Furthermore, tags are rarely independent; they often follow specific technological or topical hierarchies.

To address these challenges, we propose treating question classification as a personalized sequence learning task. By leveraging the asker's historical data and the sequential nature of tag application, the PSMN model provides a more nuanced approach to automated categorization.

Methodology: The Personalized Sequence Memory Network (PSMN)

The PSMN architecture is designed around three distinct memory components that capture different facets of the classification context:

  1. Question Memory: Encodes the semantic representation of the current question text.
  2. User Context Memory: Constructs a profile of the user based on TF-IDF weighted terms from their previous contributions, effectively disambiguating the user's intent.
  3. Tag Memory: Tracks previously generated tags within the current sequence to inform the prediction of subsequent labels.
Architecture of the Personalized Sequence Memory Network (PSMN), illustrating the integration of Question, User Context, and Tag memories.

The workflow involves extracting features from these memories via an attention mechanism, followed by processing through a Convolutional Neural Network (CNN) to generate robust representations. Finally, a recursive generation process uses a softmax layer to predict tags sequentially, where each predicted tag is fed back into the Tag Memory for the next time step.

Experimental Setup

The model was rigorously tested using a dataset derived from 26 Stack Exchange communities, comprising 116,072 questions and 9,358 unique tags. The user context was built from the history of 7,359 active users. The dataset was split chronologically, with 70% used for training and 30% for evaluation.

Results and Discussion

PSMN was compared against several competitive baselines, including Topic-Specific Translation Models (TSTM, TTM) and Supervised Random Walks (SRW).

Comparison of Precision@K metrics between PSMN and baseline methods.

As shown in the results, PSMN consistently outperforms all baselines. Notably, the performance advantage of PSMN increases as the number of predicted tags ($K$) grows. This suggests that the memory-augmented sequential approach is particularly adept at identifying "tail" tags—secondary but relevant labels that traditional "bag-of-labels" models often overlook.

Conclusion

The Personalized Sequence Memory Network represents a significant step forward in CQA tagging by moving beyond flat text classification. By incorporating user identity as a disambiguator and treating tags as a structured sequence, the model achieves higher precision and better handles the inherent complexities of community-driven data. Future research will focus on addressing the "cold-start" problem for new users and optimizing the computational efficiency of the recursive generation process.

Summary updated

BibTeX
@inproceedings{duan2018multi,
  author = {Xinyu Duan and Shengyu Zhang and Zhou Zhao and Fei Wu and Yueting Zhuang},
  title = {{Multi-Label Community-Based Question Classification via Personalized Sequence Memory Network Learning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.12171},
}
Figure