MetaBalance:通过自适应辅助任务的梯度幅度改进多任务推荐
MetaBalance: Improving Multi-Task Recommendations via Adapting Gradient Magnitudes of Auxiliary Tasks
摘要:
在许多个性化推荐场景中,目标任务的泛化能力可以通过在多任务网络上与该目标任务一起使用附加辅助任务来学习来提高。然而,这种方法经常遭受严重的优化不平衡问题。一方面,一个或多个辅助任务可能具有比目标任务更大的影响力,甚至支配网络权重,导致目标任务的推荐准确性更差。另一方面,一个或多个辅助任务的影响可能太弱而不能帮助目标任务。更具有挑战性的是,这种不平衡在整个训练过程中动态变化,并且在同一网络的各个部分之间变化。我们提出了一种新的方法:MetaBalance通过直接操纵多任务网络中的共享参数的梯度来平衡辅助损耗。具体地说,在每次训练迭代中,并且对于网络的每个部分自适应地,辅助损失的梯度被小心地减小或放大,以具有与目标损失的梯度更接近的幅度,从而防止辅助任务太强而主导目标任务或太弱而不能帮助目标任务。此外,梯度幅度之间的接近度可以灵活调整,以使MetaBalance适应不同的场景。实验表明,我们提出的方法实现了8.34%的显着改善NDCG@10在两个真实世界的数据集上的最强基线。我们的方法的代码可以在这里找到:https://github.com/facebookresearch/MetaBalance
英文摘要:
In many personalized recommendation scenarios, the generalization ability of a target task can be improved via learning with additional auxiliary tasks alongside this target task on a multi-task network. However, this method often suffers from a serious optimization imbalance problem. On the one hand, one or more auxiliary tasks might have a larger influence than the target task and even dominate the network weights, resulting in worse recommendation accuracy for the target task. On the other hand, the influence of one or more auxiliary tasks might be too weak to assist the target task. More challenging is that this imbalance dynamically changes throughout the training process and varies across the parts of the same network. We propose a new method: MetaBalance to balance auxiliary losses via directly manipulating their gradients w.r.t the shared parameters in the multi-task network. Specifically, in each training iteration and adaptively for each part of the network, the gradient of an auxiliary loss is carefully reduced or enlarged to have a closer magnitude to the gradient of the target loss, preventing auxiliary tasks from being so strong that dominate the target task or too weak to help the target task. Moreover, the proximity between the gradient magnitudes can be flexibly adjusted to adapt MetaBalance to different scenarios. The experiments show that our proposed method achieves a significant improvement of 8.34% in terms of NDCG@10 upon the strongest baseline on two real-world datasets. The code of our approach can be found at here: https://github.com/facebookresearch/MetaBalance
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。