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

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

Abstract

Multi-task learning (MTL) has gained significant popularity in recommender systems as it enables simultaneous optimization of multiple objectives. A key challenge in MTL is negative transfer, but existing studies explored negative transfer on all samples, overlooking the inherent complexities within them. We split the samples according to the relative amount of positive feedback among tasks. Surprisingly, negative transfer still occurs in existing MTL methods on samples that receive comparable feedback across tasks. Existing work commonly employs a shared-embedding paradigm, limiting the ability of modeling diverse user preferences on different tasks. In this paper, we introduce a novel Shared and Task-specific EMbeddings (STEM) paradigm that aims to incorporate both shared and task-specific embeddings to effectively capture task-specific user preferences. Under this paradigm, we propose a simple model STEM-Net, which is equipped with an All Forward Task-specific Backward gating network to facilitate the learning of task-specific embeddings and direct knowledge transfer across tasks. Remarkably, STEM-Net demonstrates exceptional performance on comparable samples, achieving positive transfer. Comprehensive evaluation on three public MTL recommendation datasets demonstrates that STEM-Net outperforms state-of-the-art models by a substantial margin.

Introduction

In modern recommendation systems, Multi-Task Learning (MTL) is essential for predicting diverse user actions—such as "Like," "Share," or "Finish"—simultaneously. While the goal is to leverage cross-task information for "positive transfer," models often suffer from "negative transfer," where performance on one task degrades due to interference from another.

Current state-of-the-art architectures like MMoE and PLE focus on task-specific experts and gating mechanisms at the higher layers of the network. However, they almost universally rely on a single, shared embedding layer at the bottom. This shared-embedding paradigm creates a bottleneck, forcing the model to represent complex user preferences with a single vector, even when those preferences conflict across different tasks.

The Challenge of Negative Transfer

A critical insight of this work is that negative transfer is not uniform across all data. By partitioning datasets based on the relative amount of positive feedback between tasks, we identified that negative transfer is most severe in the "Comparable" subset—samples where tasks have similar levels of positive feedback.

Performance comparison on different data subsets. The "Comparable" subset highlights where traditional MTL models (MMoE, PLE) suffer from negative transfer relative to Single-Task (ST) baselines, while STEM-Net achieves positive transfer.

As shown in Figure 1, existing MTL methods often underperform a single-task (ST) baseline on these comparable samples. This suggests that when tasks are equally influential but potentially contradictory, the shared embedding layer cannot sufficiently capture the necessary task-specific nuances.

The STEM Paradigm and STEM-Net

To overcome the embedding bottleneck, we propose the Shared and Task-specific EMbeddings (STEM) paradigm. Instead of a single shared table, STEM maintains a shared embedding table for general characteristics alongside dedicated task-specific embedding tables for each objective.

Building on this, we introduce STEM-Net, which utilizes a novel gating mechanism: All Forward Task-specific Backward (AFTB).

The STEM-Net architecture featuring task-specific and shared experts and embeddings, utilizing a specialized gating mechanism for effective knowledge transfer.

As illustrated in Figure 4, STEM-Net's architecture ensures:

  • All Forward: During inference, each task tower can access outputs from all experts (both shared and task-specific) to maximize knowledge transfer.
  • Task-specific Backward: During training, a stop-gradient operation is employed. This prevents the gradients from one task (e.g., "Like") from updating the task-specific embeddings of another (e.g., "Finish"), thereby eliminating interference at the foundational embedding level.

Experimental Results

STEM-Net was evaluated on three large-scale public datasets: TikTok, QK-Video, and KuaiRand1K. It consistently outperformed state-of-the-art models like PLE and MMoE. For instance, on the TikTok "Like" task, STEM-Net achieved an AUC of 0.9095, significantly higher than PLE's 0.9016.

Crucially, as seen in the motivation analysis, STEM-Net is the first MTL model to achieve positive transfer on the difficult "Comparable" data subset, finally surpassing the single-task baseline. Beyond public benchmarks, online A/B testing on Tencent’s display advertising platform showed a Gross Merchandise Value (GMV) lift of 3.9% to 7.1%, leading to full-scale production deployment.

Conclusion and Future Work

STEM-Net addresses the fundamental limitation of shared embeddings in multi-task recommendation. By introducing task-specific embeddings and a gradient-routing gating mechanism, it effectively mitigates negative transfer, particularly in scenarios with comparable task feedback.

While STEM-Net increases parameter counts due to multiple embedding tables, ablation studies indicate that task-specific User ID embeddings provide the most significant gains. Future research will explore automated feature selection to optimize the balance between performance and memory overhead, determining which specific features benefit most from task-specific representation.

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