Rex: A Family of Reversible Exponential (Stochastic) Runge-Kutta Solvers
Zander Blasingame (Postdoc), Chen Liu
Overview
Diffusion models and generative flow models rely heavily on numerical solvers to integrate ordinary differential equations (ODEs) and stochastic differential equations (SDEs). In many downstream tasks—such as image editing, inverse problems, and Boltzmann sampling—having an exactly reversible numerical scheme is crucial because it establishes a strict bijection between data and noise. However, existing reversible solvers suffer from low orders of convergence, zero linear stability, an inability to handle stochastic differential equations, and a lack of support for adaptive step sizing.

Key moments
- 0:00 Introduction to reversible solvers and diffusion models
- 2:00 Overview of stochastic Runge-Kutta schemes
- 4:00 Exponential lift and Macfarlane-Foster coupling
- 6:00 Rex framework flowchart and inversion error results
- 8:00 Boltzmann sampling and summary of Rex properties
- 10:05 Audience Q&A: Application to real data and inverse problems
- 12:00 Audience Q&A: Computation costs and limitations of reversible solvers
Rex: A Family of Reversible Exponential (Stochastic) Runge-Kutta Solvers
Speakers: Zander Blasingame (Postdoc); Chen Liu
Conference: ICML
YouTube: https://slideslive.com/39083573
Overview
Diffusion models and generative flow models rely heavily on numerical solvers to integrate ordinary differential equations (ODEs) and stochastic differential equations (SDEs). In many downstream tasks—such as image editing, inverse problems, and Boltzmann sampling—having an exactly reversible numerical scheme is crucial because it establishes a strict bijection between data and noise. However, existing reversible solvers suffer from low orders of convergence, zero linear stability, an inability to handle stochastic differential equations, and a lack of support for adaptive step sizing.
In this talk, presenters Zander Blasingame and Chen Liu introduce Rex, a novel family of Reversible Exponential Stochastic Runge-Kutta solvers. By combining explicit stochastic Runge-Kutta frameworks, an exponential lift, and a specialized reversible coupling mechanism, Rex bridges the gap between numerical differential equation theory and generative modeling. The resulting framework supports both ODEs and SDEs, achieves higher-order convergence, admits adaptive step sizing, and delivers significantly lower inversion error in practice compared to prior reversible baselines.
Background
▶ Watch: Introduction to reversible solvers and diffusion models (0:00)
The necessity of reversibility in generative modeling stems from the desire to map data points cleanly to latent noise representations and back without information loss. In normalizing flows, invertibility is built into the architecture via coupling layers. In diffusion models, however, generation is framed as solving a time-dependent differential equation. If a standard numerical integration scheme (such as standard Euler or Runge-Kutta methods) integrates forward from data to noise and then naively reverses the sign of time to integrate backward, floating-point inaccuracies and truncation errors cause the trajectory to diverge, failing to recover the original starting point.
Prior attempts to address this in the diffusion literature—including Edict, B-ITA, and OBELM—achieved reversibility by constructing custom augmented state coupling schemes. Despite offering bijections in theory, these methods exhibit severe theoretical and practical limitations: they possess no linear stability, operate strictly in deterministic ODE settings rather than full SDE regimes, lock out adaptive step-sizing algorithms, and scale poorly in convergence order. Meanwhile, the numerical analysis and neural differential equations communities have advanced sophisticated explicit stochastic Runge-Kutta (SRK) frameworks and exponential integrators. The core motivation behind Rex is to import these advanced numerical tools into generative modeling to build robust, high-order, stable, and reversible diffusion solvers.
Key Findings
▶ Watch: Exponential lift and Macfarlane-Foster coupling (4:00)
Rex unifies several disparate mathematical tools to establish a comprehensive framework for reversible diffusion solvers. Its primary discoveries and structural contributions include:
- Unification of Popular Solvers: The mathematical formulation subsumes many widely used diffusion solvers (such as DDIM and DPM-Solver), casting them as specialized instances within a broader exponential stochastic Runge-Kutta hierarchy.
- Superior Practical Inversion Accuracy: Although existing reversible methods (Edict, B-ITA, OBELM) are algebraically reversible in exact arithmetic, finite-precision floating-point arithmetic introduces severe error drift. In empirical evaluations, Rex-based schemes achieve inversion errors lower by multiple orders of magnitude compared to these baselines.
- Enhanced Boltzmann Sampling: When integrated into generative flow matching or diffusion models paired with high-order adaptive solvers like Dormand-Prince 4-5 (Dopri5), applying the Rex framework dramatically reduces the error in energy distributions during Boltzmann sampling without altering tolerances or base hyperparameters.
- Support for Adaptive Step Sizing: Unlike prior reversible diffusion solvers that require fixed grids, Rex supports adaptive step sizes while preserving exact reversibility.
Technical Deep Dive
▶ Watch: Rex framework flowchart and inversion error results (6:00)
The architecture of Rex rests upon three core methodological pillars: an explicit stochastic Runge-Kutta framework, an exponential lift, and a reversible coupling mechanism.
1. Explicit Stochastic Runge-Kutta (SRK) Framework
To handle diffusion SDEs, standard deterministic Runge-Kutta Butcher tableaus are insufficient because they fail to account for Brownian motion increments. Rex utilizes the SRK framework developed by Foster and collaborators. This framework incorporates two stochastic components into the Butcher tableau:
- The first-order Brownian increment $\Delta W = W(S) - W(T)$, representing Gaussian noise increments.
- The second-order space-time Lévy area, which captures higher-order stochastic interactions and is also efficiently sampleable as a Gaussian.
This formulation allows Rex to seamlessly instantiate classic solvers, from simple first-order Euler-Maruyama methods to strong order-1.5 SDE solvers like Shark, as well as adaptive step-size schemes.
2. Exponential Lift
Diffusion SDEs typically contain a linear drift term, a neural network approximation term, and a diffusion stochastic term. Solving these directly incurs compounding truncation errors. Rex applies a clever change of variables to lift the system into an exponentially integrated domain. In this lifted space, the linear and stochastic components are solved analytically in closed form, reducing the burden on numerical approximation and minimizing discretization error.
3. Reversible Coupling
To transform a non-reversible explicit Runge-Kutta scheme into a reversible one, Rex employs the Macfarlane-Foster coupling method. Introduced shortly before the development of Rex, this coupling strategy takes any arbitrary explicit Runge-Kutta scheme and generates its reversible counterpart. Crucially, the resulting coupled scheme inherits the exact order of convergence of the base numerical method (e.g., Runge-Kutta 4 retains fourth-order convergence) and maintains a non-zero, non-trivial region of linear stability.
The full pipeline—dubbed Princeps at the intermediate exponential integration stage—takes an arbitrary SRK scheme, applies the exponential lift, wraps it in the Macfarlane-Foster reversible coupling, and projects it back to the original coordinate space.
Experimental Setup & Results
▶ Watch: Audience Q&A: Application to real data and inverse problems (10:05)
The evaluation of Rex focuses on numerical simulations, unconditional image sampling, image editing workflows, and Boltzmann reweighting tasks:
- Inversion Error Benchmarks: When measuring the trajectory deviation after integrating forward from time zero to $T$ and back to zero, Rex demonstrates stability orders of magnitude superior to Edict, B-ITA, and OBELM. As discretization steps increase, Rex smoothly reduces error without incurring the numerical divergence observed in unstable baseline methods.
- Generative Tasks: Unconditional image generation and text-to-image editing experiments confirm that enforcing strict reversibility via Rex does not degrade sample quality.
- Boltzmann Sampling: Integrating flow matching models with Dopri5 enhanced by Rex results in a dramatic reduction in energy distribution error compared to standard Dopri5 integration, showcasing its utility in physical chemistry and probabilistic modeling applications.
Practical Implications
▶ Watch: Audience Q&A: Computation costs and limitations of reversible solvers (12:00)
For infrastructure teams, model builders, and deployers, Rex offers powerful mathematical guarantees alongside concrete operational tradeoffs:
- Exact Bijections for Downstream Tasks: Practitioners working on inverse problems (e.g., denoising, inpainting, and compressed sensing) can plug Rex solvers directly into existing diffusion pipelines to guarantee exact invertibility.
- The Computational Tradeoff: Guaranteeing exact reversibility requires maintaining an augmented state (storing extra intermediate variables across steps), which approximately doubles the function evaluation (NFE) computational cost relative to standard single-state integration.
- Stability vs. Reversibility Tradeoff: While Rex successfully injects linear stability into reversible solvers, classical non-reversible methods like DDIM still hold an edge in raw numerical stiffness handling. Emerging near-reversible schemes like effectively explicitly symmetric schemes (ESS) suggest future exploration into trading microscopic reversibility for macroscopic stability.
Key Takeaways
- Unified Family of Solvers: Rex generalizes popular diffusion solvers (DDIM, DPM-Solver) into a rigorous framework encompassing ODEs, SDEs, and adaptive step sizes.
- Three-Pillar Design: Combines explicit stochastic Runge-Kutta tableaus, exponential integration lifts, and Macfarlane-Foster reversible couplings.
- Superior Numerical Stability: Overcomes the zero-stability limitation of prior reversible models (Edict, B-ITA, OBELM), achieving drastically lower inversion error under floating-point arithmetic.
- High-Order Convergence: Inherits the strong convergence order of base integration schemes, such as fourth-order accuracy for Runge-Kutta variants.
- Physical Modeling Benefits: Drastically reduces energy distribution errors in Boltzmann sampling tasks when paired with adaptive solvers like Dopri5.
About the Speaker(s)
- Zander Blasingame (Postdoc): Zander Blasingame is a postdoc working with Alex Tong on reversible exponential stochastic Runge-Kutta solvers and their applications to diffusion models.
Co-authors: Chen Liu.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026