Skip to main content
QUICK REVIEW

[Paper Review] It's always personal: Using Early Exits for Efficient On-Device CNN Personalisation

Ilias Leontiadis, Stefanos Laskaridis|arXiv (Cornell University)|Feb 2, 2021
IoT and Edge/Fog ComputingComputer Science15 references8 citations
TL;DR

This paper proposes PersEPhonEE, a framework that enables efficient on-device personalization of CNNs by attaching early exits to a pretrained model and training them semi-supervised on-device. By personalizing only the early exits while keeping the backbone frozen, the method achieves up to 3.2× higher inference throughput, 2.2× faster training, and up to 15.9% higher accuracy compared to the global model, even with limited or unlabelled data.

ABSTRACT

On-device machine learning is becoming a reality thanks to the availability of powerful hardware and model compression techniques. Typically, these models are pretrained on large GPU clusters and have enough parameters to generalise across a wide variety of inputs. In this work, we observe that a much smaller, personalised model can be employed to fit a specific scenario, resulting in both higher accuracy and faster execution. Nevertheless, on-device training is extremely challenging, imposing excessive computational and memory requirements even for flagship smartphones. At the same time, on-device data availability might be limited and samples are most frequently unlabelled. To this end, we introduce PersEPhonEE, a framework that attaches early exits on the model and personalises them on-device. These allow the model to progressively bypass a larger part of the computation as more personalised data become available. Moreover, we introduce an efficient on-device algorithm that trains the early exits in a semi-supervised manner at a fraction of the whole network's personalisation time. Results show that PersEPhonEE boosts accuracy by up to 15.9% while dropping the training cost by up to 2.2x and inference latency by 2.2-3.2x on average for the same accuracy, depending on the availability of labels on-device.

Motivation & Objective

  • Address the challenge of on-device model personalization under strict computational, memory, and privacy constraints on mobile devices.
  • Overcome the limitations of centralized personalization, including privacy leakage and high cloud infrastructure costs.
  • Enable accurate and efficient personalization using only on-device data, even when labels are scarce or absent.
  • Reduce training and inference overhead by personalizing only early exits while keeping the main network frozen.
  • Design a system that dynamically adapts inference depth based on input confidence, improving efficiency without sacrificing accuracy on out-of-distribution samples.

Proposed method

  • Augment a pretrained CNN with multiple early exits at different depths, each equipped with a lightweight classifier for personalization.
  • Train the early exits using a self-supervised distillation technique that leverages the final exit’s output as a pseudo-label source.
  • Use a confidence threshold at inference time to allow early exits for easy inputs, reducing FLOPs and latency.
  • Maintain the original backbone weights during training to prevent catastrophic forgetting and ensure robustness to out-of-distribution inputs.
  • Implement an orchestrator that selects the optimal exit based on device capabilities and desired accuracy-latency trade-offs.
  • Enable both supervised and semi-supervised training by using ground-truth labels when available or pseudo-labels from the last exit otherwise.

Experimental results

Research questions

  • RQ1Can early exits in a pretrained CNN be efficiently personalized on-device with minimal computational cost?
  • RQ2How does on-device personalization via early exits compare to full-network fine-tuning in terms of accuracy, latency, and training time?
  • RQ3To what extent can semi-supervised learning using pseudo-labels from the final exit improve personalization accuracy when labels are scarce?
  • RQ4Can early-exit personalization maintain high accuracy on out-of-distribution inputs while accelerating inference for easy samples?
  • RQ5What is the impact of personalizing only early exits on model efficiency and resource usage compared to full network adaptation?

Key findings

  • PersEPhonEE achieves up to 15.9% higher accuracy on personalized data compared to the original global model, especially when labels are available.
  • Training time for a single early exit is up to 23× faster than fine-tuning the entire network, enabling overnight on-device training with minimal resource usage.
  • Inference throughput improves by up to 3.2× (2.2× with soft labels) due to early exits, reducing latency for easy inputs without compromising accuracy.
  • The framework reduces FLOPs by up to 3.1× and parameters by up to 25.1× compared to the full model, while maintaining similar accuracy.
  • The system maintains original model accuracy on out-of-distribution inputs by routing them to the final exit, ensuring robustness.
  • On-device training of an early exit with 2048 samples takes only 1.7 hours on a mobile CPU, demonstrating feasibility for real-world deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.