Pith.
Menu

Cryptography and Security · arXiv:2612.00377 v1 · submitted 30 Nov 2026 · 14 references

BlockGuard: Serverless Selective Homomorphic Encryption for Federated Learning

Amine Barrak

The paper says

“BlockGuard aggregates 1.9-2.1x faster than MaskCrypt in one function, costs 7x less than full HE, and matches plaintext accuracy.”

The 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.

from the abstract

Pith says

Holds up. BlockGuard provides a practical way to run selective homomorphic encryption for federated learning on serverless platforms, with measured speed and cost improvements over single-function baselines.

Machine review · 2 Dec 2026 · Full text · 4 minor

Challenge this review Reply to this review
How this review was made

Machine review · deepseek-v4-flash · 2 Dec 2026 · read the full text (41,098 characters) · not checked by a person

The reviewer was given the whole text, 41,098 characters. Not checked: figures, code, what the 14 references say.

How the review went

5 passes by deepseek-v4-flash · 2 Dec 2026

  1. Reader holds up confidence moderate
  2. Skeptic concern withdrawn: the paper already says this 53 s · 16,995 tokens read, 5,420 written
  3. Referee 4 minor 17 s · 17,481 tokens read, 1,671 written
  4. Check against the paper kept 0 of 2 objections 27 s · 18,293 tokens read, 2,870 written
  5. Editor wrote the verdict above 8 s · 17,623 tokens read, 769 written

Not run on this paper: the simulated authors' defence.

Pith's passes raised 2 objections. A check against the paper's text kept 0 and withdrew 2 (2 the paper already says).

The test under “What would settle it” is from Pith's summary of the paper.

Fingerprints, costs and the commands that check them

What would settle it

Deploy BlockGuard with a different CKKS parameter set (e.g., N = 16384) or a different model (e.g., ResNet-50) and measure whether the per-shard memory still stays below the function limit and whether the aggregation time advantage over single-function MaskCrypt holds. Additionally, run the full training with non-IID data splits on larger client counts (e.g., 100 clients) to see if accuracy remains comparable and memory remains bounded.

4 minor objections

  1. 4.2 Workflow of a round Step 4 describes selective encryption and upload. It would be helpful to clarify whether the per-shard index lists are included in the plan or derived deterministically from the mask and shard boundaries. The text later mentions derivation, but the workflow step could be more explicit.
  2. 7 Results, Table 2 The PSNR values for MaskCrypt-1 and BlockGuard are given as two numbers separated by a slash (e.g., 11.1 / 38.2). The caption indicates 'fill/mask-aware attacker', which is clear, but the table would benefit from a note or subscripts to avoid confusion.
  3. 4.5 Memory-aware heterogeneous sharding Equation (5) uses 'm0κ' as the runtime baseline. The values given (450 MB for HE, 200 MB for plain) seem high relative to typical Lambda overhead. A brief justification or reference for these measurements would improve reproducibility.
  4. 4.6 Block-parallel serverless aggregation Algorithm 1 mentions 'load cached public context' but does not describe how caching works across invocations or when the context expires. A short note about warm-start behavior would be useful.

A machine wrote this review. Check any line against the paper. If a line is wrong, say so, and the correction goes on the record.

Are you an author of this paper?

Reply on the record, clarify a point, or challenge an error.

A reply is published word for word beside the review once Pith has verified that the paper is yours.

The review in full

The review in brief

BlockGuard makes selective homomorphic encryption aggregation fit serverless functions, where full HE and even a selective scheme like MaskCrypt run out of memory or scale poorly. The key ideas are density-aware block partitioning (encrypting whole blocks where the mask is dense, keeping per-weight selectivity elsewhere) and heterogeneous sharding that sizes encrypted and plaintext shards separately to match function memory. The system is deployed on AWS Lambda with open-source code, and the evaluation shows that BlockGuard fits within 3 GB functions for ResNet-18 and ResNet-34, aggregates 1.9-2.1x faster than a single-function MaskCrypt deployment, costs about 7x less than full HE, and matches plaintext accuracy.

