Self-Conditioning Enables Deep Sequential Reasoning in Flow Matching
Abstract
Flow matching with self-conditioning enables deeper visual reasoning by allowing iterative sampling steps to increase expressive power beyond constant-depth limits.
Recent work has explored visual reasoning through image generation, where models solve visual-reasoning problems by directly generating solution images. Intuitively, iterative samplers such as flow matching are well suited to this task, since each sampling step may resemble one reasoning step. However, in this work, from a circuit complexity perspective, we show that this intuition is misleading. We prove that as long as the model outputs satisfy certain mild regularity conditions, the trajectory of the vanilla flow-matching sampler can be simulated by a constant number of sequential rounds of parallel model evaluations. Consequently, additional sampling steps cannot increase the expressive power of a constant-depth backbone model under the standard complexity-theoretic model of transformers. We then reveal that self-conditioning, which conditions the model on the previous step's estimate of the final image, plays a previously unrecognized role in removing this bottleneck. Controlled experiments on diverse visual-reasoning tasks show that flow matching with self-conditioning achieves higher accuracy and greater reasoning depth than vanilla flow matching, and its performance improves with more sampling steps. Theoretically, we prove that with self-conditioning, a constant-depth backbone can achieve expressive power equivalent to that of space-bounded Turing machines. Our study suggests a design principle for future visual reasoning research: carry more information between sampling steps, so that additional steps translate into deeper reasoning.
Community
Self-Conditioning Enables Deep Sequential Reasoning in Flow Matching
TL;DR: Vanilla flow matching can't "think" sequentially across denoising steps, but adding self-conditioning turns it into a true sequential reasoner! ๐ง ๐จ
Across diverse visual reasoning tasks (Line Tracing, Long Multiplication, Text Rendering, Maze, Sudoku, TSP, VSP, and Jigsaw), flow matching with self-conditioning outperforms vanilla flow matching by large margins at matched training FLOPs and genuinely scales with test-time sampling steps.
Why does vanilla flow matching struggle with multi-step reasoning even when given many sampling steps? Through circuit complexity analysis, we prove that with constant-depth backbones, it collapses to O(1) sequential depth regardless of the number of sampling steps.
Self-conditioning escapes this collapse by feeding each step's endpoint prediction to the next step as an evolving visual scratchpad, enabling AC^0 backbones to simulate space-bounded Turing machines and thereby reaching P/poly and PSPACE/poly.
๐ Links & Artifacts:
- ๐ป GitHub Repo: https://github.com/imzzy1201/self-conditioning-deep-reasoning
- ๐ค HF Models: https://huggingface.co/alfalfa-w/self-conditioning-deep-reasoning
- ๐ฆ HF Datasets: https://huggingface.co/datasets/alfalfa-w/self-conditioning-deep-reasoning-data
Get this paper in your agent:
hf papers read 2610.19628 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper