StraightDP: Geometry-Aware Differential Privacy for Rectified-Flow Transformers

Xujun Che, Depeng Xu, Xintao WuarXiv 2026

TL;DR

StraightDP introduces a geometry-aware approach to differentially private (DP) training for rectified-flow generative models. By recognizing that the early stages of the flow depend only on coarse data moments while later stages require fine-grained sample details, it splits the privacy budget to release global moments first and apply DP-SGD later. This drastically improves generation utility under strict privacy constraints, outperforming standard uniform DP-SGD by up to 3.5× on conditional generation tasks.

What Problem Does This Paper Address?

Generative models trained on private data (e.g., medical images with clinical reports or personal photos with descriptions) risk leaking sensitive training examples. Differential Privacy (DP), typically implemented via DP-SGD, protects privacy by clipping and adding noise to gradients during training.

However, applying DP-SGD uniformly across all training steps leads to a severe "utility cliff"—a massive drop in image quality and conditional accuracy under strong privacy guarantees (i.e., low $\varepsilon$). The authors identify that standard DP methods ignore the inherent time-varying geometry of rectified flows, wasting precious privacy budget by treating easy-to-learn global structures and hard-to-learn sample details identically.

Methods

StraightDP splits the training pipeline into two distinct stages based on flow time $t$:

  1. Moments First (Stage 1): A small fraction of the privacy budget (e.g., ~23%) is used to release whitened class-conditional (or text-conditional) moments once via a Gaussian mechanism. Because the velocity field of a rectified flow near the noise end ($t \to 0$) is mathematically dominated by these low-order moments, they can be used to analytically define the early flow path. This private analytic field is either distilled into the model weights or injected directly at sampling time to guide a frozen prior.
  2. Gradients Second (Stage 2): The remaining budget is spent via DP-SGD only on the later flow stages ($t \ge \tau$), where sample-specific details are learned. The authors also introduce a Time-Heterogeneous Allocation (THA) planner to dynamically adjust clipping norms and noise multipliers across different time buckets.
  3. Noise-Robust Backbone: To mitigate the impact of heavy DP noise, the authors modify a multimodal diffusion transformer (MM-DiT) by clamping per-token stream norms during public pretraining. This bounds activations and concentrates per-sample gradient norms, preventing extreme gradient clipping distortions during private fine-tuning.
Figure 1: StraightDP overview. (a) The noise-end velocity target is a closed-form functional of a few class-conditional moments: Stage 1 releases them once, and the field enters either the weights (model trained end-to-end) or the sampler (frozen prior). Stage 2 spends the main budget with declared DP-SGD, optionally under a public time-heterogeneous plan. (b) The backbone is pretrained on public data inside stream-norm clamps, with cross-modal inflow an architectural zero outside a designated final block and clamped inside it. Bounded tokens empirically concentrate per-sample gradients exactly where DP noise is strongest, and every run logs audits and a replayable accounting transcript.

Datasets

  • KMNIST $\to$ MNIST: Kuzushiji-MNIST is used as the out-of-domain public dataset for pretraining and calibration; standard MNIST is used as the private target dataset. Evaluated in both pixel-space and a latent-space variant.
  • Fashion-MNIST $\to$ MNIST: Used to replicate findings and ensure gains aren't public-domain specific.
  • Flowers-102: Used as the private dataset to evaluate scaling behavior on a large, frozen 2B-parameter Stable Diffusion 3 (SD3-medium) model.

Key Insights and Ideas

  • Flow Heterogeneity: The optimal velocity field along a straight rectified flow path is highly non-uniform. Near the noise end, it is distribution-free and moment-dominated; near the data end, it becomes highly sample-specific. Treating them uniformly is a waste of privacy budget.
  • One Release, Two Injection Ports: The privately released moments are highly versatile. They can either be distilled directly into model weights during end-to-end training or used at inference time to "tilt" the sampling starting point of a completely frozen pretrained model.
  • Label-Blind Metrics Can Deceive: Standard metrics like Fréchet Inception Distance (FID) can be misleading in DP settings. Uniform DP-SGD often achieves good label-blind FID scores simply because it fails to adapt to the private domain, generating clean but completely incorrect public-domain glyphs. Label-aware metrics (like downstream classifier accuracy) reveal the true utility cliff.
