← Lab /AI/ML

Layer-parallel inference cuts bootstraps 2.65× with <2% perplexity increase

Structured Newton Layer Parallelism reduces symbolic bootstraps from 53 to 20 while degrading perplexity by only 1.2%

AI/ML arXiv 6 Jul 2026 Method Simulation evidence

Published as “Layer-Parallel Inference Reduces Encrypted Nonlinear Depth in Transformers”

Why it matters

Reducing bootstrap count can substantially lower latency and cost of encrypted Transformer inference, making FHE-based language models more practical.

Summary

SNLP reduces the number of costly CKKS bootstraps needed for encrypted Transformer inference from 53 to 20 (2.65×) while incurring only a +1.2% perplexity increase, and it also lowers error amplification from 1.42× to 1.36×. The evidence comes from a simulation framework that replaces nonlinear ops with Chebyshev polynomial approximations across eight models (0.5B-3B parameters). The results are consistent but limited to simulated rather than real-world FHE execution, and the method does not eliminate the dominant softmax approximation error.

What they found 3

  1. SNLP reduces bootstraps from 53 to 20 (2.65×) with only +1.2% perplexity degradation.

    “SNLP reduces symbolic bootstraps from 53 to 20 (2.65×) with only +1.2% perplexity degradation”

  2. SNLP achieves lower error amplification than sequential inference (1.36× vs. 1.42×).

    “lower error amplification (1.36× vs. 1.42×)”

  3. Softmax approximation dominates the error budget, while CKKS arithmetic noise is negligible.

    “Softmax approximation remains the dominant local error source, while CKKS arithmetic noise is negligible at the precisions we test”

Caveats 5

  • The n24-K8 point highlights why the FHE frontier differs from the GPU wall-clock frontier. It reaches near-sequential quality (+0.1%) with 2× fewer bootstraps, even though K = 8 iterations are compute-heavy.
  • Our framework simulates polynomial approximation, not actual CKKS encryption.
  • The softmax implementation uses max-subtraction for numerical stability, which requires comparison circuits in real FHE (an additional cost not reflected in our NFE metric).
  • RMSNorm uses controlled noise rather than actual Goldschmidt iteration.
  • Generalization to larger models remains to be tested, though the trend that larger models have lower amplification is encouraging.

What’s new here 4

  • Applies Structured Newton Layer Parallelism to the inter-layer composition of encrypted Transformers, reducing sequential nonlinear depth.
  • Introduces the Nonlinear Forward Evaluations (NFE) metric that correlates with bootstrap count in a symbolic CKKS cost model.
  • Shows that parallel suffix evaluation plus linear Newton corrections can lower error amplification compared to purely sequential inference.
  • Demonstrates cross-model benefits, especially for mHC architectures that have inherently lower FHE depth.