Separating Label Noise from Task Difficulty in Multi-Task Learning with Gradient Shrinkage

When one neural network is trained on several tasks at once (multi-task learning), some tasks usually have much worse labels than others. Depth maps from a cheap sensor, subjective facial-expression annotations, and noisy measured properties all sit next to cleanly labeled tasks. Current loss-balancing methods decide how much each task matters from how large its loss is. That signal cannot tell a task that is noisy from a task that is merely hard. Both have high loss, so both get down-weighted, or, in the original uncertainty-weighting scheme, the easy task that quickly memorizes its labels gets up-weighted. This note proposes a different signal that is available at no extra cost: how much the individual examples of a task agree about which way to move the shared representation. When labels are noisy, examples disagree and their gradients cancel. When a task is hard but clean, its examples push coherently even while its loss is large.

The core proposal is to shrink each task's contribution to the shared update by an estimate of the fraction of its gradient that is signal rather than example-to-example noise, in the spirit of James–Stein shrinkage. Per-example gradients with respect to the shared features already come out of an ordinary backward pass. The resulting weight is therefore cheap to compute, and it does not change if a task's loss is rescaled. That property carries the "pivotal" idea of classical calibrated multi-task regression into deep networks. The same estimate also gives a principled way to stop gradient-alignment methods from bending the shared representation toward corrupted tasks.

Core Claim

The classical noise-calibration literature supplies the target but not a deep-learning mechanism. Multivariate Regression with Calibration and its journal version Calibrated multivariate regression with application to neural semantic basis discovery replace the squared error with a sum of per-task residual norms. The effect is to weight each task by roughly the inverse of its residual norm, and the regularization level no longer depends on the unknown noise scales. That works because, in a well-specified linear model, the residual is an estimate of the noise. In an overparameterized network the training residual goes toward zero for any task the network can memorize. Loss-based calibration then inherits exactly the failure that Investigating Uncertainty Weighting for Multi-Task Learning: Insights and Analytical Alternative documents: learned uncertainty weighting collapses onto the easy "Bald" attribute of CelebA while test loss rises.

That paper's fix, UW-SO, sets weights analytically from current batch losses through a softmax with a temperature. The temperature must be retuned per dataset (T=2 on NYUv2, T=100 on CelebA), and the weights still reflect loss size rather than noise. Our claim is that the right quantity is the per-task signal fraction of the gradient at the shared representation. Weighting by this quantity lets a multi-task network ignore a noisy task without also starving a hard clean one. We also claim this is testable: the weight should track injected label noise, stay flat under changes in task difficulty, and stay flat under changes in loss units.

Concretely, let $z_i$ be the shared representation of example $i$ in a batch of $n$ examples. Let $g_{k,i} = \partial \ell_k(i)/\partial z_i$ be task $k$'s per-example gradient there, $\bar g_k$ its batch mean, and $\hat\Sigma_k$ the sample covariance of the $g_{k,i}$. The expected squared norm of the batch mean equals the squared norm of the true mean gradient plus $\mathrm{tr}(\Sigma_k)/n$, which follows from the variance of a sample mean. So the estimated signal fraction is

$$w_k = \max\left(0,\; 1 - \frac{\mathrm{tr}(\hat\Sigma_k)}{n\,\|\bar g_k\|^2}\right),$$

and the shared representation receives the update direction $\sum_k w_k\, \bar g_k/\|\bar g_k\|$. Both the numerator and the denominator of $w_k$ are smoothed with an exponential moving average over steps.

The normalization $\bar g_k/\|\bar g_k\|$ handles differences in units, including angular losses for surface normals that Kendall-style likelihood weighting cannot express. The factor $w_k$ handles noise. Multiplying task $k$'s loss by any constant leaves $w_k$ unchanged, which is the deep analogue of the pivotal property.

Research Program

The first step is to build the estimator into standard hard-parameter-sharing architectures, meaning one shared encoder with one output head per task. Per-example gradients with respect to $z_i$ are free because each example has its own $z_i$. For dense tasks, per-pixel sensor noise partly averages out within an image. There, the unit of agreement will be spatial patches rather than whole images, and choosing that unit is an explicit design question we will study.

The second step is to analyze the linear multi-response case. In that setting the gradient covariance is proportional to the noise covariance, so $w_k$ can be compared directly with calibrated multivariate regression. It can also be compared with the full-covariance calibration of Multi-task regression using minimal penalties, which kernel ridge regression uses to reach oracle inequalities. We expect near-oracle behavior in that setting as a sanity check.

The third step addresses the concern raised in the research file about gradient alignment. RotoGrad (RotoGrad: Gradient Homogenization in Multitask Learning) learns per-task rotations of the shared features that align task gradients. It assumes every task's gradient is trustworthy, so a noisy task still pulls the rotations toward its gradients. We will feed RotoGrad and PCGrad the shrunk gradients $w_k \bar g_k$ instead of the raw ones. We will then measure how many apparent gradient conflicts disappear once noise is discounted, which tests directly whether "conflict" was semantic or noise.

