Mitigating Gradient Bias in Multi-objective Learning: A Provably Convergent Stochastic Approach

Heshan Fernando, Han Shen, Miao Liu, Subhajit Chaudhury, Keerthiram Murugesan, Tianyi Chen

TL;DR

Stochastic multi-objective optimization algorithms often suffer from severe gradient bias because their weight-selection mechanisms are non-linear functions of noisy gradient estimates. This paper introduces MoCo (Stochastic Multi-objective Gradient Correction), the first approach that guarantees convergence to a Pareto stationary point in non-convex settings using a constant batch size. By tracking and smoothing individual task gradients over time, MoCo eliminates systematic bias and significantly outperforms state-of-the-art multi-task learning methods.

What Problem Does This Paper Address?

In multi-task learning (MTL) and multi-objective optimization (MOO), algorithms aim to optimize multiple, often conflicting objectives simultaneously—such as balancing accuracy with fairness, or training a single model to perform both semantic segmentation and depth estimation. A foundational approach is the Multiple Gradient Descent Algorithm (MGDA), which dynamically calculates a convex combination of individual task gradients to find a common descent direction.

However, when moving from deterministic settings to practical stochastic settings (where gradients are computed from mini-batches), existing methods run into a fundamental mathematical barrier: gradient bias. Because the optimization subproblems used to calculate task weights are highly non-linear (involving operations like clipping and norm divisions), plugging in noisy stochastic gradients yields a biased multi-gradient direction. In practice, this bias degrades empirical performance and can cause optimization to stall far from the true Pareto front. Previous theoretical fixes required linearly growing the batch size over time to suppress noise, which is incredibly sample-inefficient and completely impractical for complex domains like reinforcement learning.

Methods

The authors propose MoCo to resolve this dilemma without sacrificing sample efficiency. Instead of feeding raw, noisy stochastic gradients directly into the weight-selection subproblem, MoCo introduces a tracking variable ($y_{k,m}$) for each objective function.

Key innovations include:

  1. Gradient Tracking with Correction: The tracking variables maintain a running approximation of the true gradients across iterations. This design ensures that the gradient estimators become asymptotically unbiased while requiring only a single sample per iteration (a constant $O(1)$ batch size).
  2. $\ell_2$ Regularization: To stabilize optimization in complex, non-convex landscapes, the authors add an $\ell_2$ regularization penalty to the weight-finding subproblem. This ensures that the computed task weights are unique and Lipschitz continuous.
  3. Extension to Nested MOO: The authors generalize MoCo to handle nested optimization structures where obtaining unbiased gradients is inherently difficult. This is particularly relevant for multi-objective actor-critic frameworks in reinforcement learning, where the critic's objective depends dynamically on the actor's current policy.

Datasets

The authors evaluated MoCo across a diverse suite of supervised and reinforcement learning benchmarks:

  • Cityscapes: A computer vision dataset evaluated on 7-class semantic segmentation and depth estimation.
  • NYU-v2: An indoor scene dataset featuring 13-class semantic segmentation, depth estimation, and surface normal prediction.
  • Office-31 & Office-Home: Standard multi-domain classification benchmarks spanning categories like Art, Clipart, Product, and Real-World images.
  • MT10 (Meta-World): A reinforcement learning benchmark consisting of 10 distinct robotic manipulation tasks optimized simultaneously.

Key Insights and Ideas

  • The Non-Linearity Trap: The core "aha moment" is the formalization of why stochastic multi-task algorithms fail on simple problems. Because weight selection relies on non-linear operations, zero-mean noise on individual task gradients does not cancel out; instead, it transforms into a systematic, destructive bias in the joint optimization direction.
  • Constant Batch Size Convergence: MoCo breaks the requirement of a growing batch size. It provides the first finite-time convergence guarantee for stochastic MGDA under non-convex objective functions using a constant $O(1)$ batch size.
  • Plug-and-Play Compatibility: Because MoCo focuses on correcting the underlying gradient estimates rather than altering the high-level task-balancing logic, it can be layered directly on top of other popular gradient manipulation algorithms (like CAGrad) to boost their performance.

Key Results

Toy Example Success

On a non-convex toy problem, popular methods like SMG, PCGrad, and CAGrad failed to reach the Pareto front from certain initializations due to gradient bias. MoCo successfully converged to the Pareto front from all starting points, closely matching the behavior of deterministic MGDA.

Toy example trajectories showing how gradient bias causes existing methods to miss the Pareto front while MoCo successfully converges.

Supervised Learning

On the Cityscapes dataset, MoCo achieved the lowest overall performance drop ($\Delta m\% = 9.90\%$) relative to the single-task baseline, outperforming CAGrad ($11.64\%$) and PCGrad ($18.29\%$). It achieved similar top-tier results on NYU-v2 ($\Delta m\% = 0.16\%$) and significantly outperformed baselines on the Office-31 and Office-Home datasets.

Reinforcement Learning

On the MT10 Meta-World robotic benchmark, vanilla MoCo achieved a success rate of $0.75$, outperforming PCGrad ($0.72$). When MoCo's gradient correction was integrated into CAGrad (CAGrad + MoCo), it achieved a state-of-the-art success rate of $0.86$, approaching the multi-agent upper bound ($0.90$).

Limitations and Future Work

  • Lack of Convergence Point Control: While MoCo is mathematically guaranteed to converge to a Pareto stationary point, the algorithm does not allow users to explicitly control or target which specific trade-off point on the Pareto front it will land on.
  • Hyperparameter Tuning: MoCo introduces additional learning rate schedules ($\beta_k$ and $\gamma_k$) to manage the gradient tracking and weight updates, which adds to the hyperparameter tuning burden.
  • Future Directions: The authors suggest combining MoCo with preference-conditioned or targeted Pareto front exploration methods to guide the optimization toward specific, user-defined task trade-offs.

Summary updated

BibTeX
@misc{fernando2022mitigating,
  author = {Heshan Fernando and Han Shen and Miao Liu and Subhajit Chaudhury and Keerthiram Murugesan and Tianyi Chen},
  title = {{Mitigating Gradient Bias in Multi-objective Learning: A Provably Convergent Stochastic Approach}},
  year = {2022},
  eprint = {2210.12624},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.12624},
}
Figure