← Ashutosh Mulchandani

BMVC 2026 · Poster

Sequence Models as Proxies for Flow-Matching-Based Alignment

Biplab Das1,2 Ashutosh Mulchandani2 Viswanath Gopalakrishnan1

1IIIT Bangalore2Samsung R&D Institute India – Bangalore

In short

Flow-matching alignment moves image features toward text prototypes with a memoryless velocity field, which cannot tell crossing paths apart. We replace the field and its ODE solver with a GRU or Transformer that predicts every trajectory state directly. Remembering the path resolves the ambiguity, and it takes fewer parameters.

Abstract

Flow Matching has emerged as a principled framework for cross-modal alignment in few-shot learning, transporting visual features toward semantic text prototypes via a learned continuous velocity field integrated by a fixed-step ODE solver. In this work we ask: can sequence models serve as effective proxies for FM-based alignment, replacing ODE integration with learned autoregressive state prediction? We propose two architectures, GRUFlow and TransformerFlow, that recast cross-modal alignment as a direct state-prediction problem over K discrete trajectory steps, supervised by ground-truth linear interpolants at every step. GRUFlow employs a gated recurrent cell with AdaLN timestep conditioning; TransformerFlow replaces the recurrent cell with causal self-attention over the full trajectory history, providing richer non-Markovian context.

On controlled synthetic transport tasks we show that when the transport assignment is ambiguous (crossing, multi-modal, or manifold-structured paths), the sequence proxy resolves correspondences that a memoryless velocity field cannot, reducing pointwise transport error by up to 50×. Across 11 standard few-shot benchmarks, four PEFT backbones, and three shot settings, both GRUFlow (~6.5 M params) and TFFlow (~9.82 M params) match or improve over FMA (~16.65 M params), by up to +2.3% at 1-shot on difficult datasets, while using as little as 39% of FMA's parameter budget. Both architectures generalise consistently across all four PEFT methods tested, with the strongest absolute gains on weaker feature extractors, confirming that non-Markovian trajectory refinement is architecture-agnostic and most effective precisely where residual cross-modal misalignment is largest.

Why memory matters

A flow-matching velocity field vθ(xt, t) sees only the current point and time. Where two trajectories cross, both particles present the same input, so the field has to give them the same velocity. A sequence model also knows where each particle came from, so it can keep them apart.

Three panels on the XOR task. Left: four source clusters and their targets on the opposite diagonal. Middle: FMA's paths all bend through the centre and end at mixed-up clusters. Right: GRUFlow's paths go straight from each cluster to its own target.
XOR toy task: four clusters must swap diagonals. FMA's memoryless field funnels every path through the centre and mixes up the targets; GRUFlow's hidden state keeps each cluster on its own path.

Method

Method overview. Top: flow matching integrates a velocity field along a continuous ODE trajectory. Bottom: the sequence-model proxy, a GRU or Transformer, predicts discrete states step by step, each supervised by the flow-matching target state.
Top: flow matching learns a velocity field and integrates an ODE. Bottom: our proxy predicts each state directly, supervised at every step by the same closed-form interpolant targets.

We split the path from image feature x0 to text prototype x1 into K = 10 steps. The target at step k is the closed-form interpolant x*tk = (1 − tk) x0 + tk x1 + γ√(tk(1 − tk)) ε, so no ODE is solved, and every step gets its own loss.

GRUFlow

A GRU cell carries the trajectory memory in its hidden state. Three AdaLN decoder blocks condition on the timestep, and a zero-initialised residual update produces the next state. Rollout is O(K).

TransformerFlow (TFFlow)

Causal self-attention over the full history [x0, x̂1, …, x̂k−1], with four AdaLN-conditioned blocks and eight heads. The last token gives the same residual update. Rollout is O(K²).

Both models train closed-loop, feeding their own predictions back in exactly as at test time. At inference they unroll from x0, ℓ2-normalise the final state and pick the nearest text prototype.

Results

Synthetic transport: memory resolves crossing paths

Six 2-D tasks with known ground-truth pairings, mean of 5 seeds. TD is the error to each sample's true target; lower is better.

TaskFMA TDGRUFlow TDFMA ÷ GRUFlow
Figure-80.00510.00481.1×
Multi-Ring0.07240.06571.1×
Spiral0.10790.07151.5×
Swiss Roll0.07410.005014.8×
Gaussian Swap9.72350.479620.3×
XOR15.63680.307450.9×

Few-shot classification on 11 datasets

CLIP ViT-B/16; every refiner runs on CLIP-LoRA features. Accuracy (%) averaged over 5 difficult and 6 easy datasets.

MethodParams1-shot4-shot16-shot
Diff.EasyDiff.EasyDiff.Easy
CLIP-LoRA–58.783.067.385.676.188.2
+ FMA16.65 M59.483.869.086.577.888.8
+ TFFlow (ours)9.82 M61.184.270.486.878.588.9
+ GRUFlow (ours)6.5 M61.784.470.186.878.589.1

Any PEFT backbone, 16-shot

Gain in difficult-dataset average accuracy (points) over each backbone. The weakest backbones gain the most.

BackboneBackbone avg.+ GRUFlow+ TFFlow
Zero-shot CLIP48.9+15.3+22.5
CLIP-Adapter62.6+5.4+10.2
CoOp71.5+1.3+2.2
CLIP-LoRA76.1+2.4+2.4

Poster

Thumbnail of the BMVC 2026 poster

The A0 poster summarises the motivation, method and results on one page. Download the PDF (2.1 MB).

BibTeX

@inproceedings{das2026sequence,
  title     = {Sequence Models as Proxies for Flow-Matching-Based Alignment},
  author    = {Das, Biplab and Mulchandani, Ashutosh and Gopalakrishnan, Viswanath},
  booktitle = {Proceedings of the British Machine Vision Conference (BMVC)},
  year      = {2026}
}