GLASS Flows: Efficient Inference for Reward Alignment of Flow and Diffusion Models
Peter Holderrieth, Uriel Singer, Tommi Jaakkola, Ricky T. Q. Chen, Yaron Lipman, Brian Karrer
International Conference on Learning Representations 2026 · Oral
Overview
In the rapidly evolving landscape of generative AI, diffusion models and flow matching models have emerged as state-of-the-art approaches for generating diverse modalities, from images to video. This talk introduces GLASS Flows, a novel inference paradigm designed to address a critical trade-off in the post-training improvement of these powerful models. Presented by Peter Holderrieth and a team from Meta FAIR and MIT, GLASS Flows offers a solution that simultaneously achieves the computational efficiency of Ordinary Differential Equation (ODE) based sampling and the crucial stochasticity inherent in Stochastic Differential Equation (SDE) based sampling.

Key moments
- 0:50 The efficiency vs. stochasticity trade-off in diffusion models
- 2:40 Introducing GLASS Flows: Efficient and stochastic sampling with ODEs
- 3:50 Technical core: Deriving GLASS denoiser via sufficient statistics
- 6:00 Experimental results: Superior efficiency in posterior sampling tasks
- 7:50 GLASS Flows as a plug-in for SDE-based algorithms
- 9:00 Q&A: GLASS Flows relation to DDIM for single steps
GLASS Flows: Efficient Inference for Reward Alignment of Flow and Diffusion Models
Speakers: Peter Holderrieth; Uriel Singer; Tommi Jaakkola; Ricky T. Q. Chen; Yaron Lipman; Brian Karrer
Conference: ICLR 2026
YouTube: https://slideslive.com/39062099
Overview
In the rapidly evolving landscape of generative AI, diffusion models and flow matching models have emerged as state-of-the-art approaches for generating diverse modalities, from images to video. This talk introduces GLASS Flows, a novel inference paradigm designed to address a critical trade-off in the post-training improvement of these powerful models. Presented by Peter Holderrieth and a team from Meta FAIR and MIT, GLASS Flows offers a solution that simultaneously achieves the computational efficiency of Ordinary Differential Equation (ODE) based sampling and the crucial stochasticity inherent in Stochastic Differential Equation (SDE) based sampling.
The core challenge GLASS Flows tackles is the inherent tension between efficiency and exploration in diffusion model inference. While ODEs provide faster and more accurate sampling due to superior discretization properties, they lack the stochastic evolution required by many advanced post-training algorithms, such as reinforcement learning (RL) or sequential Monte Carlo methods. Conversely, SDEs offer the necessary stochasticity but at a significant computational cost. GLASS Flows elegantly resolves this dilemma by enabling SDE-like stochastic transitions using only ODE simulations, effectively closing the performance gap and unlocking new possibilities for enhancing pre-trained generative models without costly retraining.
This work is particularly significant for practitioners and researchers focused on refining and aligning generative models with specific objectives post-training. By providing an efficient yet stochastic inference mechanism, GLASS Flows broadens the applicability of advanced post-training techniques, allowing them to leverage the speed of ODEs while maintaining the exploratory power of SDEs. It represents a pure inference-time trick, meaning it can be seamlessly integrated with existing state-of-the-art diffusion models, thereby boosting the performance of a wide array of algorithms that rely on stochastic sampling for tasks like search, guidance, or fine-tuning.
Background
▶ Watch: The efficiency vs. stochasticity trade-off in diffusion models (0:50)
The recent advancements in generative AI have largely been driven by the success of diffusion models and their close relative, flow matching models. These models operate by learning to reverse a diffusion process that gradually transforms data into noise, or by learning a continuous-time flow that maps noise to data. Once trained, the primary challenge shifts to efficient and effective sampling, particularly when aiming to improve or steer the model's output in a post-training phase, often involving techniques reminiscent of reinforcement learning or guidance.
Two primary inference paradigms exist for these models: ODE sampling and SDE sampling. ODE sampling, also known as the probability flow ODE, simulates a deterministic ordinary differential equation that evolves from noise to data. Its counterpart, SDE sampling, or the time-reverse SDE, simulates a stochastic differential equation. Theoretically, both methods are equivalent, sampling from the same underlying distribution. However, in practice, their performance diverges significantly, primarily due to the need for discretization. Simulating these continuous differential equations requires discrete steps, introducing a discretization error. ODEs exhibit much better behavior with respect to this error, meaning they require significantly fewer simulation steps to achieve high-quality results, making them the more efficient choice for vanilla generation.
The critical distinction, beyond efficiency, lies in their stochasticity. ODEs, by their nature, have a deterministic evolution; given an initial state, their path is entirely predictable. SDEs, however, incorporate a stochastic component, leading to a non-deterministic, exploratory evolution. This stochasticity is not merely an academic curiosity but a fundamental requirement for many advanced post-training algorithms. For instance, methods like Flow GRPO, adjoint matching, or inference-time techniques such as search algorithms and Sequential Monte Carlo (SMC), rely heavily on the exploratory nature of stochastic transitions. Without it, these algorithms struggle to effectively explore the latent space or generate diverse candidate samples needed for decision-making or optimization.
This dichotomy presents a significant trade-off: practitioners must choose between the high efficiency of ODE sampling, which lacks the necessary stochasticity for advanced post-training tasks, and the inherent stochasticity of SDE sampling, which comes at a substantial computational cost due to its lower efficiency. This trade-off forces a compromise, often leading to algorithms either being computationally expensive or limited in their exploratory capabilities. The motivation behind GLASS Flows is to remove this fundamental trade-off, developing a method that is simultaneously efficient (matching ODE performance) and stochastic (providing SDE-like transitions), thereby enabling a broader and more effective application of post-training and inference-time steering techniques for generative models.
Key Findings
▶ Watch: Technical core: Deriving GLASS denoiser via sufficient statistics (3:50)
The central contribution of GLASS Flows is the successful resolution of the long-standing trade-off between efficiency and stochasticity in the inference of diffusion and flow matching models. The core findings demonstrate a novel approach that allows for the generation of stochastic transitions akin to those from SDE sampling, but with the superior efficiency characteristic of ODE sampling.
Specifically, the key findings include:
- Trade-off Elimination: GLASS Flows effectively removes the traditional dilemma where users had to choose between efficient but deterministic ODE sampling and stochastic but less efficient SDE sampling. It provides a method that is both highly efficient and inherently stochastic, achieving the performance of ODEs while enabling the exploratory power of SDEs.
- SDE-like Stochasticity via ODEs: The method introduces a new GLASS flow matching model that, despite being an ODE, is capable of sampling from the transition kernel of an SDE. This is achieved by defining an "inner state" and a corresponding velocity field, allowing for the simulation of stochastic transitions without ever directly simulating an SDE.
- Leveraging Pre-trained Models "For Free": A significant advantage is that GLASS Flows does not require retraining the base diffusion model. It derives its core component, the GLASS denoiser, directly from a pre-trained standard denoiser (which is common in diffusion models) by applying the theory of sufficient statistics. This means the method is a pure inference-time trick, readily applicable to any existing state-of-the-art diffusion model.
- Quantitative and Qualitative Performance Gains: Experiments show that GLASS Flows dramatically outperforms SDE sampling (e.g., DDPM sampling) in terms of sample quality and error rates when the number of simulation steps is limited. For example, GLASS Flows can achieve good performance with as few as 4 simulation steps, whereas SDE sampling yields poor, noisy results under similar constraints. This translates to significantly better performance for a given computational budget.
- Seamless Integration with Existing Algorithms: GLASS Flows can be directly plugged into any algorithm that traditionally relies on SDEs for exploration. Demonstrations with Sequential Monte Carlo (SMC) and Feynman-Kac steering illustrate significant performance improvements, indicating broad applicability across various post-training and inference-time steering techniques.
- Enabling New Capabilities: By expressing stochasticity through an ODE, GLASS Flows also unlocks new possibilities, such as the efficient distillation of stochastic models. A follow-up work, Diamond Maps, is mentioned as an example of how this capability can be leveraged for better guidance and model compression.
In essence, GLASS Flows represents a breakthrough in the practical deployment and enhancement of generative models, providing a powerful and flexible tool for researchers and practitioners alike.
Technical Deep Dive
▶ Watch: Experimental results: Superior efficiency in posterior sampling tasks (6:00)
The technical ingenuity of GLASS Flows lies in its ability to synthesize stochastic behavior from a deterministic ODE framework, bypassing the computational overhead of direct SDE simulation. The core idea is to sample from the transition kernel P(x_t' | x_t) of the SDE—which defines the distribution of a later point x_t' given an earlier point x_t—using an ODE.
To achieve this, GLASS Flows introduces a novel construct: the GLASS flow matching model. This model operates on an augmented state space, introducing an "inner state" denoted as barx_s. The flow matching process now evolves this inner state barx_s over an inner time s, conditioned on the original noisy data point x_t and its time t. The model defines an inner velocity field u_s(barx_s | x_t, t). The crucial insight is that if this ODE, initialized with a Gaussian distribution, is simulated using this specific velocity field, the resulting samples will effectively be drawn from the SDE's transition kernel.
The key to constructing this GLASS velocity field u_s lies in defining a corresponding GLASS denoiser. In standard flow matching and diffusion models, the learned velocity field is often a linear reparameterization of a denoiser, which is the conditional expectation of the clean data x_1 given the noisy data x_t (i.e., E[x_1 | x_t]). For GLASS Flows, the analogous GLASS denoiser is the conditional expectation of the clean data x_1 given two noisy states: x_t and the inner state barx_s (i.e., E[x_1 | x_t, barx_s]).
The groundbreaking aspect is that this GLASS denoiser can be obtained "for free" from any existing, pre-trained diffusion model's denoiser. This is achieved by leveraging the theory of sufficient statistics, a concept borrowed from classical statistics. When dealing with two noisy measurements of an underlying clean signal (here, x_t and barx_s, both noisy versions of x_1), the theory of sufficient statistics posits that the most informative combination of these measurements—the "best guess" for the clean data—is often a weighted average. This weighted average serves as a sufficient statistic for x_1 given x_t and barx_s. Crucially, the informational content of the pair (x_t, barx_s) about x_1 is entirely equivalent to the informational content of this sufficient statistic.
Therefore, instead of directly computing E[x_1 | x_t, barx_s], which would require training a new model, GLASS Flows establishes that this conditional expectation is equivalent to the conditional expectation of x_1 given only the sufficient statistic derived from x_t and barx_s. Since standard pre-trained denoisers already compute E[x_1 | noisy_state], one can simply feed the sufficient statistic (which is a specific combination of x_t and barx_s) into the pre-trained denoiser. This effectively re-parameterizes the existing denoiser into the required GLASS denoiser for the two-state conditioning.
The technical workflow is thus:
- Start with a pre-trained denoiser: This is a standard component of any diffusion or flow matching model, representing E[x_1 | noisy_state].
- Compute the sufficient statistic: Given the current noisy state x_t and the inner state barx_s, calculate their specific weighted average that acts as the sufficient statistic for the clean data x_1.
- Derive the GLASS denoiser: Evaluate the pre-trained denoiser at this computed sufficient statistic. This yields E[x_1 | x_t, barx_s].
- Construct the GLASS velocity field: Apply a linear transformation to this GLASS denoiser to obtain the inner velocity field
u_s(barx_s | x_t, t). - Simulate the ODE: Simulate the ODE for barx_s using this derived velocity field. This ODE simulation generates samples that effectively come from the SDE's transition kernel.
This entire process is an inference-time "trick," requiring no modifications to the pre-trained model's architecture or weights. It capitalizes on the fact that ODEs inherently produce smoother trajectories than SDEs, which are characterized by rugged, noisy paths. By re-framing the stochastic transition as an ODE evolution of an inner state, GLASS Flows benefits from the superior discretization properties of ODEs, leading to significantly better performance with fewer simulation steps.
Experimental Setup & Results
▶ Watch: GLASS Flows as a plug-in for SDE-based algorithms (7:50)
The effectiveness of GLASS Flows was demonstrated through a series of experiments primarily focused on posterior sampling and its integration into existing algorithms. The core objective was to quantitatively and qualitatively compare GLASS Flows against traditional SDE sampling, particularly under conditions of limited computational budget.
Comparison Methodology:
The primary experimental setup involved posterior sampling. The process began with a given data point, which was then noised in a latent space using an SIT model (a common architecture for diffusion models). From this noisy latent representation, the goal was to simulate posterior samples. This was performed in two ways:
- SDE sampling: Using the standard time-reverse SDE approach (e.g., DDPM sampling).
- GLASS Flows: Employing the proposed ODE-based method to generate SDE-like stochastic transitions.
Initially, experiments were run with a large number of simulation steps (e.g., around 300 steps). In this limit, both SDE sampling and GLASS Flows produced similar, high-quality posterior samples, affirming their theoretical equivalence in the ideal continuous-time setting. However, the true test of efficiency comes when the number of simulation steps is drastically reduced.
Qualitative Results:
The qualitative comparison at reduced simulation steps highlighted the stark difference in performance.
- SDE sampling (DDPM sampling): When the number of steps was lowered, SDE sampling rapidly degraded, producing posterior samples that were very noisy, incoherent, and qualitatively far from the desired clean data. The speaker showed examples where SDE samples looked "very very like not what we want it to look like."
- GLASS Flows: In contrast, GLASS Flows maintained significantly better qualitative performance even with very few steps. For example, with just 4 simulation steps, GLASS Flows produced "pretty good performance," generating samples that were much closer to the clean data and visually coherent. This demonstrated the superior discretization error properties of the ODE-based GLASS Flows.
Quantitative Results:
While specific numerical metrics (e.g., FID, inception score) were not explicitly stated in the transcript, the speaker emphasized that the qualitative observations were supported by quantitative measurements. The key takeaway was that the "error is significantly better" for GLASS Flows compared to SDE sampling, meaning that for the same computational effort (i.e., number of simulation steps), the quality of samples generated by GLASS Flows was substantially higher. This directly demonstrated that GLASS Flows effectively closes the efficiency gap between ODEs and SDEs, delivering superior performance for a given compute budget.
Application to Existing Algorithms:
Beyond direct sample generation, GLASS Flows was tested as a plug-in replacement for SDEs in established algorithms.
- Sequential Monte Carlo (SMC) / Feynman-Kac steering: The speaker presented results where GLASS Flows was integrated into generic Feynman-Kac steering algorithms. The first column of results showed the base algorithm using SDEs, while the subsequent columns showed the same algorithm with GLASS Flows. The visual and quantitative results confirmed that this "simple plugin of GLASS into an existing algorithm improves the performance significantly." The speaker noted that "across the board quantitative measurements... shows that we perform significantly better." This highlights the practical utility and broad applicability of GLASS Flows for enhancing existing stochastic inference methods.
- One-step GLASS: In a follow-up question, it was clarified that in the limit of a single simulation step, GLASS Flows is equivalent to DDIM sampling. This connection further grounds GLASS Flows within established efficient sampling techniques.
- Classifier-Free Guidance (CFG): When asked about integrating Classifier-Free Guidance, the speaker confirmed that it can be applied by taking the CFG vector field and integrating it with the GLASS flow field, indicating compatibility with common guidance techniques.
Overall, the experimental results robustly confirm that GLASS Flows achieves its dual goal of providing SDE-like stochasticity with ODE-level efficiency, translating into tangible performance improvements across various applications.
Practical Implications
▶ Watch: Q&A: GLASS Flows relation to DDIM for single steps (9:00)
The introduction of GLASS Flows carries substantial practical implications for anyone working with generative AI, from model builders to infrastructure teams and practitioners deploying these models in real-world scenarios.
For Practitioners and Infra Teams:
- Enhanced Computational Efficiency: The primary benefit is the ability to leverage the superior efficiency of ODE solvers for tasks that previously mandated the slower SDE sampling. This translates directly into reduced computational costs and faster inference times for stochastic processes. Infrastructure teams can optimize resource allocation, potentially requiring fewer GPUs or less time for complex sampling tasks.
- Broader Applicability of Advanced Algorithms: Algorithms like Sequential Monte Carlo, Feynman-Kac steering, search, and advanced RL-based fine-tuning methods, which critically depend on stochastic exploration, can now operate with the efficiency of ODEs. This expands their practical feasibility and allows for more ambitious applications without prohibitive computational overhead.
- Pure Inference-Time Solution: Since GLASS Flows is a "pure inference-time trick," it requires no retraining of existing state-of-the-art diffusion models. This is a massive advantage, allowing immediate deployment and benefit without the significant time and resource investment associated with model re-training or fine-tuning. Practitioners can simply update their sampling logic.
For Model Builders and Deployers:
- Improved Post-Training Performance: Any algorithm designed to improve or steer pre-trained models (e.g., Flow GRPO, adjoint matching, guidance, RL fine-tuning) can see a significant performance boost by integrating GLASS Flows. This means models can be more effectively aligned with specific objectives, leading to higher quality or more controllable outputs.
- Flexibility and Versatility: Model builders gain a flexible tool that allows them to choose the right balance of efficiency and stochasticity for different stages of their workflow. For initial, broad generation, pure ODEs might suffice. For targeted refinement or exploration, GLASS Flows offers the best of both worlds.
- New Avenues for Model Distillation: By expressing stochasticity as an ODE, GLASS Flows unlocks new possibilities for model distillation. Traditional ODE models are distillable, but extending this to models requiring stochasticity was challenging. The mention of Diamond Maps as a follow-up work highlights how GLASS Flows can enable more efficient and effective distillation of stochastic generative processes, leading to smaller, faster models that retain complex behaviors.
Tradeoffs and Limitations:
While highly advantageous, GLASS Flows does introduce a conceptual layer of complexity.
- Conceptual Overhead: Understanding the "inner state" (
barx_s), the "inner velocity field," and the derivation of the GLASS denoiser via sufficient statistics requires a deeper technical grasp compared to simply calling an SDE solver. However, once implemented, its use becomes straightforward. - Dependency on Sufficient Statistics Theory: The method relies on the theoretical justification of sufficient statistics. While well-established, its application in this context is novel and critical to the approach's validity.
- Not a Replacement for All SDE Scenarios: While it provides SDE-like transitions, it's still an ODE. For highly specialized scenarios where the exact stochastic path of an SDE is paramount (e.g., certain theoretical analyses or specific physics simulations), a direct SDE simulation might still be preferred, though such cases are less common in typical generative AI applications.
- Hardware Agnostic, but Benefits GPU Acceleration: The method itself is algorithmic, but like all diffusion model inference, its efficiency gains are most pronounced and impactful when run on accelerated hardware like modern GPUs (e.g., NVIDIA A100s or H100s) or TPUs, where the parallelizable computations can fully leverage the speedups.
In summary, GLASS Flows is a powerful, ready-to-use innovation that promises to make advanced generative model steering and refinement both more efficient and more effective, pushing the boundaries of what's practically achievable in post-training model improvement.
Key Takeaways
- Resolves Efficiency-Stochasticity Trade-off: GLASS Flows eliminates the long-standing dilemma between efficient ODE sampling and stochastic SDE sampling in diffusion models, offering both high efficiency and crucial stochasticity.
- SDE-like Transitions from ODEs: It enables the generation of stochastic transitions, traditionally associated with SDEs, by simulating a novel ODE-based GLASS flow matching model that operates on an augmented state space.
- Inference-Time Trick, No Retraining: The method is a pure inference-time technique. It derives its core component, the GLASS denoiser, from existing pre-trained denoisers using the theory of sufficient statistics, requiring no model retraining or architectural changes.
- Significant Performance Boost: Experiments demonstrate that GLASS Flows achieves significantly better sample quality and lower error rates than traditional SDE sampling (e.g., DDPM sampling) under limited simulation steps, making it more efficient for a given computational budget.
- Broad Applicability: It can be seamlessly plugged into and significantly improve the performance of various post-training and inference-time algorithms that rely on stochasticity, such as Sequential Monte Carlo, Feynman-Kac steering, search, and RL fine-tuning.
- Enables New Capabilities: By expressing stochasticity as an ODE, GLASS Flows opens doors for new advancements like the efficient distillation of stochastic generative models, exemplified by the follow-up work, Diamond Maps.
About the Speaker(s)
The talk on GLASS Flows was presented by Peter Holderrieth. He is part of a collaborative team that includes Uriel Singer, Tommi Jaakkola, Ricky T. Q. Chen, Yaron Lipman, and Brian Karrer. This joint effort between Meta FAIR and MIT highlights a strong academic and industrial collaboration focused on advancing the theoretical and practical aspects of generative AI, particularly in the domain of diffusion and flow matching models. The team's expertise spans machine learning, generative models, and the underlying mathematical frameworks of differential equations.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026