Amalgamating Multi-Task Models with Heterogeneous Architectures

Jidapa Thadajarassiri, Walter Gerych, Xiangnan Kong, Elke A. Rundensteiner

Introduction

Multi-task learning (MTL) is essential for complex autonomous systems, such as self-driving cars, which must simultaneously perform diverse tasks like pedestrian detection, traffic light recognition, and route planning. However, training these models from scratch typically requires vast amounts of labeled data, which is both expensive and time-consuming to acquire.

A promising alternative is Knowledge Amalgamation (KA), where knowledge from multiple specialized, pre-trained "teacher" models is transferred into a single, unified "student" model using only unlabeled data. A significant challenge in KA is handling heterogeneous architectures. Most existing methods assume teachers share the same backbone (e.g., all ResNet-50). In practice, the best models for different tasks often use different architectures (e.g., VGG, DenseNet, or AlexNet), which have varying layer counts and feature dimensions.

The VENUS Framework

To address these architectural discrepancies, the authors introduce VENUS (Versatile Common Feature Consolidator). This framework enables a student model to learn from diverse teachers by aligning internal shared representations rather than just final outputs.

The VENUS framework facilitates knowledge amalgamation from multiple heterogeneous teacher models into a single student model using unlabeled data.

The VENUS framework consists of three core components:

  1. Shared Representation Learning: Instead of mimicking noisy final predictions, VENUS aligns the student's internal features with the common feature representations of the teachers. By focusing on these internal "bottlenecks," the student captures the underlying logic of the tasks rather than just memorizing labels.
  2. Feature Consolidators and Adaptors: To bridge the gap between different architectures, VENUS employs teacher-specific adaptors. These small networks project the student’s features into the specific dimensionality and scale of each teacher, acting as "translators" between diverse feature spaces.
  3. Consensus Prediction: When teachers overlap on a task but provide differing outputs, VENUS calculates a logit-based consensus. This provides a stable and robust training signal for the student's task-specific heads compared to simple majority voting.

Experimental Evaluation

The researchers evaluated VENUS on three benchmarks: PASCAL VOC 2007 (20 object classification tasks), 3D Shapes (4 property identification tasks), and CIFAR-10 (10 binary classification tasks). To test architectural robustness, they used combinations of ResNet18, DenseNet, VGG, and AlexNet as teachers, while typically using ResNet18 as the student backbone.

Key Results

  • Superior Performance: VENUS consistently outperformed five baseline methods, including standard Knowledge Distillation (KD) and Multi-Task Common Feature Learning (CFL), achieving the best average rank across all datasets.
  • Architectural Robustness: The framework maintained high accuracy even when teachers had significantly different feature scales (e.g., DenseNet vs. VGG), where simpler methods struggled to reconcile conflicting signals.
  • Deployment Efficiency: The teacher-specific adaptors are only required during training to calculate the loss. The final student model remains compact and efficient, making it ideal for real-time deployment in resource-constrained environments.

Conclusion and Future Work

VENUS demonstrates that internal feature alignment via adaptors is a highly effective strategy for multi-task knowledge amalgamation from heterogeneous sources. While the current study focuses on classification, future research could extend this approach to more complex structured outputs, such as object detection bounding boxes or semantic segmentation. Additionally, exploring how the framework handles noisy or sub-optimal teacher models remains an important area for further investigation.

Summary updated

BibTeX
@inproceedings{thadajarassiri2024amalgamating,
  author = {Jidapa Thadajarassiri and Walter Gerych and Xiangnan Kong and Elke A. Rundensteiner},
  title = {{Amalgamating Multi-Task Models with Heterogeneous Architectures}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2024},
  doi = {10.1609/aaai.v38i14.29459},
}
Figure