Gradient Surgery for Multi-Task Learning
Paper · 2020 · Tianhe Yu, Saurabh Kumar, Abhishek Gupta et al.
Summary
Several tasks can teach a network to use the same features or skills. A system that learns to interpret indoor scenes, for instance, can use the same image to learn about objects, distances, and the orientation of surfaces. The hope behind multitask learning is that each objective will provide supervision the others can use. Yet the tasks also share the ability to change the network’s internal parameters, and their proposed changes can work against one another. Gradient Surgery for Multi-Task Learning examines when this interference becomes a serious obstacle and introduces PCGrad, a rule for changing how task gradients are combined.
A gradient describes how a task’s loss responds to a small change in the parameters. Taking a step against that gradient reduces the loss locally. The authors call two gradients conflicting when they have negative cosine similarity, meaning that a step downhill for either task would initially take the other uphill. They argue that the conflict becomes particularly troublesome when one gradient is much larger and the joint loss curves sharply upward along the proposed step. The larger gradient then mostly determines the move, and the changes in loss over a finite step can differ substantially from what the gradients at its starting point suggest. In a constructed landscape with two curved valleys, Adam stalls in such a region. With PCGrad, it continues to an optimum.
PCGrad computes each task’s gradient separately. When a pair conflicts, it removes from each task’s gradient the component that opposes the other, using the other task’s original gradient as a reference. With several tasks, it visits the other gradients in random order and checks for conflict as it goes. It then adds the adjusted gradients and passes their sum to the optimizer. The rule preserves a gradient at any comparison where there is no conflict. It can be applied to the parts of a network that tasks share, alongside architectural choices that control what they share. The paper gives conditions under which the projected step yields a joint loss at least as low as an ordinary gradient descent step. It also identifies a case in which projection can stop progress altogether.
In supervised learning, the authors report 71% classification accuracy for a single network with PCGrad on multitask CIFAR-100 and a 2.8% absolute gain in test accuracy when adding it to a routing network. On NYUv2, combining PCGrad with an attention-based architecture gives the best results in 8 out of the 9 reported score categories. The clearest gains in experience efficiency come from simulated robotic manipulation. When paired with soft actor-critic, PCGrad solves every one of Meta-World’s 10 MT10 tasks and roughly 70% of its 50 MT50 tasks. Independent agents reach similar performance with more samples. A separate experiment finds better goal-reaching performance on a robotic pushing task with continuously sampled goals.
The paper also asks what the gains depend on. In the reinforcement learning ablations, changing only the lengths of the gradients or only their directions performs worse than using the full projection. On a pair of manipulation tasks, the authors find that strong conflicts relative to the gradients’ sizes are common before the harder task starts to yield rewards. The pattern changes once training with PCGrad begins to solve that task. The evidence supports a specific account of failure in shared training: progress can improve when the optimizer receives a joint direction that preserves useful contributions while removing some of the opposition between tasks.
Deep dive: Gradient Surgery for Multi-Task Learning
Gradient Surgery for Multi-Task Learning introduces PCGrad, a way to reduce interference when several tasks train the same network. · about 43 minutes to read
The problem and its context
Why share a network?
Learning every task independently gives each task complete control over its own parameters. That is a straightforward way to train when each dataset or stream of experience can sustain a separate learner. It also means that anything useful learned on one task must be learned again wherever it is needed. The paper takes data efficiency as a reason to try joint training. If several tasks depend on related inputs or behaviors, a shared network gives supervision from one task a way to improve the features or actions available to another. The authors situate that idea in a literature that already spans perception, language, and robotics. An Overview of Multi-Task Learning in Deep Neural Networks
Sharing creates a common decision at every update. The system has to turn several losses, each expressing a different task’s errors, into a change to one set of parameters. A simple design can tell the network which task it is doing through a task identifier. Another can use a shared network with separate outputs for the tasks. These choices make it possible for a single system to produce task-appropriate answers. The optimization question concerns the parameters that still receive signals from several losses. Even if the outputs are separate, a change to the shared computation can affect all of them.
The issue is easy to see in scene understanding. Identifying what occupies a pixel and estimating how far away it is are different objectives, yet both use information from the same image. A shared representation can carry information useful to both. During training, however, the errors made on the two outputs can ask for different changes to that representation. A useful common feature may eventually exist even when the immediate changes suggested by the two losses disagree. This is why the paper frames interference as an obstacle encountered on the way to learning, instead of a permanent judgment about which tasks belong together.
Reinforcement learning makes the potential cost especially clear. Experience comes from actions taken by a policy, which is the rule that chooses how to act. Slow progress on a task can leave that policy collecting experience in which it seldom achieves the desired outcome. A joint policy can therefore be difficult to train even when a policy devoted to each task can learn it. The paper describes earlier multitask reinforcement learning methods that trained separate policies as a subroutine and then consolidated them. This can deliver a single system with several skills. The training procedure has already paid for acquiring those skills independently.
Where earlier methods intervened
Architectural work addressed the question of where information and parameters should be shared. The paper describes approaches with different modules or paths through a network, as well as approaches that use attention to choose which shared features matter for a task. In a routed design, the choice of computation can depend on the task. In an attention-based design, tasks can draw on a common source of features while selecting different parts of it. Both approaches can change the amount and kind of interaction between tasks before their gradients reach the optimizer. PathNet and Progressive Neural Networks
A second family separated the hard joint problem into smaller learning problems. As the paper describes it, local policies could be trained on individual tasks and then used as teachers for a common policy. Distillation is the step that transfers what those teachers learned into the joint system. Its role in this account is to recover a single policy after training has been divided. PCGrad concerns the earlier decision about how the learner can make progress while it still has several tasks to acquire. Distilling the Knowledge in a Neural Network
A third line of work focused on the uneven pace of learning and on plateaus, periods when training produces little improvement. Some methods adjusted the relative scale of the task contributions. If a task supplies a much larger gradient, rescaling can make the other tasks count for more. The paper connects this family to its own analysis of gradient dominance and cites work on scale and learning speed in reinforcement learning. The projection rule also addresses the direction of a task’s contribution. A shorter gradient can still have a component that pushes against another task. Multi-Task Deep Reinforcement Learning with PopArt
Earlier work had also compared gradient directions using cosine similarity. The paper describes one use of this signal for deciding whether an auxiliary objective helps and another for encouraging orthogonality, the geometry in which gradients meet at a right angle. Its own rule uses the sign of the cosine as a trigger. A negative value calls for adjustment. A positive value indicates that the two objectives, at the current parameters, can benefit from part of the same movement. The method allows that part to contribute.
The closest geometric precedents in the paper come from continual learning, where new tasks arrive after earlier tasks have been learned. Several approaches project a current gradient to protect earlier tasks. The paper discusses methods that refer to previous-task gradients individually, use an average over earlier tasks, or work with an orthonormal set constructed from them. PCGrad studies simultaneous learning, where all the tasks participating in the current batch can have their gradients changed. Its elementary operation is a projection against a single reference vector, repeated over the other tasks. The paper also distinguishes this operation from projection onto a feasible region in constrained optimization. Here the geometry is about the update directions contributed by different objectives.
Why a negative dot product is only part of the problem
The fact that two tasks disagree on a direction is compatible with ordinary gradient descent making progress on their sum. If the objective adds the two losses, its gradient adds their gradients. Moving a sufficiently small distance against this sum is the first-order prescription for reducing the joint loss. The separate losses are different quantities. The same move can improve one of them while worsening the other, even though the total initially goes down.
The size of each gradient affects how this tradeoff plays out. If one vector is very long and the other is short, the sum tends to point close to the longer one. The direction preferred by the smaller task may barely influence the update. To reason about the consequences, the paper adds curvature, which describes how the slope changes as the parameters move. A finite step through a sharply curved part of the landscape can bring less benefit to the dominant task and more harm to the other than the slopes at the starting point suggest.
The authors call the combination of opposition, unequal magnitudes, and high positive curvature the tragic triad. Each quantity answers a different question. The angle says whether the local directions work against one another. The gradient lengths say how much influence each task has on the sum. The curvature says how quickly the first-order account of the joint loss becomes inadequate along a move. Their hypothesis is that these quantities together explain some cases in which the usual update fails to make useful progress.
This framing also distinguishes quantities the method uses from quantities the analysis uses. A rule could attempt to estimate curvature and decide how far to step on that basis. PCGrad makes its decision from task gradients. The paper uses curvature to explain why changing those gradients can matter and to formulate a comparison between projected and ordinary steps. The training rule itself can run without second derivatives.
The method, step by step
From a task loss to a joint update
The starting point is a collection of tasks and a single set of trainable parameters. The task determines what counts as an error. In supervised classification, the error comes from the probability assigned to a correct label. In reinforcement learning, the actor and critic have separate objectives tied to behavior and its expected value. The projection rule needs each task’s gradient with respect to the shared parameters. How the experiment obtains that gradient depends on the learning setting.
min over θ 𝔼[ℒᵢ(θ), with 𝒯ᵢ drawn from p(𝒯)]
Here θ is the vector of trainable parameters. The symbol 𝒯ᵢ denotes task i, p(𝒯) is the distribution over tasks, and ℒᵢ(θ) is the loss of the sampled task at θ. The expectation 𝔼 averages those losses according to the task distribution. Minimizing it expresses the aim of doing well across the tasks encountered during training.
ℒ(θ) = ∑ᵢ ℒᵢ(θ)
The paper writes ℒ(θ) for the joint loss on a fixed collection, and the sum runs over its task indices i. A task expectation describes how the problem draws tasks. The sum gives the joint objective used in the analysis of a particular collection.
gᵢ = ∇ℒᵢ(θ)
The vector gᵢ is the gradient of the loss for task i, and ∇ indicates differentiation with respect to θ. Each coordinate gives a local rate of change in the loss as the corresponding parameter moves. The gradient points toward increasing loss. Ordinary gradient descent subtracts a scaled gradient from the parameters.
g = ∑ᵢ gᵢ
Here g is the ordinary joint gradient, the sum of the gradient vectors in the collection. Adding them gives the derivative of the sum of the losses. This is the direction that a basic joint-training update would send to the optimizer.
The paper writes a task-conditioned predictor as fθ(y | x, zᵢ). In that notation fθ is the prediction function with parameters θ, x is the input, y is the output, and zᵢ identifies task i. One option is a one-hot identifier, a vector in which only the entry associated with the task is active. The identifier allows the same prediction function to carry out different tasks. In the goal-conditioned experiment, the identifier instead contains the coordinates that describe a particular goal.
Measuring angle, strength, and curvature
For non-zero gradients, cosine similarity compares their directions independently of their lengths. The dot product in the numerator measures signed alignment, while the two norms in the denominator account for the scale of the vectors.
cos φᵢⱼ = (gᵢ · gⱼ) / (‖gᵢ‖₂ ‖gⱼ‖₂)
The angle between the gradients of tasks i and j is φᵢⱼ. The vectors are gᵢ and gⱼ, the dot denotes their inner product, and ‖·‖₂ is Euclidean length. A negative value denotes conflict. A value of 0 means that the two gradients are perpendicular. Positive values indicate some common orientation. For the conflict test itself, a negative dot product gives the same decision as a negative cosine whenever the cosine is defined.
The size diagnostic asks how close the gradient lengths are. It is symmetric in the two tasks, so the same value describes a pair whichever task is listed first.
Φ(gᵢ, gⱼ) = 2‖gᵢ‖₂‖gⱼ‖₂ / (‖gᵢ‖₂² + ‖gⱼ‖₂²)
The function Φ is the gradient magnitude similarity. The arguments gᵢ and gⱼ are the two task gradients, and ‖·‖₂² denotes squared Euclidean length. With equal non-zero lengths, Φ is 1. It approaches zero as one length becomes small relative to the other. The number describes imbalance without identifying the dominant task, which can be read from the two norms themselves.
The curvature diagnostic uses second derivatives of the joint loss. For a given direction, these derivatives describe how the slope in that direction changes. The authors take an average along the segment from the current parameters to a candidate next point. Throughout the integral, the direction used to probe the curvature is the joint gradient at the start.
H(ℒ; θ, θ′) = ∫₀¹ ∇ℒ(θ)ᵀ ∇²ℒ(θ + a(θ′ − θ)) ∇ℒ(θ) da
The scalar H is the paper’s multitask curvature quantity. The function ℒ is the joint loss. The points θ and θ′ are the start and end of the segment. The integration variable a goes from 0 to 1 to move along that segment, and da indicates integration with respect to a. The symbol ∇²ℒ denotes the Hessian, the matrix of second derivatives evaluated at the indicated point. The superscript ᵀ transposes the starting gradient so that the multiplication yields the curvature evaluated in its direction. The paper calls curvature high when H exceeds a large positive constant. Because the formula uses the gradient itself, its numerical value also reflects the gradient’s length. The local comparison accounts for this by stating its lower bound relative to the squared norm of the joint gradient.
What gets projected
Imagine comparing the current gradient for a task with the original gradient of another task. The current vector can be decomposed into a part along the reference vector and a part perpendicular to it. If the dot product is negative, the part along that reference points in the opposing direction. PCGrad subtracts that component. Immediately after the projection, the remaining vector has zero dot product with that reference. In parameter space, it lies in the hyperplane perpendicular to the reference gradient.
How PCGrad builds the gradient for an optimizer
The steps in order.
gᵢᴾᶜ ← gᵢᴾᶜ − [(gᵢᴾᶜ · gⱼ) / ‖gⱼ‖₂²] gⱼ
The arrow assigns a new value to gᵢᴾᶜ, the working copy for task i. The vector gⱼ is the original gradient for another task j. The numerator is the dot product of the current copy with that reference, and the denominator is the squared length of the reference. The rule applies when the numerator is negative. With a non-negative dot product, the copy keeps its current value. In particular, a zero reference has no negative dot product and triggers no division.
Each copy starts as the gradient originally computed for its task. With two tasks, the method checks one reference per copy and, if the pair conflicts, removes an opposing component from both copies. The reference for each operation remains the original gradient of the other task. With more tasks, a later comparison can see a different working vector because of an earlier projection. An initial pairwise comparison can describe the original gradients, but the sequential rule tests the current copy. The paper’s compact sum of pairwise corrections differs from its stepwise account in the denominators and in how it represents those successive tests. The projection above follows the stepwise rule and the two-task formulas in the proofs.
The order matters because projections against different directions can change the outcome of later comparisons. A later change can even introduce a component along a reference that the copy was perpendicular to earlier in the pass. The algorithm randomizes the order in which the references are visited. Over such orderings, no particular task has a permanently privileged position. Each projected vector reflects its own sequence of comparisons.
gᴾᶜ = ∑ᵢ gᵢᴾᶜ
Here gᴾᶜ is the combined gradient, and the sum runs over the task indices i represented in the current batch. It is passed to the chosen optimizer as its gradient input. With basic gradient descent, the optimizer subtracts a scaled copy of it directly. With momentum or Adam, the optimizer uses it in its existing update procedure. The paper’s architecture experiments apply this aggregation to the shared parameters, where guidance from different tasks can interact. Parameters that belong to one task remain under that task’s own update.
Projection changes the length and direction of an individual working vector whenever it removes a component. The effect on the sum depends on how much cancellation was present in the original gradients. Hence the method can change the joint step even when the strongest individual component is still recognizable in it. The task losses, forward computation, and predictions keep their ordinary definitions. The intervention is in the conversion of per-task derivatives into one gradient for the optimizer.
How the supervised batches supply the gradients
In the supervised procedure, each task has a dataset of labeled input–output pairs. The loss takes the average negative log probability of the correct output when the predictor is told which task it is performing. A prediction assigning a low probability to the correct output contributes a larger loss.
ℒᵢ(θ) = 𝔼₍ₓ,ᵧ₎∼𝒟ᵢ[−log fθ(y | x, zᵢ)]
The dataset for task i is 𝒟ᵢ. The pair consists of input x and label y, and the notation below the expectation indicates that pairs are drawn from 𝒟ᵢ. The function fθ gives the probability assigned to y at the current parameters θ, conditioned on x and task encoding zᵢ. The operator log takes the logarithm of that probability, with the negative sign turning it into a quantity to minimize.
At each step, the paper’s general procedure draws examples from the combined training data and groups them by task. A group contains only examples with the same task encoding. Only the tasks represented in the batch supply gradients for that update. The gradient estimate for a task is the average over its group.
∇θℒᵢ(θ) = 𝔼₍ₓ,ᵧ₎∼ℬᵢ[−∇θ log fθ(y | x, zᵢ)]
In this batch estimate, ℬᵢ is the group of sampled examples for task i. The operator ∇θ differentiates with respect to the parameter vector. The other symbols retain their supervised meanings. Once the per-task derivatives are available, all projections operate on the saved vectors. Revisiting a task as a projection reference requires vector arithmetic, so that part of the procedure can reuse the same derivatives without another pass backward through the network.
For an image that supplies several kinds of labels, separate objectives give separate gradients even when all of them originate from the same input. A scene can supervise its segmentation, depth, and surface orientation outputs together. The gradient for each output captures what its own errors ask of the shared computation. This is the interface that allows the paper to add PCGrad to architectures that already use separate task-specific components.
How the reinforcement learning batches supply the gradients
The reinforcement learning experiments use soft actor-critic, abbreviated SAC. The actor specifies a probability distribution over actions given the current state and task. The critic estimates the value of taking an action in that situation. Both receive the task encoding. Each has its own per-task gradients, and the paper runs the projection procedure separately on the actor’s gradients and on the critic’s gradients.
SAC learns off-policy, meaning that it can train on experience collected by an earlier version of its policy. To keep the tasks represented during learning, the authors use a replay buffer for each task. They alternate collecting paths and training from these stored experiences. The collection step runs the policy on the tasks and gives each task the same collection allocation. The training step draws equal amounts from their buffers to form a stratified batch. This separates unequal gradient lengths from the simple possibility that one of the tasks was represented by many more replay examples in an update.
In the critic’s objective, the contribution from a transition depends on its reward and on an estimate of what can be gained from the next state. The appendix writes the objective in residual form.
J_Q⁽ⁱ⁾(φ) = 𝔼₍sₜ,aₜ,zᵢ₎∼𝒟ᵢ[Qφ(sₜ, aₜ, zᵢ) − (r(sₜ, aₜ, zᵢ) + γVφ̄(sₜ₊₁, zᵢ))]
The function J_Q⁽ⁱ⁾ is the critic objective for task i, and φ is the critic’s parameter vector. The replay buffer 𝒟ᵢ supplies a state sₜ and action aₜ associated with task encoding zᵢ. The subscript t denotes the transition time. The quantity Qφ is the critic’s estimate for that state and action, r is the reward, and γ discounts future value. The function Vφ̄ evaluates the next state sₜ₊₁ using the delayed critic parameters φ̄. The appendix identifies this expression as a soft Bellman residual. Its printed formula gives the signed residual inside the expectation. The gradient surgery procedure takes the per-task critic gradient supplied by SAC.
Vφ̄(sₜ₊₁, zᵢ) = 𝔼ₐₜ₊₁∼πθ[Qφ̄(sₜ₊₁, aₜ₊₁, zᵢ) − α log πθ(aₜ₊₁ | sₜ₊₁, zᵢ)]
Here πθ is the actor’s action distribution with parameters θ, and aₜ₊₁ is a possible action drawn from it at the next state for the encoded task. The delayed critic Qφ̄ supplies the value estimate for that action. The expression involving log πθ accounts for the entropy of the actor’s distribution, which measures how spread out its choices are. The learnable temperature α sets the weight of this contribution.
J_π⁽ⁱ⁾(θ) = 𝔼ₛₜ∼𝒟ᵢ[𝔼ₐₜ∼πθ(· | sₜ, zᵢ)[α log πθ(aₜ | sₜ, zᵢ) − Qφ(sₜ, aₜ, zᵢ)]]
The function J_π⁽ⁱ⁾ is the actor objective for task i. The outer expectation takes states sₜ from replay buffer 𝒟ᵢ, and the inner one takes actions aₜ from the policy πθ conditioned on the state and task code zᵢ. The dot marks the action argument over which that distribution is sampled. The temperature α weights the log probability term, while Qφ evaluates the sampled action with the critic’s current parameters. The negative sign on Qφ favors actions with higher estimated value when this objective is minimized.
The paper learns a separate temperature for each task. Its motivation is that easy tasks may need little exploration once they are solved, while difficult tasks can still benefit from a broad range of actions. A temperature shared by every task can couple those exploration requirements. The authors write the temperature as αψ(zᵢ), where ψ stands for its trainable parameters and zᵢ supplies the task or goal. They use this temperature adjustment across the compared reinforcement learning methods, so the PCGrad comparison changes the handling of task gradients while keeping this exploration mechanism in place.
What the theory compares
The convex analysis starts with two differentiable task losses whose sum has a Lipschitz-continuous gradient. The Lipschitz constant L limits how quickly that gradient can change with the parameters. The step size in this analysis is t, distinct from the transition time used in the SAC formulas.
t ≤ 1/L
Here t is the positive gradient descent step size and L is the positive smoothness constant for the joint loss. Under this bound and the convexity assumptions, the paper’s theorem gives two possible outcomes. Training can reach the optimal loss, or it can go to a point where the two gradients have cosine −1, meaning they point in exactly opposite directions. In the latter geometry, each vector lies entirely along the line spanned by the other. The projection can remove both contributions, even if the initial sum was non-zero.
The proof bounds the change in the joint loss from above using smoothness. If the gradients have non-negative cosine similarity, the PCGrad step equals ordinary gradient descent. In the conflicting case, the proof gives the following bound.
ℒ(θ⁺) ≤ ℒ(θ) − (1/2)t(1 − cos² φ₁₂)‖g‖₂²
The symbols θ and θ⁺ denote the parameters before and after the PCGrad step. The joint loss is ℒ, t is the step size, and g is the original joint gradient. The cosine is taken at the starting point between the gradients of the two tasks. The loss decrease certified by the inequality shrinks as the cosine approaches −1. The paper’s non-convex extension relates this geometry to the ability to find an approximately stationary point, where the joint gradient is small. Its appendix also studies a many-task case with an extra alignment assumption and a heavy-ball momentum case with strong convexity and specific step rules.
The local comparison asks a different question. Starting at the same parameters, which of two candidate moves gives the smaller joint loss? The comparison retains smoothness and uses a lower curvature bound along the ordinary step. It allows non-convex losses.
θᴹᵀ = θ − tg
The point θᴹᵀ is the result of one ordinary multitask gradient descent step. Here θ is the starting point, t is the common step size, and g is the unmodified sum of the task gradients.
θᴾᶜ = θ − tgᴾᶜ
The point θᴾᶜ is the candidate after one PCGrad step. The starting point and step size are the same, and gᴾᶜ is the sum after projection. Both losses are evaluated with the same joint objective.
H(ℒ; θ, θᴹᵀ) ≥ ℓ‖g‖₂²
The left-hand side measures curvature along the interval ending at the ordinary update. The constant ℓ lower-bounds that quantity after accounting for the squared gradient norm ‖g‖₂². The theorem assumes ℓ is at most L, the smoothness constant for the joint gradient.
ξ(g₁, g₂) = (1 − cos² φ₁₂)‖g₁ − g₂‖₂² / ‖g₁ + g₂‖₂²
The quantity ξ combines the angle between the task gradients with the lengths of their difference and their sum. The subscripts identify the two tasks. The difference measures how far apart their vectors are, and the sum is the ordinary joint gradient. The expression requires a non-zero denominator. It sets the curvature threshold used in the theorem.
cos φ₁₂ ≤ −Φ(g₁, g₂)
This condition compares the tasks’ directional disagreement with their magnitude similarity. The angle is φ₁₂, and Φ is the norm-based measure defined earlier. If the lengths are almost equal, Φ is close to 1 and the cosine must be close to complete opposition. Greater imbalance can satisfy the condition with a less negative cosine.
ℓ ≥ ξ(g₁, g₂)L
This is the curvature condition. The lower curvature bound ℓ must reach the threshold set by ξ and the smoothness constant L. A positive curvature estimate by itself gives only part of the information required for this comparison.
t ≥ 2 / (ℓ − ξ(g₁, g₂)L)
This condition specifies a sufficiently large finite step t when the denominator is positive. The denominator is the gap between the curvature lower bound and the threshold. The condition describes a regime in which curvature has time to matter over the course of the step. The earlier small-step bound serves the different purpose of establishing descent and convergence behavior.
ℒ(θᴾᶜ) ≤ ℒ(θᴹᵀ)
This is the loss ordering stated under the sufficient conditions. The objective is the sum ℒ, evaluated at the projected and ordinary candidates. The proof compares an upper estimate of the projected step’s loss with a lower estimate of the ordinary step’s loss. The conclusion concerns a single move and a common objective. The experiments measure what happens over a sequence of moves with different optimizers and noisy task gradients.
Experiments and results
The landscape with two valleys
The constructed example isolates the path an optimizer takes. The parameter vector has two coordinates, and each task loss forms a deep valley. A joint optimum occurs where the valleys meet. The two objectives use similar constructions with different weights and offsets so that their valley floors differ.
ℒ₁(θ) = 20 log(max(|.5θ₁ + tanh(θ₂)|, 0.000005))
Here ℒ₁ is the first task’s loss, and θ₁ and θ₂ are the coordinates of θ. The function tanh is the hyperbolic tangent. The absolute value measures the size of the expression inside it. The max operation selects the greater of that size and 0.000005, which keeps the logarithm’s argument away from zero. The factor 20 scales this task’s loss.
ℒ₂(θ) = 25 log(max(|.5θ₁ − tanh(θ₂) + 2|, 0.000005))
The function ℒ₂ is the second loss and uses the same coordinates and lower floor inside the logarithm. The opposite sign on tanh and the offset 2 change the position of its valley, while 25 scales the loss. The joint landscape is obtained by adding the two losses.
Both runs start from [0.5, −3] and take 500,000 gradient updates with Adam at a learning rate of 0.001. In the ordinary run, the trajectory enters a valley and stalls around a point where the gradients conflict, their lengths differ greatly, and curvature is high. The PCGrad trajectory continues to an optimum. The shared starting point and optimizer make this a comparison of paths through the same landscape. The example gives a concrete picture of the proposed mechanism. Its specially constructed valleys let the reader see geometric properties that would be much harder to identify from the training curves of a deep network alone.
Recognizing images and attributes
The supervised experiments use several distinct meanings of a task. On multitask CIFAR-100, the authors turn the 20 coarse labels into task identifiers. Each task has 2500 training instances and 500 test instances. In the shared architecture, three convolutional layers, each using 160 filters of size 3×3, feed into two fully connected layers with 320 hidden units. The architecture comparison includes networks with separate task-specific layers, networks that share features through Cross-Stitch, a routing network, and separate training for every task.
PCGrad on a single network achieves 71% classification accuracy in this CIFAR-100 setup. The paper reports that this exceeds independent training and Cross-Stitch. Routing alone achieves higher accuracy than the single network with PCGrad. When the projection is applied to the shared parameters of the routing network, the authors report a 2.8% absolute improvement in test accuracy over routing alone. This comparison gives a direct way to read the combination result. The routing mechanism already determines which trainable functions a task uses. The additional gain comes from changing the treatment of the gradients in the parts that remain shared.
CelebA poses an attribute-level problem. Its 200K face images carry 40 attributes, with each attribute treated as a separate binary classification task. An image gives several judgments to learn from, all attached to the same input. The metric is binary classification error averaged across the 40 tasks. The authors use the same architecture as the earlier multi-objective approach and rerun that method’s released implementation. PCGrad has lower average error in this comparison. This extends the supervised evidence to a setting where the task set consists of concurrent labels on images.
MultiMNIST uses paired digit images. The authors select a different image uniformly at random for each original image and put the digits in the top-left and bottom-right positions. Each task classifies the digit in one position. The construction produces 60K examples. With the same backbone as the rerun multi-objective baseline, PCGrad improves top-left digit accuracy by 0.13% and bottom-right digit accuracy by 0.55%. Both improvements are measured for the corresponding digit classification task. The unequal gains give a reason to inspect the two outputs separately even in a deliberately simple benchmark with closely related objectives.
These datasets make different demands on shared representations. The CIFAR-100 tasks are conditioned on coarse categories, the CelebA tasks describe attributes of the same face image, and the MultiMNIST outputs identify digits in different positions. The positive results concern those definitions of a task and those evaluation metrics. Together they test whether the same gradient rule can be applied when the source of common supervision varies.
Interpreting scenes
On indoor scenes, NYUv2 evaluates three tasks: semantic segmentation, depth estimation, and prediction of surface normals. Semantic segmentation assigns a category to each pixel, using 13 classes in this experiment. Depth estimation predicts distance, while surface normal prediction estimates the orientation of visible surfaces. The common backbone is SegNet. Among the baselines are a single-task SegNet, shared variants with task-specific prediction layers, Dense, and Cross-Stitch. The Multi-Task Attention Network, or MTAN, uses task-specific soft attention over shared computation.
The evaluation combines choices about architecture with choices about task weighting. The baseline comparison includes equal weights, uncertainty-based weights, and DWA. The authors use uncertainty weighting for MTAN with PCGrad because it was the most effective weighting scheme they found for MTAN. The combined system achieves the best score in 8 out of the 9 categories, with 3 score categories per task. The score categories give several views of the resulting predictions. A count of categories won summarizes how broadly the combination helps, while the size and practical meaning of a change still depend on the particular metric.
CityScapes provides another test of the MTAN combination. It contains street scenes with images resized to 128 × 256. The dataset has 19 original categories, and the experiment uses the coarser 7-category version for semantic segmentation alongside depth estimation. Here the authors add PCGrad to MTAN with equal task weights. The combination outperforms equal-weight MTAN in three out of four scores. Its segmentation results are highlighted for both mean intersection over union and pixel accuracy in the shorter comparison. Pixel accuracy counts correct pixel classifications, while mean intersection over union compares the overlap of predicted and reference regions by class. The full comparison explicitly identifies pixel accuracy as the top score across all methods. These descriptions tie the result to the evaluation set and weighting scheme used for each comparison.
NYUv2 and CityScapes also show why adding PCGrad is a meaningful test even when a strong network already has task-specific attention. Attention governs the use of intermediate features. Weighting governs the prominence of the task losses. PCGrad changes how the resulting gradients are combined on the shared parameters. The authors test the combination as a training configuration, and the particular weighting choice differs between the two datasets.
Learning manipulation skills
The main reinforcement learning benchmark is Meta-World, in which a simulated Sawyer arm performs different tabletop tasks. MT10 contains 10 tasks and is a subset of MT50, which contains 50. The smaller collection includes reaching, pushing, opening a drawer, and pressing a button from the top. The larger collection adds more behaviors to learn with the same policy. Evaluation uses the benchmark’s success criterion for each task and averages the reported success rates across tasks.
All methods use SAC as their base algorithm. The actors and critics are 6-layer fully connected networks. Each layer has 160 hidden units for MT10 and 300 for MT50. Each collection step contributes 600 samples for each task, and training draws 128 datapoints per task from its replay buffer at each update. The separate entropy temperatures are used for all methods. The principal references are a single task-conditioned SAC policy, a multi-head policy, and independent SAC agents. The shared policy tests basic joint training, the multi-head policy gives different tasks their own outputs, and the independent agents measure what the tasks can achieve with separate training.
Combining SAC and PCGrad yields solutions for all 10 MT10 tasks and roughly 70% of MT50’s 50 tasks. The ordinary shared SAC policy and the multi-head policy acquire fewer than half the skills on each benchmark according to the paper. Independent SAC eventually solves all tasks on MT10 and reaches 70% on MT50. The paper reports that reaching those outcomes takes independent training about 2 million more samples on MT10 and about 15 million more samples on MT50 than SAC with PCGrad. In its high-level summary of the experiments, the introduction reports an absolute gain of over 30% on multitask reinforcement learning problems. The benchmark comparisons give that claim its context. The projected system improves on the shared-policy baselines and reaches performance close to the separate agents with less experience.
SAC with PCGrad and independent SAC on MT50 average task success
The shared policy with PCGrad finishes near the independent agents’ success level.
The numbers
| System or setting | average task success % |
|---|---|
| Independent SAC | 70 |
| SAC with PCGrad (approximate) (this paper) | 70 |
The chart preserves the precision of the MT50 results described in the paper. The PCGrad result is approximate. The learning curves are the evidence for the sample advantage over independent training. The two displayed success levels describe where the methods end up, and the reported additional samples describe the difference in the experience needed to get there.
The training costs show why experience efficiency and elapsed time should be read separately. On a NVIDIA TITAN RTX, SAC with PCGrad is reported to converge in 1 day on MT10, with 5M simulation steps, and in 5 days on MT50, with 20M simulation steps. The corresponding ordinary SAC runs converge in 12 hours and 3 days. They reach lower success in the benchmark comparison. On MT10, the reported GPU memory is 1 GB with PCGrad and 0.5 GB with ordinary SAC. On MT50, the values are 6 GB and 3 GB, respectively.
GPU memory for SAC and SAC with PCGrad on MT50
The projected update uses more GPU memory in this experiment.
The numbers
| System or setting | GB |
|---|---|
| Ordinary SAC | 3 |
| SAC with PCGrad (this paper) | 6 |
The supervised experiments also report additional resource use on a TITAN RTX. Runs with PCGrad converge within 12 hours and ordinary runs within 8 hours. The reported comparison gives a maximum GPU memory use of 10 GB for PCGrad and 6GB for the ordinary method among the supervised experiments. These implementation figures can coexist with better validation results and better sample efficiency. They measure the cost of running the training procedure, including handling the task-specific gradients.
Pushing to a sampled goal
In the goal-conditioned experiment, the system has to push a puck to a requested point. A goal encodes the puck’s initial position together with its desired position. Both are sampled uniformly from their respective regions of the tabletop. The distribution is continuous, so a goal is specified by coordinates. It has no fixed task index from a list like MT10.
The actor and critic use 200 hidden units per layer in this experiment. Each training iteration samples a minibatch of 9 goals and draws 128 samples per goal. Each collection step gathers 600 samples per sampled goal. The entropy temperature is conditioned on the same goal information. Within a batch, the gradient for a sampled goal can be compared with the gradients for the other goals by the same projection rule used with discrete tasks.
SAC with PCGrad achieves better average distance to the requested goal and better data efficiency than ordinary SAC. Average distance reports how close the puck gets to the target, with smaller values indicating better performance. The authors present this result as evidence that the method can also help when several examples of a task are defined by freshly sampled goal coordinates. It tests that possibility in one pushing environment. The authors released the experiment code as PCGrad.
What the ablations show
Changing gradient direction and length
The Meta-World ablation asks which property of the modified gradient accounts for the gain. Projection moves a vector onto a perpendicular plane and changes its length. The authors separate those effects with two variants. One uses the direction produced by PCGrad but retains the original gradient length. The other uses the length produced by PCGrad while keeping the original direction. The full method uses the vector yielded by projection.
Both variants perform worse than full PCGrad. The variant that changes only the length is especially weak and performs comparably to GradNorm, a baseline that adjusts gradient magnitudes. Taken together, the comparisons suggest that giving a task a larger or smaller contribution is insufficient to capture the benefit of projection in this experiment. The direction determines which way a task can push shared parameters. The length determines how influential that push is after the geometry has changed.
The two controls also qualify a simple explanation based only on rotation. The direction-only version restores the original gradient length, which can amplify the influence of the remaining component compared with the full projection. Its weaker performance indicates that the scale of the adjusted vector matters along with its new orientation. The result supports the combination in the reported setting. The learning curves do not identify an independently optimal direction and length for each task or each stage of training.
Preserving favorable interactions
CosReg provides a comparison with a different use of gradient orientation. It adds a regularizer that pushes cosine similarity towards 0. In this geometry, being close to zero means the gradients are close to perpendicular. PCGrad treats the two sides of zero differently. It projects away a conflicting component and leaves each nonconflicting comparison alone.
On MT10, the authors report a considerably higher average success rate with PCGrad than with CosReg. The interpretation they offer is that aligned gradients can share useful information and that suppressing their alignment may give up a benefit of joint training. The comparison varies the whole intervention. CosReg changes training through a regularizer, and PCGrad changes the update directly. The result supports the overall rule that preserves favorable interactions. Its design leaves open how much of the gap to attribute to that asymmetry alone.
Testing the order of projections
The authors compare a fixed order with a shuffled order on MT50. The shuffled version performs better. This tests a choice internal to the algorithm. When there are many reference gradients, an update performed early changes the vector that later tasks encounter. Keeping one order throughout training allows those positions to have consistent effects. Shuffling distributes the positions over tasks in expectation.
This experiment establishes that order was consequential in the larger manipulation benchmark and that randomization improved the reported outcome. The earlier geometric explanation gives a reason for the result. A projection can change which later comparisons have negative dot products. A successful random-order procedure can still finish a pass with conflicts relative to some of the earlier references. Its purpose is to reduce interference in the combined update, and its performance is tested through learning.
Following the geometry as a difficult task starts to learn
The paper examines the first 100 training iterations on two Meta-World tasks, reaching and pressing a button from the top. It compares ordinary SAC with SAC using PCGrad. For each method the authors track the average return of each task, the angle between their gradients, and a curvature estimate. Average return is the reward-based measure used in this diagnostic. It differs from the average binary task success metric in the main Meta-World comparison.
H(ℒ; θᵗ, θᵗ⁺¹) = 2[ℒ(θᵗ⁺¹) − ℒ(θᵗ) − ∇θᵗℒ(θᵗ)ᵀ(θᵗ⁺¹ − θᵗ)]
This is the empirical quantity the paper labels as curvature in the diagnostic. The vectors θᵗ and θᵗ⁺¹ are the parameters before and after training iteration t. The function ℒ is the joint loss, and ∇θᵗ is differentiation with respect to the starting parameters. The transpose, marked by ᵀ, lets the starting gradient multiply the parameter displacement. The expression in brackets is the observed change in loss minus its first-order prediction along the actual step, and the formula scales that remainder by 2. The theoretical curvature definition uses the starting joint gradient as its probe direction. This diagnostic uses the parameter update that the optimizer actually took.
The estimated curvature is positive and increases over the observed period for both methods. For the angle analysis, the paper tracks the proportion of gradients with positive cosine similarity. Among the iterations where the cosine is negative, it also counts when the stronger joint condition on angle and magnitude holds. That conditioning matters. A high fraction among conflicting steps describes the character of the conflicts observed. The overall frequency of those steps is a separate quantity.
ξ(g₁, g₂) ≤ 1
Here ξ is the angle-and-norm measure from the theoretical analysis, and g₁ and g₂ are the gradients for reaching and pressing the button. This inequality is a consequence of the theorem’s curvature requirement together with its bound on ℓ. It is the check the authors use in the angle diagnostic. Establishing it leaves the full curvature inequality and finite-step threshold to be verified separately.
While the button task has yet to yield a reward signal, strong conflict relative to the magnitude similarity occurs frequently within the conflicting iterations. The curvature implication also holds frequently in this period. The authors report that the frequencies begin to decrease once the PCGrad run starts learning the button task. The geometry and the task’s return therefore change together during an important phase of training. The experiment shows when these conditions are present and how they evolve. Establishing which of those changes causes the others would require a further intervention.
The paper also describes measurements in a deep network on multitask CIFAR-100 and reports at least 38% conflicting gradients there, along with positive curvature through training. Its discussion gives no completed numerical rate for gradient dominance in that analysis. The reinforcement learning study provides the more detailed link between the conditions and the learning curves. Together with the constructed example, these observations place the same geometric questions in successively richer settings, while supplying different levels of evidence about each condition.
Reading training and validation separately
The authors compare the individual training and validation curves of the NYUv2 tasks for MTAN with and without PCGrad. The two configurations have similar training convergence rates across the tasks. With PCGrad, validation loss falls faster and finishes lower in 2 out of 3 tasks. Both configurations appear to overfit on the objective labeled task 0. Overfitting here is suggested by the difference between progress on the training objective and behavior on held-out data.
This comparison matters because a better benchmark result can come from different changes in learning. On NYUv2, the similar training curves and better validation curves suggest a regularization effect. The authors propose that gradient projection may encourage sharing that allows supervision from one task to help the representation generalize on another. The curves support the distinction between training progress and validation performance. They do not directly measure the amount of representation sharing.
The reinforcement learning curves show a different pattern because the projected updates improve performance during learning itself. In this case, the policy’s evolution can also change the experience available for its later updates. The paper uses the contrast between supervision and reinforcement learning to argue that PCGrad can help through effects that look different across settings. The NYUv2 curves also give an empirical check on the concern that cosine similarities near −1 might slow learning. Such a slowdown is not apparent in this comparison.
Testing combinations with existing architectures
The additional comparisons pair PCGrad with Dense and Cross-Stitch on NYUv2 and with multi-head SAC on MT10. The paper reports improvements for both supervised architecture combinations and an advantage for PCGrad with multi-head SAC over multi-head SAC alone. These results extend the compatibility test beyond the main pairing with MTAN and the routing network. Architectural choices can determine which parameters receive multiple tasks’ gradients, and the projection rule can then change the update on those shared parameters.
The comparison with multi-head SAC is especially helpful for locating the effect. A separate output for each task already gives specialization near the prediction or action output. The result shows that updates to the computation feeding those outputs can remain an important source of interference. Across the architecture comparisons, the empirical claim is that changing gradient aggregation gives gains in several existing designs with shared parts.
Limitations
Limits identified by the authors
The authors identify exact opposition as a possible failure mode of PCGrad. With two opposing non-zero gradients on the same line, projecting each into the perpendicular hyperplane can yield a zero update. The result can occur at a suboptimal joint loss. They argue that exact opposition is unlikely for noisy minibatch estimates and report that they do not see the potential slowdown from near opposition in the NYUv2 learning curves. The theoretical warning still matters because removing a conflict can also remove the available directions of progress in this geometry.
The paper also reports different training behavior across settings. On NYUv2, the supervised evidence points towards better validation behavior with similar training convergence rates. One objective still shows signs of overfitting. In reinforcement learning, the reported effect includes faster acquisition of skills in terms of experience. The authors describe representation sharing as a hypothesis for the supervised effect and treat these patterns as evidence that supervised and reinforcement learning can present different difficulties.
For applications, the authors emphasize challenges that extend beyond gradient interference. Real-world reinforcement learning depends on acquiring usable rewards and on safe behavior under unfamiliar conditions. Supervised systems can inherit biases in their training data. Training can demand substantial computing power and data. The experiments concern learning behavior on the chosen benchmarks. Their use of simulated manipulation and existing image datasets leaves those deployment questions open. Bias, fairness & safety
The authors name several directions where they suspect gradient conflict could matter, including continual learning, imitation learning with several goals, and multitask natural language processing. The paper presents these as possibilities for investigation. Its empirical case rests on visual supervision, the constructed landscape, and the reinforcement learning settings described above. Natural language processing
Limits of the update and the theoretical comparison
The comparison theorem is local and concerns two task losses. It assumes a smooth joint gradient, a lower bound on curvature along a specified ordinary step, and a step size that meets the stated threshold. Under those conditions it compares two values of the same joint loss after one update. The experiment with Adam and SAC follows changing losses and noisy gradient estimates over many updates. Extending the theorem to that training process would require accounting for the optimizer’s history and the changing data. The positive empirical curvature estimate and the check on ξ supply partial evidence about the hypothesized regime.
The proof’s use of curvature also deserves a close reading. The formal definition averages a directional Hessian uniformly along a segment. The training diagnostic instead measures the departure from a first-order prediction along the actual update. In a Taylor expansion over a whole segment, curvature near the start and curvature near the end need not contribute identically to that remainder. The appendix’s finite-step argument writes the remainder using the uniformly averaged Hessian term. Its lower-bound argument is cleanest when the curvature control also applies to the Taylor remainder along the ordinary step. A positive diagnostic value in the reinforcement learning experiment supplies no estimate of the smoothness constant or of the required gap in curvature.
The appendix also gives a comparison described as necessary and sufficient. Its derivation works through a lower bound on the difference between the two candidate losses. Making that lower bound non-negative can certify the desired ordering. A negative lower bound leaves open whether the true difference is positive or negative. The useful scope of the displayed argument is therefore a set of sufficient certificates based on the bounds. Where the two candidate updates coincide, as they do when the gradients have non-negative cosine similarity, equality of losses follows immediately from the update rule.
The convex result and the local comparison have different step-size requirements because they answer different questions. The convex result seeks descent with a small enough step. The local comparison studies when curvature can make a finite ordinary step less favorable than a projected step. These results give no automatic choice of a learning rate for a new task collection. In practice, the authors inherit the learning settings of the baselines. That design tests PCGrad as a change to an existing training procedure.
For more than two tasks, sequential projection supplies a tractable rule for combining gradients, with limited geometric guarantees. A step perpendicular to one reference can be altered by the next projection. The final aggregate can still work against an individual task’s direction. Random order limits dependence on a permanent ordering of tasks. Its success on MT50 is empirical evidence for that design choice. The reported many-task convergence result also includes an extra alignment assumption about the ordinary and projected gradients, so its scope depends on the behavior of those vectors during training.
Limits of the experimental conclusions
The studies give the strongest evidence when a trained configuration is compared with the same underlying method using a different update. Other comparisons bundle several choices. NYUv2 tests the PCGrad and MTAN combination with uncertainty weighting, while CityScapes uses equal weights. The reported improvements apply to those combinations. The evidence does not rank PCGrad across every possible architecture and weighting policy, and the conclusions about sharing come from performance comparisons alongside the authors’ hypotheses about what the shared layers learn.
Meta-World establishes performance on a collection of simulated manipulation tasks. Its average success scores summarize how effective the policies are across the task set. They can conceal variation in which particular behaviors the learned policies acquire or when they acquire them. Reaching a similar aggregate outcome with fewer samples than independent agents supports the case for joint training in the benchmark. The observed runtime and memory figures show a resource tradeoff in the reported implementation. The independent-agent sample comparison and the shared SAC hardware comparison have different baselines and answer different efficiency questions.
The goal-conditioned result broadens the type of task distribution to a continuum of positions in a pushing environment. This is evidence about varying goals within that environment. Transfer to new task families, novel kinds of manipulation, and physical robots remains a separate question. Similarly, the geometric diagnosis uses one pair of reinforcement learning tasks and the early stage of their training. Its association between changing reward and changing gradient geometry motivates the proposed explanation without measuring how prevalent the full phenomenon is across the benchmark.
The projection procedure is compatible with shared architectures when task losses and their gradients are available separately. That interface places a practical requirement on the training setup. A single derivative of the summed loss contains the sum but loses the information PCGrad needs about its constituents. Computing and retaining those separate vectors helps explain the additional training costs reported in the experiments, even though the projections use only first-order information.
What came after
Interference as a question about transfer
The citing work on multilingual training asks directly about negative interference and frames meta-learning as a treatment. Its connection to PCGrad lies in the question it poses about sharing: training across languages can affect the performance of an individual language, and those effects are worth examining at the level of the constituents. The PCGrad paper offers a local account of how interference can arise in a joint update. The multilingual work places that question in cross-lingual training and names meta-learning as its approach. The citation establishes the connection to interference research. It leaves the particular use of projection and the status of the curvature hypothesis open. On Negative Interference in Multilingual Models
ExT5 places multitask learning in a study of scaling for transfer. That scope makes a different outcome central. PCGrad evaluates how well tasks can be learned together and how much training experience joint learning needs. A study of multitask scaling for transfer asks how broad joint training serves later uses. The pairwise account of interference offers a reason why increasing the breadth of training can be an optimization question as well as a question about what supervision is available. The title and citation establish the focus on scaling and transfer without specifying a gradient-surgery procedure. ExT5
The citing work on influential data for targeted instruction tuning shifts the unit of choice to training data. In PCGrad, the tasks already represented in the batch supply gradients, and the rule changes how those gradients contribute to the next update. In LESS, the stated purpose is to select influential data for a target. These are related places to ask whether one source of supervision helps another. A selection question comes before the gradient aggregation decision, and the title identifies targeted tuning as the setting in which the authors make that choice. LESS
Returning to gradient imbalance and competing objectives
The work on imbalanced gradients in reinforcement learning post-training takes up one of PCGrad’s central variables in a later multitask setting. Treating gradient imbalance as a subject in its own right preserves the distinction between the size of a task’s contribution and the direction of that contribution. The PCGrad experiments raised this distinction by showing that changing magnitude alone performed poorly in their ablation. The later work’s stated scope is gradient imbalance during multitask reinforcement learning post-training. Its title and citation do not establish that the same ablation result or curvature conditions carry over. Imbalanced Gradients in RL Post-Training of Multi-Task LLMs
The unlearning work formulates its problem as an asymmetric two-task problem. Asymmetry makes the status of the objectives central. PCGrad’s two-task operation treats each conflicting gradient as a reference for adjusting the other, and its theoretical comparison evaluates the sum of the losses. An asymmetric formulation creates a reason to ask how success should be judged when the objectives have different roles. This citing work connects the geometry of two-task learning to the problem of unlearning through that formulation. The available description specifies neither a projection rule nor a guarantee for the tradeoff. Modeling LLM Unlearning as an Asymmetric Two-Task Learning Problem
Work on Pareto-lenient consensus names a multi-preference alignment problem and frames its approach in terms of consensus. The relationship to PCGrad is the shared decision over objectives that can favor different changes. PCGrad’s main local theorem evaluates the joint loss after a projected step. A Pareto framing brings the individual objectives into the description of which tradeoffs count as acceptable. The citation supplies a link between these lines of work, while the later title establishes its focus on efficient alignment across preferences. Beyond Compromise
Combining separately trained weights
Rewarded soups describes interpolation between weights that have already been fine-tuned on different rewards. It therefore considers how to combine the products of task-specific or reward-specific training. PCGrad combines derivative information from tasks during training. The two operations act on different objects, each at a different stage, and both are motivated by the need to reconcile several objectives in one system. Here the description names weight interpolation and Pareto-oriented alignment as the route taken by the later work. Rewarded soups
AdaMerging likewise presents an adaptive merging approach for multitask learning. Its focus on merging gives a related way to think about sharing after distinct contributions have been trained. PCGrad’s central experimental question is whether tasks can acquire skills more efficiently when their updates are reconciled as they learn. A merging approach concerns how already learned contributions can be combined. The citation connects the two problems without specifying that AdaMerging uses the same geometric test for conflict. AdaMerging
Institutions
Fields, topics and concepts
Shelves 2The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 works
Cite
Cite as Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman and Chelsea Finn. 2020. Gradient Surgery for Multi-Task Learning. arXiv:2001.06782.
@misc{yu2020gradient,
title = {{Gradient Surgery for Multi-Task Learning}},
author = {Tianhe Yu, Saurabh Kumar, Abhishek Gupta, Sergey Levine, Karol Hausman and Chelsea Finn},
year = {2020},
doi = {10.48550/arxiv.2001.06782},
eprint = {2001.06782},
archivePrefix = {arXiv},
url = {https://doi.org/10.48550/arxiv.2001.06782}
}References
- Vijay Badrinarayanan, Alex Kendall, and Roberto Cipolla. Segnet: A deep convolutional encoder-decoder architecture for image segmentation. IEEE transactions on pattern analysis and machine intelligence, 390 (12), 2017. OpenAlex ↗ · Scholar ↗
- Bart Bakker and Tom Heskes. Task clustering and gating for bayesian multitask learning. J. Mach. Learn. Res., 2003. OpenAlex ↗ · Scholar ↗
- Hakan Bilen and Andrea Vedaldi. Integrated perception with recurrent multi-task neural networks. In Advances in Neural Information Processing Systems, 2016. OpenAlex ↗ · Scholar ↗
- Stephen Boyd and Lieven Vandenberghe. Convex optimization. Cambridge university press, 2004. OpenAlex ↗ · Scholar ↗
- Paul H Calamai and Jorge J Moré. Projected gradient methods for linearly constrained problems. Mathematical programming, 390 (1), 1987. OpenAlex ↗ · Scholar ↗
- Rich Caruana. Multitask learning. Machine Learning, 1997. OpenAlex ↗ · Scholar ↗
- Arslan Chaudhry, Marc'Aurelio Ranzato, Marcus Rohrbach, and Mohamed Elhoseiny. Efficient lifelong learning with a-gem. arXiv:1812.00420, 2018. OpenAlex ↗ · Scholar ↗
- Zhao Chen, Vijay Badrinarayanan, Chen-Yu Lee, and Andrew Rabinovich. Gradnorm: Gradient normalization for adaptive loss balancing in deep multitask networks. arXiv:1711.02257, 2017. OpenAlex ↗ · Scholar ↗
- Zhao Chen, Vijay Badrinarayanan, Chen-Yu Lee, and Andrew Rabinovich. Gradnorm: Gradient normalization for adaptive loss balancing in deep multitask networks. In International Conference on Machine Learning, 2018. OpenAlex ↗ · Scholar ↗
- Felipe Codevilla, Matthias Miiller, Antonio López, Vladlen Koltun, and Alexey Dosovitskiy. End-to-end driving via conditional imitation learning. In International Conference on Robotics and Automation (ICRA), 2018. OpenAlex ↗ · Scholar ↗
- Ronan Collobert and Jason Weston. A unified architecture for natural language processing: Deep neural networks with multitask learning. In International Conference on Machine Learning, 2008. OpenAlex ↗ · Scholar ↗
- Marius Cordts, Mohamed Omran, Sebastian Ramos, Timo Rehfeld, Markus Enzweiler, Rodrigo Benenson, Uwe Franke, Stefan Roth, and Bernt Schiele. The cityscapes dataset for semantic urban scene understanding. In Proceedings of the IEEE conference on computer vision and pattern recognition, pages 3213–3223, 2016. OpenAlex ↗ · Scholar ↗
- Wojciech M. Czarnecki, Razvan Pascanu, Simon Osindero, Siddhant M. Jayakumar, Grzegorz Swirszcz, and Max Jaderberg. Distilling policy distillation. In International Conference on Artificial Intelligence and Statistics, AISTATS, 2019. OpenAlex ↗ · Scholar ↗
- Coline Devin, Abhishek Gupta, Trevor Darrell, Pieter Abbeel, and Sergey Levine. Learning modular neural network policies for multi-task and multi-robot transfer. CoRR, abs/1609.07088, 2016. OpenAlex ↗ · Scholar ↗
- Daxiang Dong, Hua Wu, Wei He, Dianhai Yu, and Haifeng Wang. Multi-task learning for multiple language translation. In Annual Meeting of the Association for Computational Linguistics and the 7th International Joint Conference on Natural Language Processing (Volume 1: Long Papers), 2015. our card
- Yunshu Du, Wojciech M. Czarnecki, Siddhant M. Jayakumar, Razvan Pascanu, and Balaji Lakshminarayanan. Adapting auxiliary losses using gradient similarity. CoRR, abs/1812.02224, 2018. OpenAlex ↗ · Scholar ↗
- Lasse Espeholt, Hubert Soyer, Rémi Munos, Karen Simonyan, Volodymyr Mnih, Tom Ward, Yotam Doron, Vlad Firoiu, Tim Harley, Iain Dunning, Shane Legg, and Koray Kavukcuoglu. IMPALA: scalable distributed deep-rl with importance weighted actor-learner architectures. In International Conference on Machine Learning, 2018. OpenAlex ↗ · Scholar ↗
- Mehrdad Farajtabar, Navid Azizan, Alex Mott, and Ang Li. Orthogonal gradient descent for continual learning. arXiv preprint arXiv:1910.07104, 2019. OpenAlex ↗ · Scholar ↗
- Chrisantha Fernando, Dylan Banarse, Charles Blundell, Yori Zwols, David Ha, Andrei A. Rusu, Alexander Pritzel, and Daan Wierstra. Pathnet: Evolution channels gradient descent in super neural networks. CoRR, abs/1701.08734, 2017. URL http://arxiv.org/abs/1701.08734. our card
- William Fulton. Eigenvalues, invariant factors, highest weights, and schubert calculus. Bulletin of the American Mathematical Society, 370 (3):0 209–249, 2000. OpenAlex ↗ · Scholar ↗
- Dibya Ghosh, Avi Singh, Aravind Rajeswaran, Vikash Kumar, and Sergey Levine. Divide-and-conquer reinforcement learning. CoRR, abs/1711.09874, 2017. OpenAlex ↗ · Scholar ↗
- Ian J Goodfellow, Oriol Vinyals, and Andrew M Saxe. Qualitatively characterizing neural network optimization problems. arXiv:1412.6544, 2014. OpenAlex ↗ · Scholar ↗
- Yunhui Guo, Mingrui Liu, Tianbao Yang, and Tajana Rosing. Improved schemes for episodic memory-based lifelong learning, 2020. OpenAlex ↗ · Scholar ↗
- Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. International Conference on Machine Learning, 2018. OpenAlex ↗ · Scholar ↗
- Karol Hausman, Jost Tobias Springenberg, Ziyu Wang, Nicolas Heess, and Martin Riedmiller. Learning an embedding space for transferable robot skills. 2018. OpenAlex ↗ · Scholar ↗
- Matteo Hessel, Hubert Soyer, Lasse Espeholt, Wojciech Czarnecki, Simon Schmitt, and Hado van Hasselt. Multi-task deep reinforcement learning with popart. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 33, 2019. our card
- Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015. our card
- Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In Computer Vision and Pattern Recognition, 2018a. OpenAlex ↗ · Scholar ↗
- Alex Kendall, Yarin Gal, and Roberto Cipolla. Multi-task learning using uncertainty to weigh losses for scene geometry and semantics. In CVPR, 2018b. OpenAlex ↗ · Scholar ↗
- Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv:1412.6980, 2014. our card
- Iasonas Kokkinos. Ubernet: Training a universal convolutional neural network for low-, mid-, and high-level vision using diverse datasets and limited memory. In Computer Vision and Pattern Recognition, 2017. OpenAlex ↗ · Scholar ↗
- Sergey Levine, Chelsea Finn, Trevor Darrell, and Pieter Abbeel. End-to-end training of deep visuomotor policies. The Journal of Machine Learning Research, 170 (1), 2016. OpenAlex ↗ · Scholar ↗
- Shikun Liu, Edward Johns, and Andrew J. Davison. End-to-end multi-task learning with attention. CoRR, abs/1803.10704, 2018. OpenAlex ↗ · Scholar ↗
- Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaoou Tang. Deep learning face attributes in the wild. In Proceedings of the IEEE international conference on computer vision, pages 3730–3738, 2015. OpenAlex ↗ · Scholar ↗
- Mingsheng Long and Jianmin Wang. Learning multiple tasks with deep relationship networks. arXiv:1506.02117, 2, 2015. OpenAlex ↗ · Scholar ↗
- David Lopez-Paz and Marc'Aurelio Ranzato. Gradient episodic memory for continual learning. In Advances in Neural Information Processing Systems, 2017. OpenAlex ↗ · Scholar ↗
- Kevis-Kokitsi Maninis, Ilija Radosavovic, and Iasonas Kokkinos. Attentive single-tasking of multiple tasks. CoRR, abs/1904.08918, 2019. OpenAlex ↗ · Scholar ↗
- Bryan McCann, Nitish Shirish Keskar, Caiming Xiong, and Richard Socher. The natural language decathlon: Multitask learning as question answering. arXiv:1806.08730, 2018. our card
- Ishan Misra, Abhinav Shrivastava, Abhinav Gupta, and Martial Hebert. Cross-stitch networks for multi-task learning. In Computer Vision and Pattern Recognition, 2016a. OpenAlex ↗ · Scholar ↗
- Ishan Misra, Abhinav Shrivastava, Abhinav Gupta, and Martial Hebert. Cross-stitch networks for multi-task learning. In Conference on Computer Vision and Pattern Recognition, CVPR, 2016b. OpenAlex ↗ · Scholar ↗
- Angelia Nedic and Asuman Ozdaglar. Distributed subgradient methods for multi-agent optimization. IEEE Transactions on Automatic Control, 540 (1), 2009. OpenAlex ↗ · Scholar ↗
- Emilio Parisotto, Jimmy Lei Ba, and Ruslan Salakhutdinov. Actor-mimic: Deep multitask and transfer reinforcement learning. arXiv:1511.06342, 2015. OpenAlex ↗ · Scholar ↗
- Boris T Polyak. Some methods of speeding up the convergence of iteration methods. USSR Computational Mathematics and Mathematical Physics, 40 (5):0 1–17, 1964. OpenAlex ↗ · Scholar ↗
- Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. Language models are unsupervised multitask learners. OpenAI Blog, 10 (8), 2019. OpenAlex ↗ · Scholar ↗
- Martin Riedmiller, Roland Hafner, Thomas Lampe, Michael Neunert, Jonas Degrave, Tom Van de Wiele, Volodymyr Mnih, Nicolas Heess, and Jost Tobias Springenberg. Learning by playing-solving sparse reward tasks from scratch. arXiv:1802.10567, 2018. OpenAlex ↗ · Scholar ↗
- Clemens Rosenbaum, Tim Klinger, and Matthew Riemer. Routing networks: Adaptive selection of non-linear functions for multi-task learning. International Conference on Learning Representations (ICLR), 2018. OpenAlex ↗ · Scholar ↗
- Clemens Rosenbaum, Ignacio Cases, Matthew Riemer, and Tim Klinger. Routing networks and the challenges of modular and compositional computation. arXiv:1904.12774, 2019. OpenAlex ↗ · Scholar ↗
- Kevin Roth, Aurelien Lucchi, Sebastian Nowozin, and Thomas Hofmann. Stabilizing training of generative adversarial networks through regularization. In Advances in Neural Information Processing Systems, 2017. OpenAlex ↗ · Scholar ↗
- Sebastian Ruder. An overview of multi-task learning in deep neural networks. arXiv:1706.05098, 2017. our card
- Andrei A. Rusu, Sergio Gomez Colmenarejo, Çaglar Gülçehre, Guillaume Desjardins, James Kirkpatrick, Razvan Pascanu, Volodymyr Mnih, Koray Kavukcuoglu, and Raia Hadsell. Policy distillation. In International Conference on Learning Representations, ICLR, 2016a. OpenAlex ↗ · Scholar ↗
- Andrei A Rusu, Neil C Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv:1606.04671, 2016b. OpenAlex ↗ · Scholar ↗
- Tom Schaul, Diana Borsa, Joseph Modayil, and Razvan Pascanu. Ray interference: a source of plateaus in deep reinforcement learning. arXiv:1904.11455, 2019. OpenAlex ↗ · Scholar ↗
- Ozan Sener and Vladlen Koltun. Multi-task learning as multi-objective optimization. In Advances in Neural Information Processing Systems, 2018. OpenAlex ↗ · Scholar ↗
- Yuekai Sun. Notes on first-order methods for minimizing smooth functions, 2015. https://web.stanford.edu/class/msande318/notes/notes-first-order-smooth.pdf. OpenAlex ↗ · Scholar ↗
- Mihai Suteu and Yike Guo. Regularizing deep multi-task networks using orthogonal gradients. arXiv preprint arXiv:1912.06844, 2019. OpenAlex ↗ · Scholar ↗
- Yee Teh, Victor Bapst, Wojciech M Czarnecki, John Quan, James Kirkpatrick, Raia Hadsell, Nicolas Heess, and Razvan Pascanu. Distral: Robust multitask reinforcement learning. In Advances in Neural Information Processing Systems, 2017. OpenAlex ↗ · Scholar ↗
- Simon Vandenhende, Bert De Brabandere, and Luc Van Gool. Branched multi-task networks: Deciding what layers to share. CoRR, abs/1904.02920, 2019. OpenAlex ↗ · Scholar ↗
- Aaron Wilson, Alan Fern, Soumya Ray, and Prasad Tadepalli. Multi-task reinforcement learning: a hierarchical bayesian approach. In International Conference on Machine Learning, 2007. OpenAlex ↗ · Scholar ↗
- Markus Wulfmeier, Abbas Abdolmaleki, Roland Hafner, Jost Tobias Springenberg, Michael Neunert, Tim Hertweck, Thomas Lampe, Noah Siegel, Nicolas Heess, and Martin Riedmiller. Regularized hierarchical policies for compositional transfer in robotics. arXiv:1906.11228, 2019. OpenAlex ↗ · Scholar ↗
- Yongxin Yang and Timothy M Hospedales. Trace norm regularised deep multi-task learning. arXiv:1606.04038, 2016. OpenAlex ↗ · Scholar ↗
- Tianhe Yu, Deirdre Quillen, Zhanpeng He, Ryan Julian, Karol Hausman, Chelsea Finn, and Sergey Levine. Meta-world: A benchmark and evaluation for multi-task and meta-reinforcement learning. arXiv:1910.10897, 2019. OpenAlex ↗ · Scholar ↗
- Amir R Zamir, Alexander Sax, William Shen, Leonidas J Guibas, Jitendra Malik, and Silvio Savarese. Taskonomy: Disentangling task transfer learning. In Computer Vision and Pattern Recognition, 2018. OpenAlex ↗ · Scholar ↗
- Zhanpeng Zhang, Ping Luo, Chen Change Loy, and Xiaoou Tang. Facial landmark detection by deep multi-task learning. In European conference on computer vision. Springer, 2014. OpenAlex ↗ · Scholar ↗
This page in Markdown https://md.research.elamur.ai/free/en/papers/yu-2020-gradient-surgery-multi-task-learning/