acceptodds
Published as a conference paper at NeurIPS 2026

Aegis: Generative Gradient Masking for Privacy-Preserving Medical Federated Learning

Chaoyu Zhang, Shanghao Shi, Heng Jin, Ning Wang, Thomas Hou, Wenjing Lou

Abstract

Federated learning (FL) has become a foundational paradigm for multi-institutional medical AI, allowing hospitals and research centers to jointly train diagnostic models without exchanging patient records. This privacy promise, however, is increasingly contested: a malicious or honest-but-curious server can launch model inversion attacks (MIAs) that reconstruct private patient images directly from shared model updates, and recent scalable, closed-form attacks penetrate even secure aggregation at clinically realistic batch sizes. Existing defenses face an unsatisfactory dilemma. Gradient-perturbation methods such as differential privacy and pruning trade away the diagnostic accuracy on which clinical reliability depends, while cryptographic protocols add system complexity yet still leave updates exposed to these scalable attacks. We propose Aegis, a principled client-side defense that breaks this dilemma without perturbing patient data or modifying the FL protocol. Our key insight is that the success of every known MIA is fundamentally bounded by the local batch size relative to the model's leakage capacity; once this limit is exceeded, distinct samples collide and reconstructions collapse into indistinguishable mixtures. Aegis turns this universal bottleneck into a defense: each client superimposes onto its real update a masking gradient computed on locally synthesized, task-relevant data, deliberately pushing the effective batch beyond the attack's recovery capacity. We complement the design with theoretical convergence guarantees under standard convex assumptions and evaluate Aegis on MNIST, CIFAR-10, and three MedMNIST modalities (chest X-ray, abdominal CT, colon pathology). Aegis neutralizes three state-of-the-art MIAs while preserving model utility and incurring only modest overhead, offering a practical privacy primitive for medical FL.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 46%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.25 over 4 reviews, above 46% of the others.
Reviewer_tAouOpenReview ↗
Rating
5
Clarity
4
Confidence
3
Originality
3
Quality
3
Significance
3
Read review
Summary

The paper presents Aegis, a client-side defense for privacy-preserving medical FL. It targets model inversion attacks that can reconstruct private training images from shared updates, including recent attacks that still work even with secure aggregation. The main idea is to use locally generated synthetic data to create an extra masking gradient (where in medical use case data samples are scarce), and then add it to the real client update before sending it to the server. This increases the effective batch size seen by the attack and makes reconstruction collapse into mixed or blurred outputs instead of individual patient samples. The paper evaluates Aegis on MNIST, CIFAR-10, and several MedMNIST medical datasets, and reports that it reduces attack success while keeping model utility close to the no-defense case.

Strengths and weaknesses

The main idea, Aegis, is simple and nice, each client uses synthetic data to make a masking gradient, and then adds this to the real update before sending it. The method is easy to understand, and it does not need a big change in the FL protocol.

The idea of making the effective batch larger is intuitive, and the experiments show that the method can reduce reconstruction quality while keeping utility close to the baseline. Another strength is originality: the defense is not just adding random noise, but using generated data in a more structured way.

