Jaguar: Fast Private Neural Network Inference with Power-of-Two Homomorphic Arithmetic

Yewon Jeong, Nayoung Jung, Hyeri Roh, Woo-Seok ChoiNeurIPS 2026

TL;DR

Running neural networks on encrypted data is notoriously sluggish, largely because modern cryptographic libraries force neural networks to do math modulo large prime numbers. Jaguar throws out those primes in favor of a power-of-two arithmetic ring—turning expensive division into effortless bit-masking and chopping off excess numerical precision with simple right shifts. By aligning encrypted math with how computers actually like to operate, Jaguar speeds up private ImageNet-scale inference by over 2–3.7$\times$ compared to state-of-the-art systems.

What Problem Does This Paper Address?

Imagine you want a cloud server to classify a sensitive medical scan, without the server ever seeing your image, and without you ever seeing the server's proprietary model weights. Welcome to private inference.

Today’s most practical exact systems use a hybrid approach: Homomorphic Encryption (HE)—which lets the server compute directly on encrypted data—handles linear layers like convolutions, while Secure Two-Party Computation (2PC)—where client and server pass secret-shared puzzle pieces back and forth—handles nonlinearities like ReLU.

Despite years of clever optimizations, two massive bottlenecks remain:

  1. Heavyweight Convolutions: Standard HE libraries do math modulo large prime numbers so they can multiply polynomials quickly using the Number-Theoretic Transform (NTT, essentially a finite-field cousin of the Fast Fourier Transform). In practice, transforming back and forth with NTTs and computing prime remainders eats up the vast majority of linear-layer runtime.
  2. Precision Bloat: Multiplying two fixed-point numbers with $f$ fractional bits produces a result with $2f$ fractional bits. Because prime-modulus ciphertexts can't easily chop off those extra $f$ bits locally, existing systems pass double-wide numbers into the interactive ReLU protocol and then run a separate interactive truncation protocol afterward, wasting bandwidth and round-trips.
Figure 1: Motivation for Jaguar’s design choices. (a) Hybrid HE/2PC private inference framework. (b) Latency breakdown of Cheetah’s ResNet-50 convolutions under LAN. (c) Communication of the ReLU+truncation stage on ResNet-50.

Methods

The authors realize that prime moduli are a holdover from generic cryptography libraries, not a mathematical requirement for security. Jaguar keeps the standard BFV encryption scheme and ring-based 2PC nonlinearities, but rebuilds the encrypted substrate around a single choice: both plaintext and ciphertext moduli are powers of two ($p = 2^P, q = 2^Q$). That unlocks three new techniques:

  • SPA-CONV (Scalar–Polynomial Accumulation): Giving up primes means giving up NTT on the server. Fortunately, CNN convolutions don't actually need full polynomial-by-polynomial multiplication. SPA-CONV expresses convolutions (dense, pointwise, and depthwise) purely as plaintext filter weights (scalars) multiplied against spatially shifted encrypted polynomials, accumulated together. Because the modulus is $2^Q$, ugly prime modular reductions become single-instruction bitwise AND masks.
  • Zero-Cost Ciphertext-Side Truncation: Because the encryption scaling factor $\Delta = q/p$ is also a power of two, the server can truncate fractional precision from $2f$ back to $f$ while the data is still encrypted—simply by shifting ciphertext coefficients right by $f$ bits. Paired with a custom two-step divide-and-round decryption at the client, this is mathematically exact. ReLU now runs on narrower bitwidths, and the post-ReLU 2PC truncation protocol disappears entirely.
  • NTT-Assisted Decryption: There is still one place where two full polynomials must be multiplied: on the client device during decryption ($\hat{c}'_1 \cdot \text{sk}$). Doing this naively would take $O(N^2)$ time. Jaguar sidesteps this locally by temporarily lifting those numbers into an auxiliary 60-bit NTT-friendly prime just long enough to multiply them in $O(N \log N)$ time, then mapping the result back to $2^Q$. The prime never touches the network or protocol.
Figure 2: Computation flow of SPA-CONV.

Datasets

Jaguar evaluates end-to-end private inference on ImageNet using standard pretrained torchvision models: ResNet-18, ResNet-50, and MobileNetV2. For kernel-level attention benchmarks, the authors also evaluate static-weight projection shapes taken from MaxViT-T and sparse BERT-base layers. No new datasets are introduced.

Key Insights and Ideas

  • Library defaults aren't gospel: Prime RNS moduli dominate HE libraries because they excel at deep, generic polynomial circuits. Hybrid inference only ever runs depth-one linear layers before converting back to binary-ring shares ($\mathbb{Z}_{2^\ell}$)—making power-of-two ciphertexts a far more natural fit.
  • Truncate before ReLU, not after: Since $\text{ReLU}(x) \gg f = \text{ReLU}(x \gg f)$, shifting bits on the ciphertext before handing shares to 2PC gives a compounding win: zero truncation bandwidth and cheaper, narrower comparisons inside ReLU.
  • Use the right algebra in the right place: You don't have to choose globally between power-of-two bit-twiddling and prime-field NTTs. Keeping the protocol power-of-two while borrowing a prime strictly as a private scratchpad on the client gets the best of both worlds.

Key Results

Tested across simulated LAN (384 MB/s, 0.3 ms RTT) and WAN (62.5 MB/s, 20 ms RTT) networks with AVX disabled:

  • End-to-End Speedup: Across ResNet-18, ResNet-50, and MobileNetV2, Jaguar achieves 2.07–3.72$\times$ lower latency than Cheetah and 2.16–3.36$\times$ lower latency than Rhombus (e.g., dropping ResNet-50 LAN inference from Cheetah's 120.82 s and Rhombus's 96.77 s down to 32.44 s, or 25.55 s with AVX-512 enabled).
  • Communication: Total bandwidth drops by 1.16–1.76$\times$ compared to Cheetah. On ResNet-50's nonlinear stage alone, truncating early cuts ReLU+truncation communication nearly in half (from 294.6 MiB to 148.6 MiB), with truncation communication dropping to 0 bytes.
  • Attention Projections: On static-weight QKV and output projections from MaxViT-T, SPA-CONV achieves a 2.24$\times$ occurrence-weighted server-side speedup over Cheetah.

Limitations and Future Work

  • Packing Amortization Trade-offs: On dense convolutions with tiny spatial footprints and many channels (e.g., $4\times 4$ with 512 channels), prime-NTT baselines can pack many channels into one polynomial multiplication and beat SPA-CONV on that specific layer (down to 0.29$\times$), though these layers do not dominate full-network runtime.
  • Pointwise Communication vs. Specialized Packing: On ResNet-50, Rhombus uses specialized matrix-vector output repacking to achieve lower total communication than Jaguar (750 MiB vs. 962 MiB), though Jaguar remains over 3$\times$ faster in actual runtime.
  • Scope in Transformers & Classifiers: SPA-CONV only handles static-weight linear projections. Dynamic, input-dependent operations in Transformers ($QK^\top$, Softmax, and $AV$) require separate secure protocols, and Jaguar currently hands off the final fully-connected CNN classifier layer via a one-time conversion to Cheetah's backend.

Summary updated

BibTeX
@inproceedings{jeong2026jaguar,
  author = {Yewon Jeong and Nayoung Jung and Hyeri Roh and Woo-Seok Choi},
  title = {{Jaguar: Fast Private Neural Network Inference with Power-of-Two Homomorphic Arithmetic}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=vEZC3kzDrD},
}
Figure