Anderson-Accelerated Refinement for Recurrent Optical Flow

Modern optical flow networks estimate how every pixel moves between two video frames by starting from a guess and repeatedly refining it. A small recurrent unit proposes a correction, the flow field is updated, and the loop runs a fixed 12 to 32 times. This loop is the main runtime cost. It also has the same structure as value iteration in reinforcement learning, which repeats a fixed update until the value estimate stops changing. The planning community has spent years learning how to make such loops converge in fewer steps. Its main tool is Anderson acceleration: instead of taking only the newest iterate, it combines the last few iterates with weights chosen so the combined correction is as small as possible. We propose to run this, with the safeguards the planning literature found necessary, directly inside the refinement loops of RAFT and WAFT at test time, with no retraining.

The closest existing work only decides when to stop the loop. The Context-Aware Iteration Policy Network (DRAFT) learns a skip-or-update decision and cuts FLOPs without hurting accuracy. By construction, though, it cannot help the frames that are still far from converged at step 32. Our claim is twofold. First, for a measurable class of frames, the refinement residual shrinks by a slow and roughly steady factor per step. That is exactly the regime in which Anderson acceleration helps value iteration. Second, safeguarded extrapolation on those frames reaches the 32-step error in far fewer steps, and composes with early stopping instead of competing with it. The proposal is built around a diagnostic that tells us in advance which frames should benefit. That makes it falsifiable even if the method turns out not to help.

Core Claim

Write the recurrent update as $f_{k+1} = f_k + r_k$. Here $f_k$ is the flow field after $k$ refinements, and $r_k = \Delta(f_k, h_k)$ is the correction the update unit proposes given the current flow and its hidden state $h_k$. Treat $r_k$ as the residual of an implicit fixed-point map, the same role the Bellman residual $\mathcal{T}V_k - V_k$ plays in value iteration. Anderson acceleration with memory $m$ picks mixing weights $\alpha$, which sum to one, by solving a tiny regularized least-squares problem:

$$\alpha^{(k)} = \arg\min_{\sum_i \alpha_i = 1} \Big\| \sum_{i=0}^{m} \alpha_i r_{k-i} \Big\|_2^2 + \lambda \|\alpha\|_2^2, \qquad f_{k+1} = \sum_{i=0}^{m} \alpha_i^{(k)} \big(f_{k-i} + r_{k-i}\big).$$

Here $\lambda$ is a Tikhonov damping weight. The mixed flow $f_{k+1}$ is fed back into the network as the next input: the correlation lookup or warping is simply recomputed at the new location. The network's internals are never differentiated or modified.

The prediction comes from fixed-point theory. Anderson acceleration gains most when the residual-norm ratio $\rho_k = \|r_{k+1}\|/\|r_k\|$ sits close to one and is stable, meaning slow but linear convergence. It gains little, or causes harm, when the ratios are erratic, meaning oscillation or a noisy error floor. This is the same distinction behind the success of Anderson acceleration on POMDP solvers and behind the reported failures when the operator is non-smooth.

Relation to Prior Work

The method comes from the accelerated value iteration line. AA-FIB applies Anderson acceleration to the Fast Informed Bound solver for POMDPs, with Tikhonov regularization and a rule that rejects bad extrapolated steps. It cuts the cit benchmark from 1,362 to 507 iterations. The maximum-entropy variant and Damped Anderson Mixing for deep RL show that the hard max in the Bellman operator makes plain Anderson acceleration overshoot. They fix it with softmax or MellowMax smoothing plus damping.

That finding constrains our design. The flow update contains non-smooth pieces of its own, namely integer-bounded correlation lookups and clamped bilinear warping, so we keep the safeguard and the damping rather than trusting raw extrapolation.

Two further papers supply simpler comparison points:

  • The first-order view of accelerated VI offers heavy-ball and Nesterov-style momentum. It also proves that acceleration is impossible on some hard instances. This is a warning that some frames will not speed up, and our diagnostic is meant to predict which ones.
  • PID-VI recasts value iteration as an integral controller with unit gain and adds proportional and derivative terms. Its fixed-gain PD variant is a cheap baseline here.

On the vision side, RAFT and WAFT supply the loops we accelerate. WAFT also supplies a constraint. Its advantage is low memory from operating at 1/2 resolution without a 4D correlation volume, using 9.2 GiB where SEA-RAFT runs out of memory. Storing $m$ past flow fields at that resolution eats into this advantage, so memory is a first-class metric.

TVNet unrolls TV-L1 into 50 fixed steps with no extrapolation. DRAFT stops early but never changes the trajectory. We differ from both: we change the trajectory itself and leave the depth decision to a separate, composable module.

Research Program

The work proceeds in three stages.

Stage 1: diagnostic. We log $\|r_k\|$ and $\rho_k$ across 32 iterations of pretrained RAFT and WAFT on Sintel and KITTI-15 training splits, per image and per spatial tile. We then cluster frames by their convergence behavior: fast convergence, slow linear convergence, oscillation, and stalling at an error floor. We relate these clusters to DRAFT's observation that 67.1% of Sintel and 43% of KITTI frames are near-optimal by step 15. If the remaining frames are mostly oscillating or floor-limited rather than slowly linear, the core hypothesis fails. We would report that as a negative result and stop.

Stage 2: accelerator design. We implement safeguarded Anderson acceleration with memory $m \in \{1,2,3,4\}$ in three variants:

  • mixing over the flow field only, keeping the newest hidden state;
  • mixing over flow and hidden state jointly;
  • per-tile mixing weights, since motion difficulty varies across the image.

