Federated Action Recognition on Heterogeneous Embedded Devices

Pranjal Jain, Shreyas Goenka, Saurabh Bagchi, Biplab Banerjee, Somali ChaterjiarXiv 2021

This paper, published in the IEEE Transactions on Artificial Intelligence, presents a framework for performing video action recognition on resource-constrained edge devices using Federated Learning (FL). By combining knowledge distillation with an asynchronous update strategy, the authors demonstrate how to train complex models across a fleet of diverse hardware without compromising data privacy or waiting for the slowest device in the network.

The Challenge of Edge Action Recognition

Action recognition—identifying activities like "walking" or "cooking" from video clips—is a computationally heavy task. It typically requires massive datasets (like Kinetics-400) and significant compute power to process spatio-temporal features. Deploying these models on edge devices, such as CCTV cameras, faces three major hurdles:

  1. Resource Constraints: Edge devices lack the memory and GPU power to train large models from scratch.
  2. Data Privacy: Video data is sensitive; users often prefer it remains on local devices rather than being uploaded to a central cloud.
  3. Hardware Heterogeneity: Real-world networks often contain diverse hardware, such as the powerful NVIDIA Jetson AGX Xavier alongside the much weaker Jetson Nano. In standard "Synchronous" Federated Learning, the entire network must wait for the slowest device (the "straggler") to finish its work before the global model can update.

Proposed Framework

The authors propose a two-stage pipeline designed to overcome these limitations through server-side initialization and decentralized fine-tuning.

Overview of the proposed framework including Knowledge Distillation with a Teaching Assistant and Asynchronous Federated Learning.

1. Server-Side Knowledge Distillation (KD)

Before involving the edge devices, the central server performs KD on a large dataset (Kinetics-400). The innovation here is the use of a Teaching Assistant (TA)—an intermediate ResNet-26 model—to bridge the gap between a large Teacher (ResNet-34) and a compact Student (ResNet-18). The authors found that "distilling" knowledge directly from a giant model into a tiny one is inefficient; the TA helps the student learn complex features more effectively.

2. Asynchronous Federated Learning

Once the student model is initialized, it is sent to edge devices for fine-tuning on local, private data (such as HMDB51 or UCF101).

  • Asynchronous Updates: Unlike standard Federated Averaging (FedAvg), this framework allows clients to send updates whenever they finish, preventing faster devices from sitting idle.
  • Staleness Weighting: To prevent old updates from slow devices from negatively impacting the global model, the authors use a staleness function to give late updates less weight.
  • Head-only Fine-tuning: To minimize power consumption, only the final fully connected layer of the model is trained on the edge.

Key Insights and Results

The "TA" Advantage

Empirical results show that using a Teaching Assistant improved the student's accuracy on the Kinetics dataset from 53.8% (direct distillation) to 54.6%. This improvement provides a more stable and accurate starting point for subsequent edge fine-tuning.

Accuracy comparison showing the benefit of using a Teaching Assistant (TA) during Knowledge Distillation.

Solving the Straggler Problem

Testing on a heterogeneous testbed revealed that a Jetson Nano is 4.7x slower per epoch than an AGX Xavier. The asynchronous strategy successfully mitigated this imbalance, reducing total training time by 40% compared to synchronous methods.

Privacy and Performance

The framework achieves accuracy comparable to centralized models while keeping raw video data strictly on local devices. On the HMDB51 dataset, the federated model achieved 55.6% per-clip accuracy, remarkably close to the centralized baseline of 57.3%.

Conclusion and Future Work

While the framework effectively addresses hardware heterogeneity and privacy, challenges remain regarding Non-IID Data (where data distribution varies significantly between cameras) and Network Dynamics (fluctuating bandwidth). Future research will explore more dynamic ways to partition data and models across the edge-to-cloud continuum to further enhance efficiency.

Summary updated

BibTeX
@misc{jain2021federated,
  author = {Pranjal Jain and Shreyas Goenka and Saurabh Bagchi and Biplab Banerjee and Somali Chaterji},
  title = {{Federated Action Recognition on Heterogeneous Embedded Devices}},
  year = {2021},
  eprint = {2107.12147},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.12147},
}
Figure