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

Joint Data-Task Generation for Auxiliary Learning

Hong Chen, Xin Wang, Yuwei Zhou, Yijian Qin, Chaoyu Guan, Wenwu Zhu

In the world of machine learning, auxiliary learning is akin to a student taking a logic class to improve at math. By training on a related secondary task, a model can develop better internal representations that ultimately boost its performance on the primary goal.

However, there is a catch: what if the logic class is poorly taught or completely irrelevant? In machine learning, poorly chosen auxiliary tasks can lead to "negative transfer," where the extra data confuses the model and degrades performance. Traditionally, researchers have attempted to mitigate this by carefully reweighting losses, but this approach still relies on having high-quality auxiliary data to begin with.

A new paper from researchers at Tsinghua University proposes a radical shift: Joint Data-Task Generation for Auxiliary Learning (DTG-AuxL). Instead of merely selecting from a list of existing tasks, the authors ask: why not have the model generate its own beneficial auxiliary data and tasks?

The Problem with Manual Task Selection

Most auxiliary learning methods assume the availability of a beneficial secondary dataset. For example, if you are classifying bird species (the primary task), you might use bird attribute detection as an auxiliary task to help the model learn relevant features.

Unfortunately, manual task collection is difficult. It requires domain expertise, and sometimes an intuitively "obvious" auxiliary task fails to help the model generalize. Current state-of-the-art methods focus on reweighting existing tasks—essentially trying to ignore the unhelpful ones. The authors argue that this approach is fundamentally limited. If all available auxiliary tasks are mediocre, reweighting cannot salvage the performance. To solve this, they propose creating a generator that synthesizes new features and labels specifically designed to provide the optimal gradient signal for the primary task.

The DTG-AuxL Framework

The core of the paper is the DTG-AuxL framework, which automates the creation of custom auxiliary data and labels tailored to improve a primary task. It consists of two main components: a Joint Generator and a bi-level optimization strategy.

Architecture of the DTG-AuxL framework

1. The Joint Generator (JG)

  • Feature Generator: Instead of generating raw inputs like images (which is computationally expensive and complex), the generator operates in the feature space—the output of the model's backbone. It uses a mix of linear masks and non-linear multi-layer perceptrons (MLPs) to combine existing features into new, synthetic representations.
  • Label Generator: This component creates the "ground truth" for the synthetic features. Crucially, it includes a label bias term that ensures the generated labels stay semantically grounded in the primary task's label space, preventing the model from drifting into nonsensical representations.

2. Bi-level Optimization

  • Lower Level (Task Learning Model): The main model (acting as the "student") learns from both the original primary data and the generated auxiliary data.
  • Upper Level (Joint Generator): The generator (acting as the "teacher") is updated based on how well the student performs on a validation set for the primary task. Using implicit gradients, the generator adjusts its parameters to produce data that directly improves the student's primary task performance.

To prevent the generator from collapsing and assigning identical labels to every synthetic sample, the authors introduce an Instance Regularization term, forcing the generated labels to maintain diversity.

Experimental Setup

The researchers evaluated DTG-AuxL across a variety of challenging scenarios:

  • Vision: CUB-200 (fine-grained bird classification) and CIFAR-100.
  • Recommendation Systems: Amazon Toys and Amazon Movies (predicting ratings via regression).
  • Cross-Domain: "Pet-CUB," where the primary task is identifying pets, but the auxiliary data comes from a bird dataset.
  • Few-shot Learning: Testing the method's efficacy when primary data is extremely scarce (e.g., only 5 or 10 images per category).

Key Insights

  • Generation Outperforms Selection: The most significant takeaway is that synthesizing a task from scratch is often more effective than attempting to filter or reweight a poorly suited manual task.
  • Latent Space Efficiency: By generating data in the feature space rather than the input space (pixels or raw text), the framework becomes highly adaptable. It acts as a "plug-and-play" module for almost any architecture, whether it is a ResNet for images or an AutoINT for tabular data.
  • Hybrid Learning: Visualizations of the generator's output reveal that it creates synthetic labels that blend primary and secondary features (e.g., recognizing primary "cat" features while acknowledging secondary "bird" features). This hybrid learning helps the model establish more robust decision boundaries.

Key Results

DTG-AuxL consistently outperformed all baselines, including popular methods like GradNorm, AuxL, and MAXL.

Performance comparison across various datasets
  • Superiority over Single Task Learning (STL): On the CUB dataset using a ResNet50 backbone, the STL baseline achieved 80.46% accuracy. DTG-AuxL boosted this performance to 81.73%.
  • Fixing "Harmful" Tasks: In cross-domain scenarios (like Pet-CUB) where standard auxiliary learning actually dropped performance below the baseline due to negative transfer, DTG-AuxL was able to reverse the trend and provide a net gain.
  • Few-shot Power: The most dramatic improvements were observed in few-shot experiments. In a 5-shot CUB setting, while the STL baseline struggled at 44.99%, DTG-AuxL soared to 52.33%, proving that generated tasks are exceptionally valuable when real training data is scarce.

Limitations and Future Work

While highly effective, the framework does present some challenges:

  • Computational Cost: Bi-level optimization requires calculating second-order derivatives (Hessians). Although the authors utilized an approximation (truncated Neumann series) to make this tractable, it remains more computationally intensive than standard training.
  • Hyperparameter Sensitivity: The balance between linear and non-linear generation terms requires careful tuning to achieve optimal results.
  • Future Directions: The authors suggest exploring more adaptive generators capable of automatically determining the optimal dimensionality for the generated label space.

For researchers and practitioners struggling with small datasets or noisy, unhelpful auxiliary tasks, DTG-AuxL offers a compelling new paradigm: if you cannot find a good teacher, build one.

Summary updated

BibTeX
@inproceedings{chen2023joint,
  author = {Hong Chen and Xin Wang and Yuwei Zhou and Yijian Qin and Chaoyu Guan and Wenwu Zhu},
  title = {{Joint Data-Task Generation for Auxiliary Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=GtgFo5lmOB},
}
Figure