The Commonplace
Home Papers Evidence Explore Trends Syntheses Digests References Docs 🎲 Workforce Futures
← Papers
Direction, evidence grade, and study type are AI-generated labels (gpt-5-mini), not human-verified. Syntheses are LLM-written. "Tensions" are machine-detected candidates, not confirmed contradictions. A research-acceleration tool, not peer review. How this is built →

A training tweak halves cryptographic cost: HEAT jointly learns per-site solver iterations with model weights so encrypted GPT‑2 executes 3.1× fewer iterative steps (1.6× fewer bootstraps) and reduces end‑to‑end token latency from ≈54s to ≈38s while improving fidelity to its plaintext counterpart.

HEAT: Faster Fully Homomorphic Inference via Approximations-Weights Co-Adaptation
Alessandro Zirilli, Davide Marincione, Evgenios M. Kornaropoulos, Giuseppe Ateniese, Emanuele Rodolà · September 01, 2026
arxiv other medium evidence 7/10 relevance Full text usable extracted full text Source PDF

Structured author observations

Linked only from stored provider relations; the raw author line above is never matched by name.

Arxiv

Latest observation:

  1. Alessandro Zirilli unresolved corpus identity
  2. Davide Marincione unresolved corpus identity
  3. Evgenios M. Kornaropoulos unresolved corpus identity
  4. Giuseppe Ateniese unresolved corpus identity
  5. Emanuele Rodolà unresolved corpus identity

Semantic Scholar

Latest observation:

  1. Alessandro Zirilli provider ID
  2. Davide Marincione provider ID
  3. Evgenios M. Kornaropoulos provider ID
  4. Giuseppe Ateniese provider ID
  5. Emanuele Rodolà provider ID
HEAT jointly fine-tunes model weights and per-nonlinearity iteration-count distributions so that deployed FHE circuits use far fewer iterative solver iterations, reducing bootstraps and cutting encrypted GPT-2 decoding latency while improving agreement with plaintext logits.

Citation observations

Cumulative provider counts captured on specific dates; providers are never combined.

Fully homomorphic encryption (FHE) allows a server to run a language model directly on encrypted user prompts, but current approaches remain prohibitively slow. Ciphertexts natively support only addition, multiplication, and rotation, and multiplications may be composed only to a bounded depth before a costly bootstrapping operation is needed to continue. Every nonlinearity must therefore be approximated by an iterative method, and each iteration uses multiplications. A higher iteration count buys precision but exhausts the available depth faster and triggers more bootstraps, which dominate latency. Existing approaches fix the iteration counts uniformly across the model rather than tailoring them to each site's error tolerance. We introduce Homomorphic Encryption-Aware Training (HEAT), a fine-tuning method that makes the per-nonlinearity iteration counts learnable, enabling them and the model weights to co-adapt during training. HEAT optimizes iterations with respect to the task objective, allowing the model to adapt to approximation errors encountered during inference without architectural changes or retraining from scratch. On encrypted GPT-2 decoding, HEAT reduces iterations by $3.1\times$, bootstraps by $1.6\times$, and end-to-end latency by $1.4\times$, while improving decode agreement over the calibrated baseline.

Summary

Main Finding

HEAT (Homomorphic Encryption-Aware Training) turns the multiplicative-depth / approximation trade-off in fully homomorphic encryption (FHE) inference into a trainable objective: it makes the per-site iteration counts of iterative approximations learnable and co-trains them with model weights. On encrypted GPT-2 (124M) this reduces solver iterations 3.1×, bootstraps per token 1.6×, and end-to-end decoding latency 1.4× (from ≈54.3 s/tok to ≈37.6 s/tok), while improving agreement with the plaintext model (top-1 agreement pooled over tokens rises from 74.0% to 82.9%). The method requires no architectural changes to the model.

Key Points

  • Problem: FHE supports only additions/rotations/multiplications and multiplicative depth is limited; common nonlinearities (LayerNorm, Softmax, activations) are implemented by iterative polynomial/solver approximations whose iteration counts trade accuracy for depth (and thus bootstrapping cost). Prior work used a uniform (worst-case) iteration count across all sites, causing overprovisioning and many unnecessary bootstraps.
  • HEAT idea: make the iteration count at every approximation site a learnable parameter and co-adapt it with weights so the model absorbs approximation error where possible and keeps precision where needed.
    • Differentiable iteration selection: attach a learnable discrete distribution p = (p0,...,pn) over iteration counts and use the expected approximation e_f(x) = Σ_i p_i F_i(x) (Fi are successive solver states). This makes the iteration policy differentiable.
    • Regularization: add a KL divergence from a negative-binomial prior (mode at low i) to encourage shallow counts and an activation-range squeeze term (Lrange) to make approximations easier.
    • Three-phase fine-tuning: (1) warm-up with Lrange only, (2) main HEAT optimization with Liter (the depth term) and prior ramp, (3) consolidation where each site is frozen to the mode of its learned distribution and weights are fine-tuned on the exact deployed circuit.
  • Privacy consideration: learned per-site iteration counts are fixed at deployment for all inputs (no data-dependent halting) to avoid timing side-channel leakage.
  • Empirical gains (GPT-2 124M, OpenWebText subset):
    • Iterations per forward: 228 (HEAT) vs 712 (calibrated baseline) → 3.1× reduction.
    • Bootstraps per token: 326 vs 513 → 1.6× reduction.
    • End-to-end latency: 37.6 s/tok vs 54.3 s/tok (baseline); also faster than EncryptedLLM ≈68 s/tok.
    • Fidelity to plaintext: pooled top-1 agreement 82.9% (HEAT) vs 74.0% (calibrated baseline); HEAT shows more stable KL divergence over decoding positions.
  • HEAT checkpoints and code publicly released (GitHub + HuggingFace).

