Conditional Sampling via Wasserstein Autoencoders and Triangular Transport

Mohammad Al-Jarrah, Michele Martino, Marcus Yim, Bamdad Hosseini, Amirhossein TaghvaeiarXiv 2026

TL;DR

The paper introduces Conditional Wasserstein Autoencoders (CWAEs), a novel framework for high-dimensional conditional sampling. By integrating block-triangular transport maps into a Wasserstein Autoencoder architecture, CWAEs successfully discover and exploit low-dimensional latent structures in both the conditioned and conditioning variables, bypassing the curse of dimensionality without requiring explicit likelihood gradients.

What Problem Does This Paper Address?

Sampling from a conditional probability distribution $P_{X|Y=y}$ is a foundational challenge in Bayesian inference, inverse problems, and data assimilation (e.g., predicting a physical state $X$ given noisy sensor observations $Y$).

When $X$ and $Y$ are high-dimensional—such as fluid flow fields or high-resolution images—classical approaches like particle filters break down due to the curse of dimensionality. While modern measure transport methods attempt to map simple reference distributions to complex target distributions, computing a full triangular transport map in high dimensions is computationally prohibitive. Existing dimension-reduction techniques (like Likelihood-Informed Subspaces) alleviate this but rely heavily on knowing the analytical likelihood and its gradients, which are often unavailable in purely data-driven settings.

This paper tackles the challenge of learning to sample from these complex conditional distributions directly from paired data $(y, x)$ without assuming access to likelihood gradients.

Methods

The authors propose Conditional Wasserstein Autoencoders (CWAEs), which combine the dimension-reduction capabilities of Wasserstein Autoencoders (WAEs) with the conditional sampling properties of block-triangular transport maps.

The core methodology consists of:

  1. Block-Triangular Decoder: The decoder $G$ is constrained to be block-triangular, taking the form: $$G(z, u) = (G_Y(z), G_X(z, u))$$ where $z$ and $u$ are independent latent variables. $G_Y(z)$ generates the conditioning variable $Y$, and $G_X(z, u)$ generates the target variable $X$.

  2. Latent Independence: By enforcing that the latent spaces $Z$ and $U$ are statistically independent ($P_{Z,U} = P_Z \otimes P_U$), conditional sampling simplifies dramatically. To sample from $P_{X|Y=y}$ at inference time, one simply encodes $y$ to find $z$, draws a random noise vector $u \sim P_U$, and passes them through $G_X(z, u)$ in a single forward pass.

  3. Architectural Variants: The authors introduce three structural variants (CWAE1, CWAE2, CWAE3) that alter how the conditioning information flows through the encoder and decoder networks during training to optimize stability and performance.

Datasets

The framework was evaluated on three distinct problems:

  • Nonlinear Manifold Embedding with Cubic Observations: A synthetic benchmark where the state $X$ is constrained to a low-dimensional manifold embedded in a higher-dimensional space ($d_X$ up to 50), and observations $Y$ are corrupted by cubic nonlinearities and noise.
  • Spherical Posterior Example: A challenging geometric problem where the posterior distribution concentrates entirely on a nonlinear, low-dimensional sphere embedded within a high-dimensional space.
  • Incompressible Flow Field Reconstruction: A high-dimensional physical application simulating 2D fluid flow past a cylinder using the Lattice Boltzmann method. The state space is 4608-dimensional (a $48 \times 48$ grid with 2 velocity components), observed through a sparse $9 \times 9$ grid of noisy pixel sensors. Physical constraints (divergence and smoothness penalties) were incorporated into the CWAE loss function.

Key Insights and Ideas

  • Decoupling via Geometry: The block-triangular structure naturally forces the network to separate the intrinsic randomness of the observation space from the conditional randomness of the state space.
  • Gradient-Free Subspace Discovery: Unlike traditional subspace methods that require exact likelihood equations and gradients, CWAEs discover the underlying low-dimensional manifolds purely from data samples.
  • Stronger Optimization Objectives: The authors prove that minimizing their proposed latent conditional optimal transport cost provides stricter, more direct control over the quality of individual conditional distributions than simply minimizing a joint optimal transport cost.

Key Results

The CWAE variants were benchmarked against the Low-Rank Ensemble Kalman Filter (LREnKF).

  • Geometric Accuracy: In the spherical posterior experiment, CWAE variants accurately captured the sharp, circular geometry of the true posterior, whereas LREnKF collapsed or smeared across the space.
Fig. 2: Numerical results for the spherical posterior example in Sec. IV-D. Both panels show the sample distributions for each method alongside the true distribution for two distinct values of the observation y. The left panel corresponds to y = 1 and the right panel corresponds to y = 2.
  • Dimensional Robustness: In the cubic manifold embedding experiment, CWAEs consistently achieved significantly lower Wasserstein-2 ($W_2$) errors than LREnKF across all tested dimensions ($d_X = 10$ to $50$). CWAE2 demonstrated the most stable performance.
Fig. 1: Numerical results for the synthetic example in Sec. IV-C. The figure shows the sample distributions for the last three states left to right for y = 1dY.
  • Physical Fidelity: In the fluid dynamics task, CWAE3 achieved a first-moment relative MSE of 0.0054, outperforming LREnKF (0.0437) by an order of magnitude, successfully reconstructing complex vortex shedding patterns from sparse data.

Limitations and Future Work

  • Hyperparameter Sensitivity: A notable drawback is that CWAE training is highly sensitive to the regularization weight $\lambda$ and specific network architectures, demanding a substantial computational budget for hyperparameter tuning.
  • Sequential Filtering: The current formulation is limited to static conditional sampling. The authors note that extending CWAEs to sequential data assimilation (like time-dependent filtering problems) is a crucial next step.
  • Alternative Divergences: Future work will explore replacing the GAN-based loss with Maximum Mean Discrepancy (MMD) or Sinkhorn-type penalties to improve training stability.

Summary updated

BibTeX
@misc{aljarrah2026conditional,
  author = {Mohammad Al-Jarrah and Michele Martino and Marcus Yim and Bamdad Hosseini and Amirhossein Taghvaei},
  title = {{Conditional Sampling via Wasserstein Autoencoders and Triangular Transport}},
  year = {2026},
  eprint = {2604.02644},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.02644},
}
Figure