Figure 2: The geometry that StraightDP exploits (computed on public data). (a) Cosine between released and exact em- pirical fields vs. t: the unconditional (null-branch) pair equa- tion 4 and the worst class of the conditional pair equation 3. Both are moment-dominated over the same low-t horizon. (b) The clip-prior family Cβ(t) (β=0 uniform, log scale).

Key Results

  • MNIST Performance: At a strict privacy budget of $\varepsilon=1$, standard uniform DP-SGD achieves a downstream classification accuracy of just 0.21. In contrast, StraightDP reaches 0.81 accuracy with an FID of 56.5 in latent space—a 3.5× utility improvement.
  • Moments Alone Carry Massive Weight: Remarkably, just sampling directly from the Stage 1 released moments (without any gradient training steps) yields a downstream accuracy of 0.76, proving that global class structure is largely captured by these low-order statistics.
  • Scaling to SD3: On the Flowers-102 dataset with a frozen SD3-medium model, injecting the released moments at sampling time achieved a CLIP probe accuracy of 0.625 at $\varepsilon=2$, outperforming budget-matched DP-LoRA fine-tuning (0.603) and zero-shot baselines (0.588).

Limitations and Future Work

  • Pretraining Constraints: The noise-robust backbone modifications (stream-norm clamping) must be active during public pretraining. Applying them post-hoc to existing unconstrained models (like frozen foundation models) causes model collapse.
  • Text-Conditional Gap: When moving from discrete class labels to continuous text captions via cross-moment matrices, a small utility gap emerges due to the noise introduced when inverting the text covariance matrix ($M_{cc}$). Although this gap narrows as the privacy budget increases, optimizing this text-conditional release at scale remains an open frontier.

Summary updated

Abstract

Differentially private (DP) training of text-conditioned generative models suffers a utility cliff at strong privacy. We revisit this problem through the geometry of rectified flows: along the straight interpolation between noise and data, the Bayes-optimal velocity is governed to leading order at the noise end by a few class-conditional moments, and increasingly sample-specific structure matters toward the data end. StraightDP exploits this heterogeneity end to end. A small budget share releases whitened class-conditional moments once, to be distilled into the weights or injected at sampling time. The rest is spent by pre-declared DP-SGD toward the data end, beyond the moments' reach. At $\varepsilon=1$ on MNIST, the released moments alone already attain $0.76$ downstream accuracy with prototype-like samples and an FID of $237$, and uniform DP-SGD attains $0.21$. The pipeline built on the release reaches $0.81$ accuracy at FID $56$ in a public latent space. Constraining per-token stream norms of the multimodal backbone leaves the pretraining loss unchanged yet improves downstream accuracy in the extreme-noise pixel-space regime, and its accuracy effect becomes monotonically more favorable as privacy strengthens. The released moments also port to frozen SD3-medium, where sampling-time injection beats DP-LoRA training at a fraction of the budget.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MNISTReleased moments alonedownstream accuracy0.76+0.55 vs baselinesample-type=prototype-like · privacy-budget=ε=1
Source quote
L8: At \varepsilon{=}1 on MNIST, the released moments alone already attain 0.76 downstream accuracy with prototype-like samples and an FID of 237, and uniform DP-SGD attains 0.21.
MNISTReleased moments aloneFID237privacy-budget=ε=1
Source quote
L8: At \varepsilon{=}1 on MNIST, the released moments alone already attain 0.76 downstream accuracy with prototype-like samples and an FID of 237, and uniform DP-SGD attains 0.21.
MNISTStraightDP pipeline built on the releasedownstream accuracy0.81+0.6 vs baselinelatent-space=public
Source quote
L9: The pipeline built on the release reaches 0.81 accuracy at FID 56 in a public latent space.
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
MNISTUniform DP-SGD baselinedownstream accuracy0.21privacy-budget=ε=1
Source quote
L8: At \varepsilon{=}1 on MNIST, the released moments alone already attain 0.76 downstream accuracy with prototype-like samples and an FID of 237, and uniform DP-SGD attains 0.21.
BibTeX
@misc{che2026straightdp,
  author = {Xujun Che and Depeng Xu and Xintao Wu},
  title = {{StraightDP: Geometry-Aware Differential Privacy for Rectified-Flow Transformers}},
  year = {2026},
  eprint = {2607.29100},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.29100},
}
Figure