The authors honestly acknowledge limitations: the evaluation uses CIFAR-10 with 10 IID clients and one CKKS parameter set, the MaskCrypt times for 20 and 50 clients are projected from 10-client measurements, and the comparison does not isolate how much of the speedup comes from parallelism versus density-aware planning. The privacy analysis correctly notes that selective HE leaves the unencrypted weights visible to a mask-aware attacker, a fundamental limit that applies to any partial encryption scheme.

This is a solid systems contribution that addresses a real practical bottleneck. The design is clearly explained, the implementation is real, and the reported numbers are credible within the scope tested. For researchers working on privacy-preserving federated learning or serverless computing, this paper offers a concrete architecture and measured baselines. It deserves a serious referee.

The stress test's concern

Withdrawn: the paper already says this.

The paper says

“High-client-count MaskCrypt results are projected from 10-client measurements”

Pith's reading

Federated learning clients send model updates that can leak private data. Homomorphic encryption (HE) lets a server sum encrypted updates, but HE ciphertexts are many times larger than the plaintext weights, so a fully encrypted model often exceeds the memory of a serverless function. Prior selective-HE methods encrypt only the most sensitive weights, but those weights are scattered across the model and are still aggregated on one server. BlockGuard divides the model into blocks, encrypts dense blocks entirely and sparse blocks only at their masked positions, and splits each block into shards small enough for one function. Functions aggregate all shards in parallel. On AWS Lambda with ResNet-18 and ResNet-34, BlockGuard works where a single function runs out of memory, aggregates 1.9-2.1x faster than the single-function MaskCrypt, costs about 7x less than full HE, and achieves the same test accuracy as plaintext aggregation.

What carries the argument. The central mechanism is a density-aware block plan combined with memory-aware heterogeneous sharding. The coordinator partitions the model into blocks (e.g., residual stages) and, given a parameter-level mask from any selective-HE selector, computes each block's mask density. Blocks with density above a threshold (δ = 0.3) are encrypted whole; blocks with lower density encrypt only the masked weights; blocks with no masked weights stay plain. Each block is then cut into shards: encrypted shards are sized according to the HE function's memory (3,008 MB) and CKKS expansion (80.9 B/value), and plaintext shards according to the plain function's memory (1,024 MB) and float32 size (4 B/value). All shards are aggregated in parallel by Lambda functions, which stream client updates from object storage and compute the weighted sum (using CKKS addition for encrypted shards, float addition for plaintext shards).

Core claim. BlockGuard makes selective homomorphic encryption fit within serverless function memory by combining density-aware block-level planning with heterogeneous sharding. It uses a mask from an existing selector (MaskCrypt), then assigns each model block a mode: encrypt the whole block if its mask density is high, encrypt only the masked parameters if density is low, and skip blocks with no masked parameters. Each encrypted or plaintext shard is sized so that a Lambda function of its assigned memory (3,008 MB for HE, 1,024 MB for plain) can stream all client updates without exceeding memory. All shards are aggregated in parallel by independent function invocations. The paper reports that on AWS Lambda, this design lets BlockGuard handle ResNet-18 and ResNet-34 where a single function fails, achieves 1.9-2.1x faster aggregation than MaskCrypt in one function at similar Lambda cost, reduces Lambda aggregation cost by 7x compared to full HE, and keeps the decrypted result within 2.1e-4 of plaintext FedAvg while reaching comparable test accuracy over 50 rounds.

The premise it rests on. The evaluation assumes IID data across 10 clients on CIFAR-10, fixed CKKS parameters (N = 8192, moduli {60,40,40,60}) and a 3,008 MB Lambda memory cap; the high-client-count MaskCrypt results are projected from 10-client measurements, and the comparison does not isolate the benefit of block parallelism from that of density-aware planning.

If the paper is right

