Deep Multi-task Augmented Feature Learning via Hierarchical Graph Neural Network

Pengxin Guo, Chang Deng, Linjie Xu, Xiaonan Huang, Yu Zhang

TL;DR

This paper introduces the Hierarchical Graph Neural Network (HGNN), a novel framework that improves multi-task learning by treating datasets as graphs. By modeling relationships both within a single task and across different tasks, the HGNN generates "augmented features" that provide deep context, significantly boosting performance in both classification and regression settings.

What Problem Does This Paper Address?

Multi-task learning (MTL) is based on a simple premise: learning related tasks together should be more effective than learning them in isolation. However, the "how" is tricky. Most existing methods share information through common parameters or shared feature layers.

The authors identify a specific gap: how do we represent a task itself? While a training dataset contains all the information needed to define a task, standard architectures like CNNs or RNNs aren't designed to extract a single, cohesive "task representation" from a collection of data points. Furthermore, modeling the nuanced relationships between these tasks—deciding which tasks should influence each other and by how much—remains a significant challenge in deep learning.

Methods

The authors propose a two-level Hierarchical Graph Neural Network (HGNN) to bridge this gap:

  1. Level 1: Intra-task GNN (The Local View): The model treats each task's dataset as a graph where nodes are data points and edges represent similarities. An "intra-task" GNN aggregates information from neighboring data points to learn a powerful representation for each individual point. By applying a max-pooling operation over these points, the model generates a global task embedding (and class embeddings for classification).

  2. Level 2: Inter-task GNN (The Global View): Once task embeddings are created, they are treated as nodes in a higher-level graph. An "inter-task" GNN uses an attention mechanism (specifically a modified Graph Attention Network using cosine similarity) to model the relationships between tasks. This allows a task to "update" its own representation based on information from related tasks.

  3. Feature Augmentation: The final "augmented" feature is created by concatenating the original data features with these learned task and class embeddings. This enriched vector is then fed into standard multi-task learning models.

For testing (where labels are unknown), the model uses a clever "try-all" strategy: it concatenates the test sample with every possible class embedding and selects the one that yields the highest prediction probability.

Datasets

The model was evaluated on four benchmark datasets:

  • ImageCLEF: A domain adaptation dataset with 12 categories across four tasks (Caltech-256, ImageNet, Pascal VOC, and Bing).
  • Office-Caltech-10: 10 categories shared across four domains (Amazon, Webcam, DSLR, and Caltech).
  • Office-Home: A more challenging dataset with 15,500 images across 65 classes in four domains (Artistic, Clip Art, Product, and Real-world).
  • SARCOS: A regression dataset involving the inverse dynamics of a 7-DOF robot arm (7 tasks).

Key Insights and Ideas

  • Data as a Graph: The core "aha" moment is shifting from viewing a dataset as a list of independent samples to viewing it as a relational graph. This allows the model to capture the underlying structure of the task itself.
  • Granularity Matters: By introducing "class embeddings" alongside "task embeddings," the model can share information at a finer level of detail. For example, the "dog" class in an "Artistic" task can learn specifically from the "dog" class in a "Real-world" task.
  • Theoretical Guarantee: The authors provide mathematical proofs (Theorems 1 and 2) showing that incorporating task embeddings is guaranteed to lower training loss and improve generalization bounds compared to models without them.
  • Small is Beautiful: Sensitivity analysis revealed that the model performs best with relatively small embedding dimensions (e.g., 8). Larger dimensions (64+) actually caused performance to drop, suggesting that task-level context is most effective when it is a concise summary rather than a massive feature vector.

Key Results

The HGNN was integrated into three baseline MTL models: DMTL, DMTRL, and TNRMTL.

  • Consistent Gains: Across all datasets, the HGNN-augmented versions outperformed the baselines.
  • Data Efficiency: The improvements were most pronounced when training data was scarce (e.g., using only 50% of the training set), proving that the hierarchical context helps the model learn faster with less data.
  • Stability: The standard deviation of results was lower with HGNN, indicating that the augmented features make the training process more stable.
  • Visualization: t-SNE plots showed that the augmented features resulted in much tighter, more separable clusters for different classes compared to standard MTL features.

Limitations and Future Work

  • Computational Complexity: While not explicitly detailed as a failure, constructing graphs for very large datasets can be computationally expensive, as the adjacency matrix grows with the number of data points.
  • Inference Overhead: The testing strategy requires running a forward pass for every possible class to find the best match. This could become a bottleneck for datasets with hundreds or thousands of classes.
  • Future Directions: The authors suggest applying HGNN to a wider variety of multi-task models beyond the three tested, potentially exploring more efficient ways to handle the class-matching process during inference.

Summary updated

BibTeX
@inproceedings{guo2021deep,
  author = {Pengxin Guo and Chang Deng and Linjie Xu and Xiaonan Huang and Yu Zhang},
  title = {{Deep Multi-task Augmented Feature Learning via Hierarchical Graph Neural Network}},
  booktitle = {ECML/PKDD},
  year = {2021},
  doi = {10.1007/978-3-030-86486-6\_33},
}
Figure