Manuscript Offprint

arXiv:2609.39748

FAST: Flow Any Scene Transformer

Yongjian Zhang, Longguang Wang, Zhuo Song, Zhiheng Fu, Liang Lin, Yulan Guo

Yongjian Zhang, Longguang Wang, Zhuo Song, Zhiheng Fu, Liang Lin Fellow, IEEE, Yulan Guo ∗^{*} Senior Member, IEEE

Abstract—Scaling has become a primary driver of progress in language and vision foundation models, yet its role in precise correspondence matching remains underexplored. In this work, we present Flow Any Scene Transformer (FAST), a scalable correspondence model driven by two key insights. First, we reveal that the query-key projections inside single-view vision foundation models encode a coarse yet reusable prior for cross-view matching. Second, reusing these pretrained projections in cross-attention form yields a highly effective initialization for a ViT-based matcher built from a single-view encoder. Guided by these insights, we build FAST upon a vanilla single-view foundation model, utilizing a zero-parameter rewiring strategy to convert selected self-attention layers into cross-attention for cross-view interaction. This design allows ViT-based matchers to scale with advances in single-view foundation models, bypassing the need for a dedicated pair-centric pretraining stage. To fully unlock the scaling potential of this formulation, we assemble a 6-million-pair training corpus for general-purpose dense 2D displacement estimation across diverse co-visible image pairs. Extensive experiments demonstrate that FAST achieves state-of-the-art performance across a wide range of benchmarks, while scaling favorably with both backbone size and training data.

Index Terms—Correspondence matching, Foundation model, Scaling laws.

1 INTRODUCTION

CORRESPONDENCE matching is the cornerstone of many cross-view tasks, serving as a critical requirement for applications like reconstruction and navigation. Over the past decades, this task has evolved into a standardized volume-centric pipeline [1], where view-wise representations are converted into a cost-defined hypothesis space and subsequent modules process over the resulting cost volume. Although highly successful, this paradigm suffers a limited model scaling route, as simply stacking more aggregation or refinement blocks has shown diminishing gains [2], [3]. Further gains therefore rely heavily on improved module and architecture designs.

By contrast, recent ViT-based approaches [4], [5] introduce a more scalable architectural paradigm, where visual representations and matching cues are progressively refined through stacked Transformer blocks. However, scaling such models relies on pair-centric pretraining on structurally overlapping image pairs, which are not as easy to collect at scale as the independent images used by single-view ViTs. For instance, CroCo [4] is pretrained on 5 million pairs, while DINOv3 [6] employs 1689 million images. At the same time, recent advances [7], [8], [9] suggest that the output representations of single-view vision foundation models (VFMs) already exhibit strong emergent cross-image alignment capabilities, yet current pipelines still rely on additional matching modules to transform these representations into correspondences. This observation, together with the stronger scalability of single-view pretraining, drive us to rethink: rather than initializing a ViT-based matcher from scratch through pair-centric pretraining, can it be bootstrapped from the far more scalable VFM itself?

To explore this possibility, we investigate whether single-view VFMs internally encode transferable matching priors for matcher construction. Specifically, we probe this possibility by applying the query-key projections of a frozen VFM across two views. As illustrated in Fig. 1, the resulting attention logits concentrate on semantically corresponding regions, which inspires our first key insight: the query-key projections inside single-view VFMs encode coarse but reusable cross-view matching priors.

Given this finding, the next question is how to unleash the latent matching prior when adapting a pretrained single-view VFM into a matcher. Since this prior is encoded in attention projections, a natural adaptation strategy is to reuse these projections for cross-view interaction, which can be implemented with (1) explicit cross-attention between views, or (2) global self-attention over concatenated views. Although both enable two-view interaction, they lead to drastically different behaviors at initialization. Explicit cross-attention directs each query to the opposite view and natively establish coarse cross-view affinity before fine-tuning. In contrast, global self-attention jointly normalizes intra- and inter-view tokens, causing self-affinity to dominate the attention mass. This leads to our second insight: reusing pretrained projections in cross-attention form provides a structurally effective initialization for a ViT-based matcher built from a single-view VFM.

Inspired by these insights, we present Flow Any Scene Transformer (FAST), a scaling-oriented correspondence model. Rather than relying on bespoke matching modules or binocular pretraining, FAST is born on a standard single-view VFM and is adapted to dense matching through a zero-parameter rewiring strategy, which reformulates selected self-attention layers into cross-attention ones. To complement backbone scaling with data-side scaling, we assemble a 6-million-pair corpus, a similar scale to Croco but with additional optical-flow annotations, therefore enabling task-

Yongjian Zhang, Longguang Wang, Zhuo Song and Yulan Guo are with the School of Electronics and Communication Engineering, the Shenzhen Campus of Sun Yat-sen University, Sun Yat-sen University, Shenzhen, China. Zhiheng Fu is with the Hong Kong Polytechnic University, HKSAR, China. Liang Lin is with the School of Computer Science and Engineering, Sun Yat-sen University, Guangzhou, China.

Source

Target

Attention logits for the query point

Figure

Fig. 1. Zero-shot emergent matching capacity in DINOv3-Large [6]. Cross-view attention logits (from source queries to target keys) are extracted at the layer-th block. The emergent matching prior is robust to fast-moving objects (row 1) and significant appearance variations (row 2). Warmer colors denote higher attention affinities.

specific adaptation after VFM-based initialization. Powered by these scalable design choices, FAST achieves state-of-the-art performance across diverse benchmarks. More importantly, FAST scales favorably with both backbone size and training data, yielding consistent gains without the early saturation observed in volume-centric approaches [2], [3].

