An Efficient Federated Distillation Learning System for Multi-task Time Series Classification

Huanlai Xing, Zhiwen Xiao, Rong Qu, Zonghai Zhu, Bowen ZhaoarXiv 2021

TL;DR

EFDLS (Efficient Federated Distillation Learning System) is a novel framework designed for multi-task time series classification (TSC) in privacy-sensitive environments. By combining local student-teacher distillation with a server-side "matchmaking" scheme that pairs users with similar data expertise, the system enables fine-grained knowledge sharing without the performance degradation typically seen when averaging highly diverse models.

What Problem Does This Paper Address?

Time Series Classification (TSC) is critical for everything from monitoring heart health (ECG) to predicting traffic flow. However, two major hurdles exist for deploying these models at scale:

  1. Privacy: Data is often sensitive and cannot be centralized.
  2. Task Heterogeneity: Unlike standard Federated Learning (FL), which assumes all users are working on the same task, real-world mobile users often run different tasks (e.g., one user monitors motion, another monitors heart rate).

Traditional FL methods like FedAvg calculate a global average of all user weights. When tasks are diverse (Non-I.I.D. data), this "averaging" acts like a blunt instrument, often leading to "catastrophic forgetting" where a model loses its specialized local knowledge in favor of a mediocre global average. The authors aim to create a system that shares knowledge securely but only between users who have something relevant to teach each other.

Methods

The EFDLS system introduces two primary innovations:

  • Feature-Based Student-Teacher (FBST) Framework: Each user node runs two identical networks: a Student and a Teacher. The Student learns from the local data while simultaneously being "regularized" by the Teacher’s hidden layer representations via knowledge distillation. This helps the Student mine higher-quality features than it could alone.
  • Distance-Based Weights Matching (DBWM) Scheme: Instead of the server averaging all weights, it acts as a matchmaker.
  • Users upload their Student model's hidden layer weights.
  • The server calculates the Least Square Distance (LSD) between all pairs of uploaded weights to measure similarity.
  • For every user, the server finds a "partner" with the most similar weights (implying similar expertise).
  • The server swaps the weights between these partners.
  • Users load their partner's weights into their Teacher model for the next round of local training.

By updating the Teacher rather than the Student, the local model gains insights from a peer without having its own progress immediately overwritten.

Datasets

The authors evaluated EFDLS using the UCR 2018 archive, one of the most respected repositories for time series data. Because training across the entire archive is computationally expensive, they selected 44 datasets representing four scales:

  • Short: (e.g., Chinatown traffic, SonyAIBORobot sensors)
  • Medium: (e.g., CricketX motion, Meat spectrography)
  • Long: (e.g., ACSF1 device logs, Phoneme sensors)
  • Vary (Variable length): (e.g., GestureMidAir trajectory, PLAID device logs)

Key Insights and Ideas

  • Similarity as a Proxy for Expertise: The core "aha" moment is that weight similarity in hidden layers is a reliable indicator of task similarity. If two models have similar weights, they are likely extracting similar features, making them ideal candidates for knowledge exchange.
  • Fine-Grained vs. Coarse-Grained Sharing: Traditional FL is "coarse-grained"—it forces a consensus among all users. EFDLS is "fine-grained"—it allows for specialized clusters of knowledge to form and interact.
  • The Teacher as a Buffer: By loading external knowledge into a Teacher model rather than the primary Student model, the system provides a stable reference point for the Student to learn from, preventing the erratic jumps in accuracy often seen in decentralized learning.

Key Results

EFDLS was compared against seven benchmarks, including Baseline (no sharing), FedAvg, and Federated Transfer Learning (FTL).

  • Accuracy: EFDLS achieved the highest Mean Accuracy (0.7014) across all 44 datasets.
  • Win/Tie/Lose: EFDLS "won" (outperformed all others) on 18 out of 44 datasets. The next best competitor, FKD, won only 10.
  • Ranking: It secured the best Average Rank (2.1478), significantly outperforming traditional FedAvg (rank 7.5).
  • Ablation Study: The authors found that the system performs best when the loss function is heavily weighted toward supervised learning ($\epsilon = 0.9$) while still incorporating the distillation loss.

Limitations and Future Work

  • Computational Overhead: Each user must train two networks (Student and Teacher), which doubles the local memory and computation requirement compared to a single-network baseline.
  • Server Complexity: The weight matching scheme requires the server to calculate distances between all pairs of users ($O(N^2)$), which may become a bottleneck as the number of users grows into the thousands or millions.
  • Homogeneous Architecture: The current system requires all users to share the exact same network architecture (identical hidden layers) to allow for weight swapping.
  • Future Directions: The authors suggest exploring ways to handle heterogeneous architectures and further optimizing the communication efficiency for even larger-scale deployments.

Summary updated

BibTeX
@misc{xing2021efficient,
  author = {Huanlai Xing and Zhiwen Xiao and Rong Qu and Zonghai Zhu and Bowen Zhao},
  title = {{An Efficient Federated Distillation Learning System for Multi-task Time Series Classification}},
  year = {2021},
  eprint = {2201.00011},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2201.00011},
}
Figure