ForkMerge: Mitigating Negative Transfer in Auxiliary-Task Learning

Junguang Jiang, Baixu Chen, Junwei Pan, Ximei Wang, Liu Dapeng +2 more
2/12/2026

No official code found. Best implementation: thuml/ForkMerge (17 stars, MIT, last commit 2023-12-30).

Abstract

Auxiliary-Task Learning (ATL) aims to improve the performance of the target task by leveraging the knowledge obtained from related tasks. Occasionally, learning multiple tasks simultaneously results in lower accuracy than learning only the target task, which is known as negative transfer. This problem is often attributed to the gradient conflicts among tasks, and is frequently tackled by coordinating the task gradients in previous works. However, these optimization-based methods largely overlook the auxiliary-target generalization capability. To better understand the root cause of negative transfer, we experimentally investigate it from both optimization and generalization perspectives. Based on our findings, we introduce ForkMerge, a novel approach that periodically forks the model into multiple branches, automatically searches the varying task weights by minimizing target validation errors, and dynamically merges all branches to filter out detrimental task-parameter updates. On a series of auxiliary-task learning benchmarks, ForkMerge outperforms existing methods and effectively mitigates negative transfer.

View on arXivView PDF

Code Implementations(1)

thuml/ForkMergeCommunity68%
MIT

Code release of paper "ForkMerge: Mitigating Negative Transfer in Auxiliary-Task Learning" (NeurIPS 2023)

172Oct 6, 20232 years agoMIT
auxiliary-task-learningmulti-task-learning

Similar Papers

Cite this paper

@article{jiang2026forkmerge,
  title  = {ForkMerge: Mitigating Negative Transfer in Auxiliary-Task Learning},
  author = {Junguang Jiang and Baixu Chen and Junwei Pan and Ximei Wang and Liu Dapeng and Jie Jiang and Mingsheng Long},
  year   = {2026},
  eprint = {2301.12618},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2301.12618},
  journal = {NEURIPS 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2301.12618.svg)](https://codeofpaper.com/paper/2301.12618)

Discussion