Skip to main content
QUICK REVIEW

[Paper Review] Linear Mode Connectivity in Multitask and Continual Learning

Seyed Iman Mirzadeh, Mehrdad Farajtabar|arXiv (Cornell University)|Oct 9, 2020
Domain Adaptation and Few-Shot LearningComputer Science68 references13 citations
TL;DR

This paper investigates the geometric relationship between continual learning (CL) and multitask learning (MTL) solutions in deep neural networks, finding that when initialized identically, the MTL solution and sequentially learned CL solutions are linearly connected by a path of low loss. This linear mode connectivity enables a novel algorithm, MC-SGD, which outperforms state-of-the-art CL methods on vision benchmarks by constraining optimization to follow this low-loss path.

ABSTRACT

Continual (sequential) training and multitask (simultaneous) training are often attempting to solve the same overall objective: to find a solution that performs well on all considered tasks. The main difference is in the training regimes, where continual learning can only have access to one task at a time, which for neural networks typically leads to catastrophic forgetting. That is, the solution found for a subsequent task does not perform well on the previous ones anymore. However, the relationship between the different minima that the two training regimes arrive at is not well understood. What sets them apart? Is there a local structure that could explain the difference in performance achieved by the two different schemes? Motivated by recent work showing that different minima of the same task are typically connected by very simple curves of low error, we investigate whether multitask and continual solutions are similarly connected. We empirically find that indeed such connectivity can be reliably achieved and, more interestingly, it can be done by a linear path, conditioned on having the same initialization for both. We thoroughly analyze this observation and discuss its significance for the continual learning process. Furthermore, we exploit this finding to propose an effective algorithm that constrains the sequentially learned minima to behave as the multitask solution. We show that our method outperforms several state of the art continual learning algorithms on various vision benchmarks.

Motivation & Objective

  • To understand the geometric relationship between solutions found via continual learning (CL) and multitask learning (MTL), particularly in terms of loss landscape structure.
  • To investigate whether CL and MTL solutions are connected by a low-loss path, and if so, what the simplest form of such a path might be.
  • To evaluate whether conventional similarity metrics like Euclidean distance or CKA are meaningful for comparing CL and MTL solutions.
  • To develop a new continual learning algorithm leveraging linear mode connectivity to mitigate catastrophic forgetting.
  • To empirically validate the robustness of linear connectivity across multiple tasks and diverse vision benchmarks.

Proposed method

  • The authors compare CL and MTL solutions under a shared initialization regime, where both start from the same initial weights and are trained on the same tasks in different orders.
  • They evaluate connectivity by interpolating linearly between the MTL solution and each CL solution, measuring the loss along the path to verify low error.
  • A new algorithm, Mode Connectivity SGD (MC-SGD), is proposed that constrains the optimization trajectory to remain within the low-loss linear path between the MTL solution and the current CL solution.
  • The method uses a loss regularization term that encourages the model to stay close to the linear interpolation path between the MTL and CL solutions during sequential training.
  • Experiments are conducted on rotated MNIST, split CIFAR-100, and permuted MNIST with up to 50 tasks, using standard benchmarks and reproducible runs with multiple random seeds.
  • The performance of MC-SGD is compared against state-of-the-art CL baselines, including experience replay, regularization, and distillation methods.

Experimental results

Research questions

  • RQ1Are the solutions found by continual learning and multitask learning connected by a low-loss path in the loss landscape?
  • RQ2If such a path exists, is it linear, and under what conditions is it guaranteed?
  • RQ3Can linear mode connectivity between CL and MTL solutions be leveraged to improve continual learning performance?
  • RQ4Do conventional metrics like Euclidean distance or CKA accurately reflect the relationship between CL and MTL solutions?
  • RQ5How robust is linear connectivity across increasing numbers of tasks and diverse datasets?

Key findings

  • The MTL solution and CL solutions trained with the same initialization are reliably connected by a linear path of low loss, even across 20+ tasks.
  • Linear connectivity is not observed when solutions are initialized differently, highlighting the importance of shared initialization.
  • Conventional metrics like ℓ₂ distance and CKA are ineffective at capturing the true relationship between CL and MTL solutions, as they fail to reflect performance differences.
  • MC-SGD, which enforces linear connectivity, achieves state-of-the-art performance on rotated MNIST, split CIFAR-100, and permuted MNIST with 50 tasks.
  • The method consistently outperforms established CL baselines, including experience replay and regularization-based approaches, across all benchmarks and multiple random seeds.
  • The linear interpolation paths between MTL and CL solutions show non-increasing loss, confirming the existence of a low-loss manifold connecting the two solution types.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.