Amalgamating Knowledge towards Comprehensive Classification

Chengchao Shen, Xinchao Wang, Jie Song, Li Sun, Mingli Song

Abstract

Deep learning models are often highly specialized, excelling in narrow domains but failing to generalize across broader tasks without extensive retraining. This paper introduces Knowledge Amalgamation (KA), a novel framework designed to synthesize the expertise of multiple pre-trained "teacher" models into a single, compact "student" model. Unlike traditional knowledge distillation, KA does not require the original labeled datasets. By leveraging intermediate feature representations and a two-step training strategy, the resulting student model not only masters the combined tasks of its teachers but frequently surpasses their individual performance.

Introduction: The Reusability Challenge in Deep Learning

The rapid proliferation of pre-trained deep learning models has created a vast library of specialized AI "experts." However, reusing these models to create a comprehensive classifier—for instance, one that identifies both bird species and car makes—typically requires starting from scratch with massive, labeled datasets. Often, the original data used to train these specialists is proprietary or no longer available, posing a significant barrier to model reusability.

While Knowledge Distillation (KD) facilitates the transfer of knowledge from a large teacher to a smaller student, it is generally limited to 1-to-1 transfers for identical tasks. This research addresses the "Knowledge Amalgamation" problem: training a single student to handle a "super-task" derived from $N$ specialized teachers without access to human-labeled training images.

Methodology

The proposed strategy for building a "super-student" involves two primary phases: Feature Amalgamation and Parameter Learning.

Feature Amalgamation

The student model is trained to match the internal "features" or intermediate representations of the teachers rather than just their final outputs. The researchers employ an auto-encoder architecture, utilizing $1 \times 1$ convolutions to compress concatenated teacher features into a compact map for the student. Two specific architectures were explored:

  • Direct Feature Amalgamation (DFA): Simultaneously merging features from all teachers.
  • Incremental Feature Amalgamation (IFA): A progressive pipeline that merges teachers two at a time.
The overall architecture of Knowledge Amalgamation, showing how multiple teacher networks guide a single student network through amalgamation modules.

Parameter Learning and Adaptation

To ensure the student's weights effectively capture these amalgamated features, the authors implemented a layer-by-layer training approach. A critical component is the Feature Adaption Module (FAM), a small $1 \times 1$ convolution layer that transforms features to survive non-parametric layers like ReLU or Pooling, which might otherwise degrade the signal. Finally, Joint Learning is applied—an end-to-end fine-tuning process that harmonizes the network and minimizes accumulated errors.

Comparison of Incremental (IFA) and Direct (DFA) Feature Amalgamation strategies for merging knowledge from multiple teachers.

Experimental Results

The framework was evaluated on four fine-grained classification datasets: CUB-200-2011 (birds), Stanford Dogs, FGVC-Aircraft, and Stanford Cars. In simulations where teachers were trained on disjoint subsets of a dataset (e.g., different dog breeds), the student was tasked with mastering the full set.

Key Findings

  • Superior Accuracy: On the Stanford Dogs dataset, the amalgamated student achieved 45.3% accuracy, vastly outperforming a standard Knowledge Distillation baseline (10.4%) and even exceeding a simple ensemble of the teachers (43.5%).
  • The "Super-Knowledge" Effect: Remarkably, the student often outperformed its masters on their own specialties. For example, on the FGVC-Aircraft dataset, the student scored 67.8% on a subset where the dedicated teacher scored 67.6%.
  • Cross-Pollination: Features learned for one task (e.g., identifying sedans) provided latent benefits for related tasks (e.g., identifying SUVs), suggesting that multi-teacher training creates more robust internal representations.

Discussion and Future Work

The success of Knowledge Amalgamation demonstrates that a student can effectively "inherit" and enhance the collective intelligence of specialized models. The primary limitation of this pilot study is the requirement for architectural homogeneity; both teachers and students currently share the same backbone (e.g., AlexNet).

Future research aims to bridge the "semantic gap" between heterogeneous architectures, potentially allowing for the amalgamation of diverse models (e.g., VGG and ResNet) into a single, versatile multi-task system.

Summary updated

BibTeX
@inproceedings{shen2019amalgamating,
  author = {Chengchao Shen and Xinchao Wang and Jie Song and Li Sun and Mingli Song},
  title = {{Amalgamating Knowledge towards Comprehensive Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.1609/aaai.v33i01.33013068},
}
Figure