The safeguard follows AA-FIB. An extrapolated step is accepted only if the next residual norm falls below that of the most recent plain step; otherwise the method reverts to the plain update. This costs at most one wasted iteration per rejection.

All weight solves are $(m{+}1)\times(m{+}1)$ systems computed per image in the batch. Every image therefore runs the same instruction stream, which sidesteps the GPU branching that held DRAFT to a 25% wall-clock gain from a 44% FLOP cut.

Stage 3: composition with early stopping. We combine the accelerator with a residual-threshold stopping rule and, where feasible, with DRAFT's learned policy. This tests whether the two savings add up: stopping removes wasted steps on easy frames, and extrapolation shortens the trajectory on hard ones.

Baselines

The do-nothing reference is the published RAFT and WAFT checkpoints run for their default 32 iterations. We use RAFT and WAFT as released, with WAFT from princeton-vl/WAFT. Their EPE defines the target accuracy that every accelerated method must match. No reported absolute Sintel or KITTI EPE for RAFT or WAFT was found on Lacuna; the file gives only relative improvements, so we will reproduce these numbers ourselves on identical hardware.

The second reference is static truncation: the same checkpoints run for a fixed $K \in \{8,12,16,24\}$ iterations. This traces the accuracy-versus-steps curve that any accelerator must beat at every budget.

The strongest existing competitor is DRAFT. It is the only method in the file that reduces refinement compute on these exact backbones without retraining them. On Sintel-Clean it reports a 44% FLOP reduction and a 25% wall-clock reduction relative to RAFT with no EPE increase. On KITTI-15 it reports a 21% FLOP reduction with no accuracy loss. We will reimplement or obtain DRAFT on the same RAFT checkpoint and evaluate it on the same GPU at the same batch size. Its resource preference parameter will be swept to produce a full accuracy-compute curve rather than a single point.

Beating DRAFT means one of two things. Either we achieve a strictly better wall-clock-versus-EPE curve on Sintel Final and KITTI-15. Or the composed system (accelerator plus stopping) exceeds 25% wall-clock savings at equal EPE, with the gain concentrated on the hard frames that DRAFT cannot help.

The isolating ablations share the stopping rule, safeguard, and step budget, and change only how history is used:

  • heavy-ball momentum with a tuned constant coefficient, the M-VI analogue;
  • fixed-gain PD correction, the PID-VI analogue;
  • Anderson acceleration without the safeguard;
  • Anderson acceleration without damping.

For each of these and for our method, the scalar hyperparameters (momentum coefficient, gains, $\lambda$, $m$) get the same tuning budget of a small grid on the Sintel training split, and are then frozen for test.

Why not just…?

Why not just run fewer iterations? DRAFT's authors report that their per-sample model consistently beats RAFT manually set to fewer fixed iterations. Our static-truncation curve will reproduce this comparison directly. Truncation cannot raise accuracy on the hard frames; it only lowers cost uniformly. If Anderson acceleration at $K$ steps does not beat truncation at $K$ steps across the curve, the proposal has failed.

Why not just use DRAFT's early stopping? Stopping only saves steps on frames that have already converged. The roughly one third of Sintel frames still improving late in the loop are untouched by it. That said, DRAFT is a real threat on aggregate numbers, since most frames are easy. For this reason we report results split by the Stage 1 convergence clusters and test the composed system. If the extrapolation gain on slow-converging frames is negligible, stopping alone is the right answer, and we will say so.

Why not just retrain the network with fewer iterations, since the recurrent hidden state already carries history? This is the strongest objection. Supervising every step with a loss could teach the update unit to take larger, better-aimed steps, making external extrapolation redundant. The Stage 1 diagnostic addresses it partly: if trained loops already show fast, erratic residual ratios, there is little slow linear mode left to remove. As an additional baseline, we will fine-tune RAFT at $K=12$ on the same training data used for the original checkpoint, with matched GPU hours. If this retrained model equals Anderson acceleration at 12 steps, the training-free advantage shrinks to convenience alone. We would then report that, rather than claim an algorithmic gain.

Why not just add momentum, which needs no least-squares solve? Momentum is cheaper and has no memory overhead, which matters for WAFT. But the first-order VI analysis shows that unconstrained momentum can oscillate on non-reversible problems. A single constant coefficient also cannot adapt per frame. The momentum and PD ablations measure this directly. If tuned momentum matches Anderson acceleration, we recommend momentum, especially for high-resolution WAFT.

Proposed Experiments

Evaluation uses MPI Sintel Clean and Final (average end-point error), KITTI-2015 (Fl-all outlier rate), and Spring, run on WAFT for high-resolution behavior. For every method we report:

  • number of update-unit evaluations needed to reach the 32-step EPE;
  • wall-clock latency at batch sizes 1 and 8;
  • peak GPU memory as a function of memory size $m$;
  • the safeguard's rejection rate.

Check 1: does the diagnostic predict the gains? Anderson acceleration should save the most steps on frames whose residual ratio is stable and close to one, and nothing on oscillating frames. A correlation near zero would falsify the mechanism, even if average numbers looked good.

Check 2: does the method help the frames DRAFT cannot? On frames not converged by step 32, we test whether Anderson acceleration at 32 steps achieves lower EPE than plain RAFT at 32 steps. This is the one result early stopping cannot produce.

Check 3: does it survive WAFT's memory budget? We test whether a small memory ($m=1$ or 2) keeps most of the gain within WAFT's reported 9.2 GiB footprint.

Clear positive answers to all three would show that fixed-point acceleration from planning transfers to motion estimation. A negative Check 1 would show that trained refinement loops are not the slowly contracting fixed points they appear to be. That would also be useful to know.