[Paper Review] CAFE: Catastrophic Data Leakage in Vertical Federated Learning
CAFE is a novel data leakage attack in vertical federated learning that efficiently recovers large-batch training data from shared aggregated gradients using data index and internal representation alignment. It achieves state-of-the-art recovery quality with theoretical guarantees and demonstrates high-fidelity reconstruction of private data, including facial images, even under realistic training conditions.
Recent studies show that private training data can be leaked through the gradients sharing mechanism deployed in distributed machine learning systems, such as federated learning (FL). Increasing batch size to complicate data recovery is often viewed as a promising defense strategy against data leakage. In this paper, we revisit this defense premise and propose an advanced data leakage attack with theoretical justification to efficiently recover batch data from the shared aggregated gradients. We name our proposed method as catastrophic data leakage in vertical federated learning (CAFE). Comparing to existing data leakage attacks, our extensive experimental results on vertical FL settings demonstrate the effectiveness of CAFE to perform large-batch data leakage attack with improved data recovery quality. We also propose a practical countermeasure to mitigate CAFE. Our results suggest that private data participated in standard FL, especially the vertical case, have a high risk of being leaked from the training gradients. Our analysis implies unprecedented and practical data leakage risks in those learning settings. The code of our work is available at https://github.com/DeRafael/CAFE.
Motivation & Objective
- To expose the critical vulnerability of private data leakage in vertical federated learning (VFL) through shared gradients, challenging the assumption that larger batch sizes prevent data recovery.
- To develop a scalable and theoretically grounded data leakage attack capable of recovering large-batch training data in VFL settings where prior methods fail.
- To provide a practical defense mechanism—fake gradients—that mitigates data leakage without degrading model training performance.
- To empirically validate the effectiveness of CAFE in both static and dynamic training scenarios, including real-world datasets like CIFAR-10 and Yale face data.
Proposed method
- Leverages data index alignment across workers to link gradients to specific training samples in vertical FL.
- Uses internal representation alignment to recover the hidden layer activations (H) before the first fully connected layer from shared gradients.
- Applies a three-stage recovery process: (1) recover gradients w.r.t. first FC layer outputs, (2) recover inputs to the first FC layer, (3) reconstruct original data from these inputs.
- Employs a novel loss function and optimization strategy to enhance reconstruction fidelity, especially under large-batch settings.
- Introduces a defense mechanism using fake gradients—artificially injected noise during training—to disrupt the attack while preserving model accuracy.
- The fake gradient method is designed to be compatible with standard optimization (e.g., SGD) and does not require model retraining or architectural changes.
Experimental results
Research questions
- RQ1Can large-batch data be effectively recovered from shared gradients in vertical federated learning, despite the common belief that larger batches prevent leakage?
- RQ2What theoretical guarantees can be provided for the data recovery performance of a gradient-based attack in VFL?
- RQ3How does the proposed CAFE attack compare to existing methods like DLG, Cosine similarity, and SAPAG in terms of reconstruction quality and scalability?
- RQ4Can a practical defense mechanism be designed that disrupts data leakage without degrading model training performance?
- RQ5To what extent does the attack remain effective during ongoing model training, and how does learning rate affect recovery success?
Key findings
- CAFE achieves PSNR of 31.24 on CIFAR-10 and 30.74 on Linnaeus 5 with a batch size of 40, significantly outperforming prior methods like DLG and Cosine similarity.
- On the Yale face dataset, CAFE achieves PSNR above 42, demonstrating high-fidelity reconstruction of sensitive facial images.
- In dynamic training scenarios, CAFE successfully recovers data with PSNR > 20 even when the model is converging (e.g., PSNR = 20.72 at 20,000 iterations on MNIST).
- The fake gradient defense reduces PSNR of recovered data from 28.68 (with real gradients) to 7.67 (with fake gradients), effectively mitigating leakage.
- The training process with fake gradients maintains comparable model accuracy (e.g., 0.68 on MNIST) and loss stability, confirming that the defense does not compromise model performance.
- CAFE’s performance remains consistent across different numbers of workers (4 vs. 16), indicating scalability and robustness in realistic VFL deployments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.