← Lab /Software

Recifhe speeds up FHE programs 1.25× via polynomial-level optimizations

Recifhe achieves a 1.25× speedup over ciphertext-level-only optimization

Software arXiv 17 Jul 2026 Method Prototype evidence

Published as “Ciphertext- and Polynomial-Level Optimization for Fully Homomorphic Encryption”

Why it matters

The speed and memory improvements make FHE program compilation more practical for real-world ML workloads, though longer compile times may affect rapid development cycles.

Summary

Recifhe achieves a 1.25× speedup over ciphertext-level-only optimization and a 1.36× speedup with 0.93× the memory footprint compared to manually optimized polynomial sequences. It does this by adding polynomial-level optimizations such as ModDown hoisting, operation fusion, and liveness-driven scheduling guided by offline latency profiling. The evidence comes from 12 benchmark experiments, but the extra compile-time overhead (average 5.14 s, 2.92× the baseline) qualifies the performance gains.

What they found 2

  1. Recifhe reaches a 1.25× speedup over the ciphertext-level-only baseline across all 12 benchmarks

    “Recifhe applies hoisting only when Algorithm 1 finds it profitable, reaching 1.25× speedup over the ciphertextlevel-only baseline across all 12 benchmarks and 1.36× over the Cheddar baseline on the 9 benchmarks the Cheddar baseline completes.”

  2. Recifhe reduces memory footprint to 0.93× that of the Cheddar baseline

    “The liveness-driven scheduling of Recifhe reduces the memory consumption from hoisting and fusion, holding the footprint to 1.14× that of the ciphertext-levelonly baseline and 0.93× that of the Cheddar baseline.”

Caveats 4

  • Compile times increase to an average of 5.14 s across all 12 benchmarks, which is 2.92× the ciphertext-level-only baseline.
  • Polynomial-level passes consume 39.0% of total compile time, with performance-aware hoisting and fusion adding 1.31% and 14.3% respectively.
  • These gains cost additional compile time, with the polynomial-level passes taking 39.0% of Recifhe’s compile time on average, and performance-aware hoisting and fusion taking 1.31% and 14.3% of the total compile time, respectively.
  • The memory footprint remains 1.14× that of the ciphertext-level-only baseline despite reductions.

What’s new here 4

  • Adds a polynomial-level IR to enable optimizations across ciphertext operations.
  • Introduces performance-aware ModDown hoisting that uses latency profiles to decide profitability.
  • Fuses adjacent basis-changing operations (e.g., ModDown with Rescale) to eliminate redundant NTT/iNTT steps.
  • Applies liveness-driven scheduling to reduce memory growth caused by extended polynomial lifetimes.