BlockGuard enables selective-HE aggregation to run fully on serverless functions for models where full HE or single-function selective HE would exceed memory limits.

The system decouples aggregation granularity from model size: as the model grows, BlockGuard adds more shards rather than increasing per-function memory, keeping within Lambda limits.

The density-aware planning can reduce the number of encrypted values relative to encrypting every touched tensor, by promoting dense blocks to full-block encryption only when the overhead is small.

Because BlockGuard uses the same CKKS parameters and public-key-only operations, the decrypted aggregate matches plaintext FedAvg up to CKKS noise, and the training accuracy is unchanged.

If BlockGuard's performance generalizes to larger models and non-IID data, it could make serverless aggregation with selective HE practical for production FL deployments where privacy and cost are both concerns.

The limit that a mask-aware attacker can still reconstruct images using only the plaintext coordinates applies to any selective-HE scheme that exposes the positions of encrypted weights, not just BlockGuard. Masking the plaintext shards, as the authors suggest for future work, would address this weakness.

BlockGuard's block-level planning could be extended to automatically tune the density threshold delta and function memory assignments based on runtime monitoring of shard memory usage and aggregation time.

The paper's cost analysis does not include S3 storage or data transfer charges; a full end-to-end cost comparison with an always-on EC2 aggregator would clarify the total savings of the serverless approach.

Check this review

What was read

The passes were given all 41,098 characters of the paper's LaTeX source.

Fingerprint of that text (SHA-256): eb5035d394ab5b3b9f61abec2754ec5e9bd2cb963d0eca9641d9c47cf7da2de3

Pith does not keep that text. Rebuilt from the paper's source or PDF by the same code, it has this fingerprint if it is the same text. From a copy of Pith's code:

PYTHONPATH=. python scripts/review_input_check.py 2612.00377

The passes, in the order they ran

  1. Reader deepseek-v4-flash · medium effort · $0.0018 · instructions of the Reader, fingerprint f9ead7300382…
  2. Skeptic deepseek-v4-flash · medium effort · $0.0019 · instructions of the Skeptic, fingerprint 8f88c0f61488…
  3. Referee deepseek-v4-flash · medium effort · $0.0015 · instructions of the Referee, fingerprint a852d99aea0d…
  4. Check against the paper deepseek-v4-flash · medium effort · $0.0017 · instructions of the Check against the paper, fingerprint 6c7a6883d551…
  5. Editor deepseek-v4-flash · medium effort · $0.0012 · instructions of the Editor, fingerprint e7211f6a3d27…
  6. Circularity check deepseek-v4-flash · medium effort · $0.0012 · instructions of the Circularity check, fingerprint e9946e39d67b…
  7. Summary for the page deepseek-v4-flash · medium effort · temperature 0.2 · $0.0015 · instructions of the Summary for the page, fingerprint e4f56bf568e7…

The passes cost $0.011 in model calls together.

Version stamped on this review: pith-pipeline@v1.4.1-daily-deepseek-or-medium+deepseek/deepseek-v4-flash+p.d60f54226f00

Each link opens a pass's instructions as plain text, the exact bytes its fingerprint was taken over. Every stored set of instructions.

curl -s https://pith.science/methodology/prompts/f9ead730038216984cfb56d7cb34332bdf691828296a1de4245f3d6667d4bf56 | sha256sum

prints the fingerprint of the reader's instructions. The same works for every pass.

The receipt

The review's fingerprint was taken on 2 Dec 2026. The review you are reading still matches it.

Fingerprint of the review (SHA-256): 85ee58acb1a0a218e4bd3b9b4182bb4b55f938188b040f3ab49556c4c5f186fc

curl -s 'https://pith.science/api/v1/verdicts/2612.00377?form=canonical' | sha256sum

prints the fingerprint of the review as it stands now. The rule, in four steps.

A matching fingerprint shows the review has not changed since that date. It does not show that the review is right.

Reviews like this one: written by deepseek-v4-flash, from the paper's LaTeX source.

