Measuring Fine-Grained Relatedness in Multitask Learning via Data Attribution

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

TL;DR

This paper introduces the MultiTask Influence Function (MTIF), a method that brings fine-grained data attribution to Multitask Learning (MTL). By calculating how individual training examples from one task affect the performance of another, MTIF allows researchers to identify and prune harmful data points, effectively mitigating "negative transfer" and outperforming existing state-of-the-art MTL optimization methods.

What Problem Does This Paper Address?

Multitask Learning (MTL) is a powerful paradigm where a single model learns multiple tasks simultaneously, sharing information to improve general performance. However, it faces a major hurdle: negative transfer. This occurs when tasks are weakly related or have conflicting objectives, causing the joint training to perform worse than training tasks individually.

Traditionally, researchers measure "task relatedness" at a coarse level—treating an entire task as either "helpful" or "harmful." This ignores the reality that within a single task, some data points might be highly beneficial to a neighbor, while others are detrimental. Existing methods to measure this are either computationally prohibitive (requiring exhaustive retraining on every possible task combination) or rely on heuristic gradient comparisons that lack interpretability.

Methods

The authors propose MTIF, which adapts the concept of Influence Functions to the MTL setting.

  1. Mathematical Framework: They derive a first-order Taylor expansion to approximate the "Leave-One-Out" (LOO) effect. This estimates how the model's loss on a target task would change if a specific data point from a source task were removed, without actually retraining the model.
  2. Handling Sharing Schemes: The method is designed to work with both "hard" parameter sharing (shared bottom layers) and "soft" parameter sharing (regularization-based similarity).
  3. Decomposing Influence: The paper breaks down influence into three components:
  4. Within-task influence: How a point affects its own task.
  5. Between-task influence: How a point affects a different task.
  6. Shared influence: How the shared parameters act as a bridge for this interference.
  7. Scalability: To make this work for large neural networks, they integrate computational tricks from the TRAK framework, such as dimension reduction via random projections and ensembling multiple models to stabilize influence scores.
  8. Data Selection Strategy: Once MTIF scores are calculated, they rank training samples by their total influence and remove the most "harmful" fraction before a final retraining pass.

Datasets

The authors validated MTIF across a diverse range of benchmarks:

  • Synthetic Dataset: 10 tasks using linear regression to verify mathematical accuracy against ground-truth retraining.
  • Human Activity Recognition (HAR): 30 tasks (one per volunteer) classifying physical activities from sensor data.
  • CelebA: A large-scale face image dataset where 10 attributes (e.g., "Smiling," "Wearing Hat") are treated as separate tasks.
  • Office-31 & Office-Home: Standard domain adaptation/MTL benchmarks involving object classification across different visual domains (Amazon, DSLR, Webcam, etc.).
  • Corrupted Benchmarks: They created versions of Office-31 with 10% and 20% label noise to test if MTIF could specifically identify and remove "poisonous" data.

Key Insights and Ideas

  • Relatedness is Heterogeneous: A core "aha moment" is that task relatedness isn't a single scalar value. Even in a "related" task, there are outlier data points that cause negative transfer. MTIF captures this "fine-grained" reality.
  • Data-Centric vs. Optimization-Centric: Most MTL research focuses on balancing gradients or loss weights during training (e.g., GradNorm, PCGrad). MTIF is data-centric; it improves the model by cleaning the training set itself.
  • The Feedback Loop: The paper explicitly shows how shared parameters create a feedback mechanism. A data point in Task A changes the shared weights, which then indirectly impacts the task-specific parameters of Task B.

Key Results

  • High Fidelity: On synthetic and HAR datasets, MTIF scores showed a near-perfect linear correlation with actual brute-force retraining results.
  • Superior Accuracy: MTIF-guided data selection consistently outperformed state-of-the-art MTL optimizers. For example, on CelebA, MTIF achieved 79.94% accuracy compared to the vanilla MTL (EW) at 79.16% and the popular CAGrad at 79.46%.
  • Robustness to Noise: In the 20% label corruption test on Office-31, MTIF significantly widened the gap, achieving 83.85% accuracy, while the next best method (GradNorm) trailed at 82.82%. This proves MTIF is highly effective at identifying "harmful" instances.
  • Efficiency: Despite requiring an initial training pass and a retraining pass, the end-to-end runtime is comparable to complex per-step gradient balancing methods like CAGrad.

Limitations and Future Work

  • First-Order Approximation: MTIF relies on a Taylor expansion. While accurate for removing single points (LOO), it may lose precision when estimating the effect of removing large chunks of data (Leave-One-Task-Out) if the number of points is very high.
  • Architectural Scope: The current study focuses on standard computer vision and linear models. The authors suggest that extending this to Large Language Models (LLMs) and more complex architectures is a necessary next step.
  • Hyperparameter Tuning: The "removal ratio" (how much data to prune) is currently a hyperparameter that requires tuning on a validation set. Future work could look into automating this threshold.

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