Falcon: Accelerating Homomorphically Encrypted Convolutions for Efficient Private Mobile Network Inference

Tianshi Xu, Meng Li, Runsheng Wang, Ru Huang

TL;DR

Falcon is a novel packing algorithm designed to accelerate private neural network inference using Homomorphic Encryption (HE). By optimizing how depthwise convolutions are mapped into encrypted polynomials—specifically through "zero-aware" greedy packing and communication-balanced tiling—Falcon achieves up to 15.6× latency reduction over existing state-of-the-art frameworks.

What Problem Does This Paper Address?

Privacy-preserving deep learning allows a server to run a model on a client’s sensitive data without ever "seeing" the raw input. This is often achieved via Secure Two-Party Computation (2PC) based on Homomorphic Encryption (HE), which allows mathematical operations to be performed directly on encrypted data.

However, there is a major efficiency gap. Modern mobile-friendly networks (like MobileNetV2 and EfficientNet) rely heavily on depthwise convolutions to reduce computational costs. Paradoxically, existing HE frameworks are not optimized for these sparse operations. They often treat depthwise convolutions like standard ones, leading to "packing redundancy"—where encrypted polynomials are filled with useless zero-padding. This results in massive communication overhead and high latency, making private mobile inference impractical for real-world use.

Methods

The authors introduce Falcon, which focuses on two key technical innovations to eliminate the "zero-padding" waste:

  1. Zero-aware Greedy Packing: In HE, tensors must be converted into polynomials (a process called packing). To prevent data interference during computation, standard methods pad filters with many zeros. Falcon observes that these zero-channels can be reused or overlapped between neighboring filters. The authors formulate this as a Shortest Common Superstring (SCS) problem—finding the shortest sequence that contains all required filter patterns—and solve it using a greedy algorithm to maximize packing density.

  2. Communication-aware Operator Tiling: Previous frameworks focused almost exclusively on minimizing the data sent from the client to the server (input ciphertext). Falcon’s authors discovered that the return trip (output ciphertext) is often the actual bottleneck. They propose a tiling strategy that balances the input and output transfer. By formulating this as a nonlinear programming problem, Falcon finds the "sweet spot" for tiling dimensions that minimizes the total bytes moved across the network.

  3. Extensibility: While designed for depthwise convolutions, the method naturally extends to group convolutions, which are also common in efficient architectures.

Datasets

The researchers evaluated Falcon using standard image classification benchmarks:

  • CIFAR-10 & CIFAR-100: Standard small-scale image datasets.
  • Tiny ImageNet: A more complex dataset used to demonstrate how Falcon handles deeper networks with larger channel sizes.
  • Models: The evaluation focused on MobileNetV2 and EfficientNet-lite, the gold standards for efficient mobile vision.

Key Insights and Ideas

  • The Sparsity Paradox: In plaintext computing, depthwise convolutions are "cheap." In encrypted computing, they were historically "expensive" because the underlying math (polynomial multiplication) didn't align well with the sparse filter structure. Falcon fixes this alignment.
  • Symmetry in Zeros: The authors realized that depthwise filters are symmetric in their zero-padding requirements. This symmetry allows for much denser packing than previously thought possible.
  • Holistic Communication: A key "aha!" moment was realizing that maximizing input packing density actually increased the number of output polynomials. By slightly decreasing input density (tiling), they could drastically reduce the total communication volume.

Key Results

Falcon significantly outperforms prior state-of-the-art (SOTA) frameworks like Cheetah, Iron, and CrypTFlow2:

  • Operator Speedup: At the individual convolution level, Falcon achieves 1.8× to 15.6× latency reduction compared to SOTA.
  • Communication Efficiency: It reduces communication by 1.4× to 5.4× over Cheetah and up to 15.7× over Iron.
  • Accuracy Gains: Because Falcon is more efficient, it allows users to run larger, more accurate models within the same "communication budget." On Tiny ImageNet, Falcon enabled a 4.2% accuracy improvement over Cheetah under iso-communication constraints.
  • Network Robustness: The performance gains are even more pronounced in low-bandwidth (WAN) settings, where communication efficiency is critical.

Limitations and Future Work

While Falcon drastically improves the linear layers (convolutions), it still relies on existing protocols for non-linear layers like ReLU and MaxPool. The authors note that as convolutions become faster, these non-linear layers may become the new relative bottleneck.

Future work could involve integrating Falcon’s packing logic with hardware-specific HE accelerators or exploring even more complex "mixed-mode" packing where different layers of a network use different packing strategies dynamically.

Summary updated

BibTeX
@inproceedings{xu2023falcon,
  author = {Tianshi Xu and Meng Li and Runsheng Wang and Ru Huang},
  title = {{Falcon: Accelerating Homomorphically Encrypted Convolutions for Efficient Private Mobile Network Inference}},
  booktitle = {ICCAD},
  year = {2023},
  url = {https://openreview.net/forum?id=oGyvIm37zL},
}

Loading related content...

Figure