GLASS Flows: Transition Sampling for Alignment of Flow and Diffusion Models
About
The performance of flow matching and diffusion models can be greatly improved at inference time using reward alignment algorithms, yet efficiency remains a major limitation. While several algorithms were proposed, we demonstrate that a common bottleneck is the sampling method these algorithms rely on: many algorithms require to sample Markov transitions via SDE sampling, which is significantly less efficient and often less performant than ODE sampling. To remove this bottleneck, we introduce GLASS Flows, a new sampling paradigm that simulates a "flow matching model within a flow matching model" to sample Markov transitions. As we show in this work, this "inner" flow matching model can be retrieved from a pre-trained model without any re-training, combining the efficiency of ODEs with the stochastic evolution of SDEs. On large-scale text-to-image models, we show that GLASS Flows eliminate the trade-off between stochastic evolution and efficiency. Combined with Feynman-Kac Steering, GLASS Flows improve state-of-the-art performance in text-to-image generation, making it a simple, drop-in solution for inference-time scaling of flow and diffusion models.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Guided Flow Matching | Synthetic Dataset 10k samples 2-dimensional Mixture of Gaussians | Posterior Coverage90.8 | 20 | |
| Robotic Manipulation | ManiSkill2 StackCube (static obstacles) | Violations0.6 | 8 | |
| Robotic Manipulation | ManiSkill2 StackCube (hybrid composition) | Violation1.1 | 8 | |
| Robotic Planning | Maze2D dynamic obstacles (100 samples) | Safety Score71 | 6 | |
| Robotic Planning | Maze2D hybrid composition (100 samples) | Safety Score68 | 6 | |
| Robotic Planning | Maze2D static obstacles (100 samples) | Safety78 | 6 | |
| Robotic Planning | Maze2D static goal (100 samples) | Safety56 | 6 | |
| Text-Guided Image Manipulation | CelebA-HQ (test) | LPIPS0.313 | 5 | |
| PickCube | ManiSkill2 PickCube (static obstacles) | Violation Count0.2 | 4 | |
| PickCube | ManiSkill2 PickCube (static goal) | Violation0.5 | 4 |