Overview
MTRec is a novel news recommendation framework designed to bridge the gap between deep language models like BERT and heterogeneous news metadata. By treating metadata—such as categories and entities—as auxiliary prediction tasks rather than simple input features, and employing "gradient surgery" to resolve task conflicts, MTRec significantly improves recommendation accuracy on the industry-standard MIND dataset.
The Compatibility Problem
Personalized news recommendation typically relies on article titles. While metadata like categories (e.g., "Lifestyle") and entities (e.g., "Kate Middleton") provide vital context, integrating them into modern deep learning pipelines is challenging. Standard methods, such as shallow feature encodings and attentive pooling, often fail to align with BERT's deep feature space. This "compatibility gap" means shallow features do not "speak the same language" as deep BERT features, leading to suboptimal performance.
The MTRec Framework
MTRec shifts the paradigm from "feature fusion" to Multi-Task Learning (MTL). Instead of feeding metadata into the model as inputs, MTRec forces the BERT news encoder to predict them as auxiliary tasks.
The framework consists of several key components:
- News Encoder: Uses a pre-trained BERT model to encode news titles.
- Auxiliary Task 1 (Category Classification): A linear layer on top of BERT’s
[CLS]token predicts the news category. - Auxiliary Task 2 (Named Entity Recognition): A token-level classification task that identifies entities within the title.
- Main Task: Predicting user clicks based on their browsing history.
Resolving Task Conflicts with Gradient Surgery
Multi-task learning often suffers from "gradient interference," where auxiliary tasks conflict with the primary recommendation objective. MTRec utilizes a Modified Gradient Surgery (GS) to project auxiliary gradients onto the normal plane of the main task's gradient. This ensures that auxiliary tasks act as helpful regularizers without distracting from the primary goal.
Experimental Results
The model was evaluated on the MIND-small dataset, which contains logs from 1 million users. MTRec demonstrated clear improvements over several competitive baselines.
Key results include:
- Superiority over BERT Baseline: MTRec achieved an AUC of 69.43, significantly outperforming a standard BERT-based model (68.26).
- Best in Class: The combined model, MTRec+AMF, reached the highest performance with an AUC of 69.51 and an MRR of 34.06.
- Ablation Success: Removing Gradient Surgery caused a noticeable drop in performance, proving that managing task conflicts is essential.
- Category vs. Entity: Category classification was found to be more impactful than NER, likely because categories provide document-level semantic signals highly relevant to user interests.
Conclusion
MTRec demonstrates that learning metadata through shared weights via MTL is more effective than direct combination. By internalizing "Lifestyle" or entity tags semantically, BERT produces more robust news representations. Future work may explore integrating full article bodies or more advanced user modeling techniques to further enhance performance.
Summary updated