Training one network on several goals at once, such as depth and segmentation or helpfulness and harmlessness, raises two questions: how much weight each goal gets at each step, and what it costs to decide. The methods that decide best look at the direction of each goal's gradient and resolve conflicts between them. Examples are MGDA, which finds a minimum-norm combination of task gradients, and CAGrad, which improves the worst-off task near the average gradient. These methods pay for that information with one backward pass and one full gradient copy per objective. Cheaper dynamic weighting schemes such as GradNorm look only at loss values or gradient lengths, and so they cannot see when two goals are pulling against each other. This note starts from one observation. MGDA, CAGrad, PCGrad and GradNorm all end up applying a weighted sum of task gradients, and those weights depend only on the $M \times M$ matrix of pairwise inner products between the $M$ task gradients, called the Gram matrix. The expensive per-task gradient vectors are never needed in themselves; only the small matrix of how they relate is.
We propose to estimate that Gram matrix without bias and at close to the cost of one backward pass. Each step backpropagates the objectives separately only down to a randomly chosen depth, reweights the per-layer contributions so the expected estimate equals the full-network Gram matrix, and then continues a single combined backward pass below that depth. A running average of the $M \times M$ estimate, rather than of $M$ full gradients, smooths out mini-batch noise. The result is conflict-aware dynamic weighting whose memory does not scale with $M \times d$. It also yields a direct measurement of where in a network objectives actually conflict. That measurement answers an open question raised by last-layer shortcuts used for large language models.
Core Claim
Inner products of gradients add up over parameter blocks. If $G \in \mathbb{R}^{M\times M}$ has entries $G_{ij} = g_i^\top g_j$, where $g_m$ is objective $m$'s gradient over all parameters, then $G = \sum_{l=1}^{L} G^{(l)}$, where $G^{(l)}$ is the same matrix restricted to layer $l$. Here layers are indexed from the output, so $l=1$ is nearest the loss. Draw a random cutoff depth $K$ each step. Backpropagate the $M$ objectives separately only through layers $1,\dots,K$ and form
$$\hat G = \sum_{l=1}^{K} \frac{G^{(l)}}{P(K \ge l)} ,$$
which satisfies $\mathbb{E}[\hat G] = G$ because each layer is included with probability exactly $P(K\ge l)$.
Backpropagation is linear in the upstream signal. So once weights $w$ are computed from $G$, the per-objective signals at the cutoff boundary can be combined into one weighted signal. That signal then flows through the remaining layers in a single pass. The total cost is one backward pass plus $(M-1)$ partial passes through the top $\mathbb{E}[K]$ layers.
A tracked estimate $\bar G_t = (1-\beta)\bar G_{t-1} + \beta \hat G_t$ is then projected onto the positive semidefinite matrices, which costs almost nothing at size $M \times M$. It feeds the MGDA or CAGrad dual problem to produce the weights. This addresses the mini-batch bias identified by MoCo while storing $M^2$ numbers instead of $M \times d$.
The claim is that this estimator recovers full-parameter weighting quality at a cost close to single-objective training. By contrast, fixed-depth truncation is biased: that is the last-layer proxy in GAPO, and representation-level truncation in MGDA-UB is similar. Fixed-depth truncation loses accuracy exactly when conflict sits deeper in the network.
Relation to Prior Work
Four papers supply the pieces and define the gap. Multi-Task Learning as Multi-Objective Optimization computes MGDA weights on the gradient with respect to a shared representation. It is 25× faster than full MGDA on CelebA, but it requires an encoder-decoder split and gives a biased surrogate of the parameter-space problem. Gradient-Adaptive Policy Optimization rescales objectives by inverse gradient length and uses only last-layer gradients on Mistral-7B, with no check that the last layer reflects conflict in the backbone. We keep the idea of truncating depth but make the truncation random and reweighted, which turns a heuristic into an unbiased estimator. PSMGD cuts cost differently: it recomputes weights every $R$ steps, reaching 2.23s versus 12.94s per epoch against MGDA on QM-9. Its bet is that weights drift slowly. Ours spreads the cost across depth instead of across time, so weights are refreshed every step. Mitigating Gradient Bias in Multi-objective Learning (MoCo) shows that plugging noisy mini-batch gradients into a nonlinear weight solver biases the result. It fixes this by tracking each objective's full gradient, and its memory therefore grows as $M\times d$. We reuse its tracking-then-solve structure on the Gram matrix alone.
The solvers themselves come from MGDA and Conflict-Averse Gradient Descent, whose dual problem is written directly over task weights. Gradient Surgery (PCGrad) also yields a linear combination of task gradients whose coefficients depend only on pairwise inner products, so it fits the same interface. On the loss-only side, GradNorm uses only gradient norms, which are the diagonal of $G$ at one layer. Dynamic Multi-Reward Weighting likewise treats each style objective's gradient magnitude independently. These papers motivate the proposal: they show dynamic weighting helps, but they ignore the off-diagonal entries where conflict lives. XWC-MGDA and PAIR are preference-directed solvers that also need full per-objective gradients at $O(M^2 d)$ cost. Because they also consume only inner products, the estimator could serve them later, but we do not claim that here.
Research Program
The first component is measurement. On networks small enough to compute exact full-parameter gradients, we record every $G^{(l)}$ over the course of training and report where conflict lives. Conflict here means the depth profile of negative off-diagonal mass and how it changes between early and late training. We also report how closely the weights from the truncated estimate, the fixed last-layer proxy, and the representation-level proxy agree with the exact MGDA and CAGrad weights. This directly tests the open tension around GAPO's last-layer proxy. PCGrad argues that conflict concentrates in shared feature layers, while GAPO's design assumes the last layer carries it.
The second component is the method. We will implement the randomized-depth probe with weights recombined at the boundary, the tracked positive-semidefinite Gram matrix, and plug-in solvers for MGDA, CAGrad and PCGrad. The one design choice is the distribution of $K$. We will study a geometric distribution tuned to a target expected cost. We will also study an adaptive version that sets $P(K\ge l)$ in proportion to the running magnitude of each layer's conflict. That choice follows the standard minimum-variance rule for importance sampling: sample each layer in proportion to how much it contributes.
The third component is analysis. The estimator's variance is a sum over layers of $\|G^{(l)}\|^2 (1/P(K\ge l) - 1)$, which follows from treating each layer as an independent Bernoulli inclusion. That variance determines the tracking rate $\beta$ needed for the solver's output to stay stable. We will check empirically whether this predicts the oscillations that dynamic weighting schemes are known to suffer.
Baselines
The naive reference is equal static weighting with one backward pass. The file gives its standing: 9.62% average error on CelebA (MGDA-UB paper) and 0.36 success on Meta-World MT50 (CAGrad). Any conflict-aware method must beat it clearly to justify extra cost.
The strongest quality baseline is full-parameter CAGrad with MoCo tracking. It is the best entry in the file on both NYUv2, where MoCo reports $\Delta m = 0.16\%$ against 0.20% for CAGrad and 1.38% for MGDA, and Meta-World MT10, where CAGrad+MoCo reports 86% success against 83% for CAGrad alone (MoCo). This is the accuracy ceiling our estimator is trying to reach. It will be run with the same architecture, data, number of epochs and a solver tuning budget matched to ours. We succeed if we match its $\Delta m$ or success rate within seed noise while using a fraction of its backward FLOPs and a peak memory that does not grow with $M\times d$.
The strongest efficiency baseline is PSMGD, which reports a roughly 6× speedup over MGDA on QM-9 (PSMGD). We will tune its period $R$ so its backward FLOPs per step equal ours, then compare quality at equal compute. Beating it means better $\Delta m$ or success rate at matched FLOPs, especially early in training and in reinforcement learning, where weights should drift fastest.
The biased-truncation baselines are fixed last-layer weighting in the style of GAPO and representation-level MGDA-UB, with MGDA-UB's reported 8.25% on CelebA as its reference. For GAPO on PKU-SafeRLHF, no reported result was found on Lacuna for a numeric Pareto metric; the file says only that its front dominated MORLHF baselines. We will rerun it ourselves.
GradNorm stands in for loss-based dynamic weighting. It is roughly 5% overhead and reports about a 5% improvement in NYUv2 depth error over equal weighting.
Three ablations isolate the key ingredient. The first uses the same expected depth but a fixed cutoff, so it is biased and has no reweighting. The second keeps the unbiased estimate but removes tracking. The third tracks without the positive-semidefinite projection.
Why not just…?
Why not just use PSMGD's periodic updates? This is the real threat. If task weights truly drift slowly, amortizing over time is simpler than amortizing over depth. Our estimator should win only where weights move quickly: early in training, in non-stationary reinforcement learning such as MT50, and in RLHF, where the reward signal shifts with the policy. The matched-FLOP comparison settles it. If PSMGD ties everywhere, the contribution reduces to the diagnostic of where conflict lives and to Gram-only tracking as a low-memory replacement for MoCo. We will report it that way.
Why not just use the last layer, as GAPO does? That is cheaper and needs no probability bookkeeping. Whether it suffices depends on where conflict lives, and nobody has measured that. The layerwise measurement in our first component answers it directly. If nearly all negative off-diagonal mass sits in the top layers, the adaptive depth distribution will concentrate there and our method collapses toward GAPO at similar cost. That outcome is informative and costs nothing to learn.
Why not just use GradNorm or equal weighting and skip conflict geometry? The file's numbers argue against it on conflict-heavy benchmarks. PCGrad lifts MT50 from under 40% to about 70%. Conflict-aware methods on NYUv2 reach $\Delta m$ of 0.16–0.20%, against 3.97% for PCGrad and 5.59% for the MTAN baseline (CAGrad). GradNorm stays in the comparison anyway. If it matches us on some benchmark, that benchmark's conflicts are mild, which the measurement of $G$ will show.
Why not just track full gradients, as MoCo does? On NYUv2-scale models that is feasible, and it is our quality ceiling. At $M$ objectives on a 7B model, it means holding $M$ extra copies of the parameters, which is exactly the memory bottleneck MoCo itself leaves open.
Proposed Experiments
Vision experiments use NYUv2 (three tasks, $\Delta m$), CelebA (40 tasks, average error, the most demanding test of $M$ scaling), and QM-9 (per-epoch wall-clock against PSMGD's reported 2.23s). Reinforcement learning uses Meta-World MT10 and MT50 with multi-task SAC and success rate. Every run reports backward FLOPs, peak accelerator memory, and wall-clock alongside quality, over at least three seeds. On NYUv2 and CelebA we additionally compute exact full-parameter $G$ every $N$ steps. This lets us report the estimator's relative error and the cosine agreement between estimated and exact solver weights.
The language-model stretch experiment repeats GAPO's setting of Mistral-7B on PKU-SafeRLHF, trading helpfulness against harmlessness. It then moves to five-objective UltraFeedback, where $M=5$ makes per-objective overhead costly. We compare Pareto fronts by hypervolume against the GAPO proxy and equal weighting under a fixed training-token budget.
Three results would be decisive.
The first is the layerwise conflict profile on NYUv2, CelebA and the 7B model. If conflict is concentrated in the top layers, last-layer proxies are justified. If not, they are measurably biased, and the fixed-cutoff ablation should lose to the unbiased estimator by a margin that grows with the conflict mass below the cutoff.
The second is the matched-FLOP comparison against PSMGD on MT50 and in the RLHF runs. This is where amortizing across depth should beat amortizing across time, if it beats it anywhere.
The third is whether estimator-plus-tracking CAGrad reaches MoCo's 0.16% $\Delta m$ on NYUv2 and 86% on MT10, while its per-step cost stays within a small constant factor of one backward pass as $M$ grows to 40 on CelebA.
If the unbiased estimator fails to beat fixed truncation at equal cost, or fails to beat PSMGD at equal FLOPs, the method as proposed is not worth adopting. The measurement study would still stand as the main contribution.
References
- Multi-Task Learning as Multi-Objective Optimization
- Gradient-Adaptive Policy Optimization: Towards Multi-Objective Alignment of Large Language Models
- PSMGD: Periodic Stochastic Multi-Gradient Descent for Fast Multi-Objective Optimization
- Mitigating Gradient Bias in Multi-objective Learning: A Provably Convergent Approach
- Conflict-Averse Gradient Descent for Multi-task learning
- Gradient Surgery for Multi-Task Learning
- GradNorm: Gradient Normalization for Adaptive Loss Balancing in Deep Multitask Networks
- Dynamic Multi-Reward Weighting for Multi-Style Controllable Generation
- A Multi-objective / Multi-task Learning Framework Induced by Pareto Stationarity
- Pareto Invariant Risk Minimization: Towards Mitigating The Optimization Dilemma in Out-of-Distribution Generalization