Association Graph Learning for Multi-Task Classification with Category Shifts

Jiayi Shen, Zehao Xiao, Xiantong Zhen, Cees G. M. Snoek, Marcel Worring

Multi-Task Learning (MTL) improves model performance by training on several related tasks simultaneously, sharing representations to learn a more robust overall model. In multi-task classification, tasks usually share the same label space but operate on different data distributions (e.g., classifying objects in photos vs. sketches, or diagnosing diseases from data collected at different hospitals).

However, a realistic but often overlooked problem in MTL is category shifts, where individual tasks lack training data for certain classes that will appear at test time. This paper introduces an "association graph" that links tasks, classes, and instances to transfer knowledge, using a novel entropy maximization technique to prevent the model from becoming biased toward the classes it explicitly observed during training.

The Problem: Category Shifts in Multi-Task Learning

Standard MTL assumes that every task has access to training data for every class. In the real world, this is rarely true. Due to privacy laws, geographic differences, or sheer chance, one hospital might have zero training examples of a specific rare skin lesion, while another hospital has plenty. At test time, both hospitals still need to be able to diagnose it.

Conventional vs. Category Shifts

The authors formalize this gap as category shifts. When faced with category shifts, standard MTL models form spurious correlations—they strongly associate a task only with the classes it saw during training, failing completely when asked to predict a missing class at test time. To generalize to such test data, it is crucial for individual tasks to leverage knowledge from related tasks.

Methodology: The Association Graph

To bridge the knowledge gap between tasks and missing classes, the authors propose a heterogeneous Association Graph and a specific regularization technique.

The Association Graph Structure
  1. Graph Construction: The model constructs a graph with three types of nodes: Task nodes (representing task-specific features), Class nodes (representing categorical information), and Instance nodes (the actual data samples).
  2. Learnable Edges: Because the nodes represent fundamentally different concepts, the authors use different learnable metric functions to calculate the edge weights (similarities) between them.
  3. Message Passing: Using a Graph Neural Network, knowledge is routed through the graph. An instance node from Task A can "query" the graph to pull in categorical knowledge about a missing class that was learned by Task B.
  4. Assignment Entropy Maximization: Naturally, the graph tends to build massive edge weights between a task and the classes it actually observed, ignoring the missing ones. To prevent this spurious correlation, the authors add a loss term that maximizes the entropy of the assignment weights between class nodes and task nodes. This forces each class node to balance its connections across all tasks, making the class knowledge task-agnostic and accessible to tasks that never saw that class.

Experimental Setup

The authors evaluate their method by artificially inducing "missing rates" (e.g., 75%, 50%, 25%, 0% of classes missing per task) across several datasets:

  • Office-Home: 4 domains (Artistic, Clipart, Product, Real-world) with 65 object categories.
  • Office-Caltech: 4 domains with 10 shared categories.
  • ImageCLEF: 4 domains with 12 shared categories.
  • Skin-Lesion: A real-world medical dataset combining data from three different healthcare facilities sharing skin lesion diagnoses.

Key Insights and Results

The authors measure performance using the Harmonic Mean (H) of the accuracy on observed classes and missing classes, ensuring the model doesn't just overfit to one or the other.

  • Extreme Category Shifts: On the Office-Home dataset with a brutal 75% missing rate (meaning each class is only seen by one of the four tasks during training), the proposed method achieved a harmonic mean of 60.59%, crushing the next best baseline which scored only 50.26%.
  • Medical Applicability: On the Skin-Lesion dataset with a 67% missing rate, the method achieved an 18.17% harmonic mean, outperforming standard Empirical Risk Minimization (15.16%).
  • Graph Depth Matters: Ablation studies showed that performance peaks at 4 message-passing layers. A 0-layer graph (no knowledge transfer) performs poorly, proving that multi-hop routing across the entire graph is necessary to bridge the gap between tasks and missing classes.
  • Feature Disentanglement: Visualizations in the paper demonstrate that without the graph, features of missing classes collapse into a single indistinguishable blob. The association graph successfully pulls the features of missing classes apart, clustering them accurately alongside the observed classes.

Limitations and Future Work

Constructing and updating a heterogeneous graph with instance nodes at every step introduces computational overhead compared to standard shared-backbone MTL approaches. Additionally, the evaluation relies on artificially dropping classes at uniform rates across tasks, which may not perfectly mirror the messy, unbalanced nature of real-world missing data.

For future work, this framework naturally lends itself to privacy-preserving or Federated Learning scenarios—such as networks of hospitals—where raw data cannot be shared, but task and class nodes could be securely exchanged to improve collective diagnostic power.

Summary updated

BibTeX
@inproceedings{shen2022association,
  author = {Jiayi Shen and Zehao Xiao and Xiantong Zhen and Cees G. M. Snoek and Marcel Worring},
  title = {{Association Graph Learning for Multi-Task Classification with Category Shifts}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Q82UCjXNSWL},
}
Figure