Semi-Supervised Knowledge Amalgamation for Sequence Classification

Jidapa Thadajarassiri, Thomas Hartvigsen, Xiangnan Kong, Elke A. Rundensteiner

Introduction

In specialized fields like medicine or industrial monitoring, labeled data is often expensive and rare. While researchers frequently release pre-trained models (teachers), these models are usually specialists—one might recognize "walking" and "running," while another identifies "sitting" and "standing." The goal of Knowledge Amalgamation (KA) is to create a single "student" model that becomes an expert in the union of all these specialized classes.

Overview of the Knowledge Amalgamation process for sequence classification, where multiple specialized teachers inform a comprehensive student model.

However, existing KA methods face significant hurdles. First, teachers can be "confidently wrong" when encountering classes outside their training set (overconfidence). Second, most KA research has focused on image data, leaving a gap in effective methods for sequence or time-series data. This paper introduces Semi-supervised Knowledge Amalgamation (SKA) to address these issues, leveraging a small amount of labeled data to significantly improve the reliability of knowledge transfer.

The Teacher Coordinator (TC) Framework

The authors propose the Teacher Coordinator (TC), a two-step framework designed specifically for sequence data using Recurrent Neural Networks, specifically LSTMs.

Step 1: Teacher Trust Learner (TTL)

The TTL is a meta-model trained on a small subset of labeled data, which can be as little as 2% of the total dataset. Its primary job is to analyze an input sequence and estimate the probability that a specific teacher is an actual expert on that instance. It essentially learns "who to listen to" for different types of data, providing the ground truth necessary to calibrate overconfident teachers.

Step 1 of the Teacher Coordinator framework: Training the Teacher Trust Learner (TTL) model using a small labeled dataset.

Step 2: Knowledge Amalgamation and Student Training

Once the trust scores are established, the Knowledge Amalgamator takes the raw probability outputs from all teachers and rescales them using the TTL's trust scores. This creates a "surrogate label" that is much more accurate than any single teacher's output. Instead of just averaging teacher outputs—which allows a loud, wrong teacher to drown out a quiet, right one—this framework effectively "mutes" teachers operating outside their area of expertise. Finally, a student LSTM is trained to mimic these amalgamated labels across the entire dataset, including both the tiny labeled portion and the large unlabeled portion.

Experimental Evaluation

The researchers evaluated their approach on four diverse real-world time-series datasets:

  • SyntheticControl (SYN): Control chart patterns of machine parameters (6 classes).
  • MelbournePedestrian (PED): Pedestrian counts at different city locations (10 classes).
  • Human Activity Recognition (HAR): Smartphone sensor data for physical activities (6 classes).
  • ElectricDevices (ELEC): Power usage patterns from UK households (7 classes).

Key Results and Insights

The TC framework demonstrated superior performance across all benchmarks:

  • Accuracy Gains: TC outperformed eight state-of-the-art baselines, including Knowledge Distillation and unsupervised KA methods, by an average of 15% in accuracy.
  • Data Efficiency: The model achieved high performance with only 2% to 8% of the training data being labeled. This suggests that a minimal amount of supervision is sufficient to drastically improve knowledge transfer reliability.
  • Robustness to Overconfidence: In experiments where one teacher was intentionally made more prone to overconfidence on unknown classes, TC maintained a 13% lead over the next best method, which struggled to filter out the overconfident teacher's errors.
  • Scalability: The performance gap between TC and other methods actually increased as more teachers (up to 5) were added to the mix, highlighting its effectiveness in complex multi-teacher scenarios.

Conclusion and Future Work

The Teacher Coordinator framework provides a robust solution for amalgamating knowledge from specialized sequence models. By using a small amount of labeled data to learn teacher reliability, it creates a student model capable of handling comprehensive class sets with high accuracy. Future work could explore how this framework performs with other architectures like Transformers or investigate more complex hierarchical class relationships between teachers.

Summary updated

BibTeX
@inproceedings{thadajarassiri2021semi,
  author = {Jidapa Thadajarassiri and Thomas Hartvigsen and Xiangnan Kong and Elke A. Rundensteiner},
  title = {{Semi-Supervised Knowledge Amalgamation for Sequence Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i11.17185},
}
Figure