STEM: Unleashing the Power of Embeddings for Multi-Task Recommendation

Liangcai Su, Junwei Pan, Ximei Wang, Xi Xiao, Shijie Quan, Xihua Chen, Jie Jiang

Introduction

Multi-Task Learning (MTL) is a cornerstone of modern recommendation systems, where models simultaneously predict multiple user actions like "Click," "Like," and "Finish." While the goal is "positive transfer"—where learning one task benefits another—practitioners frequently encounter "negative transfer" or the "seesaw phenomenon," where improvements in one task degrade performance in another.

Existing solutions, such as MMoE and PLE, focus on making neural network layers (experts and gates) task-specific. However, they almost universally rely on a shared-embedding paradigm, where every task uses the same vector representation for a given user or item. This paper identifies that negative transfer is most severe on "comparable" samples—instances where user preferences for different tasks diverge (e.g., finishing a video but not liking it). A single shared embedding is insufficient to capture these conflicting intents.

Methodology

The authors propose the STEM (Shared and Task-specific EMbeddings) paradigm and the STEM-Net architecture to move beyond the shared-embedding bottleneck.

STEM-Net introduces two primary innovations:

  1. Hybrid Embeddings: The model maintains a shared embedding table alongside individual embedding tables for each specific task. This allows the model to represent both commonalities and task-specific nuances.
  2. All Forward Task-specific Backward (AFTB) Gating: To maximize knowledge transfer, every task tower receives input from all experts (shared and task-specific). However, to prevent one task from "corrupting" the specialized embeddings of another, a stop-gradient operation is employed. When Task A’s tower accesses Task B’s expert, it can utilize the information, but gradients are not backpropagated to update Task B’s specific embedding table.
Architectural comparison of multi-task learning models, highlighting STEM-Net's unique use of task-specific embeddings.

Key Results

STEM-Net was evaluated on three large-scale public datasets (TikTok, QK-Video, and KuaiRand1K) and through online A/B testing on Tencent’s advertising platform.

  • State-of-the-Art Performance: STEM-Net consistently outperformed baselines like PLE and MMoE. On the TikTok dataset, it achieved an average AUC improvement of approximately $4 \times 10^{-3}$ over PLE.
  • Overcoming the "Comparable" Subset Trap: Analysis revealed that previous models often performed worse than single-task models on samples with high preference divergence. STEM-Net effectively addresses this, achieving "positive transfer" on the "Like" task for the first time on the TikTok and QK-Video datasets.
  • Real-World Impact: Online A/B tests showed a significant lift in Gross Merchandise Value (GMV), ranging from 3.9% to 7.1% across different advertising scenarios.
Performance comparison on the TikTok dataset, showing STEM-Net's superiority on "comparable" samples where user preferences diverge.

Conclusion

STEM-Net demonstrates that the input representation (embeddings), rather than just the network depth, is a critical bottleneck in multi-task recommendation. By decoupling embeddings and employing a clever stop-gradient mechanism, STEM-Net successfully mitigates negative transfer. While the use of multiple embedding tables increases parameter overhead, the substantial performance gains in both offline metrics and online revenue justify the trade-off. Future work may explore AutoML to dynamically optimize the selection of task-specific features.

Summary updated

BibTeX
@inproceedings{su2024stem,
  author = {Liangcai Su and Junwei Pan and Ximei Wang and Xi Xiao and Shijie Quan and Xihua Chen and Jie Jiang},
  title = {{STEM: Unleashing the Power of Embeddings for Multi-Task Recommendation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i8.28749},
}
Figure