Every value above, in the review's public record (JSON)

No person has reviewed this paper on Pith yet. A scientist listed on Pith can review it for a fee, and the review is published here whatever it concludes. Request a human review

How Pith checks papers · The full audit of this paper

The paper

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.

A classifier labelled each sentence of the abstract by the part it plays in the paper. The labels are kept beside the review and separate from it: the review read the paper's text, and these labels cover the abstract only. Every quoted sentence is the authors' own. No sentence in this record was written by a model.

abstract compiled · 2 Dec 2026

The main claim

“BlockGuard aggregates 1.9-2.1x faster than MaskCrypt in one function, costs 7x less than full HE, and matches plaintext accuracy.”

Stated as asserted.

The abstract, sentence by sentence

This table labels the abstract only (arXiv listing abstract v1). The number is the probability the classifier gave the label.

SentenceRoleThe authors' own workStates the main conclusionStrength
Federated learning (FL) clients share model updates that can leak their training data. background 1.00 0.06 0.02 hedged possibility 0.62
Homomorphic encryption (HE) lets the server sum the updates while they stay encrypted. background 1.00 0.05 0.03 asserted 1.00
Serverless functions can run this aggregation in parallel and avoid paying for a server that idles most of each round. background 0.83 0.12 0.04 asserted 0.91
HE ciphertexts, however, are many times larger than the weights, so a fully encrypted model exceeds a function's memory. background 0.69 0.16 0.03 asserted 1.00
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. gap 0.66 0.21 0.08 asserted 1.00
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. method 0.91 0.82 0.15 asserted 1.00
Functions then aggregate all shards in parallel. method 0.98 0.65 0.06 asserted 0.99
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. result 1.00 0.93 0.12 asserted 1.00
BlockGuard aggregates 1.9-2.1x faster than MaskCrypt in one function, costs 7x less than full HE, and matches plaintext accuracy. result 1.00 0.94 0.45 asserted 1.00
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. limitation 0.96 0.49 0.16 asserted 0.97

What kind of paper the classifier reports this is: method or tool 1.00 · evidence from observation or experiment 0.95

What was examined, and what was not

These lists are about the sentence labels. What the review read is said with the review.

Read

  • arXiv listing abstract v1

Not read

  • full text
  • figures and tables
  • references and citing sentences
  • relations to other papers

Labelled

  • abstract

Not labelled

  • sections
  • body sentences
  • citations
  • cross-paper relations

The main claim, as probabilities

picked as the main claim 0.98 · how strongly it is stated 1.00

What the abstract itself states, as probabilities

claims first 0.08 · states limitation 0.91 · human participants 0.09 · controlled comparison 0.85 · randomized assignment 0.02 · states quantitative result 0.99 · compares with prior results 0.98 · mentions code or data availability 0.03

How the labels were made

Compiled by classifier-1.13.0 via TypeSafe API, question bank abstract-p1-20260923, 2026-12-02: 1 request, 7,592 input tokens.

This record as JSON, with every label and the probability the classifier gave it.

