StablePrivacy: Zero-Shot Full-Body Video Anonymization Using Diffusion Models For Downstream Data Utility

Rohit Bharadwaj, Duolikun Danier, Zhenzhang Ye, Jugesh Sundram, Laura Sevilla-Lara, Hakan BilenarXiv 2026

TL;DR

Blurring a face doesn’t hide who someone is if they’re wearing a neon-yellow tracksuit—and trying to swap out a whole person in a video usually leaves you with a flickering, surreal mess that ruins machine learning training data. StablePrivacy solves this by using off-the-shelf diffusion models to seamlessly replace entire human bodies in videos with realistic, temporally consistent synthetic identities. Best of all, it works zero-shot—requiring zero dataset-specific training—while keeping the anonymized footage useful enough to train downstream computer vision models almost as well as the original, unedited video.

What Problem Does This Paper Address?

Modern computer vision runs on massive datasets full of people, creating a collision course with privacy laws like GDPR. Simply blurring or pixelating people destroys the visual cues models need to learn, and modern neural networks can often reverse-engineer blurred identities anyway.

To fix this, researchers turned to generative AI to synthesize fake "stand-in" humans. However, existing methods suffer from three glaring blind spots:

  1. Faces aren't enough: Most tools only swap faces, leaving hair, body shape, and clothing untouched—cues easily exploited by person re-identification (Re-ID) systems.
  2. The video flicker problem: Diffusion-based full-body anonymizers typically process video frame-by-frame. Because each frame is generated independently, a person’s shirt might morph from red to blue every tenth of a second, creating jarring temporal inconsistencies and ugly copy-paste borders.
  3. Task-specific fragility: Some privacy methods optimize videos specifically for one task (like action recognition), turning the video into abstract, unreadable noise that is useless for anything else.
Figure 1. Qualitative comparison on UCF101: SD (Stable Diffu- sion) Baseline leads to unrealistic generations; DP2 [24] (DeepPri- vacy2) suffers from temporal inconsistencies; our method main- tains a consistent, realistic appearance throughout the sequence.

The authors ask: Can we build a training-free, zero-shot pipeline that anonymizes the entire body in video, stays smooth over time, and preserves enough realistic structure to train any downstream vision model?

Methods

Built on top of Stable Diffusion (SD), StablePrivacy orchestrates standard conditioning tools alongside a clever dual-branch architecture to balance the tug-of-war between privacy and data utility.

Figure 2. StablePrivacy: Our zero-shot, diffusion-based full-body video anonymization framework has three main components. a) In the latent initialization phase, the input video frames are encoded into the diffusion model’s latent space through two parallel branches. b) The Injection Module (IM) preserves features that are important for downstream tasks while keeping the visual domain aligned with the input. c) The main generation pipeline then utilizes ControlNet, memory bank (MB), IM, and latent inpainting to anonymize the input video while preserving the scene context and maintaining temporal consistency.

Here is how a video frame moves through the pipeline:

  • Dual-Branch Latent Initialization (Novel): When encoding an input frame into Stable Diffusion's compressed "latent" space, the system splits it into two paths. The Generation Branch blasts the image with heavy noise ($\sigma_g = 0.9$), wiping out original identity details so the model can invent a new person. The Injection Branch adds very light noise ($\sigma_i = 0.3$), preserving fine-grained structural and lighting cues from the original scene.
  • The Injection Module (Novel): How do you rescue useful scene structure from the lightly noised branch without leaking the person's identity? Inside a specific decoder layer of the diffusion UNet, the authors hijack the self-attention mechanism. The heavily noised generation branch supplies the Queries ("what goes here?"), while the lightly noised injection branch supplies the Keys and Values ("here is the structural texture and lighting domain"). This aligns the synthetic person with the original video's visual style without merely reconstructing the original person.
  • Pose, Memory, and Blending (Adapted/Standard): To keep the synthetic human moving naturally, ControlNet locks generation to the original person's skeletal pose. To stop frame-to-frame flickering, a Memory Bank caches attention features from the previous frame ($F_{i-1}$) and feeds them into the current frame ($F_i$). Finally, instead of crudely pasting pixels onto the background, Latent-Space Inpainting blends the generated human mask with the original background during denoising, eliminating harsh cutout seams.

