Contrastive Pre-training for Personalized Expert Finding

Qiyao Peng, Hongtao Liu, Zhepeng Lv, Qing Yang, Wenjun Wang

Introduction

Community Question Answering (CQA) platforms, such as StackExchange, often face a significant "participation imbalance" where the volume of incoming questions far exceeds the capacity of active experts. Expert Finding systems are crucial for routing these queries to appropriate users to ensure timely and high-quality answers. However, standard Pre-trained Language Models (PLMs) like BERT often struggle in this domain due to the technical jargon inherent in CQA data and a lack of personalization that accounts for individual expert preferences.

Methodology

The researchers propose CPEF (Contrastive Pre-training for Expert Finding), a framework designed to bridge the domain gap and incorporate user-specific nuances through a two-stage process.

Domain-Specific Contrastive Pre-training

To adapt PLMs to the CQA environment, CPEF introduces a novel Title-Body Contrastive Task. In CQA, a question title typically serves as a concise summary, while the body provides a detailed expansion. These two components share a semantic core. CPEF leverages this natural relationship by treating the title and body of the same question as positive pairs in a contrastive learning objective. This approach avoids artificial data augmentation techniques, instead pulling representations of the same question together while pushing them away from other questions in the batch.

The Title-Body Contrastive Task and Masked Language Modeling (MLM) used during the pre-training phase.

Personalized Fine-tuning

For the downstream task of matching questions to experts, CPEF employs a Personalized Tuning Network. Unlike static models that average an expert's history, this network assigns a unique embedding ID to each expert. An attention mechanism then uses this ID to weight the expert's historical questions, allowing the model to prioritize past interactions that are most relevant to the expert's current "persona" and specific interests within their field.

Experimental Setup

The model was pre-trained on a large unlabeled dataset of 525,519 questions from StackExchange. Evaluation was conducted across six diverse domains: Physics, Tex, Unix, English, Electronics, and Es (Spanish). The "accepted answer" for each question was used as the ground-truth for identifying the correct expert.

Key Results and Discussion

CPEF consistently outperformed state-of-the-art baselines, including ExpertBert and PMEF, across all tested datasets. For instance, on the Physics dataset, CPEF achieved an MRR of 0.5051, a statistically significant improvement over ExpertBert's 0.4908.

Robustness and Data Efficiency

A key finding was CPEF's performance in data-sparse scenarios. As the volume of training data decreased, the performance gap between CPEF and its competitors widened significantly. This indicates that the domain-specific pre-training makes the model highly efficient for niche communities with limited historical data.

Performance comparison (P@3) between CPEF and PMEF across different training data percentages in the Physics and Tex domains.

Ablation Study Insights

Ablation studies revealed that the Contrastive Task (CT) contributed more significantly to performance gains than the Personalized Tuning (Per) component. This underscores the importance of capturing the semantic relationship between different parts of a question for effective expert finding.

Conclusion

CPEF demonstrates that tailoring PLMs through domain-specific contrastive pre-training and personalized attention mechanisms significantly enhances expert finding in CQA platforms. Future work will focus on reducing the computational overhead through model distillation and exploring the framework's applicability to other social platforms like Quora or Zhihu.

Summary updated

BibTeX
@inproceedings{peng2023contrastive,
  author = {Qiyao Peng and Hongtao Liu and Zhepeng Lv and Qing Yang and Wenjun Wang},
  title = {{Contrastive Pre-training for Personalized Expert Finding}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.1058},
}
Figure