New Permutation Decomposition Techniques for Efficient Homomorphic Permutation
Xirong Ma, Junling Fang, Chunpeng Ge, Dung Hoang Duong, Yali Jiang, Yanbin Li, Willy Susilo, Lizhen Cui
TL;DR
The paper addresses the dominant cost of homomorphic permutation in batch-encoded HE by introducing an ideal-depth decomposition framework and a novel network-based approach for arbitrary permutations. It proves depth-1 and full-depth ideal decomposability for key permutations in homomorphic matrix transposition and multiplication, enabling asymptotic speedups and rotation-key reductions, including up to $3.9\times$ latency savings in encrypted neural network inference. Additionally, it presents a flexible encoding-space strategy and a multi-group network design that achieves up to $1.69\times$ speedups with minimal rotation-key overhead for arbitrary permutations. The combinations of decomposition-based optimizations and network-inspired computation offer practical, parameter-tunable improvements over traditional Benes-network-based methods, with broad applicability to HE-based privacy-preserving matrix operations and neural network inference.
Abstract
Homomorphic permutation is fundamental to privacy-preserving computations based on batch-encoding homomorphic encryption. It underpins nearly all homomorphic matrix operations and predominantly influences their complexity. Permutation decomposition as a potential approach to optimize this critical component remains underexplored. In this paper, we propose novel decomposition techniques to optimize homomorphic permutations, advancing homomorphic encryption-based privacy-preserving computations. We start by defining an ideal decomposition form for permutations and propose an algorithm searching for depth-1 ideal decompositions. Based on this, we prove the full-depth ideal decomposability of permutations used in specific homomorphic matrix transposition (HMT) and multiplication (HMM) algorithms, allowing them to achieve asymptotic improvement in speed and rotation key reduction. As a demonstration of applicability, substituting the HMM components in the best-known inference framework of encrypted neural networks with our enhanced version shows up to $3.9\times$ reduction in latency. We further devise a new method for computing arbitrary homomorphic permutations, specifically those with weak structures that cannot be ideally decomposed. We design a network structure that deviates from the conventional scope of decomposition and outperforms the state-of-the-art technique with a speed-up of up to $1.69\times$ under a minimal rotation key requirement.
