[Paper Review] CaRENets: Compact and Resource-Efficient CNN for Homomorphic Inference on Encrypted Medical Images
CaRENets proposes a compact, resource-efficient CNN framework for fully homomorphic encryption (FHE)-based inference on high-resolution encrypted medical images. By introducing a novel FHE packing scheme tightly integrated with CNN operations, it achieves 45x higher memory efficiency and 4–5x faster inference than standard interleaved packing, enabling practical privacy-preserving deep learning for retinal image analysis in clinical settings.
Convolutional neural networks (CNNs) have enabled significant performance leaps in medical image classification tasks. However, translating neural network models for clinical applications remains challenging due to data privacy issues. Fully Homomorphic Encryption (FHE) has the potential to address this challenge as it enables the use of CNNs on encrypted images. However, current HE technology poses immense computational and memory overheads, particularly for high-resolution images such as those seen in the clinical context. We present CaRENets: Compact and Resource-Efficient CNNs for high performance and resource-efficient inference on high-resolution encrypted images in practical applications. At the core, CaRENets comprises a new FHE compact packing scheme that is tightly integrated with CNN functions. CaRENets offers dual advantages of memory efficiency (due to compact packing of images and CNN activations) and inference speed (due to the reduction in the number of ciphertexts created and the associated mathematical operations) over standard interleaved packing schemes. We apply CaRENets to perform homomorphic abnormality detection with 80-bit security level in two clinical conditions - Retinopathy of Prematurity (ROP) and Diabetic Retinopathy (DR). The ROP dataset comprises 96 x 96 grayscale images, while the DR dataset comprises 256 x 256 RGB images. We demonstrate over 45x improvement in memory efficiency and 4-5x speedup in inference over the interleaved packing schemes. As our approach enables memory-efficient low-latency HE inference without imposing additional communication burden, it has implications for practical and secure deep learning inference in clinical imaging.
Motivation & Objective
- Address the critical challenge of deploying privacy-preserving deep learning in clinical imaging, where patient data must remain encrypted during cloud-based inference.
- Overcome the prohibitive computational and memory overheads of existing fully homomorphic encryption (FHE) schemes when applied to high-resolution medical images (e.g., 256×256 RGB).
- Enable practical, low-latency inference for real-world clinical applications such as Retinopathy of Prematurity (ROP) and Diabetic Retinopathy (DR) screening.
- Design a compact packing strategy that reduces ciphertext volume and mathematical operations, improving both memory efficiency and inference speed.
- Demonstrate feasibility of secure, efficient CNN inference on encrypted retinal images without increasing communication or hardware burden.
Proposed method
- Introduce a new compact packing scheme that efficiently maps matrices and vectors into fewer ciphertexts by minimizing redundancy in FHE-encrypted data structures.
- Develop A∗HEMAT, a custom matrix computation library that supports homomorphic operations (addition, multiplication, transpose) on encrypted matrices using the compact packing strategy.
- Tightly integrate the compact packing and optimized matrix-vector multiplication into CNN layers to reduce the number of ciphertexts and associated homomorphic operations.
- Optimize the FHE parameter space (e.g., log₂n = 14, log₂q = 660) to balance security (80-bit) and performance for medical image workloads.
- Implement and benchmark the method on real clinical datasets (ROP: 96×96 grayscale; DR: 256×256 RGB) using a CPU-based FHE stack.
- Compare performance against standard interleaved packing schemes in terms of memory usage, inference time, and security level.
Experimental results
Research questions
- RQ1Can a compact FHE packing strategy significantly reduce memory and computation overhead in homomorphic CNN inference on high-resolution medical images?
- RQ2To what extent can the proposed packing scheme improve inference speed and memory efficiency compared to standard interleaved packing in clinical imaging workloads?
- RQ3Is it feasible to perform privacy-preserving CNN inference on 256×256 RGB retinal images using FHE with acceptable latency and resource usage?
- RQ4How does the trade-off between model accuracy and computational efficiency manifest in compact, resource-constrained FHE-based CNNs for medical screening?
- RQ5Can the proposed method be generalized to other medical imaging applications requiring secure, low-latency inference on encrypted data?
Key findings
- CaRENets achieves over 45x improvement in memory efficiency compared to the standard interleaved packing scheme, reducing memory usage from 135 GB to 2.94 GB for 96×96 images.
- The method delivers a 4–5x speedup in inference time, reducing latency from 3946.4 seconds to 994.9 seconds for the ROP dataset.
- For the more demanding 256×256 RGB IDRiD dataset, CaRENets successfully ran inference using only 17.2 GB of memory, while the interleaved scheme failed due to memory exhaustion (>188 GB required).
- On the IDRiD dataset, the compact packing scheme achieved inference in 6004.7 seconds using 17.2 GB of memory, demonstrating scalability to higher-resolution clinical images.
- The framework maintains an 80-bit security level across all experiments, ensuring strong cryptographic guarantees without compromising performance.
- The results validate that compact packing enables practical, low-latency, and memory-efficient homomorphic inference on encrypted medical images, suitable for real-world screening applications.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.