Generalization and Memorization in Rectified Flow


Abstract

Generative models based on the Flow Matching objective, particularly Rectified Flow, have emerged as a dominant paradigm for efficient, high-fidelity image synthesis. However, while existing research heavily prioritizes generation quality and architectural scaling, the underlying dynamics of how RF models memorize training data remain largely underexplored. In this paper, we systematically investigate the memorization behaviors of RF through the test statistics of Membership Inference Attacks (MIA). We progressively formulate three test statistics, culminating in a complexity-calibrated metric (\(T_\text{mc\_cal}\)) that successfully decouples intrinsic image spatial complexity from genuine memorization signals. This calibration yields a significant performance surge—boosting attack AUC by up to 15% and the privacy-critical TPR@1%FPR metric by up to 45%—establishing the first non-trivial MIA specifically tailored for RF. Leveraging these refined metrics, we uncover a distinct temporal pattern: under standard uniform temporal training, a model’s susceptibility to MIA strictly peaks at the integration midpoint, a phenomenon we justify via the network’s forced deviation from linear approximations. Finally, we demonstrate that substituting uniform timestep sampling with a Symmetric Exponential (U-shaped) distribution effectively minimizes exposure to vulnerable intermediate timesteps. Extensive evaluations across three datasets confirm that this temporal regularization suppresses memorization while preserving generative fidelity.

1 Introduction↩︎

Flow Matching (FM) [1] has emerged as a powerful, simulation-free paradigm to overcome the slow sampling bottlenecks of Diffusion Models (DMs) [2][6]. Among its variants [1], [7], [8], Rectified Flow (RF) [9] stands out by connecting data and noise distributions via straight-line trajectories. This linearizes the generation process, enabling highly efficient, few-step sampling. Due to its stability and efficiency, RF underpins contemporary state-of-the-art foundation models such as Stable Diffusion 3 [10], FLUX [11], and Ideogram 4 [12]. However, while prior work heavily optimizes RF for generation quality [8], [13] and architectural scaling, its memorization and generalization dynamics are relatively underexplored.

Conventional indicators of overfitting, such as the standard generalization gap between training and validation losses, fail to accurately capture the complex, time-dependent memorization behaviors inherent to RF (shown in Appendix 11). Even if loss gaps are small, it may be possible to recover the specific training data from model weights, outputs, or behavior/activations during generation. This process is known as model inversion [14][16]. A specific sub-task of model inversion is classifying samples as drawn from the training set or otherwise using those same model statistics; this is known as membership inference [17], and particular methods referred to as membership inference attacks (MIAs).

The ability to perform an MIA against a flow matching model is indicative of memorization; if we can discriminate between training and non-training data using the model itself, even though both training and non-training sets are ostensibly drawn from the same underlying population, there is some training set specific information left in the model.

