Manuscript Offprint

arXiv:2608.25138

Drift Variation Autoencoder: Unifying Generation and Representation Learning through Conditional Posterior Flow Matching

Jiarui Cao

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Stochastic masking, cropping, or modality removal makes deterministic reconstruction an incomplete target: one observation can admit many clean completions. This work takes the corresponding posterior P(X∣C)P(X \mid C) as the common statistical object for conditional generation and generatively sufficient representation learning. Drift Variation autoencoder trains a masked encoder Z=E(C)Z = E(C) and a conditional flow decoder with one clean-prediction Flow Matching loss. The analysis first decomposes the ideal conditional KL into generator approximation and the representation deficiency I(X;C∣Z)I(X; C \mid Z). It then derives orthogonal risk decompositions for conditional Flow Matching. For an affine Gaussian path, the clean-prediction representation gap is zero if and only if P(X∣Z)=P(X∣C)P(X \mid Z) = P(X \mid C). Thus the encoder-dependent excess clean-prediction risk induced by Flow Matching and the profiled ideal conditional KL have the same posterior-sufficient zero set, without being numerically equal objectives. An exact conditional field with a zero-noise endpoint then generates P(X∣Z)P(X \mid Z) and hence P(X∣C)P(X \mid C) at a joint ideal optimum. The result extends to continuous multimodal product spaces when the complete modality tuple remains the Flow target for every observation mask. On CrossGeom-4, an 18-run controlled benchmark, observable factors have linear-probe R2R^2 of 0.9990-0.9992, shuffling the joint model's encoder condition increases conditional error by 13.5×−15.7×13.5 \times -15.7 \times, and joint target attention reduces disagreement on an unobserved factor shared by two outputs by 90.1-92.8% relative to independent target decoders. Visible modalities are also generated and reconstructed, directly validating the full-tuple objective. Unconditional mode balance remains imperfect, delimiting the empirical claim to a controlled multimodal proof of concept.

1 Introduction

When an augmentation removes information, reconstruction is not a one-to-one problem. A crop can hide several plausible backgrounds; a masked signal can admit several continuations; and an observed modality can leave residual variables that two missing modalities must share. The statistically correct target is therefore not a single reconstruction but the posterior P(X∣C)P(X \mid C) of a clean sample XX given a stochastic observation C=A(X,ΞA)C = A(X, \Xi_A). This posterior offers a precise common target for two tasks that are usually trained separately: a generator should sample it, while an encoder representation should preserve exactly the information in CC needed to specify it.

Current pipelines typically optimize the two capabilities with distinct objectives. Self-supervised encoders use view agreement, masked reconstruction, or latent prediction [1–4], whereas diffusion and flow models estimate denoising scores or transport fields [5–7]. A downstream system may then align, freeze, distill, or reconnect the components. This separation can be useful, but it does not make representation correctness a consequence of the same uncertainty modeled by the generator. Conversely, a conditional generator can reduce denoising loss through its noisy state without exposing a reusable representation. This work asks whether one ordinary generative objective can instead characterize and train the representation it consumes.

Let Z=Eθ(C)Z = E_{\theta}(C) be a deterministic representation and let Q(X∣Z)Q(X \mid Z) be a conditional generator. The ideal posterior-matching risk is

K(E,Q)=ECKL⁡(P(X∣C)∥Q(X∣E(C))).(1)\mathcal{K}(E,Q)=\mathbb{E}_{C}\operatorname{K L}(P(X\mid C)\parallel Q(X\mid E(C))). \tag{1}

Because Z is a function of C, this risk decomposes exactly as

K(E,Q)=I(X;C∣Z)+EZKL⁡(P(X∣Z)∥Q(X∣Z)).(2)\mathcal{K}(E,Q)=I(X;C\mid Z)+\mathbb{E}_{Z}\operatorname{K L}(P(X\mid Z)\parallel Q(X\mid Z)). \tag{2}

The generator must model the posterior available after compression, while the representation is correct exactly when P(X∣Z)=P(X∣C)P(X \mid Z) = P(X \mid C). This condition is called posterior sufficiency. It is a generative notion of representation quality, not a guarantee of semantic minimality, disentanglement, or invariance. An identity encoder can be sufficient; the observation process and bottleneck determine which sufficient representations are useful. Equation (1) defines the desired statistical object, but its unknown conditional densities prevent direct optimization.