We also compare against BayesAgg-MTL (Bayesian Uncertainty for Gradient Aggregation in Multi-Task Learning). That method also aggregates at the representation interface and uses precision weighting, but its uncertainty comes from a Bayesian posterior over the last layer under an assumed-correct likelihood. Ours comes from the empirical disagreement of examples, which label corruption affects directly. The two estimators can disagree, and when they do it is informative.

Baselines

The naive reference point is equal-weight multi-task training, which sums all task losses. RotoGrad: Gradient Homogenization in Multitask Learning reports that this reaches a surface-normal median angle error of 26.16 on NYUv2. Every method must at least avoid falling below this reference on clean tasks.

Learned uncertainty weighting from Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semantics is the canonical noise-calibration baseline. It reports Cityscapes semantic segmentation rising from 59.4% to 62.7% mIoU over single-task training. We rerun it with the same backbone and schedule.

UW-SO is the strongest loss-based competitor because it already fixes the inertia and easy-task failures. We give it the same tuning budget as our method, with its temperature searched on validation data. Our method has no temperature; only the smoothing rate is tuned, over the same number of trials. Neither the file nor Lacuna provides UW-SO per-task numbers (no reported result found on Lacuna for UW-SO per-task scores on NYUv2, Cityscapes, or CelebA), so we reproduce it ourselves.

BayesAgg-MTL is the strongest precision-weighting method. It is reported as best on QM9, CIFAR-MTL, and ChestX-ray14, but no reported result found on Lacuna for its per-property QM9 errors, so it too is rerun.

RotoGrad is the strongest direction-alignment method, with a 20.80 median normal error on NYUv2. It is run with and without our shrunk inputs. On BP4D, uniform 4-bit quantization-aware training from Fighting over-fitting with quantization for learning deep neural networks on noisy labels is the noise-robustness reference. It reports 62.5 average F1, against 60.3 for its baseline and 61.4 for dropout.

Two ablations isolate the key ingredient. The first uses per-task unit-normalized gradients with $w_k=1$, which removes the noise factor. The second uses an oracle that sets weights from the known injected noise rates. Beating a baseline means improving clean-test metrics on the clean tasks under injected noise, averaged over three or more seeds with non-overlapping confidence intervals, without losing more than one seed-standard-deviation on the uncorrupted benchmarks.

Why not just…?

Why not just use UW-SO with a well-tuned temperature? UW-SO's weights depend only on each task's current loss. A clean hard task and a noisy task with equal loss therefore receive equal weight at any temperature. Our dissociation experiment builds exactly this situation, and it is where UW-SO should fail and our weight should not. If UW-SO matches us there too, our central claim is wrong.

Why not just weight each task by the inverse of its held-out validation loss, the direct deep analogue of calibrated regression's residual weighting? This is the most serious threat, because held-out residuals cannot be memorized. Early in training, however, validation loss is dominated by learnable error rather than noise, so the approach downweights hard tasks just when they need weight. It also changes with loss units. We run it as a baseline under the same budget. If it performs as well as our method, we will report that the simpler approach suffices.

Why not just drop the noisy task, or train it with per-task quantization or a robust loss? Dropping a task requires knowing which task is noisy and discards whatever signal it has. Our real-noise benchmark, BP4D, has graded rather than binary noise. Per-task bit-widths are the open question left by Fighting over-fitting with quantization for learning deep neural networks on noisy labels, and they still need a noise estimate to allocate them. Our $w_k$ can supply that estimate, and we will test that combination against uniform 4-bit training.

Why not just use BayesAgg-MTL, which already precision-weights? Its precision comes from a model posterior, not from observed label disagreement. The file notes it is not designed for corrupted labels. The injected-noise experiments on QM9, its home benchmark, will show whether its weights respond to corruption at all.

Proposed Experiments

The primary testbed is controlled label noise on standard benchmarks. On QM9 (11 regression tasks), we add Gaussian noise of different, known scales to a subset of properties, giving ground-truth noise levels. On CelebA (40 tasks), we flip labels on a chosen subset of attributes at rates from 0 to 40%. On NYUv2, we corrupt either the depth targets or the segmentation masks. All methods are evaluated on clean test labels.

The main metrics are per-task test performance, the average relative gain over single-task models, and a "clean-task retention" score: the performance of the clean tasks when trained alongside the corrupted ones, divided by their performance when trained without them.

The first decisive check is the rank correlation between $w_k$ and the injected noise level on QM9. We will also run a difficulty control in which a clean task is made harder, for example by reducing its label resolution rather than corrupting it. Our weight should fall with noise and stay near one under the difficulty control, whereas inverse-loss weights should fall under both.

The second check rescales one task's loss by 100. Our method's training trajectory should not change, while Kendall-style and loss-softmax weighting should.

The third check looks at conflicts. For RotoGrad and PCGrad, we count negative-cosine task pairs before and after shrinkage, and test whether shrunk inputs recover clean-task performance under noise while keeping the 20.80 normal error on clean NYUv2.

Finally, BP4D provides real annotation noise, with individual action units treated as tasks. Tallec et al.'s 62.5 F1 is the bar there, alongside a check that Cityscapes stays at or above the 62.7% mIoU reference. A known risk is that rare-positive attributes in CelebA produce dispersed per-example gradients that look like noise. We will report $w_k$ against attribute frequency to expose this failure mode if it occurs.