A friendly introduction to triangular transport

Maximilian Ramgraber, Daniel Sharp, Mathieu Le Provost, Youssef MarzoukarXiv 2025 · DOI

Abstract

Decision making under uncertainty is a cross-cutting challenge in science and engineering. Most approaches to this challenge employ probabilistic representations of uncertainty. In complicated systems accessible only via data or black-box models, however, these representations are rarely known. We discuss how to characterize and manipulate such representations using triangular transport maps, which approximate any complex probability distribution as a transformation of a simple, well-understood distribution. The particular structure of triangular transport guarantees many desirable mathematical and computational properties that translate well into solving practical problems. Triangular maps are actively used for density estimation, (conditional) generative modelling, Bayesian inference, data assimilation, optimal experimental design, and related tasks. While there is ample literature on the development and theory of triangular transport methods, this manuscript provides a detailed introduction for scientists interested in employing measure transport without assuming a formal mathematical background. We build intuition for the key foundations of triangular transport, discuss many aspects of its practical implementation, and outline the frontiers of this field.

Introduction

In science and engineering, we often deal with "black-box" models or raw data where the underlying probability distributions are unknown or incredibly complex. Traditional tools for navigating these distributions—like Markov Chain Monte Carlo (MCMC)—can be computationally expensive and difficult to scale.

Triangular transport addresses the challenge of measure transport: finding a deterministic, invertible function that maps a simple "reference" distribution (like a Gaussian) to a complicated "target" distribution. While many transport methods exist, such as Normalizing Flows or GANs, they often lack transparency or struggle with specific statistical operations like conditioning. Triangular transport specifically tackles these issues by providing a structured approach that excels at "slicing" distributions to perform Bayesian inference.

The progression from a simple deterministic function (A) to deterministic coupling (B) and finally a full joint probability distribution (C).

Methodology

The core of triangular transport is the Knothe–Rosenblatt (KR) rearrangement. Unlike general neural networks that might transform all variables simultaneously, a triangular map $S$ processes variables sequentially:

  • The first output depends only on the first input.
  • The second output depends on the first and second inputs.
  • The $k$-th output depends on inputs 1 through $k$.

This "lower-triangular" Jacobian structure offers several advantages. By ensuring each component function is strictly increasing in its last argument, the map becomes easily invertible. Furthermore, because of the sequential structure, one can "freeze" the first few variables (the observations) and immediately sample the remaining variables (the posterior) without retraining the model.

The operational workflow for defining, building, optimizing, and applying triangular transport maps.

Optimization Strategies

There are two primary paths for optimizing these maps:

  1. Maps from Samples: Using the "forward" Kullback–Leibler (KL) divergence to maximize the log-likelihood of existing data.
  2. Maps from Densities: Using the "reverse" KL divergence when an unnormalized probability density function is available, which is common in Bayesian physics.

Key Insights and Results

Sparsity and Conditional Independence

A significant insight is the link between the map's structure and the underlying physics. If variable A does not physically affect variable C, the triangular map will naturally exhibit a "zero" in that spot. This sparsity leads to massive computational speedups in high-dimensional systems.

Expressivity and Parameterization

Through synthetic illustrative datasets, such as 2D "wavy" and multimodal distributions, the paper demonstrates that cross-term maps are essential for recovering rotated, non-linear distributions. These maps allow the shape of the transformation to change based on previous variables. To manage complexity, the authors showcase a greedy adaptation algorithm that iteratively adds basis functions only where needed, preventing overfitting.

The "Composite Map" Trick

For conditional sampling, the authors suggest a strategy where existing samples are "pushed" through the map and then "pulled" back. This preservation of fine-grained features ensures the model remains robust even if the map missed certain nuances during training.

Limitations and Future Frontiers

Despite its strengths, triangular transport faces several challenges:

  • Dimensionality: Extremely high-dimensional targets (like high-resolution video) still pose a challenge for sequential maps compared to parallelized architectures.
  • Variable Ordering: Triangular transport is sensitive to variable ordering. Finding the optimal order to maximize sparsity remains a difficult graph-theory problem when the causal structure is unknown.
  • Computational Stability: Certain basis functions can be numerically unstable at the edges of a distribution, necessitating more efficient "edge-controlled" representations.
  • Non-parametric Methods: While most current work is parametric (using polynomials), future research is pointing toward non-parametric representations to handle highly irregular distributions.

Summary updated

BibTeX
@misc{ramgraber2025friendly,
  author = {Maximilian Ramgraber and Daniel Sharp and Mathieu Le Provost and Youssef Marzouk},
  title = {{A friendly introduction to triangular transport}},
  year = {2025},
  eprint = {2503.21673},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.21673},
  howpublished = {arXiv},
}
Figure