In this work we construct an MIA for rectified flow. We first establish a baseline test criterion, \(T_\text{naive}\), derived from the theoretical Flow Matching (FM) objective. We further formulate a Monte Carlo estimator, \(T_\text{mc}\), based on the practical and commonly used Conditional Flow Matching (CFM) objective. We provide detailed motivation and show significant performance improvement for the transition from \(T_\text{naive}\) to \(T_\text{mc}\). We then propose a correction/calibration \(T_\text{mc\_cal}\) for an image-domain specific phenomenon in generative modelling, spatial complexity biases [18], [19]). Utilizing these refined metrics, we uncover a non-trivial temporal pattern in the memorization dynamics of continuous-time models. When employing a standard uniform temporal sampling strategy \(t \sim \mathcal{U}(0, 1)\), the model’s susceptibility to MIA is heavily concentrated in the intermediate integration stages, and maximal at the midpoint (\(t=0.5\)) of the flow (Fig 1. We provide mathematical justification for this phenomenon by analyzing the deviation between the non-linear regressor and a Linear Minimum Mean Square Error (LMMSE) baseline. Specifically, we show that at \(t=0.5\), the noisy input state becomes statistically orthogonal to the target velocity. Consequently, the network is forced to bypass trivial linear approximations and exploit its non-linear capacity to memorize sample-specific features, thereby maximizing the memorization problem at this exact juncture.

Finally, we tackle the persistent utility-privacy trade-off that typically exists in classic Differential Privacy (DP) mechanisms in generative modeling (see Section 2.3). To mitigate the accumulation of privacy risks without degrading the visual quality of generated samples, we intervene directly in the training dynamics. By substituting the conventional uniform timestep sampling with a Symmetric Exponential (U-shaped) distribution [20], we deliberately minimize the model’s exposure to the highly vulnerable intermediate timesteps. Our theoretical and empirical analyses confirm that this temporal regularization substantially impedes memorization while preserving generative fidelity (Fig. 4).

We conduct all experiments on CIFAR-10 [21], SVHN [22], and TinyImageNet [23] datasets. Three datasets consistently justify our proposed MIA test statistics and analysis of memorization.

In summary, our contributions are the following:

  1. We progressively construct three test statistics (\(T_\text{naive}\), \(T_\text{mc}\), \(T_\text{mc\_cal}\)) for membership inference attack and justify each one with our motivation and derivation. We also empirically shows its practical usage.

  2. With the MIA test statistics, we substantiate our claim that, under reasonable assumptions, the expected memorization risk for well-trained rectified flow across the entire continuous timesteps is strictly upper-bounded by the memorization evaluated at the midpoint.

  3. We replace the standard uniform sampling of \(t\) with the Symmetric Exponential distribution proposed by Lee et al. [20], providing a novel and comprehensive justification from the dynamics of model generalization and memorization.

All data splits, model checkpoints, training, and testing code are released on our GitHub repository https://github.com/mx-ethan-rao/rf_gen_mem.git.

a

Figure 1: MIA performance (AUC and TPR@1%FPR, at left and right respectively) across integration timesteps \(t\) on CIFAR-10 and SVHN (top row and bottom row). Our complexity-calibrated statistic (\(T_\text{mc\_cal}\)) demonstrates a substantial performance surge over the baselines (\(T_\text{naive}\) and \(T_\text{mc}\))..

2 Background and Motivation↩︎

2.1 Membership Inference Attack↩︎

The goal of the Membership Inference Attack (MIA) is to determine whether a specific data record \(x\) was sampled from the underlying population distribution to be included in the empirical training set \(\mathcal{D}_{train}\) of a target model \(f_\theta\). Carlini et al. [17] formally cast membership inference as a rigorous statistical hypothesis testing problem. A variety of test statistics have been extensively developed for diffusion-based generative paradigms [15], [24][27]. However, the research on the diffusion model does not extend to the model trained via flow matching [1], [9]. We proceed from first principles (the training objectives) to mathematically derive a novel test statistic inherently tailored to the Rectified Flow [9] framework. Because models suffering from severe overfitting naturally exhibit high susceptibility to MIA, this derived statistic also serves as a quantitative metric to evaluate the dynamics between model generalization and training data memorization [14].

2.2 Generalization and Memorization↩︎

The divergence between training and validation loss—formally known in learning theory as the generalization gap—is the most fundamental statistical signature of overfitting. This method is extensively used on memorization analysis of VAE [28], GAN [29], [30] and Diffusion Model [31][36]. However, a trivial training/val loss gap proves inadequate for capturing the nuanced memorization dynamics inherent to Rectified Flows (RF) [9], as evidenced by the empirical loss trajectories in Appendix 11. To establish a rigorous analytical framework, we repurpose the test statistic formulation traditionally utilized in Membership Inference Attacks to precisely quantify sample-specific memorization within RF. By using this metric across different timestep \(t\), we uncover that memorization is heavily concentrated at the intermediate \(t\), whereas the vulnerability remains relatively benign at the temporal extremes (i.e., early and late stages of \(t\)). We derive a closed-form expression for the exact timestep at which model memorization peaks under the overfitting assumption. We elaborate this time-dependent memorization in Section 4.

2.3 Differential Privacy↩︎

A classic framework to prevent the deep learning model from memorizing individual training samples is Differential privacy [37]. Abadi et al. [37] proposed Differential Privacy-Schocastic Gradient Descent (DP-SGD) and momentum accountant that mathematically guarantee that privacy loss accumulates significantly slower over thousands of SGD iterations. However, enforcing differential privacy on generative models inherently introduces a severe privacy-utility (e.g. generative fidelity) trade-off [38], [39]. This creates a fundamental tension: from a privacy perspective, repeated exposure to an individual sample exacerbates the risk of catastrophic memorization; yet, from a generative modeling standpoint, the network strictly requires extensive exposure to high-quality data to generate good examples. This raises a critical question: Can we slow down the privacy loss accumulation without sacrificing generative fidelity? In Section 4.3, by distorting the sampling distribution (originally, uniform distribution) of the timestep \(t\) during the training phase, we empirically show that the model’s memorization dynamics are significantly disrupted with the same number of SGD steps. We also provide a theoretical interpretation in section 4 for our insight.

Figure 2: Top row: The test statistics T_\text{mc} without calibration. Bottom row: The test statistics T_\text{mc} with calibration. The calibrated version provides more separable points between \mathcal{D}_\text{train} and \mathcal{D}_\text{val}

2.4 Input Complexity Bias in Generative Models↩︎

Inspired by Out-of-Distribution detection, likelihoods computed from generative models are notoriously susceptible to the inherent complexity of the input data [18], [19], [40]. Nalisnick et al. [18] first exposed this vulnerability by demonstrating that generative models (Glow [41], PixelCNN [42], and VAE [43]) often assign higher likelihoods to visually simpler OOD samples (e.g., SVHN) than to the complex in-distribution data they were trained on (e.g., CIFAR-10). Serrà et al. [19] formally identified input complexity—often measurable via standard compression bitrates—as the primary confounding factor, revealing that likelihood estimations are heavily dominated by low-level spatial redundancies rather than high-level semantic content. This complexity bias has since been shown to persistently plague modern generative paradigms, including Denoising Diffusion Probabilistic Models [40]. In continuous-time frameworks such as Rectified Flows, the likelihood is computed through the instantaneous change of variables theorem [1], [44], [45]. For held-out dataset \(x \in \mathcal{D}_\text{data} \setminus \mathcal{D}_\text{train}\), we confirmed the same phenomenon (See Appendix 9)on Rectified Flow. The likelihood also served as an important MIA test statistic. This provides insight that the proposed MIA test statistic is heavily biased towards input complexity as well.

3 MIA Test Statistics for Rectified Flow↩︎

In this section, we formalize our proposed methodology. We derive our test statistics for membership inference attack from first principles based on training objectives (Section 3.1) and introduce a calibration mechanism conditioned on input image complexity (Section 3.2). We justify this calibration strategy and demonstrate its empirical benefits in Section 3.2.

Preliminaries: The flow matching [1] framework defines a system of ordinary differential equations (ODEs) which transport particles from a “base” distribution \(\pi_0\) (usually chosen to be simple, e.g., standard Gaussian noise) to an empirical target distribution \(\pi_1\) (e.g., real images). Let \(X_0 \sim \pi_0\) and \(X_1 \sim \pi_1\) denote the source and target random variables, respectively. Flow matching implicitly defines an interpolent path between these two distributions over a continuous time variable \(t \in [0, 1]\) by defining flow fields \(v(x,t)\) \[dX_t = v(X_t,t) dt\] so that \(X_{t=0}\) has distribution \(\pi_0\), and that \(X_{t=1}\) has distribution \(\pi_1\). A common choice of field is the Rectified Flow [9], which is defined implicitly by drawing straight lines between pairs of points and calculating the interpolant field: \[X_t = t X_1 + (1-t) X_0 \label{eq:interpolation}\tag{1}\] While our theoretical analysis extends to other Flow Matching variants (detailed in Appendix 12), we mainly focus on Rectified Flow, as it is conceptually simple, quite performant, and thereby has become the most popular in contemporary work.

The time derivative of linear path flows yield a constant vector field pointing directly from \(X_0\) to \(X_1\), given by \(\frac{\mathrm{d} X_t}{\mathrm{d} t} = X_1 - X_0\). During inference, the high level objective of flow matching is to fit a neural network \(v_\theta(X _t, t)\) to that vector field condition, fitting an explict function that for any given timestep \(t\) and position \(x\) can produce the appropriate vector. The original flow matching procedure fit \(v_\theta\) by least-squares optimization of the linear path criterion [1]: \[\mathcal{L}_{\text{FM}}(\theta) = \mathbb{E}_{t \sim \mathcal{U}(0,1), X_0 \sim \pi_0, X_1 \sim \pi_1} \left[ \left\| (X_1 - X_0) - v_\theta(X_t, t) \right\|^2 \right]. \label{eq:rf95loss}\tag{2}\] where \(\mathcal{U}(0,1)\) denotes the uniform sampling of \(t \in [0, 1]\).

Directly optimizing the original FM objective is computationally intractable due to the integration over a data distribution required to compute the marginal vector field. To circumvent this limitation, Lipman et al. [1] introduced Conditional Flow Matching (CFM). By conditioning on individual image samples \(x_1\), the CFM objective utilizes conditional vector fields that can be efficiently computed and optimized over on a per-sample basis. The CFM objective is \[\mathcal{L}_{\text{CFM}}(\theta|x_1) = \mathbb{E}_{t \sim \mathcal{U}(0,1), X_0 \sim \pi_0} \left[ \left\| (X_1 - X_0) - v_\theta(X_t, t) \right\|^2 \mid X_1=x_1\right]. \label{eq:crf95loss}\tag{3}\] A crucial observation is that \(\nabla_{\theta}\mathcal{L}_{FM}(\theta) = \nabla_{\theta}\mathcal{L}_{CFM}(\theta|x_1)\)  [1], [45], meaning that the CFM objective has the same optima as the original FM objective, and that \(\theta\) optimized for one objective have the same relative quality for the other objective.

3.1 Deriving MIA Test Criteria↩︎

Naive attack: Based on the FM objective (Eq. 2 ), we can construct a basic model inversion attack. Given a test image \(\boldsymbol{x}\), we sample Gaussian noise \(\varepsilon\). We write the “naive” test criterion for MIA \[T_\text{naive}(\boldsymbol{x, t})=\left\| \boldsymbol{x}-(v_\theta(\boldsymbol{x_t}, t)+\varepsilon)\right\|^2 \text{ with } \boldsymbol{x_t}=t\boldsymbol{x}+(1-t)\varepsilon. \label{eq:naive95attack}\tag{4}\] For models minimizing Eq. 2 , as the models overfit, we observe \(T_\text{naive}(\boldsymbol{x}\in\mathcal{D}_{train}) < T_\text{naive}(\boldsymbol{x}\in\mathcal{D}_{val})\). Clearly an “oracle” perfect flow would have the same \(T\) value in expectation over training and validation datasets, but as the model becomes specialized toward individual datapoints, a classic overfitting pattern, the flow will fail to generalize, and this gap will widen. As a demonstration, we give the following conceptual experiment: consider a single draw from a Gaussian as the target dataset. The \(\mathcal{L}_{FM}\) or \(\mathcal{L}_{CFM}\) flow would eventually point towards that draw from all positions, meaning that subsequent draws from the mode of the Gaussian would be pulled away from that mode, even though in expectation they should not move.

The \(T_\text{naive}\) criterion includes a chosen/sampled \(\varepsilon\). We can take this one step further and derive a Monte Carlo-amortized criterion \(T_{mc}\). Consider a fully overfit model minimizing the CFM loss, i.e., with \(\mathcal{L}_{CFM}=0\), \[\mathbb{E}_{t \sim \mathcal{U}(0,1), X_0 \sim \pi_0} \left[ \left\| (x_1 - X_0) - v_\theta(X_t, t) \right\|^2_2 \right] = 0.\] which is equivalent to \[\mathbb{E}\left[x_1\right] - \mathbb{E}\left[X_0\right] - \mathbb{E}\left[v_\theta(X_t, t)\right] = 0.\] Since \(\pi_0\) is the standard Gaussian distribution, \(\mathbb{E}\left[X_0\right]=0\). The sample \(x_1\) does not depend on \(x_0\), so \(\mathbb{E}\left[x_1\right]=x_1\). Thus, \[\begin{align} x_1 - \mathbb{E}\left[v_\theta(X_t, t)\right] = 0. \end{align}\] Or in other words, under the assumption that the CFM loss has been minimized, the empirical distribution samples \(x_1\) should approximate \(\mathbb{E}\left[v_\theta(X_t, t)\right]\), which gives a way to distinguish the training data from the held-out data.

Monte Carlo attack: Given a test image \(x\) and \(N\) Monte Carlo (MC) samples \(\varepsilon_n \sim \pi_0\), a Monte Carlo version of the naive test statistics is defined

\[T_\text{mc}(x, t)=\| x-\frac{1}{N}\sum_{n}\left[v_\theta(tx+(1-t)\varepsilon_n, t)\right]\|^2_2 \label{eq:mc95attack}\tag{5}\]

Similar to the naive method, \(T_\text{mc}(x\in\mathcal{D}_{train}) < T_\text{mc}(x\in\mathcal{D}_{val})\), if the model is over-fit.

3.2 Complexity-Calibrated Test Criteria↩︎

Likelihood estimates for out-of-distribution data derived from deep generative models are biased towards the inherent complexity of the input image [18], [19]. Serrà et al. [19] demonstrated that likelihood scores are positively correlated to the input spatial complexity, often quantified via standard compression bitrates, both within distribution and out-of-distribution. For held-out dataset \(x \in \mathcal{D}_\text{data} \setminus \mathcal{D}_\text{train}\), we observe the same phenomena in rectified flow (Appendix  9).

Our proposed test statistics, \(T_\text{naive}\) and \(T_\text{mc}\), also exhibit these biases. As illustrated in Fig. 2, visually simple samples systematically yield lower \(T_\text{mc}\) values, whereas complex samples produce spuriously high \(T_\text{mc}\) values across both the CIFAR-10, SVHN, and TinyImageNet datasets. It is thus valuable to decouple image complexity from actual memorization signal by calibrating our test statistics. We formalize our complexity-calibrated test statistic, \(T_\text{mc\_cal}\): \[T_\text{mc\_cal}(x, t)=\frac{T_\text{mc}(x, t)}{C(x)} \text{ with } x_t=tx+(1-t)\varepsilon. \label{eq:mc95cal}\tag{6}\] The input complexity, denoted as \(C(x)\), is flexibly defined; while its best theoretical definition, Kolmogorov complexity [46], is not computable in most practical settings, we could also use the byte length of the input image \(x\) compressed into a bitstream by any popular compression method. These form an upper bound for the uncomputable Kolmogorov complexity [46]. A parameterized calibration equation is \(T_\text{mc}/\text{Complexity}^\beta\), where \(\beta\) is the single parameter.

This can be transformed to a log-linear relationship: \(log(T_\text{mc}) \sim \beta log(\text{complexity})+c\). We choose JPEG as the compression method, as it results in \(\beta=1\) across datasets, removing the need for an additional calibration step to select \(\beta\). Additional discussion is relegated to Appendix 10, as other options are available, but those options also result in additional calibration steps.

By integrating complexity calibration, we achieve substantial empirical gains in distinguishing training members (\(x \in \mathcal{D}_\text{train}\)) from non-members (\(x \in \mathcal{D}_\text{val}\)), as detailed in our Experiments section 5.3. Furthermore, we demonstrate in Appendix 13 that calibrating \(T_\text{mc}\) yields a significantly more pronounced performance improvement compared to applying an equivalent calibration to the naive baseline, \(T_\text{naive}\).

Figure 3: The gap between v_\theta and v_\text{linear} for \mathcal{D}_\text{train} and \mathcal{D}_\text{val}. Solid lines denote the mean, while the shaded areas indicate \pm standard deviation.

4 Memorization Dynamics across Different Timesteps \(t\)↩︎

The continuous timestep \(t\), as an important input of our proposed test statistics, serves as a critical lens in reflecting overall model memorization. In our empirical evaluations (Fig. 1), we surprisingly discover that, under a uniform temporal sampling strategy \(t \sim \mathcal{U}(0, 1)\), the model’s vulnerabilities to MIA peaks distinctly at the midpoint, around \(t=0.5\). This phenomenon is not a spurious empirical artifact; rather, we show that it is intrinsically rooted in the underlying architectural properties of RF. In this section, we theoretically analyze the model memorization (is equivalent to the vulnerability to attacks) across varying timesteps \(t\). Moreover, in Section 4.3, we propose a mitigation strategy designed to enhance robustness against catastrophic overfitting without compromising generative fidelity, as evaluated by the Fréchet Inception Distance (FID).

4.1 The Linearity Gap between \(v_\theta\) and \(v_\text{linear}\) across \(t\)↩︎

In Rectified Flow, the neural network \(v_\theta\) is trained to regress the complex, non-linear vector field. To study the generalization and memorization on rectified flow, we draw inspiration from recent theoretical studies that analyze complex diffusion denoisers through the linear filter, Wiener filter [32], [33], [47], [48], We use the Linear Minimum Mean Square Error (LMMSE) estimator as the linear regressor (\(v_\text{linear}\)) representing the absolute absence of non-linear feature extraction or memorization. Let the global mean of the data distribution be \(\mu_{x_1} = \mathbb{E}[x_1]\) and its global covariance matrix be \(\Sigma_{x_1} = \text{Cov}(x_1)\). Recap RF forward process, the state \(x_t\) is defined as: \[x_t = tx_1 + (1-t)x_0\] where \(x_0 \sim \mathcal{N}(\mathbf{0}, \mathbf{I})\) is the standard Gaussian noise independent of \(x_1\). For non-linear regerssor \(v_\theta\), The input information is \(x_t\) and the target velocity vector is \(v = x_1 - x_0\). To formulate the LMMSE baseline, we formulate it as a constrained optimization problem.

The LMMSE estimator seeks an optimal weight matrix \(W^* \in \mathbb{R}^{D \times D}\) and bias vector \(b^* \in \mathbb{R}^D\) that minimize the expected squared \(\ell_2\)-norm of the prediction error: \[W^*, b^* = \arg\min_{\mathbf{W}, b} \mathbb{E}_{(v, x_t)}\left[ \|v - (Wx_t + b)\|_2^2 \right]\] By solving this constrained objective via the orthogonality principle, we obtain the closed-form global linear predictor: \[W^* = \Sigma_{vx_t}\Sigma_{x_tx_t}^{-1}, \quad b^* = \mathbb{E}[v] - W^*\mathbb{E}[x_t]\] Substituting the time-dependent moments of the Rectified Flow forward process into this general solution (see Appendix 14 for detailed derivations of the covariance terms), we obtain the closed-form global linear baseline for any input \(\boldsymbol{x}_t\): \[v_\text{linear}(x_t) = \mu_{x_1} + \left( t\Sigma_{x_1} - (1-t)\mathbf{I} \right) \left( t^2\Sigma_{x_1} + (1-t)^2\mathbf{I} \right)^{-1} (x_t - t\mu_{x_1}) \label{eq:v95lmmse}\tag{7}\] We define the Linearity Gap \(\Delta v\) as the mean squared error between the network’s output and the analytical LMMSE prediction: \[\Delta v(x_t, t) = v_\theta(x_t, t) - v_\text{linear}(x_t)\] A lower \(\|\Delta v(x_t, t)\|^2\) suggests a more linear behavior of the vector field \(v_\theta(x_t, t)\). By empirically plotting \(\|\Delta v\|^2\) across the trajectory \(t \in [0, 1]\) in Fig. 3, it is clear that \(\Delta v|_{x \in \mathcal{D}_{val}}\) is lower than \(\Delta v|_{x \in \mathcal{D}_{train}}\) and the difference is maximized around intermediate timesteps \(t \in [0.45, 0.55]\). This timeframe corresponds to that of peak MIA vulnerability in Fig.1. We explain this phenomenon in the next subsection.

4.2 Orthogonality between \(x_t\) and \(v\) at \(t=0.5\)↩︎

\(\Sigma_{vx_t}\) is calculated as follows:

\[\Sigma_{v,x_t} = \mathbb{E}[(v - \mathbb{E}[v])(x_t - \mu)^T]\]

Previously, we explicitly compute \(\mu_{x_1}\) and \(\Sigma_{x_1}\) on \(\mathcal{D}_{train}\). For analytical tractability, we assume the data distribution is normalized such that \(\mu_{x_1} = \mathbf{0}\) and the covariance \(\Sigma_{x_1} = \boldsymbol{I}\). This assumption is reasonable as the data is normalized before being sent to the model. Therefore,

\[\Sigma_{vx_t} = \mathbb{E} \left[ vx_t^\top \right]= \mathbb{E} \left[ (x_1 - x_0)(tx_1 + (1-t)x_0)^\top \right]\] Given the independence of the signal and noise for unseen data (\(\mathbb{E}[x_0 x_1^\top] = 0\)), this expands to: \[\Sigma_{vx_t} = t \mathbb{E}[x_1 x_1^\top] - (1-t) \mathbb{E}[x_0 x_0^\top]\] Since \(x_0\) is standard Gaussian (\(\Sigma_{x_0} = \boldsymbol{I}\)): \[\Sigma_{x_t, v} = t\boldsymbol{I} - (1-t)\boldsymbol{I} = (2t - 1)\boldsymbol{I} \label{eq:covariance}\tag{8}\] Observation: From Eq. 8 , it is evident that at precisely \(t=0.5\), the covariance \(\Sigma_{x_{0.5}, v} = \boldsymbol{0}\). At this timestep, the input \(x_{0.5} = 0.5(x_1 + x_0)\) is statistically orthogonal to the target velocity \(v = x_1 - x_0\).

At \(t=0.5\) the input provides zero linear information regarding the target and \(v_\text{linear}\) degenerates towards mean-prediction (substitute \(t=0.5\) to Eq. 7 , \(v_\text{linear}(x_{0.5})=\mu_{x_1}=0\)). For training samples \(x \in \mathcal{D}_\text{train}\), the intermediate timesteps (around \(t=0.5\)) represent the primary regime where catastrophic memorization occurs. In this heavily mixed state, the model \(v_\theta\) can no longer rely on the trivial linear structure of the input. Consequently, during the training phase, the network memorizes the sample-specific structures to minimize the vector field estimation error. At the inference stage, the independence assumption between the target \(x_1\) and the model parameters \(\theta\) is violated since the network leverages its overfitted weights to condition its prediction on the specific identity of training sample. Conversely, for unseen validation samples \(x \in \mathcal{D}_\text{val}\), successful generalization relies entirely on whether these samples share these learned modes [32]. In the absence of such shared structures, the theoretically optimal predictor reduces to the baseline LMMSE estimator, \(v_\text{linear}\), causing the network’s output to fully collapse to this uninformative state. However, at the temporal boundaries (\(t \to 0\) or \(t \to 1\)), the dynamics shift. Here, \(v_\theta\) retains near-perfect visibility of either the pure noise or the original data.

Peak Memorization in Rectified Flows: Assume the integration timestep is uniformly sampled, \(t \sim \mathcal{U}(0,1)\), and the target data variable \(x_1\) is standardized such that its expectation \(\mu_{x_1} = \boldsymbol{0}\) and covariance \(\Sigma_{x_1} = \boldsymbol{I}\). Under these structural conditions, the expected memorization risk across the entire continuous trajectory is strictly upper-bounded by the memorization evaluated at the trajectory midpoint. That is, the maximal memorization occurs at \(t=0.5\).

In order to model more general cases where \(\Sigma_{x_1}\) departs from \(\boldsymbol{I}\), we need to generalize Eq. 8 from a zero variance criterion to min variance, i.e., \(\min_t \text{Tr}[ t\Sigma_{x_1} + (1-t)\Sigma_{x_0}]\). The optimal \(t\) is the point at which the \(t\)-weighted mean of the eigenvalues of \(\Sigma_{x_1}\) and \(\Sigma_{x_0}\) is minimal. We demonstrate these cases in Appendix 16.

Figure 4: Training dynamics (FID and peak AUC) when employing a Symmetric Exponential distribution for timestep sampling. Increasing the concentration parameter \alpha (shown in order of Blue [none], Green, Orange [most]) effectively decelerates and suppresses model memorization while fully preserving generative fidelity.

4.3 U-shape Sampling Distribution for Timesteps \(t\)↩︎

To operationalize our insights regarding the memorization dynamics, we replace the conventional uniform sampling \(t \sim \mathcal{U}(0, 1)\) with a Symmetric Exponential distribution. This temporal prior explicitly assigns higher probability density to the boundary regions (\(t \to 0\) and \(t \to 1\)) while suppressing the intermediate regime. Formally, for a given concentration parameter \(\alpha > 0\), the probability density function (PDF) is defined as: \[p(t; \alpha) = \frac{\alpha}{2(1 - e^{-\alpha})} \left( e^{-\alpha t} + e^{-\alpha(1-t)} \right), \quad t \in [0, 1]\]

Note that as \(\alpha \to 0\), \(p(t; \alpha)\) degenerates to the standard uniform distribution. In practice, to ensure numerical stability, we linearly map the sampled \(t\) from \([0, 1]\) to a tightly bounded interval \([t_{\min}, t_{\max}]\), where \(t_{\min} = 10^{-5}\) and \(t_{\max} = 1 - 10^{-5}\). While this technique was initially introduced by Lee et al. [20] based on the empirical observation that the loss of 2-Rectified Flow [9] is high at the boundaries and low in the middle. We justify this with full reasons, that is, from the perspective of model generalization and memorization. For completeness, we show \(\int_{0}^{1} p(t; \alpha) \, dt=1\) in Appendix 15.

While early stopping is a standard regularization technique to mitigate memorization, determining the optimal stopping criterion for generative models remains challenging. Practitioners typically wait for the FID to stabilize; however, as illustrated in Fig. 4, moderate memorization occurs before this convergence. Alternatively, while differential privacy guarantees protection against per-sample memorization, it inherently degrades generative fidelity. Hence, one need for techniques that decelerate the rate of memorization without sacrificing sample quality. In Section 5.4, we empirically demonstrate that our proposed modification successfully achieves this optimal balance.

a
b

Figure 5: The dynamic with increasing number of Monte Carlo samples on \(T_\text{mc}\) and \(T_\text{mc\_cal}\). a — CIFAR-10, b — SVHN

5 Experiments↩︎

5.1 Setup↩︎

We tested our findings on three public datasets, CIFAR-10, SVHN, TinyImageNet, MSCOCO with resolution \(32^2\), \(32^2\), \(64^2\), \(512^2\) (see Appendix 18 for detailed dataset descriptions and train/validation splits). All experiments are executed on eight NVIDIA A40 GPUs.

Evaluation Metrics: We compute the proposed test statistics for both \(\mathcal{D}_{\text{train}}\) and \(\mathcal{D}_{\text{val}}\). To quantify memorization, we evaluate the separability between the distributions of \(T(x \in \mathcal{D}_{\text{train}})\) and \(T(x \in \mathcal{D}_{\text{val}})\). This is measured by the Area Under the ROC Curve (AUC), where we assign binary labels to the samples (e.g., class 1 for \(\mathcal{D}_{\text{train}}\) and class 0 for \(\mathcal{D}_{\text{val}}\)). We report TPR at a 1% FPR (TPR@1%FPR) because standard AUC can be misleadingly high even if the attack fails to identify any specific member with high confidence. For computational purposes, the number of queries to compute \(T_\text{naive}\), \(T_\text{mc}\), and \(T_\text{mc\_cal}\) (#Query). We evaluated the generative image fidelity standard metric, Fréchet Inception Distance.

Dataset Configuration: We follow standard dataset construction protocols for MIA. For CIFAR-10, we evenly split the original training set into 25K/25K samples for \(\mathcal{D}_\text{train}\) and \(\mathcal{D}_\text{val}\), respectively, and train the RF model for 500K steps on \(\mathcal{D}_\text{train}\). Similarly, we construct 20K/20K splits for SVHN (trained for 500K steps), 50K/50K splits for TinyImageNet (trained for 100K steps) and 3K/3K for MSCOCO (trained for 45K steps). To maintain data diversity, we ensure a balanced class distribution across both \(\mathcal{D}_\text{train}\) and \(\mathcal{D}_\text{val}\). All models are trained using the standard RF scripts from https://github.com/lucidrains/rectified-flow-pytorch.git.

Table 1: Correlation analysis between Input Complexity (Compressed Bitrate) and \(T_{mc}\) (before calibration). We report Pearson (\(\rho\)) and Spearman (\(r_s\)) correlation coefficients for both training and validation sets.
Split CIFAR-10 SVHN TinyImageNet64
2-3 (lr)4-5 (lr)6-7 Pearson \(\rho\) Spearman \(r_s\) Pearson \(\rho\) Spearman \(r_s\) Pearson \(\rho\) Spearman \(r_s\)
Train 0.6030 0.5917 0.8520 0.8699 0.5275 0.5535
Val 0.8318 0.8561 0.8842 0.9060 0.7837 0.8111

4pt

Table 2: MIA Performance comparison across three datasets. All values are reported in percentage (%). \(\Delta\) represents the improvement over the method immediately above.
Method CIFAR-10 SVHN TinyImageNet
2-3(lr)4-5(lr)6-7 AUC↑ TPR@1%FPR↑ AUC↑ TPR@1%FPR↑ AUC↑ TPR@1%FPR↑
\(T_\text{naive}\) 70.98 2.70 68.04 1.89 72.33 4.10
\(T_\text{mc}\) (#mc=5) 75.12 3.05 70.92 1.54 76.44 5.33
\(\Delta\) (vs. \(T_\text{naive}\)) +4.14 +0.35 +2.88 -0.35 +4.11 +1.23
\(T_\text{mc\_cal}\) (#mc=5) 84.89 27.88 79.43 16.46 92.96 50.03
\(\Delta\) (vs. \(T_\text{mc}\)) +9.77 +24.83 +8.51 +14.92 +16.52 +44.70

4pt

Table 3: Comparison of membership inference attack (MIA) performance on MSCOCO across different timesteps \(t\), for a Rectified Flow model trained in the latent space of a VAE All values are reported in percentage (%). \(\Delta\) represents the improvement over the method immediately above.
\(t\) 0.10 0.20 0.30 0.40 0.50 0.60 0.70 0.80
\(T_\text{naive}\) 57.94 70.63 75.50 77.04 76.14 73.16 68.94 48.46
\(T_{\text{mc}}\) (#mc=5) 59.11 73.15 80.25 85.14 85.33 83.45 75.63 64.37
\(\Delta\) (vs.\(T_\text{naive}\)) +1.17 +2.52 +4.75 +8.10 +9.19 +10.29 +6.69 +15.91

3pt

5.2 Calibration Analysis↩︎

To demonstrate that standard test statistics are highly biased by input image complexity, we plot the likelihood estimation against input complexity in Appendix 9, and \(T_\text{mc}\) against input complexity in the first row of Fig. 2. A corresponding correlation coefficient analysis is provided in Table 1. Because this inherent bias obscures the true extent of memorization, we decouple the test score from input complexity. As shown in the second row of Fig. 2, our calibrated test statistic (\(T_\text{mc\_cal}\)) achieves a significantly cleaner separation between \(\mathcal{D}_\text{train}\) and \(\mathcal{D}_\text{val}\).

5.3 MIA Experiments↩︎

We initially evaluate the baseline statistic \(T_\text{naive}\) and observe that FM objective-based statistics tend to underestimate memorization. To validate our proposed \(T_\text{mc}\), we evaluate its performance by increasing the number of Monte Carlo samples (\(N_{mc}\)) from 1 to 10. As illustrated in Fig. 5, \(T_\text{mc}\) underperforms \(T_\text{naive}\) at \(N_{mc}=1\), but surpasses it at \(N_{mc} \ge 2\) and continues to improve. This behavior suggests that as we sample more noise vectors \(\varepsilon\), \(\mathbb{E}[\boldsymbol{x_0}]\) approaches zero, allowing the velocity network \(v_\theta\) to predict the test image \(\boldsymbol{x_1}\) more directly. We prescribe \(N_{mc}=5\) for subsequent experiments to balance computational overhead and AUC performance. Furthermore, because reconstruction error is heavily influenced by image complexity, adopting our calibrated statistic \(T_\text{mc\_cal}\) yields a significant performance surge, particularly in TPR@1%FPR. The final results are summarized in Table 2.

For the dataset with high-resolution images such as MSCOCO, we trained an RF in the latent space of a Variational Autoencoder (VAE). We directly employ the publicly released autoencoder model stabilityai/sd-vae-ft-mse [49] without further fine-tuning. We swept different \(t\) for this experiment and the results are summarized in Table 3. For \(T_\text{naive}\), we observe a slight shift towards \(t=0\) for optimal \(t\) as the images exhibit spatial auto-correlation. For \(T_\text{mc}\), optimal \(t\) perfectly remains on \(0.5\). VAE spaces have regularized covariances, so on average \(\Sigma_{x_1}\) will be closer to identity. Notably, \(T_\text{mc\_cal}\) is not applicable for latent RF, but we can use the encoder/decoder metric for the calibration. This is described in [14].

5.4 Impact of Symmetric Exponential Time Sampling↩︎

To validate the theoretical insights from Section 4.3, we train additional RF models using a Symmetric Exponential Distribution for time sampling with \(\alpha=2\) and \(\alpha=4\). Larger values of \(\alpha\) concentrate the sampling density toward the boundaries (\(t \to 0\) and \(t \to 1\)). The results are presented in the third column of Fig. 1, with supplementary TinyImageNet experiments detailed in Appendix 17. Note that we report the maximum AUC over \(t\), which typically occurs near \(t=0.5\). The figures clearly demonstrate that introducing this sampling technique significantly decelerates memorization during training, while maintaining or even reducing the FID score. This empirical evidence directly supports our analysis and claims regarding memorization dynamics in Section 4.

6 Conclusion and Discussion↩︎

In this paper, we present a series of test statistics for MIA on RF and provide a theoretical justification for each refinement. Our analysis of memorization dynamics across timesteps \(t\) reveals that memorization is primarily concentrated at the midpoint of ODE trajectory. We justify this observation by establishing a link to the Linear Minimum Mean Square Error (LMMSE) estimator. Leveraging this insight, we adjust the sampling distribution of \(t\), a modification that decelerates memorization without compromising generative image fidelity.

7 Acknowledgments↩︎

This work was supported in part by NSF 2321684 and the ARPA-H ALISS project.

8 Appendix↩︎

9 Input Complexity Bias in Likelihood Estimation↩︎

For a trained \(v_\theta\) on RF. The evolution of the log-density over time is governed by the instantaneous change of variables theorem, defined by the following ordinary differential equation (ODE):

\[\frac{d \log p(x(t))}{dt} = -\text{Tr}(\nabla_x v_\theta(x(t), t))\] To compute the exact log-likelihood for a given data sample \(x_1\), we integrate this ODE backward in time from \(t=1\) to the latent state \(x_0\) at \(t=0\): \[\log p_1(x_1) = \log p_0(x_0) + \int_{1}^{0} \text{Tr}(\nabla_x v_\theta(x(t), t)) dt\] where \(p_0\) represents the standard Gaussian prior distribution \(\mathcal{N}(0, I)\). Because computing the exact trace of the Jacobian is computationally expensive for high-dimensional image data, it is approximated using Hutchinson’s trace estimator with \(K\) independent noise vectors \(\epsilon_k \sim \mathcal{N}(0, I)\): \[\text{Tr}(\nabla_x v_\theta(x(t), t)) \approx \frac{1}{K} \sum_{k=1}^K \epsilon_k^\top \nabla_x v_\theta(x(t), t) \epsilon_k\] We choose \(K=2\) for all the experiments. The examples of highest log-likelihood and lowest likelihood is shown in Fig.6. It is very clear that the likelihood estimation is biased towards the input complexity. For test images \(\mathcal{D}_\text{val}\), less complex images are easily assigned with higher likelihood examples compared to complex images.

a

Figure 6: Examples on \(\mathcal{D}_\text{val}\) of highest log-likelihood and lowest log-likelihood in CIFAR-10. The corresponding compressed rate (bytes) is shown for each image..

10 Discussion on Different Compression Methods↩︎

Calibration using \(T_\text{mc}/\text{Complexity}^\beta\) (\(\beta\)=1 across the paper) implies a log-linear relationship: \(log(T_\text{mc}) \sim \beta log(\text{complexity}) + c\). Linear calibration through \(\beta\) would have nearly the same performance across other compression methods like WebP or lossless PNG (compressing from bitmap), so long as we included \(\beta\) in the division (i.e., \(T_\text{mc}/ (\text{Complexity})^\beta\)). We shows this in Table 4. However, it is somewhat unreasonable to include a calibration phase in the MIA setting, so instead we choose the most stable of the methods across datasets, JPEG, which has \(\beta\approx1\). This is an important topic, but its discussion greatly expands the scope of this paper.

Table 4: Performance comparison of different methods on CIFAR-10 and TinyImageNet.
Method (oracle) CIFAR-10 TinyImageNet
2-4(lr)5-7 \(\beta\) AUC↑ TPR↑ \(\beta\) AUC↑ TPR↑
\(T_\text{mc}\) - 75.12 3.05 - 76.44 5.33
\(T_\text{mc\_cal}\) (PNG) 0.49 81.95 11.84 0.78 85.07 12.03
\(T_\text{mc\_cal}\) (WebP) 0.33 84.95 22.58 0.57 91.77 35.63
\(T_\text{mc\_cal}\) (JPEG) 1.08 83.70 23.35 1.14 93.10 51.11

5pt

11 Training/val Loss Gap in Recitified Flow↩︎

As shown in Fig. 7, the original RF loss exhibits negligible separability between \(\mathcal{D}_{\text{train}}\) and \(\mathcal{D}_{\text{val}}\), suggested by the near-complete overlap (indicated by the purple region) of their \(\pm 1\) standard deviation intervals. This renders it largely ineffective for per-example memorization detection. In contrast, the proposed metrics—\(T_{\text{naive}}\), \(T_{\text{mc}}\), and \(T_{\text{mc\_cal}}\)—demonstrate a progressive reduction in this distributional overlap. As the gap between the mean values widens and the overlapping area diminishes, these metrics yield a significantly higher separability for distinguishing members from non-members.

a

Figure 7: Top left, top right, bottom left, and bottom right are the curves of \(\mathcal{D}_\text{train}\) and \(\mathcal{D}_\text{val}\) over CIFAR-10 training steps for original loss, \(T_\text{naive}\), \(T_\text{mc}\), \(T_\text{mc\_cal}\), respectively. The line denotes the mean, and the shadow area denotes the \(\pm1 \times \text{std}\). It is clear to see that the test values for \(\mathcal{D}_\text{train}\) and \(\mathcal{D}_\text{val}\) are progressively more distinguishable and separable..

12 Test Statistics for Optimal Transport conditional FM↩︎

This is an example of test statistics for another FM format. For Optimal Transport conditional Vector field, the forward process is [1]

\[X_t = t X_1 + [1-(1-\sigma_{min})t]X_0\] where \(\sigma_{min}=\sigma(x_1)\). Then \(\frac{\mathrm{d} X_t}{\mathrm{d} t} = X_1 - (1-\sigma_{min})X_0\). Hence, \(\mathcal{L}_{\text{CFM}}(\theta|x_1)\) is \[\mathcal{L}_{\text{CFM}}(\theta|x_1) = \mathbb{E}_{t \sim \mathcal{U}(0,1), X_0 \sim \pi_0} \left[ \left\| [X_1 - (1-\sigma_{min})X_0] - v_\theta(X_t, t) \right\|^2 \mid X_1=x_1\right]. \label{huwzgkiy}\tag{9}\]

Likewise, consider a fully overfit model minimizing the CFM loss, i.e., with \(\mathcal{L}_{CFM}=0\), \[\mathbb{E}_{t \sim \mathcal{U}(0,1), X_0 \sim \pi_0} \left[ \left\| [x_1 - (1-\sigma_{min})X_0] - v_\theta(X_t, t) \right\|^2_2 \right] = 0.\] which is equivalent to \[\mathbb{E}\left[x_1\right] - (1-\sigma_{min})\mathbb{E}\left[X_0\right] - \mathbb{E}\left[v_\theta(X_t, t)\right] = 0.\]

Since \(\pi_0\) is the standard Gaussian distribution, \(\mathbb{E}\left[X_0\right]=0\). The sample \(x_1\) does not depend on \(x_0\), so \(\mathbb{E}\left[x_1\right]=x_1\). Thus, \[\begin{align} x_1 - \mathbb{E}\left[v_\theta(X_t, t)\right] = 0. \label{eq:ot95fm} \end{align}\tag{10}\] Based on Eq. 10 , we derive the same \(T_\text{mc}\) as that for RF.

13 Calibration between \(T_\text{mc}\) and \(T_\text{naive}\)↩︎

\(T_\text{naive\_cal}\) denotes \(T_\text{naive}\) with the input complexity calibration. \[T_\text{mc\_cal}(x, t)=\frac{T_\text{naive}}{C(x)} \text{ with } x_t=tx+(1-t)\varepsilon. \label{eq:naive95cal}\tag{11}\] From Table 5, The calibration yields a substantial performance gain for \(T_\text{mc}\), whereas the gain for \(T_\text{naive}\) is very limited.

Table 5: Ablation study on the impact of input complexity calibration across three datasets. \(T_{\text{naive\_cal}}\) and \(T_{\text{mc\_cal}}\) denote the calibrated versions of \(T_{\text{naive}}\) and \(T_{\text{mc}}\), respectively, with \(\Delta\) indicating the performance difference from their uncalibrated baselines. The results demonstrate that calibration yields substantial performance gains for \(T_{\text{mc}}\), whereas the improvements for \(T_{\text{naive}}\) are notably limited.
Method CIFAR-10 SVHN TinyImageNet
2-3(lr)4-5(lr)6-7 AUC↑ TPR@1%FPR↑ AUC↑ TPR@1%FPR↑ AUC↑ TPR@1%FPR↑
\(T_\text{naive\_cal}\) 73.57 3.70 70.42 2.37 79.61 8.32
\(\Delta\) (vs. \(T_\text{naive}\)) +2.59 +1.0 +2.38 +0.48 +7.28 +4.22
\(T_\text{mc\_cal}\) (#mc=5) 84.89 27.88 79.43 16.46 92.96 50.03
\(\Delta\) (vs. \(T_\text{mc}\)) +9.77 +24.83 +8.51 +14.92 +16.52 +44.70

4pt

14 Derivation for LMMSE estimator↩︎

Let the global mean of the data distribution be \(\mu = \mathbb{E}[x_1]\) and its global covariance matrix be \(\Sigma = \text{Cov}(x_1)\). Recap RF forward process, the state \(x_t\) is defined as: \[x_t = tx_1 + (1-t)x_0\] where \(x_0 \sim \mathcal{N}(\mathbf{0}, \mathbf{I})\) is the standard Gaussian noise independent of \(x_1\). For non-linear regerssor \(v_\theta\), The input information is \(x_t\) and the target velocity vector is \(v = x_1 - x_0\) and \(\mathbb{E}[v]=\mu\). To formulate the LMMSE baseline, we formulate it as a constrained optimization problem.

The LMMSE estimator seeks an optimal weight matrix \(W^* \in \mathbb{R}^{D \times D}\) and bias vector \(b^* \in \mathbb{R}^D\) that minimize the expected squared \(\ell_2\)-norm of the prediction error: \[W^*, b^* = \arg\min_{W, b} \mathbb{E}_{(v, x_t)}\left[ \|v - (Wx_t + b)\|_2^2 \right]\] By solving this constrained objective via the orthogonality principle—which dictates that the optimal prediction error must be orthogonal to the input space—we obtain the closed-form global linear predictor: \[W^* = \Sigma_{vx_t}\Sigma_{x_tx_t}^{-1}, \quad b^* = \mathbb{E}[v] - W^*\mathbb{E}[x_t]\]

we first derive the exact analytical moments at any given timestep \(t\). The expectation of the state is \(\mathbb{E}[x_t] = t\mu\), and the auto-covariance of \(x_t\) is given by: \[\Sigma_{x_tx_t} = t^2\Sigma + (1-t)^2\mathbf{I}\] Similarly, the cross-covariance between the target velocity \(v\) and the input state \(x_t\) is derived as: \[\Sigma_{vx_t} = \mathbb{E}[(v - \mathbb{E}[v])(x_t - \mathbb{E}[x_t])^T] = t\Sigma - (1-t)\mathbf{I}\] Using these global statistics, the LMMSE estimator constructs the optimal linear projection for the velocity prediction: \[v_{LMMSE}(x_t) = \mathbb{E}[v] + \Sigma_{vx_t} \Sigma_{x_tx_t}^{-1} (x_t - \mathbb{E}[x_t])\] Substituting the derived moments into the estimator yields the closed-form global linear baseline for any input \(x_t\): \[v_{LMMSE}(x_t) = \mu + \left( t\Sigma - (1-t)\mathbf{I} \right) \left( t^2\Sigma + (1-t)^2\mathbf{I} \right)^{-1} (x_t - t\mu)\]

15 Proof of Normalization for the Symmetric Exponential Distribution↩︎

Proof. To verify that \(p(t; \alpha)\) is a valid probability density function, we must show that its integral over the domain \(t \in [0, 1]\) equals exactly \(1\): \[\int_{0}^{1} p(t; \alpha) \, dt = \frac{\alpha}{2(1 - e^{-\alpha})} \int_{0}^{1} \left( e^{-\alpha t} + e^{-\alpha(1-t)} \right) dt\] By the linearity of integration, we can evaluate the terms within the integrand separately. The definite integral of the forward decay term is evaluated as: \[\int_{0}^{1} e^{-\alpha t} \, dt = \left[ -\frac{1}{\alpha} e^{-\alpha t} \right]_{0}^{1} = \frac{1 - e^{-\alpha}}{\alpha}\] For the mirrored decay term, we apply the substitution \(u = 1 - t\), which yields \(du = -dt\). Adjusting the bounds of integration accordingly, we observe that it evaluates to the exact same result by symmetry:

\[\int_{0}^{1} e^{-\alpha(1-t)} \, dt = \int_{1}^{0} e^{-\alpha u} (-du) = \int_{0}^{1} e^{-\alpha u} \, du = \frac{1 - e^{-\alpha}}{\alpha}\] Summing the results of these two integrals and multiplying by the leading normalization constant, all terms perfectly cancel: \[\int_{0}^{1} p(t; \alpha) \, dt = \frac{\alpha}{2(1 - e^{-\alpha})} \left( \frac{2(1 - e^{-\alpha})}{\alpha} \right) = 1\] Thus, the distribution is strictly normalized. ◻

16 Discussion if \(\Sigma_{x_1} \neq \boldsymbol{I}\)↩︎

We made Gaussian toy datasets of dimension \(d\) with varying condition numbers (\(\kappa\)) of the covariance matrix \(\Sigma_{x_1}[\kappa] = \text{diag}(\kappa, \dots,1)\) with entries linearly space between \(\kappa\) and 1, training RF models on each. As \(\kappa\) increases, the peak \(t\) shifts towards \(t=0\). Reasoning behind this phenomenon starts in Eq. 18 of the main text, where we consider mixture distributions \(tx_1 + (1-t)x_0\) and their covariance. For the \(\Sigma_{x_1}[\kappa] \neq I\) assumption, we need to generalize Eq. 18 from a zero variance criterion to min variance, i.e., \(\min_t \text{Tr}[ t\Sigma_{x_1} + (1-t)\Sigma_{x_0}]\). The optimal \(t\) is the point at which the \(t\)-weighted mean of the eigenvalues of \(\Sigma_{x_1}\) and \(\Sigma_{x_0}\) is minimal. As \(\kappa\) becomes large, the optimal \(t\) necessarily grows small. The results are summarized in Table 6.

We hypothesize that it is unlikely to see very high \(\kappa\) in large natural image datasets without pathological problems (this implies the image pixels are highly correlated), but other fields may see these phenomena regularly. Plus, images with high resolution are usually trained on the latent space of VAE. The latent code is naturally regularized, and its covariance matrix is close to the identity matrix.

Table 6: Results of toy datasets of dimension \(d\) with varying condition numbers (\(\kappa\)) of the covariance matrix \(\Sigma_{x_1}[\kappa] = \text{diag}(\kappa, \dots,1)\) with entries linearly space between \(\kappa\) and 1.
Condition \(\kappa\) 1.0 (\(\Sigma=I\)) 5.0 10.0 20.0 30.0 50.0 70.0 100.0
Peak \(t\) 0.50 0.41 0.32 0.29 0.25 0.24 0.21 0.19

4.5pt

17 TinyImageNet Experiments↩︎

Fig. 8 shows the plots for TinyImageNet. The time of peak memorization is off the midpoint as the assumption “the target data variable \(x_1\) is standardized such that its expectation \(\mu_{x_1} = \boldsymbol{0}\) and covariance \(\Sigma_{x_1} = I\)” is broken here. The performance gain is consistent with that in CIFAR-10 and SVHN. Notably, TPR@1%FPR increases by 44.7% after calibration.

a

Figure 8: The MIA performance and training dynamics for TinyImageNet dataset. The performance gain is consistent with that in CIFAR-10 and SVHN. Notably, TPR@1%FPR increases by 44.7% after calibration..

18 Dataset and Splits↩︎

The UNet architecture and dataset splits are summarized in Table 7 and Table 8.

Table 7: UNet Architecture used in our experiments.
Hyperparameter UNet 1 UNet 2 UNet 3
Base Channels (dim) 128 192 128
Channel Multipliers (dim_mults) (1, 2, 2, 2) (1, 2, 3, 4) (1, 2, 4, 8)
Residual Streams (num_residual_streams) 2 3 2
Input Channels (channels) 3 3 4
Attention Head Dim. (attn_dim_head) 32 64 32
Attention Heads (attn_heads) 4 4 4
Full Attention (full_attn) Inner-most (False, False, True, True) Inner-most
Flash Attention (flash_attn) True True True
Dropout (dropout) 0.1 0.1 0.1
Table 8: Datasets, network architectures, and training configurations used for our experiments.
Dataset Splits Resolution # Samples / Class Training Steps UNet Arch.
CIFAR-10 25k/25k 32 2500 500k UNet 1
SVHN 20k/20k 32 2000 500k UNet 1
TinyImageNet 50k/50k 64 50 100k UNet 2
MSCOCO 3k/3k 512 - 45K UNet 3

References↩︎

[1]
Y. Lipman, R. T. Chen, H. Ben-Hamu, M. Nickel, and M. Le, “Flow matching for generative modeling,” arXiv preprint arXiv:2210.02747, 2022.
[2]
J. Ho, A. Jain, and P. Abbeel, “Denoising diffusion probabilistic models,” Advances in neural information processing systems, vol. 33, pp. 6840–6851, 2020.
[3]
R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and booktitle=Proceedings. of the I. conference on computer vision and pattern recognition Ommer Björn, “High-resolution image synthesis with latent diffusion models,” 2022, pp. 10684–10695.
[4]
Y. Song and S. Ermon, “Generative modeling by estimating gradients of the data distribution,” Advances in neural information processing systems, vol. 32, 2019.
[5]
Y. Song, J. Sohl-Dickstein, D. P. Kingma, A. Kumar, S. Ermon, and B. Poole, “Score-based generative modeling through stochastic differential equations,” arXiv preprint arXiv:2011.13456, 2020.
[6]
T. Karras, M. Aittala, T. Aila, and S. Laine, “Elucidating the design space of diffusion-based generative models,” Advances in neural information processing systems, vol. 35, pp. 26565–26577, 2022.
[7]
M. S. Albergo and E. Vanden-Eijnden, “Building normalizing flows with stochastic interpolants,” arXiv preprint arXiv:2209.15571, 2022.
[8]
A. Tong et al., “Improving and generalizing flow-based generative models with minibatch optimal transport,” arXiv preprint arXiv:2302.00482, 2023.
[9]
X. Liu, C. Gong, and Q. Liu, “Flow straight and fast: Learning to generate and transfer data with rectified flow,” arXiv preprint arXiv:2209.03003, 2022.
[10]
P. Esser et al., “Scaling rectified flow transformers for high-resolution image synthesis,” 2024.
[11]
B. F. Labs et al., “FLUX.1 kontext: Flow matching for in-context image generation and editing in latent space.” 2025 , eprint={2506.15742}, archivePrefix={arXiv}, primaryClass={cs.GR}, [Online]. Available: https://arxiv.org/abs/2506.15742 , note={Accessed: 2026-06-26}.
[12]
I. AI, “Ideogram 4.” 2026 , howpublished={\url{https://ideogram.ai/blog/ideogram-4.0/}}, note={Accessed: 2026-06-26}.
[13]
A.-A. Pooladian, H. Ben-Hamu, C. Domingo-Enrich, B. Amos, Y. Lipman, and R. T. Chen, “Multisample flow matching: Straightening flows with minibatch couplings,” arXiv preprint arXiv:2304.14772, 2023.
[14]
M. Rao, B. Qu, and D. Moyer, “Latent diffusion inversion requires understanding the latent space,” arXiv preprint arXiv:2511.20592, 2025.
[15]
M. Rao, B. Qu, and D. Moyer, “Score-based membership inference on diffusion models,” arXiv preprint arXiv:2509.25003, 2025.
[16]
M. Fredrikson, S. Jha, and booktitle=Proceedings. of the 22nd. A. S. conference on computer and communications security Ristenpart Thomas, “Model inversion attacks that exploit confidence information and basic countermeasures,” 2015, pp. 1322–1333.
[17]
N. Carlini, S. Chien, M. Nasr, S. Song, A. Terzis, and booktitle=2022. I. symposium on security and privacy (SP). Tramer Florian, “Membership inference attacks from first principles,” 2022 , organization={IEEE}, pp. 1897–1914.
[18]
E. Nalisnick, A. Matsukawa, Y. W. Teh, D. Gorur, and B. Lakshminarayanan, “Do deep generative models know what they don’t know?” arXiv preprint arXiv:1810.09136, 2018.
[19]
J. Serrà, D. Álvarez, V. Gómez, O. Slizovskaia, J. F. Núñez, and J. Luque, “Input complexity and out-of-distribution detection with likelihood-based generative models,” arXiv preprint arXiv:1909.11480, 2019.
[20]
S. Lee, Z. Lin, and G. Fanti, “Improving the training of rectified flows,” Advances in neural information processing systems, vol. 37, pp. 63082–63109, 2024.
[21]
A. Krizhevsky, G. Hinton, et al., “Learning multiple layers of features from tiny images,” 2009.
[22]
Y. Netzer et al., “Reading digits in natural images with unsupervised feature learning,” 2011 , organization={Granada}, vol. 2011, p. 4.
[23]
J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, and booktitle=2009. I. conference on computer vision and pattern recognition Fei-Fei Li, “Imagenet: A large-scale hierarchical image database,” 2009 , organization={Ieee}, pp. 248–255.
[24]
J. Duan, F. Kong, S. Wang, X. Shi, and booktitle=International. C. on M. L. Xu Kaidi, “Are diffusion models vulnerable to membership inference attacks?” 2023 , organization={PMLR}, pp. 8717–8730.
[25]
F. Kong et al., “An efficient membership inference attack for the diffusion model by proximal initialization,” arXiv preprint arXiv:2305.18355, 2023.
[26]
W. Fu, H. Wang, C. Gao, G. Liu, Y. Li, and T. Jiang, “A probabilistic fluctuation based membership inference attack for diffusion models,” arXiv preprint arXiv:2308.12143, 2023.
[27]
S. Zhai et al., “Membership inference on text-to-image diffusion models via conditional likelihood discrepancy,” Advances in Neural Information Processing Systems, vol. 37, pp. 74122–74146, 2024.
[28]
G. van den Burg and C. Williams, “On memorization in probabilistic deep generative models,” Advances in neural information processing systems, vol. 34, pp. 27916–27928, 2021.
[29]
J. Hayes, L. Melis, G. Danezis, and E. De Cristofaro, “Logan: Membership inference attacks against generative models,” arXiv preprint arXiv:1705.07663, 2017.
[30]
H. Yang and W. E, “Generalization error of GAN from the discriminator?s perspective,” Research in the Mathematical Sciences, vol. 9, no. 1, p. 8, 2022.
[31]
T. Bonnaire, R. Urfin, G. Biroli, and M. Mézard, “Why diffusion models don’t memorize: The role of implicit dynamical regularization in training,” arXiv preprint arXiv:2505.17638, 2025.
[32]
Z. Kadkhodaie, F. Guth, E. P. Simoncelli, and S. Mallat, “Generalization in diffusion models arises from geometry-adaptive harmonic representations,” arXiv preprint arXiv:2310.02557, 2023.
[33]
A. Lukoianov, C. Yuan, J. Solomon, and V. Sitzmann, “Locality in image diffusion models emerges from data statistics,” arXiv preprint arXiv:2509.09672, 2025.
[34]
X. Gu, C. Du, T. Pang, C. Li, M. Lin, and Y. Wang, “On memorization in diffusion models,” arXiv preprint arXiv:2310.02664, 2023.
[35]
T. Yoon, J. Y. Choi, S. Kwon, and booktitle=ICML. 2023. workshop on structured probabilistic inference \{\backslash&\}. generative modeling Ryu Ernest K, “Diffusion probabilistic models generalize when they fail to memorize,” 2023.
[36]
P. Li, Z. Li, H. Zhang, and J. Bian, “On the generalization properties of diffusion models,” Advances in Neural Information Processing Systems, vol. 36, pp. 2097–2127, 2023.
[37]
M. Abadi et al., “Deep learning with differential privacy,” 2016, pp. 308–318.
[38]
T. Dockhorn, T. Cao, A. Vahdat, and K. Kreis, “Differentially private diffusion models,” arXiv preprint arXiv:2210.09929, 2022.
[39]
F. Tramer and D. Boneh, “Differentially private learning needs better features (or much more data),” arXiv preprint arXiv:2011.11660, 2020.
[40]
J. Goodier and N. D. Campbell, “Likelihood-based out-of-distribution detection with denoising diffusion probabilistic models,” arXiv preprint arXiv:2310.17432, 2023.
[41]
D. P. Kingma and P. Dhariwal, “Glow: Generative flow with invertible 1x1 convolutions,” Advances in neural information processing systems, vol. 31, 2018.
[42]
A. Van Den Oord, N. Kalchbrenner, and booktitle=International. conference on machine learning Kavukcuoglu Koray, “Pixel recurrent neural networks,” 2016 , organization={PMLR}, pp. 1747–1756.
[43]
D. P. Kingma and M. Welling, “Auto-encoding variational bayes,” arXiv preprint arXiv:1312.6114, 2013.
[44]
W. Grathwohl, R. T. Chen, J. Bettencourt, I. Sutskever, and D. Duvenaud, “Ffjord: Free-form continuous dynamics for scalable reversible generative models,” arXiv preprint arXiv:1810.01367, 2018.
[45]
Y. Lipman et al., “Flow matching guide and code,” arXiv preprint arXiv:2412.06264, 2024.
[46]
M. Li, P. Vitányi, et al., An introduction to kolmogorov complexity and its applications, vol. 3. Springer, 2008.
[47]
X. Yang, D. Zhou, J. Feng, and booktitle=Proceedings. of the I. C. on computer vision and pattern recognition Wang Xinchao, “Diffusion probabilistic model made slim,” 2023, pp. 22552–22562.
[48]
X. Li, Y. Dai, and Q. Qu, “Understanding generalizability of diffusion models requires rethinking the hidden gaussian structure,” Advances in neural information processing systems, vol. 37, pp. 57499–57538, 2024.
[49]
note =. H. F. model card;. autoencoder (VAE). decoder finetuned on L.-H. /. L. training set. A. 2026. Stability AI howpublished = https://huggingface.co/stabilityai/sd-vae-ft-mse, “Sd-vae-ft-mse.” 2023.

  1. Corresponding author.↩︎