Figures (4)
Figure 1 of the paper
Figure 1. BlockGuard overview. Clients encrypt the sensitive block 𝑆 under a shared key and send the other blocks in plaintext. Per-block serverless aggregators (𝜆) run in parallel; block 𝑆’s aggregator sums its ciphertexts homomorphically. 2 Background and Related Work Leakage and secure aggregation. Client updates leak training data: gradient inversion [6] recovers training images by optimizing dummy inputs whose gradients match the shared ones. Secure aggregation with pairwise masking [4] hides individual updates (masks cancel), but needs a per-round key agreement among clients and…
Figure 2 of the paper
Figure 2. MaskCrypt mask density per ResNet-18 block
Figure 3 of the paper
Figure 3. Training (ResNet-18, 50 rounds): test accuracy and mean round time. *Client scoring is sequential in simulation
Figure 4 of the paper
Figure 4. Privacy: PSNR over 8 images (lower is better) Cost and latency. BlockGuard encrypts 11% of each model, uploads 6.5× less than full HE and encrypts on the client 8.5× faster (2.0 vs. 17.3 s for ResNet-18). It aggregates 1.9–2.1× faster than MaskCrypt-1 at similar Lambda cost. It is 6.6–12.8× faster than full HE split into blocks (FullHE-B) and incurs 7.2–7.4× lower Lambda aggregation cost (

Figures are the authors', reproduced from the paper.

References (14)
  1. [1] Amazon Web Services. 2026. AWS Lambda quotas.https://docs.aws. amazon.com/lambda/latest/dg/gettingstarted-limits.html on Pith
  2. [2] Amine Barrak. 2026. Shard the Gradient, Scale the Model: Server- less Federated Aggregation via Gradient Partitioning.arXiv preprint arXiv:2604.22072(2026) on PithPith's reviewarXiv
  3. [3] Ayoub Benaissa, Bilal Retiat, Bogdan Cebere, and Alaa Eddine Belfed- hal. 2021. TenSEAL: A Library for Encrypted Tensor Operations Using Homomorphic Encryption.arXiv preprint arXiv:2104.03152(2021) on PithPith's reviewarXiv
  4. [4] Keith Bonawitz, Vladimir Ivanov, Ben Kreuter, Antonio Marcedone, H. Brendan McMahan, Sarvar Patel, Daniel Ramage, Aaron Segal, and Karn Seth. 2017. Practical Secure Aggregation for Privacy-Preserving Machine Learning. InACM CCS on Pith
  5. [5] Jung Hee Cheon, Andrey Kim, Miran Kim, and Yongsoo Song. 2017. Homomorphic Encryption for Arithmetic of Approximate Numbers. InASIACRYPT on Pith
  6. [6] Jonas Geiping, Hartmut Bauermeister, Hannah Dröge, and Michael Moeller. 2020. Inverting Gradients – How Easy Is It to Break Privacy in Federated Learning?. InNeurIPS on Pith
  7. [7] Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. 2016. Deep Residual Learning for Image Recognition. InCVPR on Pith
  8. [8] Chenghao Hu and Baochun Li. 2024. MaskCrypt: Federated Learning with Selective Homomorphic Encryption.IEEE TDSC(2024) on Pith
  9. [9] K. R. Jayaram, Vinod Muthusamy, Gegi Thomas, Ashish Verma, and Mark Purcell. 2022. 𝜆-FL: Serverless Aggregation for Federated Learn- ing. InFL-AAAI Workshop on Pith
  10. [10] Weizhao Jin, Yuhang Yao, Shanshan Han, Jiajun Gu, Carlee Joe-Wong, Srivatsan Ravi, Salman Avestimehr, and Chaoyang He. 2023. FedML- HE: An Efficient Homomorphic-Encryption-Based Privacy-Preserving Federated Learning System.arXiv preprint arXiv:2303.10837(2023) on PithPith's reviewarXiv
  11. [11] Alex Krizhevsky. 2009.Learning Multiple Layers of Features from Tiny Images. Technical Report. University of Toronto on Pith
  12. [12] Gang Liu, Lanfang Huang, Dian He, and Aoli He. 2026. FLFaaSPHE: A Lightweight Privacy-Preserving Federated Learning Framework for Serverless Computing Environments.IEEE TDSC(2026) on Pith
  13. [13] Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Agüera y Arcas. 2017. Communication-Efficient Learning of Deep Networks from Decentralized Data. InAISTATS on Pith
  14. [14] Shixiong Qi, K. K. Ramakrishnan, and Myungjin Lee. 2024. LIFL: A Lightweight, Event-driven Serverless Platform for Federated Learning. InMLSys on Pith

Challenges and discussion

Disagree with the review, or know something it missed? Leave a comment, or challenge this review formally: a challenge becomes a permanent entry in this paper's record, and its decision is published here.

No comments yet.

Sign in to comment