Abstract
Deep learning models are increasingly deployed on resource-constrained edge devices, such as wearables and medical sensors. Multi-exit architectures (MEAs) address the computational demands of these devices by allowing early inference at intermediate layers. However, early exits typically exhibit lower accuracy and are sensitive to the inherent noise in sensor data. This paper introduces Consistent Exit Training (CET), a novel framework that employs consistency regularization to enhance the robustness and accuracy of MEAs. By enforcing prediction invariance between clean and perturbed inputs across all exits, CET overcomes the performance ceilings of traditional knowledge distillation and provides a superior accuracy-efficiency trade-off for sensor-based tasks.
Introduction
The proliferation of deep learning in mobile and wearable technology has created a demand for models that can operate within tight power and computational budgets. Multi-exit architectures (MEAs) have emerged as a promising solution, enabling "early exits" when the model reaches a sufficient confidence level at an intermediate layer. Despite their potential, MEAs face significant challenges: early exits often lack the capacity for high accuracy, and existing training methods like knowledge distillation cannot improve the performance of the final exit. Furthermore, sensor data is frequently noisy and heterogeneous, complicating feature extraction in shallower layers.
Methodology
The proposed Consistent Exit Training (CET) framework addresses these challenges through an architecture-agnostic approach based on consistency regularization. The core principle is that a robust model should yield identical predictions for a given data point regardless of whether it is "clean" or subjected to minor perturbations.
CET incorporates several key components:
- Dual-Loss Optimization: The model is trained using a joint objective function ($\mathcal{L}_{Joint}$) that combines standard supervised classification loss ($\mathcal{L}_s$) with a consistency loss ($\mathcal{L}_c$) at every exit.
- Sensor-Specific Perturbations: To generate "noisy" variants, the framework applies transformations such as additive/multiplicative jitter, time warping, and random segment masking.
- Dynamic Confidence Thresholding: A curriculum learning strategy is employed where consistency is initially enforced only on high-confidence samples (e.g., >50%), with the threshold gradually increasing (up to 90%) to ensure the model learns from high-quality self-generated labels.
Evaluation and Results
The researchers evaluated CET using two prominent time-series sensor datasets: HHAR (Heterogeneity Human Activity Recognition) and SleepEDF (EEG-based sleep stage scoring). These datasets represent realistic edge computing scenarios involving diverse device models and physiological signals.
Key results include:
- Enhanced Accuracy-Efficiency: On the HHAR dataset, CET achieved an F-score of approximately 86%, significantly outperforming standard training (~80%) and distillation-based approaches.
- Robustness Under Uncertainty: CET maintains higher performance as the entropy threshold for early exiting is increased, allowing for more aggressive power-saving policies without a sharp decline in accuracy.
- Cross-Task Consistency: The performance gains were consistent across both human activity recognition and sleep scoring, demonstrating the generalizability of CET across different sensor modalities.
Discussion
A significant advantage of CET is its ability to "break the distillation ceiling." Unlike traditional methods where early exits are limited by the performance of the final layer, CET regularizes the entire network, leading to improvements in the final exit's accuracy as well. By forcing invariance to perturbations, the model develops more generalizable features in early layers, making the decision to exit early much more reliable. This suggests that CET helps the model better identify "hard-to-classify" instances, deferring complex cases to deeper layers while handling simpler ones efficiently.
Conclusion and Future Work
CET provides a robust framework for optimizing multi-exit models for sensor data. Future research directions include extending CET to semi-supervised learning by utilizing unlabeled sensor data, developing system-aware exit policies that account for battery and RAM, and integrating CET with Neural Architecture Search (NAS) to design optimized multi-exit backbones from the ground up.
Summary updated