自条件化使流匹配中实现深度序列推理
研究论文 · 2026/10/16
近期研究探索了通过图像生成进行视觉推理,即模型直接生成解答图像来求解视觉推理问题。直观上,流匹配等迭代采样器非常适合这一任务,因为每个采样步骤可能类似于一个推理步骤。然而,本文从电路复杂度的角度表明,这种直觉具有误导性。我们证明,只要模型输出满足某些温和的正则性条件,普通流匹配采样器的轨迹就可以由常数轮顺序的并行模型评估来模拟。因此,在标准复杂度理论下的Transformer模型中,额外的采样步骤无法增加常数深度主干模型的表达能力。随后我们揭示,自条件化——即模型以先前步骤对最终图像的估计为条件——在消除这一瓶颈中发挥了此前未被认识到的作用。在不同视觉推理任务上的受控实验表明,带有自条件化的流匹配比普通流匹配实现了更高的准确率和更大的推理深度,并且其性能随采样步骤增加而提升。理论上,我们证明在自条件化下,常数深度主干可以达到与空间有界图灵机等价的表达能力。我们的研究为未来视觉推理研究提出了一个设计原则:在采样步骤之间传递更多信息,从而使额外的步骤转化为更深的推理。
该研究挑战了迭代采样步骤等同于推理步骤的直觉,从理论和实验上阐明了自条件化在实现深度序列推理中的关键作用,为未来视觉推理模型的设计提供了重要指导。
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.