A common way to train one network on several tasks without letting a secondary task hurt the main one is to write the requirement as a constraint. The rule is "minimize the secondary losses, subject to the primary task's loss staying at its best achievable value." A learned multiplier then enforces this rule, and the multiplier replaces a hand-tuned loss weight. This note points out a flaw in that recipe. Near the primary task's best value, the gradient of the primary loss goes to zero. A constraint whose gradient vanishes exactly where it binds has no finite correct multiplier. The optimizer is therefore pushed toward ever-larger multipliers or penalty weights. That produces the same stiff, badly conditioned loss landscape that causes first-order optimizers to stall in penalty methods elsewhere.
The fix we propose is to constrain the square root of the primary loss's excess over its best value, rather than the excess itself. The allowed set of parameters is unchanged, since $\sqrt{L_1 - L_1^*} \le \sqrt{\epsilon}$ and $L_1 - L_1^* \le \epsilon$ describe the same points. The difference is in the gradient. Near a minimum with quadratic growth, the square-root version has a gradient whose size stays roughly constant instead of shrinking to zero. That keeps the correct multiplier finite and lets a moderate, fixed penalty weight work. The result is a constrained multi-task method whose tuning cost does not depend on how tightly the primary task is protected.
Core Claim
In prioritized multi-task learning, the constraint $L_1(\theta) \le L_1^* + \epsilon$ is imposed with $L_1^*$ equal to the primary task's own optimum. Here $\theta$ are the shared parameters, $L_1$ is the primary loss and $\epsilon \ge 0$ is a tolerance. Suppose the primary loss grows quadratically near its minimizer set with curvature $\mu$, so that $L_1 - L_1^* \approx \tfrac{\mu}{2} d^2$ at distance $d$. Then on the constraint boundary $\|\nabla L_1\| \approx \sqrt{2\mu\epsilon}$. At a constrained optimum the secondary-task gradient $g_2$ must be balanced by $\lambda \nabla L_1$. The multiplier therefore scales as
$$\lambda^*(\epsilon) \approx \frac{\|g_2\|}{\sqrt{2\mu\epsilon}} \;\propto\; \epsilon^{-1/2},$$
and it diverges as $\epsilon \to 0$. The curvature term $\lambda^* \nabla^2 L_1$ in the Hessian of the Lagrangian inherits this blow-up.
This is the same failure that On the Convergence of Continuous Constrained Optimization for Structure Learning diagnosed for the acyclicity constraint in DAG learning. There, a constraint gradient that vanishes on the feasible set breaks the linear-independence constraint qualification, which is the regularity condition guaranteeing finite multipliers. The Augmented Lagrangian collapses into a pure quadratic penalty, the penalty climbs to $10^{14}$, and Adam and momentum bounce across the valley. The difference in our setting is that multi-task learning has no inherent reason for the constraint to be degenerate. The degeneracy comes from how the priority rule is written.
The replacement constraint is
$$c(\theta) = \sqrt{\max(L_1(\theta) - L_1^*, 0) + \delta^2} - \delta \;\le\; \sqrt{\epsilon},$$
where $\delta > 0$ is a small smoothing constant. Near the minimizer, $\|\nabla c\| \approx \sqrt{\mu/2}$ independent of $\epsilon$. Under the same approximation, the multiplier becomes $\|g_2\|\sqrt{2/\mu}$, which stays bounded. We claim three consequences. An Augmented Lagrangian with a constant penalty weight reaches the target tolerance with first-order optimizers. A linear hinge penalty $\beta[c(\theta)-\sqrt{\epsilon}]_+$ becomes an exact penalty at a constant $\beta$. The top eigenvalue of the training Hessian stops growing as the tolerance tightens.
Relation to Prior Work
Three papers set up the problem.
- The method we critique. No More Tuning writes prioritized multi-task learning as secondary-loss minimization subject to higher-priority losses not exceeding their optima. It solves this with gradient-ascent multipliers and reports up to +0.49% Like AUC on TikTok. Its constraint is exactly the degenerate one above, and it gives no analysis of the multiplier dynamics.
- The stabilizer, and why it does not suffice here. AL-CoLe adds a quadratic penalty with a growing-and-shifted schedule to stabilize multipliers in single-task fairness learning. Its guarantees assume mild regularity, which the priority constraint violates. We therefore expect AL-CoLe-style augmentation on the raw constraint to trade oscillation for a runaway penalty schedule.
- The source of the diagnosis. The DAG-learning analysis (Structure Learning convergence) explains why a vanishing constraint gradient forces unbounded penalties. Its remedy is to switch to L-BFGS. We instead repair the constraint and keep first-order training, which modern multi-task networks require.
Two further lines supply parts of the method. Single-loop Algorithms for Stochastic Non-convex Optimization with Weakly-Convex Constraints shows that a linear hinge penalty satisfies 15 fairness constraints on Adult with a constant weight $\beta = 20$, while a squared penalty needs $\beta = 800$. We reuse that hinge. Exact-penalty theory requires $\beta$ to exceed the multiplier, though, so the hinge only works once the multiplier is finite. That is why our reformulation is a precondition for the hinge rather than an alternative to it. The earlier sources on penalty stiffness (MRF local polytope study, primal SVM solver) document the exploding gradient Lipschitz constant and the floating-point ceiling that a growing penalty eventually hits.
Two constrained approaches are adjacent but leave the priority question open. CAGrad and MGDA-UB use constrained subproblems at each step to resolve gradient conflict. Neither encodes priorities or tolerances.
The closest penalty-based multi-task work is A Tale of Two Problems, whose WC-Penalty method enforces a lower-level stationarity condition $\nabla_y g = 0$ by penalties. It reports sensitivity to penalty scaling. Its constraint is degenerate for a related reason: the Jacobian of $\nabla_y g$ is the lower-level Hessian, which is singular when the lower level is only convex. We treat this as a second test of the same principle rather than as the core problem.
Research Program
The work has four parts.
- Scaling law. We will state and verify the $\epsilon^{-1/2}$ multiplier law, and the matching growth of the Lagrangian's top Hessian eigenvalue, under a local quadratic-growth assumption. We will also give the bounded-multiplier counterpart for $c(\theta)$. Where the loss grows faster or slower than quadratically, the exponent changes. The general fix is to use the root that matches the local growth order, and we will estimate that order empirically from loss–distance curves along training trajectories.
- Robustness to an estimated optimum. $L_1^*$ is estimated from a single-task run. We will study what happens when the estimate is too optimistic, which makes the constraint infeasible, or when mini-batch noise pushes $L_1 - L_1^*$ negative. The smoothing $\delta$ and a small positive floor on $\epsilon$ exist for these cases, and we will measure how sensitive results are to both.
- Implementation. We will build three drop-in solvers for architectures with a shared backbone: a first-order Augmented Lagrangian with fixed penalty weight, a hinge exact penalty with constant $\beta$, and a variant combining either with CAGrad's conflict-averse direction on the secondary tasks.
- Instrumentation. Every run will log the multiplier trajectory, constraint violation, and the top Hessian eigenvalue of the training objective, estimated by Lanczos on the shared backbone. These logs make the conditioning claim observable, not just inferred from accuracy.
Baselines
The naive reference point is uniform loss weighting, which sums task losses and gives no protection to the primary task. On CelebA, MGDA-UB reports 9.62% average error for uniform scaling, against 8.25% for MGDA-UB and 8.77% for separate single-task models. We will rerun it on our splits. Any priority method must at least match single-task primary performance while beating uniform weighting on the secondaries.
The strongest existing method for the prioritized question is No More Tuning's multiplier method. On TikTok it reports up to +0.49% Like AUC for the primary task without sacrificing secondary metrics. We will reimplement it on the same MMoE and PLE backbones, with the same $L_1^*$ estimates, data, epochs and multiplier learning-rate search budget as our methods. Beating it means one of two outcomes. The first is a lower primary violation at equal secondary AUC. The second is equal primary protection with a flat multiplier trajectory, obtained with a fixed penalty weight rather than a searched multiplier step size.
The strongest unconstrained competitor is CAGrad, which reports $\Delta m$ of 0.20% on NYUv2 (PCGrad 3.97%, MTAN 5.59%) and 0.52 success on Meta-World MT50. It does not target priorities. We run it with its published $c$ tuned over the same budget and compare primary-task error at matched average performance.
We also include two augmented-Lagrangian baselines on the raw constraint:
- AL-CoLe's growing-shifted penalty schedule (AL-CoLe).
- A plain quadratic penalty with increasing weight.
Both receive the same schedule search. We expect them to protect the primary task only by driving the penalty high.
The ablation that isolates the key ingredient keeps everything fixed: the same feasible set, solver, penalty weight and $\epsilon$. It swaps only $L_1 - L_1^*$ for $c(\theta)$. Because the feasible set is identical, any difference in multiplier growth, Hessian eigenvalue or final accuracy can be attributed to conditioning alone.
Why not just…?
Why not just loosen the tolerance $\epsilon$? A larger slack does make the multiplier finite. That is exactly what the $\epsilon^{-1/2}$ law predicts. The cost is permanent loss on the primary task, which is the quantity the method exists to protect. The real threat is that practitioners would accept, say, a 1% primary degradation and find the raw constraint well-behaved at that point. We settle this by sweeping $\epsilon$ over a grid for both formulations. The reformulation earns its place only if it gives equal or better secondary performance over the tight end of that sweep, with bounded multipliers and flat eigenvalues where the raw version diverges. If the two curves coincide once $\epsilon$ exceeds noise level, we will report that the fix matters only for tight tolerances.
Why not just clip the multiplier or use Adam on the multiplier? Clipping caps $\lambda$ below the value the degenerate constraint actually requires. The constraint then silently stops being enforced; the cap has become a disguised fixed loss weight. Adam rescales per-coordinate steps but cannot supply a multiplier that does not exist. The DAG-learning study found adaptive first-order methods still stalled at huge penalties (Structure Learning convergence). Clipped and Adam-multiplier variants of the multiplier method are included in the sweep, with violation reported alongside accuracy.
Why not just use a hinge exact penalty on the raw constraint, as in the single-loop work? Exactness requires $\beta$ to exceed the optimal multiplier. For the raw priority constraint that threshold grows as $\epsilon^{-1/2}$. The constant $\beta = 20$ observed on Adult (Single-loop Algorithms) should therefore not transfer to tight priority constraints. The constant-$\beta$ hinge is run on both formulations. The prediction is that the smallest $\beta$ achieving feasibility grows with tighter $\epsilon$ for the raw constraint and stays flat for $c(\theta)$.
Why not just use a second-order optimizer? L-BFGS survives stiff valleys in DAG learning, but full-batch quasi-Newton is impractical for deep shared backbones and recommendation-scale data. We include L-BFGS on MultiMNIST only, as a diagnostic check that the raw formulation's failures are due to conditioning.
Proposed Experiments
The diagnostic experiment uses MultiMNIST with the left digit as primary. The problem is small enough to compute the top Lagrangian eigenvalues exactly. The decisive check is whether the logged multiplier and top eigenvalue follow a slope near $-1/2$ against $\epsilon$ on log-log axes for the raw constraint, and a slope near zero for $c(\theta)$. The slope prediction follows from the quadratic-growth derivation.
NYUv2. Semantic segmentation is primary, and depth and surface normals are secondary. We report the standard per-task metrics and $\Delta m$ against CAGrad's reported 0.20%. We also report segmentation error relative to a single-task model at each $\epsilon$.
CelebA. A designated subset of the 40 attributes serves as primary, which tests priority constraints with many simultaneous constraints. MGDA-UB's 8.25% and uniform scaling's 9.62% average errors are the reference points.
TikTok (MMoE and PLE). Like is primary, with the same architectures as No More Tuning. Its up-to-+0.49% Like AUC is the number to match or exceed while holding secondary AUC.
HelpSteer (extension). Following A Tale of Two Problems, which reports hypervolume $2.47\times10^{-2}$ for WC-Penalty against $1.66\times10^{-5}$ for MoCo, we test whether an analogous square-root reparametrization of the stationarity penalty reduces its sensitivity to the penalty schedule. Success here is measured as hypervolume variance across penalty schedules, not peak hypervolume.
Across all benchmarks, the core claim is falsified by any of three outcomes. The multiplier on the raw constraint might stay bounded as $\epsilon \to 0$. The reformulated constraint might show the same growth. Or matched-$\epsilon$ runs might differ in accuracy with no difference in conditioning.
References
- On the Convergence of Continuous Constrained Optimization for Structure Learning
- No More Tuning: Prioritized Multi-Task Learning with Lagrangian Differential Multiplier Methods
- AL-CoLe: Augmented Lagrangian for Constrained Learning
- Single-loop Algorithms for Stochastic Non-Convex Optimization with Weakly-Convex Constraints
- Getting Feasible Variable Estimates from Infeasible Ones: MRF Local Polytope Study
- Linear Time Solver for Primal SVM
- Conflict-Averse Gradient Descent for Multi-task learning
- Multi-Task Learning as Multi-Objective Optimization
- A Tale of Two Problems: Multi-Task Bilevel Learning Meets Equality Constrained Multi-Objective Optimization