A weakness is the quality of the evaluation in non-IID settings. In practice, different hospitals often have very different amounts of samples, and this should be tested more directly. I think using a Dirichlet split (i.e., https://arxiv.org/pdf/2102.02079) would make the evaluation more realistic and stronger. This matters because the method depends on local training and on the relation between real data and synthetic masking, so the behavior can change when some clients have much less data than others. It is also possible that clients with fewer samples are easier to attack, or at least need different masking strength, assuming some clients have very different DiD_i, which would have some effects in Algorithm A.1. Writing in the paper “We use non-IID FedAvg” does not help to understand what the clients’ real distributions are.

A weaknesses it’s the comparaison with cryptographic solution, in [23] (Model inconsistency attack) the solution called conditional secure aggregation has been introduced, the idea it’s to add integrity mechanism in the secure aggregation protocol, like using the hash of the local client parameters. For example in https://eprint.iacr.org/2025/574 they proposed to use incremental hashing over the model parameters to efficiently compute the hash. It adds extra communication (it scales with the number of clients), and requires extra computation. I think that a comparaison also with some integrity method that follows te conditional secure aggregation idea would improve the final paper.

Overall, I think the paper has a good and original idea, and the main mechanism is promising. The writing is clear enough and the experimental results are encouraging. But the evaluation should be broader and more realistic, especially for non-IID hospital data, before the method can be seen as fully convincing for healthcare FL. And it should also expanded the cryptography solution comparaison.

Questions

My main questions are:

  • The paper should evaluate a deeper non-IID use case, especially with different dataset sizes, which is a common case in real-world healthcare applications. What is the current setup of D_i for all clients i?
  • Comparing with some conditional secure aggregation technique to see the computation comparison would improve the final paper.
  • Can it also be evaluated with non-CNN neural networks, like ViT?
Limitations

yes

Paper formatting concerns

no

Final justification

The authors have addressed all my concerns, and the work presents several interesting ideas.

Reviewer_MUKdOpenReview ↗
Rating
4
Clarity
3
Confidence
2
Originality
2
Quality
2
Significance
3
Read review
Summary

The paper proposes Aegis: clients leverage a generative model to construct a large-scale synthetic dataset, and during local training they superimpose an additional gradient computed on this synthetic data. This pushes the effective batch size beyond the bin capacity of the linear-leakage layer implanted by the malicious server, causing gradient inversion to collapse into mixed images of multiple samples rather than recover identifiable real medical images. The paper evaluates on MNIST, CIFAR-10, and three MedMNIST datasets, claiming to defend against Robbing-the-Fed, LOKI, and Scale-MIA while maintaining reasonably good model utility.

Strengths and weaknesses

Strengths

  • Clear core intuition. Aegis exploits the reliance of linear-leakage attacks on approximately separating samples into leakage bins. Using synthetic-data gradients to induce collisions between samples is conceptually simple and potentially interesting.

Weaknesses

  • Mismatch between the threat model and the defense condition. The server is assumed to control the malicious leakage architecture and hence the number of leakage bins (k). However, the defense is effective only when the combined private and synthetic batch size exceeds the number of attacker-controlled leakage bins, i.e., (B + M_i > k). Thus, the client must know or upper-bound an attacker-controlled quantity (k), which appears incompatible with the stated setting. An adaptive server could increase (k), add a wider leakage branch, or separate real and synthetic samples through selective activations. The paper should either provide a mechanism for bounding or auditing (k), or narrow the threat model accordingly.

  • Limited medical realism. The medical evaluation is restricted to low-resolution MedMNIST benchmarks. It does not establish effectiveness for clinically realistic settings such as high-resolution CT, DICOM studies, 3D volumes, or whole-slide pathology images.

  • Generator assumption is insufficiently justified. The defense depends on synthetic samples being sufficiently task-relevant and overlapping with private samples in the attack-relevant leakage space, but this is not validated convincingly for medical data. If local fine-tuning on private data is required, the paper should clarify whether the generator itself may memorize sensitive samples, what a “sanitized subset” means, and what privacy protection this preprocessing provides.

Questions

Questions

  1. How practical is Aegis for resource-constrained medical FL clients? The method requires a local conditional generator, a cached defense set of (M_i=2048) samples, and an additional masking forward-backward pass per local epoch. Could the authors report the total generation, storage, memory, and runtime cost on lower-resource settings, such as CPU-only clients or GPUs with limited memory? It would also be helpful to clarify how the generator is obtained and whether local fine-tuning on private medical data introduces memorization risks.

  2. How should a client choose (M_i) when the malicious server can adapt the leakage capacity (k)? The defense relies on (B + M_i > k), but (k) is attacker-controlled and may vary across rounds or leakage architectures. Please clarify whether there is a principled lower bound for (M_i) without knowing (k), and evaluate robustness when the server increases (k) dynamically or uses leakage mechanisms not governed by the same FC-layer bin-capacity condition.

Limitations

yes

Paper formatting concerns

none

Final justification

The authors’ rebuttal regarding limited data and training efficiency has addressed some of my previous concerns. After considering the authors’ responses and their discussion with the other reviewers, I have decided to raise my score.

Reviewer_veVQOpenReview ↗
Rating
4
Clarity
3
Confidence
2
Originality
4
Quality
3
Significance
4
Read review
Summary

This paper presents a federated learning method that defends model inversion attacks. At the core of the proposed method is imposing mask gradients computed from local synthetic data. Experiments on several public datasets demonstrated the effectiveness the proposed method.

Strengths and weaknesses

Strengths: The idea of masking gradients is novel by leveraging generated data of same distribution is novel. The study has great significance in improving the safety of federated learning.

Weaknesses: The impact of the choice of generative model on reconstruction performance is unclear. The proposed method is limited to defending linear leakage MIAs.

Questions

Could the authors clarify the generative models used in synthesizing the dataset? How much is the computation overhead of the proposed method?

Limitations

I suggest to discuss the different generative model's impact to the model's performance.

Paper formatting concerns

No

Reviewer_hnbpOpenReview ↗
Rating
4
Clarity
3
Confidence
3
Originality
2
Quality
2
Significance
3
Read review
Summary

This paper proposes Aegis, a generative gradient-mixing defense for federated learning. Each client generates synthetic, task-relevant samples, computes an auxiliary gradient from them, and combines it with the private-data gradient. The resulting increase in effective batch size is intended to exceed the capacity of linear-leakage attacks, causing reconstructed samples to collapse into mixtures. The method is evaluated against Robbing-the-Fed, LOKI, and Scale-MIA using PSNR, SSIM, and RR.

Strengths and weaknesses

Strengths

  • The method is intuitive, client-side, and compatible with existing federated-learning protocols. The reported experiments show that increasing the synthetic masking batch substantially reduces the reconstruction quality of the evaluated attacks.

Major Weaknesses

  • Lack of comparison with prior gradient-mixing work. For example, Eloul et al., “Mixing Gradients in Neural Networks as a Strategy to Enhance Privacy in Federated Learning,” WACV 2024, also use gradient mixing to mitigate inversion attacks, although their method mixes gradients among samples within a batch rather than combining gradients from private and auxiliary data. The authors should at least (1) include this method as a baseline and (2) cite and clearly discuss how Aegis differs from it.

  • Medical utility is not evaluated. Although the paper is framed around medical federated learning, task accuracy is reported only on MNIST and CIFAR-10, whereas the MedMNIST experiments evaluate privacy alone. The authors should report downstream task accuracy on the medical datasets to substantiate the claim that Aegis preserves utility in clinical applications.

  • Lack of generator analysis. The method relies heavily on masking gradients computed from Stable Diffusion-generated samples. However, the paper does not clearly state was fine-tuned on medical data and, if so, what data were used. Also, how realistic and diverse the generated medical images are. Since the quality and distributional alignment of the synthetic data may directly affect both privacy and utility, these aspects should be evaluated more thoroughly.

  • No privacy–utility trade-off analysis. The authors vary the masking batch size and report improved privacy, but do not provide the corresponding task accuracy across all datasets. Since the synthetic gradient could substantially degrade the accuracy, the paper should report privacy–utility trade-off curves for Aegis and all evaluated baselines.

Minor Issues

  • SSIM range. At Line 257, the SSIM range should be stated consistently with the implementation. In standard image-evaluation settings, SSIM is commonly reported in the range [0,1], rather than [−1,1].

  • Unclear gradient weighting. The update equation around Line 217 should clarify how the private and synthetic gradients are weighted. The equation applies the same learning rate to both gradients, whereas the subsequent discussion describes a weighted mixture.

  • Wall-clock comparison. Figure 3 should also plot accuracy against wall-clock time. Communication rounds alone do not provide a fair efficiency comparison because the evaluated defenses have substantially different per-round computational costs, as shown in Table 1.

  • At Line 259, the authors should define the abbreviation as “reconstruction rate (RR),” since RR is used later without a clear prior definition.

Questions

Please address the major concerns raised above, particularly the following:

  1. How does Aegis differ from prior gradient-mixing methods, especially Eloul et al. (WACV 2024), and why is this closely related work neither discussed nor included as a baseline?

  2. Why is task accuracy not reported on the medical datasets, despite the paper being primarily motivated by medical federated learning?

  3. How was the generator configured and evaluated for the medical datasets? In particular, was it fine-tuned on medical data, what data were used, and how were the realism, diversity, and distributional alignment of the generated samples assessed?

  4. Why are privacy–utility trade-off curves not provided for Aegis and the evaluated baselines across different defense strengths?

Limitations

No. The authors do not evaluate the trade-off between privacy and task utility, especially on the medical datasets.

Paper formatting concerns

no

Final justification

The authors provided useful additional results so I decided to raise score to borderline accept.

Comments on the paper

1 comment
Meta-review

The authors tackle the problem of model inversion attacks in the context of federated learning; and motivate their work primarily for medical domain/applications. The proposal is based on gradient mixing strategy that relies on using a synthetic data at each client to generate fake/synthetic gradients that break the batch size limits when pooled across federation; which essentially drives non-identifiability of the input samples. The proposal is evaluated on various standard datasets (including 3 medical ones).

The paper received valuable feedback, and the reviewers highlighted various critical pieces. I would request the authors to take a read of the comments/questions and address them to improve the case for publication. Specifically, the comments are on missing technical details (e.g., hyperparameter choices/tuning on attack bins size), a potential missing baseline, clarity on generator configuration, and mainly the generalization capacity to more in the wild medical data beyond medMNIST and possibly needing more quantitative evidence here (especially given that the motivation is anchored on medical settings).

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Related papers

Loading the map…

Discussion (0)

Sign in to comment.