NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

On the Importance of Conditioning for Privacy-Preserving Data Augmentation

Julian Lorenz, Katja Ludwig, Valentin Haug, Rainer LienhartarXiv 2025

TL;DR

This paper reveals a critical privacy flaw in "instance augmentation"—a popular technique that uses conditioned latent diffusion models to anonymize datasets by replacing real faces with synthetic ones. The authors demonstrate that because these models are conditioned on geometric features like edges and depth maps to maintain image structure, they inadvertently leak identity information that allows a contrastive learning model to re-identify individuals with up to 69.7% accuracy.

What Problem Does This Paper Address?

Training robust neural networks for tasks like human pose estimation or face recognition requires massive, diverse datasets. However, collecting such data is fraught with privacy concerns and legal hurdles regarding consent.

A promising proposed solution is privacy-preserving data augmentation. Instead of using raw images, researchers use generative models to replace sensitive parts (like a person's face) with synthetically generated content while keeping the original background and pose. Previous work suggested this was an effective way to anonymize data because the resulting faces look completely different to humans. This paper challenges that assumption, investigating whether the "conditioning" used to keep the synthetic face in the correct pose actually preserves enough biometric information for an attacker to "unmask" the individual.

Methods

The authors employ a contrastive learning framework, specifically a version of SimCLR, to act as an "attacker."

  1. Training: The model is trained on pairs of images: an original image and an augmented (anonymized) version of a different image of the same person. The goal is to maximize the cosine similarity between the latent representations of these pairs while pushing the representations of different people apart.
  2. Architecture: They experiment with several backbones, including ResNet50, ConvNeXt-tiny, and Vision Transformers (ViT-S and ViT-B).
  3. Evaluation Protocols: They test three scenarios:
  4. Full Reference (Full-Ref): The attacker has a database of multiple original images for every person.
  5. Single Reference (Single-Ref): The attacker has only one original image per person.
  6. Few Reference (Few-Ref): The attacker has up to 5 original images per person.
  7. Black-Box Attack: To prove the leak is fundamental, they also train a model using only edge images (generated via HED or Canny detectors) without ever seeing the anonymized images during training.
Overview of the re-identification method using cosine similarity.

Datasets

The study uses the CelebA (Large-scale CelebFaces Attributes) dataset, which contains over 200,000 face images of more than 10,000 individuals. The authors applied Instance Augmentation (using ControlNet and T2I-Adapter) to create a parallel anonymized version of this dataset. They provide a new benchmark split ensuring that individuals in the test set were never seen during the model's training phase.

Key Insights and Ideas

  • The "Human-Eye" Fallacy: Just because an augmented image looks like a different person to a human doesn't mean the identity is gone. Neural networks can pick up on subtle geometric consistencies that humans ignore.
  • Edges are Biometric Signatures: The core "aha moment" is that conditioning a diffusion model on edges or depth maps to preserve pose effectively preserves the person's underlying bone structure and facial geometry.
  • Conditioning is a Double-Edged Sword: The very mechanism that makes instance augmentation useful for training (preserving the "ground truth" structure) is exactly what creates the privacy leak.
  • Black-Box Vulnerability: An attacker doesn't even need access to the specific anonymization software. Because the leak is rooted in basic image features like edges, a model trained on generic edge-detected images can still successfully re-identify people in the anonymized set.
Qualitative examples showing how different conditioning (edges, depth, masks) affects the output.

Key Results

  • High Re-identification: Using a ConvNeXt backbone with a large batch size, the model achieved a 69.7% top-1 accuracy in the Full-Ref scenario. This means in nearly 7 out of 10 cases, the attacker could correctly pick the individual out of a pool of over 3,400 candidates.
  • Black-Box Success: The HED-based black-box attack achieved a 25.1% identification probability. While lower than the white-box approach, it is still remarkably high compared to a random guessing baseline of ~0.03%.
  • Ablation Findings: When the model was conditioned only on segmentation masks (removing edge and depth info), re-identification dropped to just 3.2%. However, this also significantly reduces the visual quality and structural utility of the augmented data.

Limitations and Future Work

The authors acknowledge that instance augmentation is computationally expensive, which limited the scale of some ablation studies.

The primary takeaway is a warning: current conditioned LDM-based anonymization is not secure. Future work needs to explore conditioning methods that can preserve the semantic utility of an image (e.g., "this is a person waving") without preserving the exact geometric biometric markers (the specific edges of their jawline or nose) that lead to re-identification.

Summary updated

BibTeX
@misc{lorenz2025importance,
  author = {Julian Lorenz and Katja Ludwig and Valentin Haug and Rainer Lienhart},
  title = {{On the Importance of Conditioning for Privacy-Preserving Data Augmentation}},
  year = {2025},
  eprint = {2504.05849},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.05849},
}
Figure