Datasets

Because StablePrivacy is zero-shot, no datasets are used to train the anonymizer itself. Instead, the authors anonymize the training splits of four standard benchmarks, train downstream vision models on that synthetic data, and test them on the untouched original test splits:

  • YTVIS19: For video instance segmentation (tracking and segmenting objects across frames).
  • UCF101: For human action recognition (13k videos of sports and daily activities).
  • MSMT17 & MARS: For image-based and video-based Person Re-Identification (matching individuals across different security camera views). No new benchmarks were introduced.

Key Insights and Ideas

  • Injecting beats noise-tuning: You might think you could get the same privacy-utility balance just by adding medium noise to a single branch. The authors prove otherwise: tracing out the privacy-utility curve shows that at the exact same privacy level, adding the Injection Module boosts downstream Re-ID utility by +9.5 mAP—a leap impossible by tuning noise levels alone.
  • Action models cheat by looking at the grass: On full UCF101 videos, messy frame-by-frame baselines performed shockingly close to StablePrivacy. Why? Because the classifier saw green grass and guessed "GolfSwing" without looking at the human! When the authors blacked out the backgrounds to force models to actually watch the person, StablePrivacy’s smooth motion pulled clearly ahead.
  • Sharper pixels $\neq$ better training data: Newer, flashier video generators (like WAN2.2-Animate paired with FLUX.2) generate crisper individual frames than Stable Diffusion, yet yielded worse downstream action accuracy (32.43% vs. 35.52%). Preserving the native visual domain of the dataset matters far more to a neural network than raw aesthetic beauty.

Key Results

StablePrivacy consistently delivers realistic, smooth video (scoring 0.574 on Average Content Distance for temporal consistency, beating DeepPrivacy2's 0.659 and the SD Baseline's 0.770—lower is smoother).

  • Person Re-Identification (Clearest Wins): Training models to distinguish identities requires consistent synthetic humans. On MSMT17, StablePrivacy reached 40.5% mAP (vs. 66.3% on original data), crushing DeepPrivacy2 (11.7%) and the SD Baseline (22.6%). On MARS, it hit 91.8% Rank-1 accuracy—just 3% shy of training on real, un-anonymized surveillance footage (94.8%).
Downstream Person Re-ID utility on MSMT17 showing StablePrivacy far outperforming existing baselines.
  • Action Recognition (UCF101): On foreground-isolated full UCF101, StablePrivacy achieved 57.97% top-1 accuracy compared to DeepPrivacy2’s 55.67% (Original: 64.13%).
  • Video Instance Segmentation (YTVIS19): Reached 34.78 person AP (beating DeepPrivacy2's 34.38). When forcing the tracker to rely strictly on visual appearance cues, StablePrivacy (17.70 overall mAP) actually edged out training on the original data (17.30).

Limitations and Future Work

  • No explicit wardrobe control: You cannot prompt the model with specific instructions on what to keep or swap; the balance of what gets replaced is governed implicitly by the two noise dials ($\sigma_g, \sigma_i$), and coarse clothing colors can still carry over via the Injection Module.
  • The "walk" still gives you away: Because StablePrivacy preserves exact skeletal poses for utility, a person's gait (walking style) remains intact. While StablePrivacy cuts rank-1 gait recognition in half compared to raw video, it doesn't erase it. Developing better full-body privacy metrics that account for motion—not just appearance—is a wide-open frontier.

Summary updated

BibTeX
@misc{bharadwaj2026stableprivacy,
  author = {Rohit Bharadwaj and Duolikun Danier and Zhenzhang Ye and Jugesh Sundram and Laura Sevilla-Lara and Hakan Bilen},
  title = {{StablePrivacy: Zero-Shot Full-Body Video Anonymization Using Diffusion Models For Downstream Data Utility}},
  year = {2026},
  eprint = {2611.38312},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.38312},
}
Figure