Enhancing Split Computing and Early Exit Applications through Predefined Sparsity

Luigi Capogrosso, Enrico Fraccaroli, Giulio Petrozziello, Francesco Setti, Samarjit Chakraborty, Franco Fummi, Marco CristaniarXiv 2024

TL;DR

This paper introduces a hardware-agnostic approach that combines predefined sparsity with Split Computing (SC) and Early Exit (EE) paradigms to efficiently deploy Deep Neural Networks (DNNs) on resource-constrained edge devices. By fixing a sparse network structure before training begins, the method achieves over a 4× reduction in storage and computational complexity during both training and inference without sacrificing accuracy.

What Problem Does This Paper Address?

Edge devices, such as microcontrollers and edge TPUs, are highly desirable for real-time applications like smart manufacturing and smart buildings due to their low power requirements. However, modern DNNs are massive, often requiring millions or billions of parameters, making direct deployment on edge hardware impractical.

Existing model-reduction techniques like post-training pruning or quantization help alleviate inference complexity, but they do nothing to reduce the massive computational and memory footprints required during the training phase. Furthermore, quantization often relies on specific hardware support. Distributed paradigms like Split Computing (sharing the workload between an edge "head" and a cloud "tail") and Early Exit (stopping computation early if confidence is high) help, but the edge portion can still be too heavy. The authors address this gap by integrating predefined sparsity directly into the SC and EE framework from day one.

Methods

The core innovation is the integration of structured predefined sparsity into a combined Split Computing and Early Exit pipeline.

  1. Predefined Sparsity: Unlike traditional pruning, which removes weights after training, the authors define a fixed, sparse network architecture before training starts. Each node in a layer is assigned a fixed in-degree and out-degree connection limit. This topology remains constant throughout both training and inference, drastically reducing the GPU memory footprint during the training phase.
  2. Split Computing & Early Exit: The sparse network is split at its midpoint. The "head" runs locally on the edge device, while the "tail" runs on a remote server. An Early Exit branch is attached to the head; if the local prediction is confident enough, the system exits early, completely avoiding the latency and bandwidth costs of transmitting data to the server.

The difference between this approach and traditional post-processing methods is illustrated below:

Figure 1. Difference between our approach of predefined sparsity applied to SC and EE, against the state-of-the-art pruning and quantization.

Datasets

The authors evaluate their approach using the MNIST dataset of handwritten digits (60,000 training and 10,000 testing images). The authors explicitly note that MNIST serves as a placeholder/proof-of-concept to demonstrate the fundamental physics and potential of predefined sparsity in SC/EE settings, rather than aiming to beat absolute state-of-the-art accuracy on massive computer vision benchmarks like ImageNet.

Key Insights and Ideas

  • Early Layers Benefit Most: Weight histograms of fully trained dense networks reveal a massive concentration of near-zero weights in the initial layers. Predefined sparsity capitalizes on this by thinning out these early layers—which are precisely the ones deployed on the resource-constrained edge device.
  • Training-Time Savings: Because the sparsity pattern is fixed upfront, only the connected weights are stored in memory and updated via gradient descent. This lowers the barrier to entry for deep learning research, allowing engineers with limited hardware resources to train models efficiently.
  • Hardware Agnosticism: Unlike quantization, which requires specialized hardware acceleration to see real benefits, predefined sparsity inherently reduces the total number of operations and memory footprint on any platform.

Key Results

  • >4× Complexity Reduction: The proposed framework achieved greater than 4× reductions in storage and computational complexity.
  • Stable Accuracy: Sparse split models demonstrated remarkable accuracy stability compared to their dense counterparts. For instance, in the head MLP configuration, the sparse model achieved 96.98% accuracy with 16,650 parameters, outperforming both the deep dense counterpart (96.03% accuracy, 16,650 parameters) and the shallow dense counterpart (96.03% accuracy, 17,041 parameters).
  • Communication Efficiency: The early exit strategy successfully terminated computations early on the head device, drastically reducing data transmission overhead and conserving network bandwidth.

Limitations and Future Work

  • Training Slowdown: The primary trade-off is a 2× slowdown in training time compared to dense networks. Restricting the network to a fixed sparse topology creates a more challenging optimization problem for gradient descent, requiring more iterations to converge.
  • Architectural Scope: The current study is limited to Multi-Layer Perceptrons (MLPs). Future work needs to extend this approach to more complex architectures like Convolutional Neural Networks (CNNs) and Transformers.
  • Hardware & Real-World Validation: The authors suggest evaluating the pipeline on diverse edge hardware (like FPGAs and specialized edge GPUs) and deploying it in real-world scenarios, such as real-time quality control systems on smart production lines.

Summary updated

Abstract

In the past decade, Deep Neural Networks (DNNs) achieved state-of-the-art performance in a broad range of problems, spanning from object classification and action recognition to smart building and healthcare. The flexibility that makes DNNs such a pervasive technology comes at a price: the computational requirements preclude their deployment on most of the resource-constrained edge devices available today to solve real-time and real-world tasks. This paper introduces a novel approach to address this challenge by combining the concept of predefined sparsity with Split Computing (SC) and Early Exit (EE). In particular, SC aims at splitting a DNN with a part of it deployed on an edge device and the rest on a remote server. Instead, EE allows the system to stop using the remote server and rely solely on the edge device's computation if the answer is already good enough. Specifically, how to apply such a predefined sparsity to a SC and EE paradigm has never been studied. This paper studies this problem and shows how predefined sparsity significantly reduces the computational, storage, and energy burdens during the training and inference phases, regardless of the hardware platform. This makes it a valuable approach for enhancing the performance of SC and EE applications. Experimental results showcase reductions exceeding 4x in storage and computational complexity without compromising performance. The source code is available at https://github.com/intelligolabs/sparsity_sc_ee.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MNIST · head MLPSparse MLP (head)Accuracy96.98%+0.19 vs baselinetrained · epochs=50 · parameters=16650 · architecture=head MLP
Source quote
L358: Sparse │ [800 │ \bfseries 40 40 │ 10] │ [19 24 10] │ 96.98 │ 16650
MNIST · tail MLPSparse MLP (tail)Accuracy97.33%+0.54 vs baselinetrained · epochs=50 · parameters=23530 · architecture=tail MLP
Source quote
L383: Sparse │ [800 │ \bfseries 80 80 │ 10] │ [26 22 10] │ 97.33 │ 23530
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
MNIST · head MLPDeep MLP (head) baselineAccuracy96.03%trained · epochs=50 · parameters=16650 · architecture=head MLP
Source quote
L356: Deep │ [800 │ \bfseries 20 20 │ 10] │ [20 20 10] │ 96.03 │ 16650
MNIST · tail MLPDeep MLP (tail) baselineAccuracy96.79%trained · epochs=50 · parameters=23530 · architecture=tail MLP
Source quote
L381: Deep │ [800 │ \bfseries 28 28 │ 10] │ [28 28 10] │ 96.79 │ 23530
BibTeX
@misc{capogrosso2024enhancing,
  author = {Luigi Capogrosso and Enrico Fraccaroli and Giulio Petrozziello and Francesco Setti and Samarjit Chakraborty and Franco Fummi and Marco Cristani},
  title = {{Enhancing Split Computing and Early Exit Applications through Predefined Sparsity}},
  year = {2024},
  eprint = {2407.11763},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.11763},
}
Figure