BlockGuard: Serverless Selective Homomorphic Encryption for Federated Learning
Abstract
Federated learning (FL) clients share model updates that can leak their training data. Homomorphic encryption (HE) lets the server sum the updates while they stay encrypted. Serverless functions can run this aggregation in parallel and avoid paying for a server that idles most of each round. HE ciphertexts, however, are many times larger than the weights, so a fully encrypted model exceeds a function's memory. Selective HE, such as MaskCrypt, encrypts only the most sensitive weights, but these are scattered across the model, which MaskCrypt aggregates on one server. We present BlockGuard. It divides the model into blocks (groups of layers): blocks with many sensitive weights are encrypted whole, the other blocks encrypt only their sensitive weights, and every block is cut into shards small enough for one function. Functions then aggregate all shards in parallel. On AWS Lambda with 3 GB functions, encrypted ResNet-18 and ResNet-34 updates do not fit one function, while BlockGuard's shards stay below 1.4 GB. BlockGuard aggregates 1.9-2.1x faster than MaskCrypt in one function, costs 7x less than full HE, and matches plaintext accuracy. Although encrypting about 10% of the weights stops an attacker that guesses the encrypted weights, an attacker that uses only the unencrypted weights still reconstructs training images, a limit of partial encryption in general.
Create a lesson
Metadata
- Categories
- cs.CR, cs.DC
- Comments
- 6 pages, 4 figures, 4 tables. Accepted at the Second International Workshop on AI and Serverless (WoAIS '26), co-located with ACM/IFIP Middleware 2026, Tarragona, Spain
Related papers
Fed-LgDb: Loss-guided and Distance-based Client Selection for Robust IoV Federated Learning
Shared title terminologycs.CRKasun Eranda Wijethilake, Adnan Mahmood, Yingxun Wang et al.
COAST: Accurate and Efficient Homomorphic Softmax via Anchor Error Cancellation
Shared title terminologycs.CRRui Li, Wenyuan Wu, Weijie Miao
Comparative Evaluation of CNN, CNN-LSTM, and CNN-AGRU Architectures for Encrypted Network Traffic Classification
Shared title terminologycs.CRVenu Siddapura Govindaraju, Rujjal Sada, Imadaldin Berika
Replay-Protected Authenticated Encryption for CAN FD with Ascon-AEAD128 and Flash-Persisted Freshness on FPGA
Shared title terminologycs.CRKaviprashanna Krishnamoorthy, Vyshnav Nandha
Stress Testing Social Media Authentication Ceremonies of End-to-End Encrypted Messaging with Ephemeral Fake Accounts
Shared title terminologycs.CRMashari Alatawi, Md Shahidur Rahaman, Nitesh Saxena
An Ensemble Machine Learning Approach for Detecting Intrusion using Advance Feature Selection Technique
Shared title terminologycs.CRMd Raihan Al Masud, Hossen Asiful Mustafa