# GPU-Accelerated Non-Interactive Encrypted Neural Network Training with Batched Diagonal Packing

DevFeed: [GPU-Accelerated Non-Interactive Encrypted Neural Network Training with Batched Diagonal Packing](<https://devfeed.tech/articles/gpu-accelerated-non-interactive-encrypted-neural-network-training-with-batched-diagonal-packing-125523.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.12161>)

Author: Kentaro Mihara

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>), [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [homomorphic encryption](<https://devfeed.tech/topics/homomorphic-encryption.md>), [FHE](<https://devfeed.tech/topics/fhe.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [rust-ai](<https://devfeed.tech/topics/rust-ai.md>), [AI Infrastructure](<https://devfeed.tech/topics/ai-infrastructure.md>)

Tags: [ckks](<https://devfeed.tech/tags/ckks.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [encrypted](<https://devfeed.tech/tags/encrypted.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gpu-accelerated](<https://devfeed.tech/tags/gpu-accelerated.md>), [homomorphic-encryption](<https://devfeed.tech/tags/homomorphic-encryption.md>), [neural-network](<https://devfeed.tech/tags/neural-network.md>), [packing](<https://devfeed.tech/tags/packing.md>), [simd](<https://devfeed.tech/tags/simd.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

The Rust CKKS implementation combines rectangular diagonal packing, feature-major SIMD mini-batch lanes, baby-step giant-step evaluation, and compact optimizer state. Its CUDA path keeps training and bootstrapping ciphertext arithmetic on the GPU, while key generation and client operations remain on the host. In a matched 100-update MNIST experiment, GPU bootstrapping reduced training time from 14,268.295 to 293.075 seconds (48.68x), with exactly equal decoded parameters and predictions; including setup and evaluation, the ratio was 40.67x. A separate GPU run completed ten passes over 4,800 images in 2,967.095 seconds and reached 90.35% test accuracy versus 90.41% for the plaintext twin. Results use a single initialization, and CPU/GPU parameter agreement was checked only at 100 updates, not across the full 1,000-update run. The released ReBoot baseline misses the stated common security-estimator threshold, and its full-setting CPU time is unmeasured, so the results do not establish unconditional superiority over it.

## Source excerpt

arXiv:2611.12161v1 Announce Type: cross Abstract: Training a neural network under homomorphic encryption requires transposes, batch reductions, optimizer updates, and repeated refreshes in addition to forward matrix products. We combine rectangular diagonal packing, feature-major SIMD mini-batch lanes, baby-step giant-step evaluation, and compact optimizer state in an MIT-licensed Rust CKKS implementation. Its CUDA path keeps training and bootstrap ciphertext arithmetic on the GPU, while retaining host key generation and client operations. In a matched 100-update experiment on the main non-interactive MNIST model, device-resident bootstrapping reduces training time from 14,268.295 to 293.075 seconds, a $48.68\times$ ratio against our CPU implementation, with exactly equal decoded parameters and predictions. Including setup and final evaluation gives a $40.67\times$ ratio. A separate GPU run completes ten passes over 4,800 images in 2,967.095 seconds and achieves 90.35% test accuracy versus 90.41% for its plaintext twin. These are single-initialization results; exact CPU/GPU parameter agreement is verified at 100 updates, not for the full 1,000-update run. Earlier completed CPU runs support a larger-batch key-switch advantage and baseline-batch accuracy within the registered tolerance, but the baseline-batch normalized key-switch target is missed. The released ReBoot baseline does not meet the common security-estimator threshold, and its full-setting CPU time is unmeasured. We therefore distinguish measured acceleration of our implementation from conditional layout comparisons and do not claim unconditional superiority over ReBoot.