Data & Methods

  • Model & data:
    • Base model: GPT-2 (124M).
    • Fine-tuning data: OpenWebText; total HEAT pipeline consumed ≈1.5×10^8 tokens (≈2% of pretraining corpus).
    • Compute: fine-tuning completed in under 7 hours on a single A100-64GB.
  • FHE backend & cryptography:
    • Encrypted inference uses RNS-CKKS (approximate HE) at 128-bit security.
    • Implemented/evaluated on a FIDESlib-based GPU backend; measurements include data movement overheads.
  • Metrics & evaluation:
    • Latency measured as seconds per generated token; bootstraps counted per token.
    • Fidelity measured as KL between encrypted logits and plaintext logits and top-k overlap/agreement across teacher-forced decoding (128 chains × 128 tokens).
    • Validation: mean over 32 held-out batches every 250 updates during fine-tuning.
  • Implementation notes:
    • Iterative solvers for nonlinearities produce Fi states; expected output computed as a weighted sum using the learned distribution. Checkpointing/recomputation used to contain memory overhead.
    • Negative-binomial prior and KL penalty (Liter) steer per-site distributions toward low iteration counts while task loss retains precision where needed.
    • After training, each site’s iteration count is set to the learned mode for deterministic, constant-time deployment.

Implications for AI Economics

  • Reduced per-query compute and wall-clock latency (1.4× end-to-end, 1.6× fewer bootstraps) lowers provider resource usage for FHE inference:
    • Bootstrapping is the dominant cost in FHE; reducing bootstraps has outsized operational savings (energy, GPU-hours, queuing).
    • Even modest latency cuts can materially reduce cost-per-query and improve throughput on existing hardware, improving the commercial viability of non-interactive private LLM inference.
  • Low retraining barrier and integration cost:
    • HEAT is a fine-tuning method (no architecture redesign, no distillation), so providers can adopt it on pretrained models with modest extra training expense (the paper reports ≲7 hours on a single A100 for GPT-2-small).
    • This reduces time-to-market and engineering effort compared with proposals that require bespoke encryption-friendly model architectures or full retraining.
  • Market and product implications:
    • Makes privacy-preserving inference (via FHE) more feasible for high-value, latency-tolerant use cases (e.g., sensitive enterprise queries, regulated data domains) that previously avoided FHE because of cost and latency.
    • Could shift pricing/packaging: providers may be able to offer lower-cost private-inference tiers or higher margins on private-inference products due to reduced computation.
    • Providers may prefer HEAT over heavier investments in re-architecting models purely for FHE, at least as an intermediate strategy.
  • Limits and caveats for economic impact:
    • Absolute latency after HEAT remains large for interactive use (≈37.6 s/token on the evaluated stack). For many consumer-facing applications, that remains impractically high; HEAT primarily improves economics for privacy-sensitive, throughput-insensitive workloads or as part of a hybrid solution.
    • Results reported for one model size (GPT-2 124M), one cryptographic parameterization, and one modality (text). Gains and cost-effectiveness may differ for larger models, different packing strategies, other modalities, or alternate FHE parameter choices.
    • There is an upfront fine-tuning cost (compute, engineering), but the paper’s reported training cost was modest relative to pretraining; economic trade-offs will depend on provider scale and expected query volume.
  • Strategic considerations for providers:
    • HEAT lowers the marginal cost of FHE inference per token, but full commercial adoption will likely require combining HEAT with other system and packing optimizations, hardware acceleration for bootstrapping, or selective use of cheaper privacy techniques (e.g., MPC, hybrid split computation) depending on use-case latency requirements.
    • Regulators or sectors demanding strong cryptographic privacy may value HEAT-enabled services more, increasing willingness-to-pay and offsetting remaining latency premiums.

