cs.CVOct 2, 2026

Contextual Flow Matching: Adaptive Step Selection in Flow Models for Efficient Visual Generation

Authors: Divya Jyoti Bajpai, Arun Verma, Manjesh Kumar Hanawal

Organizations: Department of IEOR IIT Bombay, Mumbai, India · SMART Centre Singapore

Abstract

Flow Matching enables high-quality visual generation via continuous-time dynamics, but inference remains costly due to multiple sequential function evaluations. Existing acceleration methods reduce the number of function evaluations but often introduce additional training overhead, degrade quality, or fail to account for input-dependent variability. We propose COFLOW, an inference-time method that adaptively selects the step counts each generation based on the prompt features. Our context-aware COFLOW is trained online with an unsupervised reward that balances inference efficiency and generation fidelity. Our method is plug-and-play, requiring no retraining of the underlying generative model. It generalizes to image and video generation, achieving over 2.5x speedup while preserving perceptual and semantic quality. We further provide a theoretical analysis establishing an O(1/K) forward-Euler discretization error bound under standard regularity conditions.

Figures & tables

Appendix figures & tables17 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Perceptual Flow Matching for Few-Step Generative Modeling

    Jul 3, 2026Chuyang Zhao, Yifei Song, Hongfa Wang +7Flow MatchingPerceptual Loss

  2. SubFlow: Sub-mode Conditioned Flow Matching for Diverse One-Step Generation

    Apr 14, 2026Yexiong Lin, Jia Shi, Shanshan Ye +3Flow MatchingFlow-Based Generative Modeling

  3. CAT-Flow: Curvature-Adaptive sTeps for Flow Matching

    Sep 1, 2026Qinchan Li, Pedro Cisneros-Velarde, Keru Fu +3Flow MatchingT2I Generation