Papers
Topics
Authors
Recent
Search
2000 character limit reached

Consistent-Recurrent Feature Flow Transformer (CRFT)

Updated 5 July 2026
  • CRFT is a conceptual design pattern that integrates recurrent update rules, feature-based motion reasoning, and transformer memory for optical flow and video applications.
  • It builds on RAFT’s recurrent all-pairs matching, FlowFormer’s cost-memory encoding, and FlowLens’ clip-recurrent transformer, illustrating a versatile architectural trajectory.
  • Recent extensions like FlowFormer+MCVA demonstrate that masked cost pretraining can significantly improve performance, reducing error metrics on key benchmarks.

Searching arXiv for an explicit “Consistent-Recurrent Feature Flow Transformer” and closely related optical-flow / recurrent-transformer papers. I’ll look for exact and adjacent terminology on arXiv. Searching arXiv for: "Consistent-Recurrent Feature Flow Transformer" Consistent-Recurrent Feature Flow Transformer (CRFT) is not an explicit model name in the cited arXiv literature. In the available sources, the term is best treated as an Editor’s term for a design pattern that combines recurrent refinement, feature-based motion reasoning, and transformer-style memory or attention. Within that inferred scope, RAFT provides the recurrent all-pairs field-transform precursor for optical flow, FlowFormer gives the closest optical-flow realization through tokenized 4D cost-volume encoding and recurrent transformer decoding, FlowFormer+MCVA extends that design with masked cost-volume pretraining, and FlowLens supplies a related flow-guided clip-recurrent transformer for online beyond-FoV video inpainting rather than optical flow estimation (Teed et al., 2020, Huang et al., 2022, Huang et al., 2023, Shi et al., 2022).

1. Terminological status and scope

No cited paper explicitly defines a method named “Consistent-Recurrent Feature Flow Transformer.” The FlowLens paper states that it does not explicitly define a model called CRFT, and the FlowFormer paper similarly notes that it never mentions “CRFT” (Shi et al., 2022, Huang et al., 2022). This makes the term non-canonical in the present literature.

The available works nevertheless delineate a coherent family of related mechanisms. RAFT contributes recurrent flow refinement over explicit all-pairs matching volumes; FlowFormer replaces direct local-only retrieval with tokenized cost-memory encoding and a recurrent transformer decoder; FlowFormer+MCVA adds masked cost-volume autoencoding for pretraining; FlowLens moves into online video completion with explicit flow-guided propagation and recurrent cross-clip transformer memory (Teed et al., 2020, Huang et al., 2023).

Model Directly stated formulation Relation to CRFT
RAFT Recurrent All-Pairs Field Transforms for optical flow Recurrent feature-matching precursor
FlowFormer Transformer architecture for optical flow with cost memory Closest optical-flow analogue
FlowFormer+MCVA FlowFormer with Masked Cost Volume AutoEncoding Pretraining extension of FlowFormer
FlowLens Flow-guided clip-recurrent transformer for beyond-FoV video inpainting CRFT-like but different task

This suggests that “CRFT” is most usefully interpreted as a conceptual umbrella for architectures at the intersection of recurrent update rules, explicit correspondence structure, and transformer-based memory retrieval.

2. Recurrent feature-flow foundations in RAFT

RAFT establishes the recurrent feature-flow template most directly associated with later CRFT-like interpretations. It extracts per-pixel features, builds multi-scale 4D correlation volumes for all pairs of pixels, and iteratively updates a single flow field at fixed $1/8$-resolution through a tied-weight recurrent unit (Teed et al., 2020).

Its all-pairs correlation volume is defined as

C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},

with entries

Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.

This representation stores, for every source pixel, a full 2D response map over candidate target positions. RAFT then forms a correlation pyramid {C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}, samples local neighborhoods around the current estimate, and refines flow by residual updates

ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.

The recurrent operator is a ConvGRU driven by flow features, correlation lookup features, context features, and a latent hidden state: zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),

rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),

h~t=tanh ⁣(Conv3×3([rtht1,xt],Wh)),\tilde{h}_t = \tanh\!\left(\text{Conv}_{3\times 3}([r_t \odot h_{t-1}, x_t], W_h)\right),

ht=(1zt)ht1+zth~t.h_t = (1-z_t)\odot h_{t-1} + z_t \odot \tilde{h}_t.

Several points are especially relevant to CRFT-style reasoning. First, RAFT maintains one canonical flow state instead of a coarse-to-fine cascade. Second, the updater behaves like a learned first-order optimizer with tied weights and stable many-step inference. Third, the model is explicitly feature-based and correspondence-centric. At the same time, RAFT contains neither transformers nor a formal consistency mechanism such as forward-backward consistency, cycle consistency, or temporal consistency across frames (Teed et al., 2020).

Empirically, RAFT reports 5.10%5.10\% F1-all on KITTI and C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},0 end-point-error on Sintel final pass, with about C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},1M parameters in the full model and C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},2M in RAFT-small (Teed et al., 2020). These results anchor the recurrent correspondence-refinement paradigm from which CRFT-like formulations are plausibly derived.

3. FlowFormer as a cost-memory transformer for optical flow

FlowFormer is the closest directly relevant optical-flow architecture to the inferred CRFT concept. It tokenizes the 4D cost volume built from an image pair, encodes those tokens into a latent cost memory with alternate-group transformer (AGT) layers, and decodes flow recurrently with dynamic positional cost queries (Huang et al., 2022).

The architecture has three principal stages: construction of a full all-pairs C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},3 cost volume, latent tokenization of each source pixel’s 2D cost map, and recurrent decoding from the encoded cost memory. The source and target image features are computed at C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},4 resolution, typically with C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},5, using the first two stages of ImageNet-pretrained Twins-SVT in the final model (Huang et al., 2022).

For a fixed source pixel C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},6, the cost map C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},7 is patchified by three stride-2 convolutions into

C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},8

with C(gθ(I1),gθ(I2))RH×W×H×W,\mathbf{C}(g_\theta(I_1), g_\theta(I_2)) \in \mathbb{R}^{H \times W \times H \times W},9. Learned latent codewords Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.0 then summarize the patchified cost features into Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.1 latent tokens: Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.2 Across all source pixels, the latent representation becomes

Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.3

AGT then alternates between intra-cost-map attention over the Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.4 tokens associated with one source pixel and inter-cost-map attention across source pixels for a fixed token index. In the final model, FlowFormer uses Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.5, Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.6, and Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.7 AGT layers (Huang et al., 2022). This design is explicitly motivated by the infeasibility of full self-attention over the raw Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.8 cost tensor.

The recurrent decoder combines local evidence and global memory. For each source pixel Cijkl=hgθ(I1)ijhgθ(I2)klh.C_{ijkl} = \sum_h g_\theta(I_1)_{ijh} \cdot g_\theta(I_2)_{klh}.9, given current flow {C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}0, it computes

{C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}1

extracts a {C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}2 local cost crop

{C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}3

and forms a dynamic positional cost query: {C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}4 Residual flow increments are then predicted by a ConvGRU-style refinement module: {C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}5

This architecture is recurrent, transformer-based, and explicitly flow-aware, but it is centered on latent cost memory rather than on a formally defined consistency constraint. The closest coherence mechanism stated in the paper is the injection of source-image context into inter-cost-map attention, motivated by the idea that visually similar source pixels should have coherent flows (Huang et al., 2022).

On Sintel test, FlowFormer achieves {C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}6 AEPE on clean pass and {C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}7 AEPE on final pass, representing a {C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}8 and {C1,C2,C3,C4}\{\mathbf{C}^1,\mathbf{C}^2,\mathbf{C}^3,\mathbf{C}^4\}9 error reduction from ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.0 and ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.1. Without being trained on Sintel, it attains ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.2 AEPE on the clean pass of the Sintel training set, surpassing the best published result of ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.3 by ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.4. The full model has ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.5M parameters and the small model ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.6M (Huang et al., 2022).

4. FlowFormer+MCVA and masked cost-volume pretraining

The 2023 extension “FlowFormer: A Transformer Architecture and Its Masked Cost Volume Autoencoding for Optical Flow” adds Masked Cost Volume AutoEncoding (MCVA) as a pretraining strategy for the cost-volume encoder (Huang et al., 2023). The underlying FlowFormer architecture remains defined by 4D cost-volume tokenization, AGT-based latent encoding, and recurrent decoding from cost memory with dynamic positional cost queries.

MCVA pretrains the cost-volume encoder with a masked autoencoding scheme and is explicitly motivated by the cost of acquiring ground-truth flow labels. The paper states that this is “especially critical in optical flow estimation because ground truth flows are more expensive to acquire than labels in other vision tasks” (Huang et al., 2023). In this formulation, the principal innovation is not a new recurrent mechanism, but stronger representation learning for the cost encoder through unlabeled data.

The reported quantitative effect is substantial. FlowFormer+MCVA achieves ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.7 and ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.8 AEPE on Sintel clean and final pass, respectively, which the paper describes as ft+1=ft+Δft.\mathbf{f}_{t+1} = \mathbf{f}_t + \Delta \mathbf{f}_t.9 and zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),0 error reductions from FlowFormer. It also ranks zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),1st among all published methods on both Sintel and KITTI-2015 benchmarks and achieves the best generalization performance (Huang et al., 2023).

Within a CRFT interpretation, this suggests that masked pretraining can strengthen the memory side of a recurrent feature-flow transformer without altering the core recurrent decoding paradigm. The emphasis remains on cost-memory quality rather than on any explicit consistency loss.

5. FlowLens as a clip-recurrent, flow-guided transformer variant

FlowLens is not an optical-flow estimator in the benchmark sense of RAFT or FlowFormer, and it is not called CRFT. It is nevertheless a closely related recurrent-flow-transformer design because it combines explicit optical-flow-guided feature propagation with a Clip-Recurrent Transformer for online beyond-FoV video inpainting (Shi et al., 2022).

