Measuring Fine-Grained Relatedness in Multitask Learning via Data Attribution

Yiwen Tu, Ziqi Liu, Jiaqi W. Ma, Weijing Tang · DOI

Abstract

Multitask Learning (MTL) aims to improve model performance by sharing information across related tasks. However, the phenomenon of "negative transfer"—where conflicting objectives lead to degraded performance—remains a significant challenge. Traditional methods address this by measuring task-level relatedness, which overlooks the heterogeneous impact of individual data points. We introduce the MultiTask Influence Function (MTIF), a framework for fine-grained data attribution in MTL. MTIF identifies specific training examples that harm target task performance, allowing for strategic data pruning. Our results demonstrate that MTIF achieves high fidelity to ground-truth retraining and consistently outperforms state-of-the-art optimization-centric MTL methods across diverse benchmarks.

Introduction

Multitask Learning (MTL) is a powerful paradigm where a single model learns multiple tasks simultaneously. While sharing parameters can lead to better generalization, it often introduces "negative transfer." This occurs when tasks are weakly related or have conflicting objectives, causing joint training to perform worse than individual task training.

Historically, researchers have treated task relatedness as a coarse-grained property, assuming an entire task is either helpful or harmful to another. This binary view ignores the reality that within any given task, some data points may be highly beneficial to a neighbor while others are detrimental. Existing methods to identify these interactions are either computationally prohibitive—requiring exhaustive retraining—or rely on heuristic gradient comparisons that lack theoretical interpretability. We propose MTIF to bridge this gap by providing a scalable, mathematically grounded way to measure the influence of individual data points across tasks.

Methods

MTIF adapts the concept of Influence Functions to the MTL setting to estimate the "Leave-One-Out" (LOO) effect. This effect quantifies how the model's loss on a target task would change if a specific data point from a source task were removed, without requiring the model to be retrained.

Mathematical Framework

Using a first-order Taylor expansion, MTIF approximates the change in parameters resulting from the removal of a training point. The method is versatile, supporting both "hard" parameter sharing (shared bottom layers) and "soft" parameter sharing (regularization-based similarity). We decompose the total influence into three distinct components:

  1. Within-task influence: The effect of a point on its own task.
  2. Between-task influence: The cross-task impact of a point.
  3. Shared influence: The role of shared parameters in bridging interference between tasks.

Scalability and Implementation

To handle large-scale neural networks, MTIF incorporates computational techniques from the TRAK framework. This includes dimensionality reduction via random projections and the use of model ensembles to stabilize influence scores. Once scores are calculated, we rank training samples by their total influence and prune the most harmful fraction before a final retraining pass.

Experimental Evaluation

We validated MTIF across several benchmarks:

  • Synthetic Data: 10 linear regression tasks to verify mathematical accuracy against ground-truth retraining.
  • Human Activity Recognition (HAR): 30 tasks classifying physical activities from sensor data.
  • CelebA: A large-scale face image dataset with 10 attribute-based tasks.
  • Office-31 & Office-Home: Standard domain adaptation benchmarks.
  • Robustness Tests: Versions of Office-31 with 10% and 20% label noise to test MTIF's ability to identify "poisonous" data.

Results and Discussion

High Fidelity to Ground Truth

A critical requirement for any influence-based method is fidelity. On synthetic and HAR datasets, MTIF scores showed a near-perfect linear correlation with actual brute-force retraining results. This confirms that the first-order approximation effectively captures the complex dynamics of cross-task interference.

Figure 3: Scatter plots showing the high correlation between MTIF-predicted loss differences and actual retraining results across various tasks.

As shown in the quantitative analysis of the synthetic tasks, the correlation remains consistently high across the board, typically exceeding 0.70.

Figure 6: Table of correlation coefficients (mean ± standard deviation) between predicted and actual influence for ten synthetic tasks.

Performance and Robustness

MTIF-guided data selection consistently outperformed state-of-the-art MTL optimizers like GradNorm, PCGrad, and CAGrad. For instance, on the CelebA dataset, MTIF achieved 79.94% accuracy, surpassing vanilla MTL (79.16%) and CAGrad (79.46%).

In noise-heavy environments (20% label corruption on Office-31), MTIF's advantage became even more pronounced, reaching 83.85% accuracy while the next best method, GradNorm, trailed at 82.82%. This highlights MTIF's unique capability to identify and remove specifically harmful instances that gradient-balancing methods might otherwise accommodate.

Conclusion

MTIF shifts the focus of MTL research from optimization-centric gradient balancing to a data-centric approach. By providing fine-grained attribution, it allows researchers to understand and mitigate negative transfer at the instance level. Future work will explore extending this framework to Large Language Models (LLMs) and automating the selection of optimal data pruning thresholds.

Summary updated

BibTeX
@article{tu2026measuring,
  author = {Yiwen Tu and Ziqi Liu and Jiaqi W. Ma and Weijing Tang},
  title = {{Measuring Fine-Grained Relatedness in Multitask Learning via Data Attribution}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure