TL;DR
HEPrune is the first framework to bring the efficiency of dataset pruning to the world of Fully Homomorphic Encryption (FHE). By introducing a "crypto-friendly" importance score and a novel technique to re-pack sparse encrypted data, it accelerates private neural network training by up to 16x with less than a 0.6% drop in accuracy.
The Challenge of Private Training
Training Deep Neural Networks (DNNs) on encrypted data is the "holy grail" of privacy-preserving machine learning. Fully Homomorphic Encryption (FHE) allows a cloud server to train a model without ever "seeing" the underlying data. However, FHE is notoriously slow—often 1,000 to 10,000 times slower than training on unencrypted (plaintext) data.
In standard machine learning, researchers use dataset pruning to speed up training. They identify redundant or "easy" samples and discard them, training only on the most informative data. Doing this in the encrypted domain, however, faces three massive hurdles:
- Expensive Math: Calculating how "important" a sample is usually requires non-linear operations (like square roots or logs) that are computationally brutal in FHE.
- The Sorting Nightmare: Finding the "top-k" most important samples requires sorting, which is incredibly inefficient to perform homomorphically.
- The Packing Problem: FHE uses SIMD (Single Instruction, Multiple Data) packing, where one "ciphertext" contains multiple data samples. If you prune a few samples, you are left with "sparse" ciphertexts. The server still has to process the whole ciphertext, meaning you have saved no actual computation time.
The HEPrune Methodology
The authors propose HEPrune, a multi-stage pipeline designed to make pruning "FHE-native."
- HEFS (HE-Friendly Score): Instead of using complex importance metrics like EL2N (which requires a square root), HEPrune uses a simplified L1-norm-based score. It only requires subtractions and a
Maxoperation, both of which are much faster to execute in FHE. - CAM (Client-Aided Masking): To avoid the cost of homomorphic sorting, the server sends the encrypted importance scores back to the client. The client decrypts them, performs a lightning-fast plaintext sort, creates a "pruning mask," and sends it back. This preserves privacy because the client only sees scores, not the model weights or other users' raw data.
- CWP (Ciphertext-Wise Pruning): This is the core innovation. To solve the "Packing Problem," HEPrune uses homomorphic rotations and additions to shift valid samples from sparse ciphertexts into empty slots of other ciphertexts. This effectively "compacts" the data, allowing the server to discard entire ciphertexts and significantly reduce the workload for the backward pass.
Key Insights and Results
The authors evaluated HEPrune across five diverse datasets covering image classification (MNIST, CIFAR-10, Face Mask Detection, DermaMNIST) and audio sentiment analysis (SNIPS). HEPrune was tested against HETAL, the previous state-of-the-art for private training.
- L1 is "Good Enough": One of the most surprising findings is that mathematically perfect importance scores are unnecessary. The simplified HEFS (L1-based) performs almost as well as the much more expensive EL2N (L2-based) while being orders of magnitude faster to compute in FHE.
- Massive Speedups: On the CIFAR-10 dataset, HEPrune achieved a 6.5x speedup over HETAL. When training an MLP from scratch on MNIST, it reached a staggering 60.8x speedup by using only 1% of the data.
- Minimal Accuracy Loss: Across all datasets, the accuracy drop was typically less than 0.6%. In some cases, training on a pruned subset (e.g., 40-70% of the data) actually yielded higher accuracy than training on the full dataset by acting as a "data diet" that removes noisy samples.
- Efficiency via Compaction: The Ciphertext-Wise Pruning (CWP) successfully reduced the number of ciphertexts the server had to process, which is the primary driver of the end-to-end runtime reduction.
Limitations and Future Work
- Model Complexity: Currently, the framework has been primarily tested on Multi-Layer Perceptrons (MLPs) and transfer learning scenarios where features are extracted by a pre-trained model (like ViT). Extending this to train large-scale CNNs or Transformers from scratch entirely in FHE remains a challenge.
- Dataset Scale: While the results on CIFAR-10 and MedMNIST are promising, the overhead of FHE still makes training on massive datasets (like ImageNet) prohibitive for now.
- Warm-Start Dependency: The paper notes that starting with a "warm-start" (training on the full dataset for a few initial epochs) helps, but currently uses a random start. Developing a more principled encrypted initialization strategy could further boost performance.
Summary updated