NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Auxiliary Task Reweighting for Minimum-data Learning

Baifeng Shi, Judy Hoffman, Kate Saenko, Trevor Darrell, Huijuan Xu

Overview

Training deep learning models with minimal data is a major hurdle in AI. This paper introduces ARML (Auxiliary Task Reweighting for Minimum-data Learning), a method that automatically determines how much to trust various "helper" tasks to boost a main task's performance. By treating auxiliary tasks as a mathematical "prior" and matching their gradients to the main task, ARML significantly reduces the amount of labeled data needed to achieve high accuracy.

The Challenge of Data Scarcity

Supervised deep learning is notoriously data-hungry. While we have massive datasets for general objects, many specialized fields (like medical imaging or rare language processing) suffer from "data scarcity."

One common fix is to use auxiliary tasks—secondary challenges like predicting image rotation or identifying related attributes—to provide extra supervision. However, not all auxiliary tasks are created equal. Some help the main task, while others might actually hinder it (a phenomenon known as "negative transfer"). Traditionally, researchers had to manually tune the "weight" or importance of each task using expensive trial-and-error (grid search). The authors tackle a specific question: How can we automatically and efficiently weight these auxiliary tasks to minimize the data requirement of the main task?

Methodology: A Bayesian Approach to Task Reweighting

The researchers approach the problem through a Bayesian lens. In standard learning, we combine data likelihood with a "prior" (our pre-existing belief about what the model parameters should look like).

  1. The Surrogate Prior: The authors propose that a weighted combination of auxiliary tasks can act as a "surrogate prior" for the main task. If the auxiliary tasks are relevant, this prior will point the model toward the correct solution even when main-task data is sparse.
  2. Minimizing Divergence: The goal is to adjust the weights ($\alpha$) of the auxiliary tasks so that this surrogate prior is as close as possible to the "true" distribution of the main task.
  3. The Gradient Trick (Fisher Divergence): Comparing probability distributions directly is mathematically "intractable" because of a pesky normalization constant called the partition function. To bypass this, the authors use Fisher Divergence. Instead of comparing the distributions themselves, they compare the gradients (scores) of the loss functions. If the gradient of an auxiliary task points in the same direction as the main task's gradient, that task gets a higher weight.
  4. Langevin Dynamics: To estimate these gradients effectively during training, they use a technique called Langevin dynamics, which essentially involves adding a specific amount of noise to the Stochastic Gradient Descent (SGD) process to "sample" the parameter space.

Experimental Setup

The authors evaluated ARML across three distinct scenarios:

  • Semi-supervised Learning: Used CIFAR-10 and SVHN, where only a small fraction of the images (e.g., 1,000 or 4,000) were labeled.
  • Multi-label Classification: Used CelebA (200k face images with 40 attributes). They picked one attribute as the main task and used the other 39 as auxiliary tasks, using only 1% of the labels for the main task.
  • Few-shot Domain Adaptation: Used the PACS benchmark (Photo, Art, Cartoon, Sketch). They treated one domain as the target (main task) and the others as sources (auxiliary tasks), testing with as few as 1 to 5 labels per class.

Key Insights

  • Gradients as a Proxy for Relevance: The core "aha moment" is that we don't need to know the "true prior" to align tasks. By minimizing the distance between the gradients of the main task and the weighted auxiliary tasks, we can find the optimal weights on the fly.
  • Automatic Intuition: In the CelebA experiments, when the main task was "5 o'clock shadow," ARML automatically assigned the highest weights to "Mustache," "Bald," and "Sideburns." It assigned the lowest weights to "Wearing Lipstick" or "Smiling." The model learned human-like task relationships without being told.
  • Data Efficiency: The method is remarkably robust. The authors found that the task weights calculated using only one image per class were nearly identical to those calculated using the full dataset. This means the "signal" for which tasks are helpful is present even in tiny amounts of data.
Task weight robustness across label counts

Results and Performance

  • Cutting Data in Half: On CIFAR-10, ARML achieved the same accuracy as the baseline while using only half the labeled data.
  • Outperforming Baselines: In semi-supervised learning, ARML outperformed other popular reweighting schemes like GradNorm and AdaLoss, coming very close to the "upper bound" set by exhaustive grid search but at a fraction of the computational cost.
Accuracy vs. Number of Labels
  • Few-Shot Success: In domain adaptation on the PACS dataset, adding ARML to existing methods provided a ~4% absolute improvement in accuracy when only 5 labels per class were available.

Limitations and Future Directions

  • Computational Overhead: While more efficient than a grid search, the use of Langevin dynamics and gradient comparisons adds some computational weight to the early stages of training.
  • Task Pool Dependency: ARML can only weight the tasks it is given. It cannot "invent" a helpful auxiliary task if none of the provided ones are relevant.
  • Complex Architectures: The paper focuses on shared-backbone models. Future work could explore how this reweighting behaves in more complex, multi-branch architectures or in non-vision domains like Natural Language Processing (NLP).

Summary updated

BibTeX
@inproceedings{shi2020auxiliary,
  author = {Baifeng Shi and Judy Hoffman and Kate Saenko and Trevor Darrell and Huijuan Xu},
  title = {{Auxiliary Task Reweighting for Minimum-data Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2020},
  url = {https://openreview.net/forum?id=2YngfYuAJCD},
}
Figure