Exploring Tradeoffs through Mode Connectivity for Multi-Task Learning

Zhipeng Zhou, Ziqiao Meng, Pengcheng Wu, Peilin Zhao, Chunyan MiaoNeurIPS 2025

Introduction

Multi-Task Learning (MTL) offers an efficient way to learn multiple tasks simultaneously with a single model. However, MTL often struggles with conflicting gradients, and traditional optimization fixes frequently fail to outperform simple baselines like Linear Scalarization. This paper introduces EXTRA (EXplore TRAde-offs), a novel approach that leverages mode connectivity—finding low-loss paths between single-task models—to discover optimal task trade-offs. By using flexible NURBS curves and an order-aware objective, EXTRA efficiently navigates complex loss landscapes to achieve state-of-the-art MTL performance without the massive memory overhead of full Pareto Front Learning.

The Challenge of Multi-Task Optimization

In MTL, a single neural network is trained to perform multiple tasks simultaneously. The core challenge is that tasks often conflict, pulling the model's weights in different directions.

Historically, researchers have tried to fix this by dynamically re-weighting losses or manipulating gradients (e.g., projecting conflicting gradients away from each other). However, recent studies suggest these complex methods often fail to beat simple baselines.

An alternative approach is Pareto Front Learning (PFL), which tries to map out the entire landscape of possible trade-offs. Some PFL methods use mode connectivity—the phenomenon where different neural network optima can be connected by a path of low loss. However, mapping the whole Pareto front requires storing many model endpoints, causing memory usage to explode as the number of tasks increases. The authors ask: How can we use the geometric insights of mode connectivity to find the single best MTL trade-off point, without the randomness of standard path-finding or the memory explosion of PFL?

The EXTRA Methodology

Instead of altering the optimization trajectory during standard training, the authors propose EXTRA, which operates in two distinct stages:

  1. Train Endpoints: Train two models using standard methods (e.g., one favoring Task A, one favoring Task B).
  2. Connect and Optimize: Learn a curve connecting these two endpoints in the weight space, searching for the best trade-off point along that curve.
Comparison of Manifold-based PFL and EXTRA

To make this work effectively, EXTRA introduces three key innovations:

  • NURBS over Bézier Curves: Traditional mode connectivity uses Bézier curves, which are too rigid and tend to over-smooth the path, missing complex local minima. Because every control point in a Bézier curve affects the entire curve, it struggles to navigate the jagged loss landscapes of deep neural networks. EXTRA uses Non-Uniform Rational B-Splines (NURBS), which decouple control points from the curve's global structure, allowing for localized adjustments to dip into complex low-loss basins.
  • Order-Aware Objective: Just finding a low-loss path doesn't guarantee a good trade-off path; the curve might just wander randomly. The authors add a mathematical penalty that forces the curve to smoothly transition its preference from one task to the other, ensuring it actually crosses the Pareto front.
  • Task Grouping for Scalability: A curve naturally connects two endpoints. To handle massive multi-task scenarios (e.g., 40 tasks), EXTRA uses spectral clustering on warmup gradients to group tasks into three clusters. It connects the first two clusters with the curve and aligns the third cluster at the curve's midpoint, allowing it to scale effortlessly.

Key Insights and Results

The authors evaluate EXTRA on several standard benchmarks, including CityScapes (2 tasks), NYUv2 (3 tasks), CelebA (40 tasks), and MultiMNIST.

  • Curve Optimization > Endpoint Optimization: PFL methods try to map the Pareto front by optimizing many individual endpoints, which scales linearly in memory with the number of tasks. By optimizing a single, highly flexible curve between just two endpoints, EXTRA finds the optimal MTL operating point with a fraction of the memory footprint.
  • State-of-the-Art Performance: EXTRA consistently achieves top performance on the $\Delta m\%$ metric (which measures overall degradation compared to training independent models for each task). On NYUv2, EXTRA achieved a $\Delta m\%$ of -6.30%, significantly outperforming advanced baselines like FairGrad (-4.66%) and Nash-MTL (-4.04%).
  • Massive Scalability: On the 40-task CelebA dataset, manifold-based PFL methods ran out of memory. EXTRA easily handled the 40 tasks via its grouping strategy, achieving a SOTA $\Delta m\%$ of -0.11%, beating out FAMO (1.21%) and FairGrad (1.15%).
  • Plug-and-Play Capability: EXTRA can be wrapped around existing MTL methods. For example, when the endpoints were trained using CAGrad on CityScapes, EXTRA improved the $\Delta m\%$ from 11.58% to 8.61%, proving it works as a universal performance booster.

Limitations and Future Work

While highly effective, EXTRA has a few limitations. First, it struggles to provide a full menu of user-defined trade-offs when the number of tasks exceeds two, since a 1D curve only easily interpolates between two extremes. Second, because EXTRA requires storing endpoints and control points to construct the curve, it technically uses more parameters during training than a standard single-model MTL approach, which may raise model capacity fairness concerns.

For future work, the authors suggest exploring higher-dimensional geometry (like Bézier surfaces) to better align mode connectivity with the Pareto front for many tasks, without losing the efficiency gains of the curve-based approach.

Summary updated

BibTeX
@inproceedings{zhou2025exploring,
  author = {Zhipeng Zhou and Ziqiao Meng and Pengcheng Wu and Peilin Zhao and Chunyan Miao},
  title = {{Exploring Tradeoffs through Mode Connectivity for Multi-Task Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=4ULtNYHc5T},
}
Figure