Introduction
Private Inference (PI) represents a significant advancement in privacy-preserving machine learning, allowing clients to receive model predictions on encrypted data without revealing the raw input to the server. This is particularly vital for sectors like healthcare and finance. However, PI is computationally expensive. It relies on Garbled Circuits (GC) for non-linear operations (e.g., ReLU) and Homomorphic Encryption (HE) for linear operations (e.g., convolutions).
Historically, PI research focused almost exclusively on minimizing ReLU counts, operating under the assumption that linear operations were "free" because they could be offloaded to an offline preprocessing phase. Recent systems-level research has debunked this myth, showing that high FLOP counts lead to massive latency and storage penalties. DeepReShape addresses this by optimizing for both linear and non-linear costs simultaneously, transforming standard architectures into highly efficient HybReNets.
Methodology: ReLU-Equalization and Reuse
DeepReShape introduces an automated pipeline to redesign networks based on two core techniques:
1. ReLU-Equalization
Instead of uniform scaling, DeepReShape employs "heterogeneous channel scaling." The authors identified that ReLUs in different network stages have varying levels of "criticality." For instance, ReLUs in Stage 3 of a ResNet are often more vital for accuracy than those in Stage 1. DeepReShape strategically allocates more channels to these critical stages while thinning out others.
2. ReLU-Reuse
For extremely low ReLU budgets, the framework uses "structured channel-wise ReLU dropping." Rather than simple deletion, feature maps are divided into groups where only a subset uses a ReLU, and the remaining channels "reuse" that non-linearity. This allows for a systematic reduction of ReLUs by up to 16× while preserving accuracy better than traditional pruning methods.
Design Insights
The development of DeepReShape led to several key architectural insights:
- The Width Advantage: Wider, shallower networks are fundamentally more "ReLU-efficient" than deep, narrow ones.
- Criticality Alignment: Aligning the network's ReLU distribution with layer criticality (Stage 3 > Stage 2 > Stage 4 > Stage 1) allows for significant FLOP reduction in deeper layers without sacrificing accuracy.
- Coarse-Grained Superiority: Fine-grained pruning methods often fail as network width increases. DeepReShape’s coarse-grained "ReLU-Thinning" provides a necessary bridge to maintain efficiency in wider models.
Experimental Results
The authors evaluated HybReNets on CIFAR-100 and TinyImageNet, demonstrating significant improvements over state-of-the-art (SOTA) methods like SENet and SNL.
On CIFAR-100, HybReNets achieved a 2.1% accuracy gain with a 5.2× runtime improvement at the same ReLU count. On TinyImageNet, the framework delivered an 8.7× runtime improvement at iso-accuracy. Furthermore, at lower ReLU counts, DeepReShape achieved up to a 45× reduction in FLOPs compared to baseline models, significantly easing the storage burden of Garbled Circuits.
Limitations and Future Outlook
While highly effective, DeepReShape currently relies on coarse-grained control, making it difficult to target exact ReLU counts. The optimization is also currently focused on CNNs, excluding Transformers which present different cryptographic challenges. Future work may explore "from-scratch" design spaces for PI-tailored networks and "linear layer fusion" to further mitigate FLOP penalties.
Summary updated