Its pipeline has four major stages: a convolution stem over Local Frames (LF) and Past Reference Frames (PRF), an explicit Flow-guided Feature Propagation module, a Clip-Recurrent Transformer, and an output convolutional decoder. For online beyond-FoV processing, the current clip contains local frames zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),2 and past reference frames zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),3 (Shi et al., 2022).

The explicit propagation branch estimates completed optical flow,

zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),4

warps features,

zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),5

applies deformable compensation,

zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),6

zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),7

and fuses bidirectional propagation: zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),8 with zt=σ ⁣(Conv3×3([ht1,xt],Wz)),z_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_z)\right),9 (Shi et al., 2022).

The recurrent-transformer component is the Clip-Recurrent Hub. It caches previous-clip keys and values,

rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),0

and allows current queries to attend to transformed cached memory through 3D-Decoupled Cross Attention (DDCA): rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),1

rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),2

The default memory length is one previous clip, and the paper reports that longer memory lengths rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),3 or rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),4 do not help much (Shi et al., 2022).

DDCA decouples attention across time, horizontal strips, and vertical strips, while MixF3N replaces a conventional FFN with a multi-branch local-mixing design: rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),5 These mechanisms are intended to improve “global information accumulated over time” and the “precise spatial flow of local features” (Shi et al., 2022).

The loss is

rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),6

with

rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),7

The paper explicitly notes that there are no semantic, detection, perceptual, or explicit temporal consistency losses inside FlowLens; downstream semantics and detection are evaluation-only (Shi et al., 2022).

Quantitatively, FlowLens reports outer-FoV PSNR rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),8 and inner-FoV PSNR rt=σ ⁣(Conv3×3([ht1,xt],Wr)),r_t = \sigma\!\left(\text{Conv}_{3\times 3}([h_{t-1}, x_t], W_r)\right),9, improving over E2FGVI at h~t=tanh ⁣(Conv3×3([rtht1,xt],Wh)),\tilde{h}_t = \tanh\!\left(\text{Conv}_{3\times 3}([r_t \odot h_{t-1}, x_t], W_h)\right),0 and h~t=tanh ⁣(Conv3×3([rtht1,xt],Wh)),\tilde{h}_t = \tanh\!\left(\text{Conv}_{3\times 3}([r_t \odot h_{t-1}, x_t], W_h)\right),1. In ablation, an early Clip-Recurrent Hub gives h~t=tanh ⁣(Conv3×3([rtht1,xt],Wh)),\tilde{h}_t = \tanh\!\left(\text{Conv}_{3\times 3}([r_t \odot h_{t-1}, x_t], W_h)\right),2, compared with h~t=tanh ⁣(Conv3×3([rtht1,xt],Wh)),\tilde{h}_t = \tanh\!\left(\text{Conv}_{3\times 3}([r_t \odot h_{t-1}, x_t], W_h)\right),3 without the hub (Shi et al., 2022). These results do not place FlowLens inside optical-flow benchmark lineage, but they do show a concrete recurrent transformer with explicit flow-guided propagation and cached feature memory.

6. Consistency, misconceptions, and research significance

A central misconception is that CRFT is an established paper title or canonical architecture. The cited literature does not support that interpretation. Another common misconception is that the presence of recurrence and transformers implies an explicit consistency formulation. In the cited sources, this is not the case (Huang et al., 2022, Shi et al., 2022).

RAFT has recurrence and explicit all-pairs correlation reasoning, but no transformer and no named consistency mechanism (Teed et al., 2020). FlowFormer has transformer-based cost-memory encoding and recurrent decoding, but no forward-backward consistency, cycle consistency, or temporal multi-frame recurrence; it processes image pairs and concentrates on latent cost-memory construction (Huang et al., 2022). FlowLens has recurrent clip-level key/value reuse and flow-supervised propagation, yet the paper explicitly states that there is no specifically named consistency module or explicit temporal consistency loss inside the model (Shi et al., 2022).

This implies that “consistent” in the inferred CRFT label should not be read as a direct synonym for a formal consistency objective. In the cited works, coherence arises implicitly from architectural structure: RAFT’s stable tied-weight refinement, FlowFormer’s globally encoded cost memory and context-conditioned attention, and FlowLens’s clip-recurrent K/V retrieval, flow supervision, and bidirectional propagation (Teed et al., 2020, Huang et al., 2022, Shi et al., 2022).

From a research-taxonomic perspective, the most defensible interpretation is therefore narrow. A CRFT-like architecture would combine: a recurrent state or update operator, explicit feature or cost representations for correspondence, and transformer-based memory or attention over those representations. Under that interpretation, RAFT is the precursor, FlowFormer is the closest optical-flow instantiation, FlowFormer+MCVA shows that masked cost-volume pretraining materially improves the same family, and FlowLens demonstrates that clip-recurrent flow-guided transformers extend naturally into adjacent video-generation tasks (Huang et al., 2023).

The resulting picture is not that of a single named method, but of an architectural trajectory: from recurrent all-pairs field transforms, to tokenized cost-memory transformers for optical flow, to flow-guided clip-recurrent memory models for online video completion.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Consistent-Recurrent Feature Flow Transformer (CRFT).