Mitigating Data Exfiltration Attacks through Layer-Wise Learning Rate Decay Fine-Tuning

Elie Thellier, Huiyu Li, Nicholas Ayache, Hervé DelingettearXiv 2025

TL;DR

Deep learning models trained on sensitive medical data lakes are vulnerable to data exfiltration attacks that secretly embed raw training images into model weights. This paper introduces Layer-Wise Learning Rate Decay Fine-Tuning (LWLRD FT), a post-training defense that applies high learning rates to early layers to wipe out hidden data while using low learning rates in later layers to preserve the model's primary diagnostic utility.

What Problem Does This Paper Address?

Medical data lakes allow institutions to train powerful AI models on high-value, sensitive datasets (like X-rays or dermatoscopic images) without directly sharing the raw data. However, recent security research has uncovered a scary vulnerability: malicious actors can execute data exfiltration attacks.

Attacks like Transpose and DEC (Data Exfiltration by Compression) act as covert containers. They train a model to perform a benign primary task (e.g., image classification) while simultaneously forcing it to memorize or steganographically hide high-fidelity training images inside its own parameters. To the data lake owners, the exported model looks perfectly normal, but the adversary can later extract the weights and reconstruct the private training data.

Existing defenses, such as standard fine-tuning or differential privacy, often fail because they either severely degrade the model's accuracy or leave the hidden data intact. This paper addresses the lack of lightweight, effective post-training sanitization methods capable of destroying exfiltrated data without sacrificing model performance.

Methods

The authors propose Layer-Wise Learning Rate Decay Fine-Tuning (LWLRD FT).

Traditional layer-wise learning rate decay—commonly used when fine-tuning NLP models and Vision Transformers—assigns lower learning rates to early layers to preserve low-level features and higher rates to later, task-specific layers. LWLRD FT deliberately reverses this logic.

Because data exfiltration attacks typically exploit the stability of early layers to hide data or build reconstruction heads, LWLRD FT shakes up these exact layers. It applies a high learning rate ($\eta_{high} = 1 \times 10^{-2}$) at the very first layer, which exponentially decays down to a low learning rate ($\eta_{low} = 1 \times 10^{-4}$) at the final output layer.

Fig. 1. Overview of our export-time mitigation. A malicious model trained on the data lake may retain both utility and private data. At export, we apply LWLRD FT using training data to disrupt early-layer memorization while preserving task performance. The sanitized model retains utility but loses reconstruction ability.

By fine-tuning the model on the original utility task for a few epochs with this reversed gradient strategy, the early-layer parameters are perturbed enough to corrupt the hidden images, while the stable later layers preserve the model's classification capabilities.

Datasets

The method was evaluated using three distinct medical imaging benchmarks:

  • DermaMNIST: A 7-class skin lesion classification dataset containing 10,015 low-resolution ($28 \times 28$) images, evaluated using a ResNet18 architecture.
  • ChestMNIST: A 14-label multi-class chest X-ray dataset with 112,120 images ($224 \times 224$), also evaluated on ResNet18.
  • MIMIC-CXR: A high-resolution ($512 \times 512$) 4-label chest X-ray dataset consisting of 54,038 samples, evaluated using a DenseNet121 architecture.

Key Insights and Ideas

  • The Reverse-Intuition Win: Flipping standard fine-tuning optimization on its head is highly effective for security. Aggressively updating early layers breaks the structural alignment required for image reconstruction without breaking the high-level classification logic handled by later layers.
  • Data Usability Destruction: Even if a mitigated image retains some faint visual patterns, the authors introduced a "usability test" showing that a secondary model trained from scratch on these recovered images performs no better than random guessing. The task-relevant information is fundamentally destroyed.
  • Steganography vs. Multi-Task Fragility: The authors noted that attacks relying on simple LSB (Least Significant Bit) steganography (like vanilla DEC) are incredibly fragile—almost any fine-tuning baseline destroys the payload. However, multi-task embedding attacks (like Transpose) are highly robust and specifically require targeted strategies like LWLRD FT to defeat.

Key Results

LWLRD FT consistently achieved the best trade-off between privacy protection (lowering reconstruction quality metrics like SSIM and PSNR) and maintaining model utility (AUC).

  • Defeating the Transpose Attack: On DermaMNIST, LWLRD FT dropped the reconstruction Structural Similarity (SSIM) from a dangerous 95.6% down to just 11.5%, while preserving a high utility AUC of 87.8% (compared to the unmitigated 88.1%).
  • The Convergence Bonus: On ChestMNIST and MIMIC-CXR, the Transpose attack originally harmed the model's classification performance due to conflicting multi-task objectives. Applying LWLRD FT actually boosted the primary task AUC (e.g., from 67.9% to 74.3% on ChestMNIST) because it wiped out the malicious task and allowed the model to focus purely on utility.
Fig. 2. Mitigation methods against the Transpose attack. Points show AUC (utility) vs. SSIM (leakage); lower-right is better. Size represents mitigation time.

Limitations and Future Work

  • Architecture Sensitivity: LWLRD FT struggled to recover utility on the MIMIC-CXR dataset when defending against the DEC attack. The authors attribute this to DenseNet121's complex dense block connectivity, which makes its utility features highly sensitive to early-layer disruptions compared to ResNet18.
  • Adaptive Threats: A sophisticated attacker aware of this defense could employ "learned steganography"—initializing and freezing early layers during training to bypass layer-wise decay. Preliminary tests suggest this adaptive attack is more resilient to LWLRD FT, though it remains vulnerable to random weight dropout.
  • Distributed Environments: The current framework is designed for centralized data lakes at the point of model export. Future work is needed to adapt and scale these layer-wise defenses to distributed training environments like Federated Learning.

Summary updated

BibTeX
@misc{thellier2025mitigating,
  author = {Elie Thellier and Huiyu Li and Nicholas Ayache and Hervé Delingette},
  title = {{Mitigating Data Exfiltration Attacks through Layer-Wise Learning Rate Decay Fine-Tuning}},
  year = {2025},
  eprint = {2509.00027},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.00027},
}
Figure