Drift Variation autoencoder turns this posterior principle into a sample-based objective using Conditional Flow Matching (CFM) [7, 8]. The training procedure draws a condition-independent Gaussian source X0X_0, forms an affine path Xt=αtX+σtX0X_t = \alpha_t X + \sigma_t X_0, and jointly trains the encoder and a clean-prediction decoder that receives only (Xt,t,Z)(X_t, t, Z). The sample target is analytic and fixed by the observed data pair and probability path; no teacher, contrastive target, or generated reference set is required by the population objective.

The key difficulty is showing that CFM constrains the encoder rather than only the decoder. The analysis derives an orthogonal risk decomposition into irreducible path variance, representation deficiency, and model approximation. For clean prediction, the encoder-dependent term is

Δrepx(E)=E[w(t)∥E[X∣Xt,t,C]−E[X∣Xt,t,Z]∥2].(3)\Delta_{\mathrm{r e p}}^{x}(E)=\mathbb{E}\Big[w(t)\left\|\mathbb{E}[X\mid X_{t},t,C]-\mathbb{E}[X\mid X_{t},t,Z]\right\|^{2}\Big]. \tag{3}

For an affine Gaussian path with positive effective mass at interior noise levels, the analysis proves

Δrepx(E)=0⟺P(X∣Z)=P(X∣C)⟺I(X;C∣Z)=0.(4)\Delta_{\mathrm{rep}}^{x}(E)=0\quad\Longleftrightarrow\quad P(X\mid Z)=P(X\mid C)\quad\Longleftrightarrow\quad I(X;C\mid Z)=0. \tag{4}

The proof recovers a noisy conditional score from the Gaussian posterior mean, then the smoothed density, and finally the clean posterior through injectivity of Gaussian convolution. This is an equivalence of ideal encoder zero sets, not an equality between the numerical CFM and KL objectives or their encoder gradients. With an exact representation-conditioned field, the conditional ODE generates P(X∣Z)P(X \mid Z); Eq. (4) closes the loop to P(X∣C)P(X \mid C).

The formulation extends to a multimodal tuple X=(X(1),…,X(M))\mathbf{X} = (X^{(1)}, \ldots, X^{(M)}). An observation mask controls which clean modalities enter the encoder, but the Flow target remains the complete tuple for every mask. Each modality receives source noise, contributes a positive loss weight, and evolves in the joint decoder. The product-space theorem then identifies the complete joint posterior, including residual dependence between simultaneously generated modalities. The evaluation tests this prediction on CrossGeom-4, a controlled three-modality distribution with known shared factors and Euclidean, spherical, and hyperbolic views. Joint and independent decoders have similar deterministic conditional accuracy, but only joint target attention coordinates the same unobserved posterior draw across two outputs.

The closest theoretical comparison is Zero-Flow Encoders [9], which constructs a separate sufficient-representation loss from a midpoint zero-flow criterion under an independent coupling. Drift Variation autoencoder instead studies the ordinary conditional decoder used for generation: its clean-prediction risk itself induces the encoder criterion, and Gaussian denoiser identifiability links that criterion to posterior sufficiency.

The main contributions are:

• Posterior principle. Generative representation correctness is defined by P(X∣Z)=P(X∣C)P(X \mid Z) = P(X \mid C), and the ideal conditional KL is decomposed into representation deficiency and generator approximation.

• Flow risk and sufficiency. Exact velocity and clean-prediction risk decompositions are derived, and it is proved that the encoder-dependent clean-prediction representation gap induced by affine-Gaussian CFM and the profiled conditional KL share the same posterior-sufficient zero set.

• Endpoint and multimodal guarantees. An exact field is connected to posterior generation, and the result is extended to complete continuous multimodal tuples under any observed subset.

• Controlled validation. CrossGeom-4 measures representation use, visible-stream reconstruction, conditional completion, residual joint coupling, and unconditional coverage across three geometries and three seeds.

References (30)