Overall, HEAT is a practical, low-friction method to reduce expensive FHE operations by co-adapting model weights and per-site approximation depth—improving the cost-efficiency and fidelity of encrypted LLM inference and making some privacy-preserving deployments more economically attractive, while not yet making FHE inference broadly suitable for low-latency, consumer-scale interactive use.

Assessment

Paper Typeother Evidence Strengthmedium — The paper provides real encrypted end-to-end experiments (not just simulation), ablations (squeezing vs. HEAT) and quantitative metrics (iterations, bootstraps, latency, KL/top-k agreement) showing consistent gains; however evidence is limited to one small backbone (GPT-2 124M), one cryptographic parameterization and a single hardware/backend, so external validity and generality are not yet established. Methods Rigormedium — Experiments run on actual FHE backend with measured end-to-end latency, baseline and ablation comparisons, and a clear optimization objective and training schedule; but scope is narrow (single model, single security/CKKS setting), statistical variability/uncertainty is not reported, and economic/resource-cost analysis across broader deployments or larger models is absent. SampleFine-tuning and evaluation use GPT-2 (124M) fine-tuned on the OpenWebText training set (≈1.5×10^8 tokens, ~2% of original pretraining corpus). Validation is mean over 32 held-out batches every 250 updates. Encrypted inference uses RNS CKKS at 128-bit security on an A100 GPU with a FIDESlib-based backend; latency and bootstrap counts are medians over 128 teacher-forced decodes of 128 tokens each. Themesadoption innovation GeneralizabilityEvaluated on a single, relatively small transformer (GPT-2 124M); results may differ for larger LLMs or other architectures., Single cryptographic parameterization (RNS CKKS, 128-bit) and one backend (FIDESlib) — different FHE schemes/params could change depth/bootstrapping trade-offs., Only autoregressive language-model decoding task and text modality tested; other modalities or tasks (e.g., classification, vision, audio) may have different bottlenecks., Measured on one GPU/hardware configuration; absolute latency gains may vary with hardware, parallelism, or multi-node deployments., Per-site learned iteration counts are fixed at deploy time to avoid timing leaks; dynamic/data-dependent execution effects are not evaluated., Security/precision trade-offs hinge on chosen calibration metrics and backend bootstrap precision; alternative calibration choices could alter results.

Claims (8)

ClaimDirectionOutcomeConfidence & EvidenceDetails
HEAT reduces the total number of iterative solver iterations per forward pass on encrypted GPT-2 from 712 to 228, a 3.1× reduction. Task Completion Time positive Total solver iterations per forward pass
Reading fidelity high
Study strength medium
3.1× cut, from 712 to 228 iterations
0.12
HEAT reduces encrypted GPT-2 bootstraps from 513 to 326 per generated token, a 1.6× reduction. Task Completion Time positive Bootstraps per generated token
Reading fidelity high
Study strength medium
n=128
1.6× reduction, from 513 to 326 bootstraps per token
0.12
HEAT reduces end-to-end encrypted GPT-2 decoding latency from 54.3 seconds per token to 37.6 seconds per token, approximately a 1.4× improvement. Task Completion Time positive End-to-end encrypted decoding latency per generated token
Reading fidelity high
Study strength medium
n=128
from 54.3 s/tok to 37.6 s/tok; 1.4× reduction
0.12
HEAT improves pooled top-1 agreement between encrypted GPT-2 decoding and each model’s plaintext logits from 74.0% for the calibrated baseline to 82.9% for HEAT. Output Quality positive Top-1 agreement between encrypted and plaintext model outputs
Reading fidelity high
Study strength medium
n=16384
74.0% to 82.9% top-1 agreement
0.12
At the final decoding position, HEAT has 6.6× lower KL divergence from its plaintext logits than the calibrated baseline. Output Quality positive KL divergence between encrypted and plaintext logits at the final sequence position
Reading fidelity high
Study strength medium
n=16384
6.6× lower final-position KL divergence
0.12
HEAT maintains more stable encrypted-to-plaintext agreement over sequence positions than the calibrated baseline: HEAT’s median KL increases from 0.016 to 0.129, whereas the baseline increases from 0.0013 to 0.519. Output Quality positive Change in median KL divergence across decoding positions
Reading fidelity high
Study strength medium
n=16384
HEAT: 0.016 → 0.129; baseline: 0.0013 → 0.519
0.12
HEAT’s learned iteration counts depend on co-adaptation with the model weights: transplanting the learned counts onto the pretrained baseline causes its logits to become non-finite, while the HEAT model runs the same circuit at perplexity 23.1. Output Quality mixed Model perplexity and numerical feasibility under transferred iteration counts
Reading fidelity high
Study strength low
HEAT: perplexity 23.1; pretrained baseline: non-finite logits
0.06
The paper’s empirical evidence is limited to one 124M-parameter GPT-2 backbone, one cryptographic parameterization, and one modality. Other negative Generality of the empirical evaluation
Reading fidelity high
Study strength high
n=1
0.2

Notes