Paper 2026/1817

ATLAS: Automated Approximation of Transformers for Efficient Homomorphic Inference in One Hour

Jianhang Xie, City University of Hong Kong
Sicheng Tan, Shandong University
Vishnu Naresh Boddeti, Michigan State University
Zhichao Lu, City University of Hong Kong
Abstract

Fully homomorphic encryption (FHE) lets a server run inference on encrypted data with strong privacy guarantees, but running a Transformer under FHE is expensive. Its non-linear operations, such as softmax, normalization, and activation, must be replaced with polynomial approximations that the CKKS scheme supports, and the depth of these approximations dominates inference cost. Existing FHE Transformers use hand-tuned approximation settings, such as iteration count and polynomial degree, applied uniformly across layers, models, and tasks. Hand-tuning is slow and error-prone. Even a single uniform setting has about $10^7$ choices, and manual search cannot exploit layer-wise variation. AutoFHE, the only automated method with multi-objective search, targets ReLU-only CNNs and needs full fine-tuning per candidate, which is too costly for Transformers. Per-layer settings also push the search space to about $10^{85}$ for BERT and ViT and $10^{228}$ for LLaMA3, beyond both manual and fine-tuning-based search. We present ATLAS, a training-free framework that automates this search by treating each layer's approximation setting as a multi-objective optimization over latency and accuracy. The problem is hard: the decision space is large (96 or 256 variables), each configuration takes 70 to 1,000 seconds to evaluate even in cleartext, and 85 to 90 percent of configurations are invalid. ATLAS handles this with a two-stage optimization strategy and a surrogate model, completing the search in about one hour. Compared to an iterative softmax baseline, ATLAS cuts multiplicative depth and end-to-end latency by about 35 percent with little accuracy loss, and works across encoder-only, decoder-only, and vision Transformers, complementing parallel work on packing and matrix multiplication.

Note: Code: https://github.com/jianhayes/ATLAS

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Preprint.
Keywords
Fully Homomorphic EncryptionCKKS SchemeTransformersSecure InferenceMulti-Objective Optimization
Contact author(s)
jianhang xie @ my cityu edu hk
sqtsc @ mail sdu edu cn
vishnu @ msu edu
zhichao lu @ cityu edu hk
History
2026-08-28: approved
2026-08-27: received
See all versions
Short URL
https://ia.cr/2026/1817
License
Creative Commons Attribution-NonCommercial-NoDerivs
CC BY-NC-ND

BibTeX

@misc{cryptoeprint:2026/1817,
      author = {Jianhang Xie and Sicheng Tan and Vishnu Naresh Boddeti and Zhichao Lu},
      title = {{ATLAS}: Automated Approximation of Transformers for Efficient Homomorphic Inference in One Hour},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1817},
      year = {2026},
      url = {https://eprint.iacr.org/2026/1817}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.