Adaptive Early Exiting for Collaborative Inference over Noisy Wireless Channels

Mikolaj Jankowski, Deniz Gündüz, Krystian MikolajczykOpenReview 2023

TL;DR

This paper introduces an adaptive "early exit" mechanism for collaborative deep learning inference over wireless networks. By intelligently deciding when to trust a preliminary prediction from a less powerful edge device, they achieve significant communication savings and comparable or better accuracy than sending all data to a powerful edge server.

What Problem Does This Paper Address?

Deploying complex deep neural networks (DNNs) on resource-constrained edge devices (like smartphones or IoT sensors) is challenging due to limited computational power and memory. A common solution is "collaborative inference," where a DNN is split: a shallow part runs on the edge device, and a deeper part runs on a powerful edge server. The edge device sends intermediate "feature maps" to the server, saving bandwidth compared to sending raw data. However, this still incurs communication costs. Furthermore, wireless channels are often noisy and unreliable, which can corrupt these feature maps, leading to inference errors. Additionally, some inputs might be simple enough to be classified by the shallow part alone, making transmission unnecessary. This paper tackles the problem of optimizing this collaborative inference process by enabling "early exits" – allowing the edge device to make a final decision without transmitting data to the server, thereby saving communication and potentially improving efficiency, especially under noisy channel conditions.

Methods

The core innovation is a Transmission-Decision (TD) mechanism. This mechanism, residing on the edge device, takes information from the early exit of the shallow neural network (like its prediction and confidence) and the current wireless channel state (Signal-to-Noise Ratio or SNR) to decide whether to:

  1. Accept the early exit prediction: This saves communication entirely.
  2. Transmit intermediate features to the edge server: This allows for a more refined prediction from the deeper part of the DNN.

The paper explores several TD mechanisms:

  • Simple Thresholding: Using predefined thresholds on confidence or entropy of the early exit's prediction.
  • Per-class Confidence Thresholds: Tailoring thresholds for each class based on training data.
  • Learned TD Mechanism (TD NN): A lightweight neural network trained to make the optimal decision. This TD NN takes early exit outputs and channel SNR as input. The paper proposes three training criteria for this TD NN:
  • Joint Early-Final Cross-Entropy: Balances accuracy of a combined prediction with a penalty for transmission.
  • Binary Cross-Entropy: Focuses on transmitting only when the early exit is likely wrong and the final exit is likely correct.
  • Mixed Criterion: A combination of the above two, aiming for a robust trade-off.

The system also incorporates Joint Source-Channel Coding (JSCC) to compress the intermediate features before transmission, further optimizing communication.

Datasets

  • CIFAR100: Used for training and evaluating the image classification task. The paper notes its structure (100 classes, 500 training samples/class, 100 test samples/class).

Key Insights and Ideas

  • Early Exits are More Than Just Speed-ups: While often seen as a way to reduce computation, this paper demonstrates their crucial role in communication savings, especially over unreliable wireless links.
  • Channel State is Key: The decision to transmit or not must dynamically adapt to the wireless channel's quality. A noisy channel makes early exits more attractive.
  • Learned Decisions Outperform Simple Rules: A trained TD NN, considering both early exit confidence and channel SNR, generally achieves better performance than fixed thresholding methods.
  • Combining Information is Powerful: The best-performing TD NN utilizes a rich set of inputs, including class probabilities, confidence, entropy, and SNR, suggesting that both high-level (SNR) and low-level (prediction distribution) information are vital.
  • Per-Class Nuances Matter: While a single confidence threshold can work, adapting thresholds per class can yield better results, especially when informed by test set performance and ground truth labels.

Key Results

  • Significant Communication Savings: The proposed TD mechanisms can achieve substantial communication savings, with examples showing nearly 45% savings at 0 dB SNR.
  • Comparable or Better Accuracy: By intelligently utilizing early exits, the system can achieve accuracy comparable to, or even better than, relying solely on the early exit or the final exit.
  • Robustness to Noise: The adaptive nature of the TD mechanisms allows them to perform well even under low SNR conditions, where traditional collaborative inference might struggle.
  • Upper Bound Performance: The "GT decision" (ground truth) approach, which transmits only when the early exit is incorrect and the final exit is correct, serves as an upper bound, achieving over 85% savings with high accuracy.
  • TD NN Complexity: The TD NN adds minimal computational overhead (around 0.01% of the edge device's computation), making it practical for edge deployment.

Limitations and Future Work

  • Dataset Specificity: The experiments were conducted on CIFAR100. While promising, performance on other datasets or tasks might vary.
  • Hyperparameter Tuning: The paper mentions tuning hyperparameters for comparable savings, implying that achieving optimal trade-offs requires careful configuration.
  • Future Work: The paper implicitly suggests exploring more sophisticated TD mechanisms, potentially incorporating more complex channel models, different DNN architectures, and other edge ML paradigms. The analysis of per-class confidences also hints at future work in class-aware decision-making.

Summary updated

BibTeX
@misc{jankowski2023adaptive,
  author = {Mikolaj Jankowski and Deniz Gündüz and Krystian Mikolajczyk},
  title = {{Adaptive Early Exiting for Collaborative Inference over Noisy Wireless Channels}},
  year = {2023},
  eprint = {2311.18098},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.18098},
}
Figure