NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

GradCraft: Elevating Multi-task Recommendations through Holistic Gradient Crafting

Yimeng Bai, Yang Zhang, Fuli Feng, Jing Lu, Xiaoxue Zang, Chenyi Lei, Yang Song · DOI

Introduction

Modern recommender systems, such as those used in short-video platforms, must simultaneously optimize for multiple user behaviors, including watch time, likes, and shares. This Multi-Task Learning (MTL) approach often faces significant challenges due to gradient interference. Specifically, tasks with larger gradient magnitudes can dominate the optimization process, while conflicting gradient directions between tasks can lead to "negative transfer," where improving one objective inadvertently harms another. Existing methods often fail to scale or ignore the interplay between magnitude imbalance and directional conflict.

The GradCraft Framework

To address these issues, the authors introduce GradCraft, a sequential optimization paradigm that treats gradient crafting as a holistic two-step process.

Overview of the GradCraft framework showing magnitude adjustment followed by global direction deconfliction.

The framework consists of two primary components:

  1. Flexible Magnitude Adjustment: GradCraft dynamically aligns task gradients based on the maximum norm among all tasks. By using a hyperparameter $\tau$, it controls the degree of alignment, preventing any single task from overwhelming the others while preserving task-specific information.
  2. Global Direction Deconfliction: Following magnitude adjustment, GradCraft resolves directional conflicts globally. Unlike pairwise methods that may leave residual conflicts, GradCraft projects each task's gradient onto the linear space of all conflicting tasks simultaneously. Furthermore, it incorporates a factor $\epsilon$ to encourage a baseline level of positive similarity between tasks, fostering beneficial "positive transfer."

A critical insight of this work is the necessity of performing magnitude adjustment before direction deconfliction. Without balanced magnitudes, the geometric projections used to resolve conflicts become mathematically distorted.

Experimental Results

GradCraft was evaluated on the public WeChat dataset and proprietary Kuaishou datasets (both offline and online). In offline benchmarks, GradCraft consistently achieved superior AUC and Group AUC (GAUC) compared to state-of-the-art baselines like PCGrad and CAGrad.

Performance comparison (RI-A and RI-G) between GradCraft and the best baseline as the number of tasks (T) increases.

As shown in the figure above, the performance advantage of GradCraft over the best baseline becomes more pronounced as the number of tasks ($T$) increases, demonstrating its superior scalability for complex industrial MTL models.

In a large-scale online A/B test involving 15 million users on the Kuaishou platform, GradCraft delivered substantial business gains:

  • +0.505% in Watch Time (WT)
  • +0.950% in Effective View records (VV)
  • +1.746% in Video Shares

Ablation studies further confirmed that both the magnitude adjustment and the global projection steps are essential for achieving these results.

Conclusion

GradCraft offers a robust and scalable solution for the "tug-of-war" inherent in multi-task recommendation systems. By holistically managing both gradient magnitudes and global directional conflicts, it ensures balanced optimization across diverse objectives. Future research will explore enhancing consistency among non-conflicting gradients and extending the framework to other domains such as Computer Vision and Natural Language Processing.

Summary updated

BibTeX
@inproceedings{bai2024gradcraft,
  author = {Yimeng Bai and Yang Zhang and Fuli Feng and Jing Lu and Xiaoxue Zang and Chenyi Lei and Yang Song},
  title = {{GradCraft: Elevating Multi-task Recommendations through Holistic Gradient Crafting}},
  booktitle = {ACM SIGKDD Conference on Knowledge Discovery and Data Mining},
  year = {2024},
  doi = {10.1145/3637528.3671585},
}
Figure