mlsanityData to 7 Oct 2026

CHEHAB RL: Learning to Optimize Fully Homomorphic Encryption Computations

arXiv 2601.19367 ↗First posted 27 Jan 2026cs.CR cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

Fully Homomorphic Encryption (FHE) enables computations directly on encrypted data, but its high computational cost remains a significant barrier. Writing efficient FHE code is a complex task requiring cryptographic expertise, and finding the optimal sequence of program transformations is often intractable. In this paper, we propose CHEHAB RL, a novel framework that leverages deep reinforcement learning (RL) to automate FHE code optimization. Instead of relying on predefined heuristics or combinatorial search, our method trains an RL agent to learn an effective policy for applying a sequence of rewriting rules to automatically vectorize scalar FHE code while reducing instruction latency and noise growth. The proposed approach supports the optimization of both structured and unstructured code. To train the agent, we synthesize a diverse dataset of computations using a large language model (LLM). We integrate our proposed approach into the CHEHAB FHE compiler and evaluate it on a suite of benchmarks, comparing its performance against Coyote, a state-of-the-art vectorizing FHE compiler. The results show that our approach generates code that is 5.3× faster in execution, accumulates 2.54× less noise, while the compilation process itself is 27.9× faster than Coyote (geometric means).

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 22 of its 75 references that are in the map. First posted on arXiv 27 Jan 2026.

Builds on

22 of 75 references.

References · 22

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2017Proximal Policy Optimization Algorithmscited by 14,441
  3. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,898
  4. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
  5. 2021CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representationcited by 229
  6. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
  7. 2018Learning to Optimize Tensor Programscited by 138
  8. 2018Tiramisu: A Polyhedral Compiler for Expressing Fast and Portable Codecited by 53
  9. 2019NeuroVectorizer: End-to-End Vectorization with Deep Reinforcement Learningcited by 37
  10. 2021A Deep Learning Based Cost Model for Automatic Code Optimizationcited by 33
  11. 2020AutoPhase: Juggling HLS Phase Orderings in Random Forests with Deep Reinforcement Learningcited by 24
  12. 2019EVA: An Encrypted Vector Arithmetic Language and Compiler for Efficient Homomorphic Computationcited by 20
10 more
  1. 2024EffiCoder: Enhancing Code Generation in Large Language Models through Efficiency-Aware Fine-tuningcited by 15
  2. 2023Orion: A Fully Homomorphic Encryption Framework for Deep Learningcited by 14
  3. 2021SoK: Fully Homomorphic Encryption Compilerscited by 9
  4. 2022MLGOPerf: An ML Guided Inliner to Optimize Performancecited by 9
  5. 2024LOOPer: A Learned Automatic Code Optimizer For Polyhedral Compilerscited by 7
  6. 2021A Reinforcement Learning Environment for Polyhedral Optimizationscited by 5
  7. 2022RL4ReAl: Reinforcement Learning for Register Allocationcited by 4
  8. 2025HEIR: A Universal Compiler for Homomorphic Encryptioncited by 4
  9. 2018goSLP: Globally Optimized Superword Level Parallelism Frameworkcited by 3
  10. 2021Porcupine: A Synthesizing Compiler for Vectorized Homomorphic Encryptioncited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.