Paper Reading AI Learner

Gradient Similarity Surgery in Multi-Task Deep Learning

2025-06-06 14:40:50
Thomas Borsani, Andrea Rosani, Giuseppe Nicosia, Giuseppe Di Fatta

Abstract

The multi-task learning ($MTL$) paradigm aims to simultaneously learn multiple tasks within a single model capturing higher-level, more general hidden patterns that are shared by the tasks. In deep learning, a significant challenge in the backpropagation training process is the design of advanced optimisers to improve the convergence speed and stability of the gradient descent learning rule. In particular, in multi-task deep learning ($MTDL$) the multitude of tasks may generate potentially conflicting gradients that would hinder the concurrent convergence of the diverse loss functions. This challenge arises when the gradients of the task objectives have either different magnitudes or opposite directions, causing one or a few to dominate or to interfere with each other, thus degrading the training process. Gradient surgery methods address the problem explicitly dealing with conflicting gradients by adjusting the overall gradient trajectory. This work introduces a novel gradient surgery method, the Similarity-Aware Momentum Gradient Surgery (SAM-GS), which provides an effective and scalable approach based on a gradient magnitude similarity measure to guide the optimisation process. The SAM-GS surgery adopts gradient equalisation and modulation of the first-order momentum. A series of experimental tests have shown the effectiveness of SAM-GS on synthetic problems and $MTL$ benchmarks. Gradient magnitude similarity plays a crucial role in regularising gradient aggregation in $MTDL$ for the optimisation of the learning process.

Abstract (translated)

多任务学习(MTL)范式旨在通过单个模型同时学习多个任务,捕捉这些任务共有的更高层次、更具普遍性的隐含模式。在深度学习领域,反向传播训练过程中的一大挑战是设计高级优化器以提升梯度下降学习规则的收敛速度和稳定性。特别是在多任务深度学习(MTDL)中,众多的任务可能会产生潜在冲突的梯度,阻碍各个多样化的损失函数的同时收敛。这一挑战源于任务目标的梯度在幅度或方向上的差异,导致某些梯度占据主导地位或是相互干扰,从而破坏训练过程。梯度手术方法通过调整整体梯度轨迹来明确解决冲突梯度的问题。 本文介绍了一种新的梯度手术方法——相似性感知动量梯度手术(SAM-GS),它基于梯度幅度的相似性测量提供了一个有效且可扩展的方式来引导优化过程。SAM-GS手术采用梯度均衡化和一阶动量调节的方式进行操作。一系列实验测试表明,SAM-GS在合成问题以及多任务学习基准上表现出了有效性。梯度幅度相似性在MTDL中对于正则化梯度聚合以优化学习过程起着关键作用。

URL

https://arxiv.org/abs/2506.06130

PDF

https://arxiv.org/pdf/2506.06130.pdf


Tags
3D Action Action_Localization Action_Recognition Activity Adversarial Agent Attention Autonomous Bert Boundary_Detection Caption Chat Classification CNN Compressive_Sensing Contour Contrastive_Learning Deep_Learning Denoising Detection Dialog Diffusion Drone Dynamic_Memory_Network Edge_Detection Embedding Embodied Emotion Enhancement Face Face_Detection Face_Recognition Facial_Landmark Few-Shot Gait_Recognition GAN Gaze_Estimation Gesture Gradient_Descent Handwriting Human_Parsing Image_Caption Image_Classification Image_Compression Image_Enhancement Image_Generation Image_Matting Image_Retrieval Inference Inpainting Intelligent_Chip Knowledge Knowledge_Graph Language_Model LLM Matching Medical Memory_Networks Multi_Modal Multi_Task NAS NMT Object_Detection Object_Tracking OCR Ontology Optical_Character Optical_Flow Optimization Person_Re-identification Point_Cloud Portrait_Generation Pose Pose_Estimation Prediction QA Quantitative Quantitative_Finance Quantization Re-identification Recognition Recommendation Reconstruction Regularization Reinforcement_Learning Relation Relation_Extraction Represenation Represenation_Learning Restoration Review RNN Robot Salient Scene_Classification Scene_Generation Scene_Parsing Scene_Text Segmentation Self-Supervised Semantic_Instance_Segmentation Semantic_Segmentation Semi_Global Semi_Supervised Sence_graph Sentiment Sentiment_Classification Sketch SLAM Sparse Speech Speech_Recognition Style_Transfer Summarization Super_Resolution Surveillance Survey Text_Classification Text_Generation Time_Series Tracking Transfer_Learning Transformer Unsupervised Video_Caption Video_Classification Video_Indexing Video_Prediction Video_Retrieval Visual_Relation VQA Weakly_Supervised Zero-Shot