Gradient Coordination for Quantifying and Maximizing Knowledge Transference in Multi-Task Learning

Xuanhua Yang, Jianxin Zhao, Shaoguo Liu, Liang Wang, Bo Zheng · DOI

Multi-task learning (MTL) is a cornerstone of modern recommendation engines and advertising platforms. By sharing parameters across tasks—such as predicting Click-Through Rate (CTR) and Conversion Rate (CVR)—models can theoretically learn more robust representations. However, in practice, tasks often compete for shared capacity, leading to "negative transfer" where one task's performance is sacrificed for another.

Researchers from Alibaba Group have introduced CoGrad, a novel approach that moves beyond simple gradient alignment to explicitly quantify and maximize knowledge transference between tasks.

The Challenge: Negative Transfer and Specificity Drift

The core challenge in MTL is balancing "general knowledge" useful for all tasks with "specific knowledge" required for individual performance. Existing solutions typically attempt to align gradient directions (e.g., PCGrad) or balance magnitudes (e.g., GradNorm).

Negative transfer in standard MTL (a) and the observed drift toward task-specificity during training (b).

As illustrated in Figure 1, the authors observed that gradient cosine similarity actually decreases as training progresses. This suggests that models naturally drift toward task-specificity over time. Forcing alignment late in training can "crowd out" vital task-specific knowledge, leading to the performance gaps seen in standard MTL implementations.

CoGrad: Coordinated Gradient Modulation

CoGrad (Coordinated Gradient modification) addresses this by explicitly quantifying "knowledge transference" as the amount one task's gradient update reduces another task's loss. The method operates in three primary steps:

  1. Quantifying Transference: Using a first-order Taylor expansion, transference is shown to be approximately proportional to the inner product of task gradients.
  2. Coordinated Modulation: An auxiliary gradient is derived to maximize this transference, involving the Hessian matrix to represent how task gradients interact.
  3. Efficient Approximation: To handle industrial-scale models, CoGrad uses a clever Hessian-matrix approximation: $H_j g_i \approx \lambda (g_j \odot g_j \odot g_i)$. This provides second-order optimization benefits with negligible computational overhead.
Comparison of CoGrad's transference-driven coordination against previous gradient modulation methods.

As shown in Figure 3, while previous methods focus on simple directions or magnitudes, CoGrad coordinates updates to find a middle ground that improves shared features while preserving the "budget" for task-specific nuances.

Key Results and Impact

The researchers evaluated CoGrad on massive datasets, including Ali-CCP (84 million impressions) and a proprietary E-commerce dataset (1.6 billion impressions).

  • Offline Performance: On Ali-CCP, CoGrad achieved a significant boost in CVR AUC while maintaining CTR performance, outperforming baselines like PCGrad and CAGrad.
  • Capacity Robustness: When model capacity was doubled, standard MTL models often saw performance drops due to increased specificity. In contrast, CoGrad successfully utilized the extra capacity to improve both tasks.
  • Online A/B Tests: In a 15-day production trial at Alibaba, CoGrad increased CTR by 2.03% and CVR by 4.75%, while reducing the Cost Per Click (CPC) by 1.64%.

Conclusion

CoGrad represents a shift from simple gradient alignment to active coordination. By recognizing the natural drift toward task-specificity and employing efficient second-order approximations, it provides a robust framework for maximizing knowledge transference in large-scale multi-task systems.

Summary updated

BibTeX
@inproceedings{yang2023gradient,
  author = {Xuanhua Yang and Jianxin Zhao and Shaoguo Liu and Liang Wang and Bo Zheng},
  title = {{Gradient Coordination for Quantifying and Maximizing Knowledge Transference in Multi-Task Learning}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2023},
  doi = {10.1145/3539618.3591993},
}
Figure