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.
The framework consists of two primary components:
- 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.
- 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.
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