Abstract
As machine learning models migrate to the edge, the diversity of hardware constraints and fluctuating network conditions pose significant challenges for efficient inference. We present QPART, an inference serving system that dynamically optimizes layer-wise quantization and model partitioning. By mathematically modeling accuracy degradation using adversarial noise bounds, QPART achieves up to an 84% reduction in communication payload while maintaining accuracy loss below 1%. Our evaluation shows that QPART outperforms existing static and auto-encoder-based offloading techniques across multiple performance dimensions.
Introduction
The deployment of deep learning models on edge devices—such as smartphones, wearables, and IoT sensors—is often hindered by limited computational resources and varying network bandwidth. Existing solutions typically rely on static offloading or pre-tuned model libraries, which lack the flexibility to adapt to real-time environmental changes or specific application accuracy requirements.
QPART addresses these limitations by introducing a dynamic, retraining-free framework. It treats model precision and the partition point between the edge and the server as joint optimization variables, allowing for a tailored inference strategy for every incoming request. As shown in the comparison below, QPART is the first system to simultaneously address latency, energy, accuracy, scaling, and offloading.
Methodology: Joint Partitioning and Quantization
The core of QPART lies in its ability to simultaneously determine the optimal split point in a neural network and the bit-width precision for the layers executed on the edge device.
System Workflow
The QPART workflow involves a coordinated handshake between the edge device and the inference server to minimize overhead.
The process begins when an edge device initializes an inference query. The server then performs model partitioning and quantization based on the device's specific constraints. A scaled model segment is sent back to the device for local execution of initial layers. The resulting intermediate activations are then offloaded back to the server, which completes the inference and returns the final output.
Accuracy-Aware Optimization
Unlike empirical trial-and-error methods, QPART utilizes a theoretical bound based on quantization and adversarial noise to predict accuracy degradation. This allows the system to solve a joint optimization problem—minimizing latency and energy—while strictly adhering to a user-defined accuracy threshold. To ensure real-time responsiveness, QPART employs an offline-online strategy: optimal patterns are pre-computed for various thresholds and then matched instantly to live requests.
Experimental Evaluation
The system was evaluated using standard benchmarks including MNIST, SVHN, CIFAR-10/100, and ImageNet (with ResNet architectures).
Key Findings
- Payload Efficiency: QPART significantly reduces the data transmitted over the network. For ResNet34 on ImageNet, the communication payload was reduced to 18.12% of its original size, with an average reduction of 77% across all layers.
- Precision Control: Accuracy degradation was consistently kept under the 1% target. For instance, SVHN saw only a 0.08% drop, and ResNet18 on ImageNet saw a 0.66% drop despite aggressive quantization.
- Resource Optimization: Compared to auto-encoder-based compression, which introduces significant computational overhead for encoding/decoding, QPART’s post-training quantization approach proved more energy-efficient and faster.
Conclusion
QPART demonstrates that joint optimization of model partitioning and quantization provides a robust solution for edge inference. By eliminating the need for retraining and providing mathematical guarantees on accuracy, it offers a scalable framework for diverse IoT ecosystems. Future work will focus on global scheduling to manage multi-device environments and further optimize network-wide resource allocation.
Summary updated