Our contributions can be summarized as follows:

  • We reveal that the query-key projections inside single-view VFMs can be reused to produce coarse cross-view correlations, establishing the key basis for extending standard VFMs to dense matchers.

  • We introduce a zero-parameter attention rewiring strategy, which initializes a scalable correspondence matcher from readily available single-view VFMs.

  • We assemble Flow-6M, a 6-million-pair optical-flow dataset that consolidates existing flow data and converts static-scene geometry into dense flow labels.

  • We present FAST, a scalable correspondence foundation model that achieves strong generalization across small- and wide-baseline matching benchmarks.

References (78)

  • A survey on deep learning techniques for stereo-based depth estimation
  • Cost volume aggregation in stereo matching revisited: A disparity classification perspective
  • SEA-RAFT: Simple, efficient, accurate raft for optical flow
  • CroCo: Self-supervised pre-training for 3d vision tasks by cross-view completion
  • VGGT: visual geometry grounded transformer
  • FoundationStereo: Zero-shot stereo matching
  • RoMa: Robust Dense Feature Matching
  • PanMatch: Unleashing the potential of large vision models for unified matching models (opens arXiv in a new tab)
  • FlowNet: Learning optical flow with convolutional networks
  • PWC-Net: Cnns for optical flow using pyramid, warping, and cost volume
  • RAFT: recurrent all-pairs field transforms for optical flow
  • GMFlow: Learning optical flow via global matching
  • FlowFormer: A transformer architecture for optical flow
  • A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation
  • AANet: Adaptive aggregation network for efficient stereo matching
  • RAFT-Stereo: Multilevel recurrent field transforms for stereo matching
  • End-to-end learning of geometry and context for deep stereo regression
  • Group-wise correlation stereo network
  • Pyramid stereo matching network
  • Attention concatenation volume for accurate and efficient stereo matching
  • Revisiting stereo depth estimation from a sequence-to-sequence perspective with transformers
  • CroCo v2: Improved cross-view completion pre-training for stereo matching and optical flow
  • Grounding image matching in 3d with mast3r
  • UFM: A simple path towards unified dense correspondence with flow
  • DINOv2: Learning robust visual features without supervision
  • RoMa v2: Harder better faster denser feature matching
  • DUST3R: Geometric 3d vision made easy
  • MonST3R: A simple approach for estimating geometry in the presence of motion
  • Depth Anything 3: Recovering the Visual Space from Any Views
  • Learning representations from foundation models for domain generalized stereo matching
  • Learning robust stereo matching in the wild with selective mixture-of-experts
  • Flow-Anything: Learning real-world optical flow estimation from large-scale single-view images
  • MatchAnything: Universal cross-modality image matching with large-scale pre-training
  • SAMFlow: Eliminating any fragmentation in optical flow with segment anything model
  • Vision transformers for dense prediction
  • UnFlow: Unsupervised learning of optical flow with a bidirectional census loss
  • A naturalistic open source movie for optical flow evaluation
  • Spring: A high-resolution high-detail dataset and benchmark for scene flow, optical flow and stereo
  • Object scene flow
  • S²M²: Scalable stereo matching model for reliable depth estimation
  • Flowformer++: Masked cost volume autoencoding for pretraining optical flow estimation
  • Selective-Stereo: Adaptive frequency information selection for stereo matching
  • MatchAttention: Matching the relative positions for high-resolution cross-view matching
  • Are we ready for autonomous driving? the KITTI vision benchmark suite
  • A multi-view stereo benchmark with high-resolution images and multi-camera videos
  • High-resolution stereo datasets with subpixel-accurate ground truth
  • YouTube-VOS: A large-scale video object segmentation benchmark (opens arXiv in a new tab)
  • Large scale multi-view stereopsis evaluation
  • Wxbs: Wide baseline stereo generalizations
  • ScanNet: Richly-annotated 3d reconstructions of indoor scenes
  • MegaDepth: Learning single-view depth prediction from internet photos
  • SuperGlue: Learning feature matching with graph neural networks
  • LoFTR: Detector-free local feature matching with transformers
  • LightGlue: Local feature matching at light speed
  • DKM: dense kernelized feature matching for geometry estimation
  • An image is worth $16 \times 16$ words: Transformers for image recognition at scale
  • AutoFlow: Learning a better training set for optical flow
  • Accflow: Backward accumulation for long-range optical flow
  • DynamicStereo: Consistent dynamic depth from stereo videos
  • Infinite photorealistic worlds using procedural generation
  • Kubric: A scalable dataset generator
  • Virtual KITTI 2
  • BlinkVision: A benchmark for optical flow, scene flow and point tracking estimation using RGB frames and events
  • EDEN: multimodal synthetic dataset of enclosed garden scenes
  • Flow-motion and depth network for monocular stereo and beyond
  • MatrixCity: A large-scale city dataset for city-scale neural rendering and beyond
  • The Replica dataset: A digital replica of indoor spaces (opens arXiv in a new tab)
  • TartanAir: A dataset to push the limits of visual SLAM
  • TartanGround: A large-scale dataset for ground robot perception and navigation (opens arXiv in a new tab)
  • Practical stereo matching via cascaded recurrent network with adaptive correlation
  • Falling Things: A synthetic dataset for 3d object detection and pose estimation
  • 3d ken burns effect from a single image
  • What makes good synthetic training data for zero-shot stereo matching?
  • Hypersim: A photorealistic synthetic dataset for holistic indoor scene understanding
  • Structured3D: A large photo-realistic dataset for structured 3d modeling
  • BlendedMVS: A large-scale dataset for generalized multi-view stereo networks
  • Tanks and Temples: Benchmarking large-scale scene reconstruction
  • Patchmatch stereo-stereo matching with slanted support windows