# TinyFlow: Breaking the Warping Bottleneck for Edge Optical Flow

Robotics.world

> The most accurate optical flow networks work by iteratively refining their estimate, and each refinement step "warps" the second image's features to align with the first using the current flow — an…

**arXiv**: 2610.33338 · Preprint · not peer-reviewed

**Published**: 2026-10-23

**Authors**: Xiao'ao Song, Chahat Deep Singh

## In plain words

The most accurate optical flow networks work by iteratively refining their estimate, and each refinement step "warps" the second image's features to align with the first using the current flow — an operation that reads memory at addresses computed at run time.

## AI summary

## Overview

**Research area:** Computer vision for embedded robotics — specifically, learned dense optical flow and its deployment on resource-constrained edge AI accelerators.

**Technical level:** Intermediate (assumes familiarity with optical flow architectures such as RAFT/PWC-Net and with INT8 quantization concepts; the correlation and quantization sections are Advanced).

**Scope:** A 1.26M-parameter optical flow network that keeps iterative coarse-to-fine refinement while removing the flow-dependent warping operation that blocks deployment on static-dataflow edge accelerators.

## What This Paper Is About

The most accurate optical flow networks work by iteratively refining their estimate, and each refinement step "warps" the second image's features to align with the first using the current flow — an operation that reads memory at addresses computed at run time. Edge accelerators execute a fixed dataflow graph and cannot perform that data-dependent resampling, so every deployable flow network to date (NanoFlowNet, EdgeFlowNet) has had to drop iteration entirely and predict flow in a single feed-forward pass, sacrificing accuracy. TinyFlow's goal is to retain the iterative refinement loop that makes flow accurate while expressing it in operations an edge compiler can schedule statically.

## Key Contributions

1. **A warp-free optical flow network.** TinyFlow has 1.26M parameters and replaces flow-dependent warping with a fixed-window correlation over constant offsets, so the flow estimate selects among channel values rather than steering memory addresses. The whole network exports, quantizes, and compiles as a single static INT8 graph.
2. **A recipe that nearly eliminates the quantization penalty.** The paper shows that quantization-aware fine-tuning, distillation from a warp-based "teacher" network that cannot itself be deployed, and model souping together reduce the Float32-to-INT8 penalty from over 1.0 to below 0.2 EPE on MPI-Sintel.
3. **Accuracy wins at smaller size.** TinyFlow outperforms EdgeFlowNet and NanoFlowNet on Sintel Clean, Sintel Final, and FlyingChairs in both Float32 and INT8, while using 54% fewer parameters than EdgeFlowNet (1.26M vs. 2.75M).
4. **Downstream validation.** In flow-only monocular visual odometry on eight synthetic TartanAir trajectories and three real UZH-FPV drone flights, the same INT8 model yields the lowest trajectory error on seven of the eleven sequences.

## Main Findings

- **INT8 accuracy:** TinyFlow's INT8 model achieves **6.29 / 7.13 EPE on Sintel Clean / Final**, against **6.46 / 7.62** for EdgeFlowNet. Its FlyingChairs EPE is **2.71 vs. 3.91** (31% lower) for EdgeFlowNet at INT8.
- **Smaller quantization gap:** the TinyFlow quantization gap is **0.16 EPE**, versus **0.29** for EdgeFlowNet and **+0.72** for NanoFlowNet. Without the paper's mitigation steps, post-training quantization alone raised Sintel Clean EPE from **6.92 to 8.09** — a penalty of **1.17**.
- **Large-motion advantage:** on Sintel Final, beyond 128 px of ground-truth motion, TinyFlow's margin over EdgeFlowNet reaches **14.4 EPE** in both precisions, and it beats NanoFlowNet by **22.7 EPE (Float32)** and **20.8 EPE (INT8)**. In the 80–128 px bin it reduces EPE relative to EdgeFlowNet by **6.37 (Float32)** and **4.18 (INT8)**.
- **One bin where a rival wins:** on Sintel Clean, EdgeFlowNet retains a small edge in the 40–80 px bin, by **0.51 EPE**. The first two motion bins (0–10 px and 10–40 px) hold roughly **90%** of Sintel pixels, and TinyFlow leads every deployable model on both under INT8.
- **Gap to non-deployable models is localized to motion range:** FlowNetS (38.7M parameters) keeps its advantage only above 40 px, and NeuFlow v2 leads every bin by a wide margin — evidence that the cost of the deployment constraint lies in the correlation window's reach rather than in model capacity.
- **Qualitative behavior:** on the `market_6` Sintel Clean frame, TinyFlow reaches **2.68 EPE against 6.79** for EdgeFlowNet, which fragments large foreground motion into inconsistent patches; NanoFlowNet produces structured noise.
- **Measured latency on real hardware:** on a Raspberry Pi 5 with a Hailo-8 accelerator, TinyFlow (**1.26M params**) runs at **10.5 FPS with 5.76 EPE** on a 100-pair Sintel Clean sample, compared with EdgeFlowNet (**2.75M, 64 FPS, 6.38 EPE**) and NanoFlowNet (**0.17M, 190 FPS, 7.50 EPE**). Iterative refinement buys accuracy at a latency cost.
- **Visual odometry, synthetic:** on TartanAir, TinyFlow has the lowest ATE on six of eight sequences and the best mean on all three metrics — **2.46 m, 0.28°, 23.9°** versus **2.56 m, 0.29°, 26.1°** for EdgeFlowNet and **6.65 m, 0.81°, 49.1°** for NanoFlowNet. Largest margins are on `japanesealley_P005` (**44%** lower ATE) and `amusement_P007` (**42%** lower). Ground-truth flow through the same estimator gives a **0.26 m** mean ATE, so the residual error lies in the flow, not the estimator.
- **Visual odometry, real flights:** results are mixed. TinyFlow is best on all three metrics on `outdoor_forward_1` (**2.04 m vs. 2.41 m** ATE), and the two models tie on mean rotation and direction error (**0.37°, 12.2°**), but EdgeFlowNet drifts less on the two indoor flights and has the lower mean ATE, **4.25 m against 5.32 m**.
- **Robustness to illumination change:** on a fixed **209-pair** Sintel Clean subset with gamma, brightness, and additive-offset perturbations applied to the second frame only, TinyFlow stays within **5.92 to 8.99 EPE** across all eight conditions, while EdgeFlowNet rises to **27 to 61** and NanoFlowNet to **18 to 90**. On the single frame illustrated, TinyFlow moves from **0.90 to at most 1.12 EPE**. The authors attribute this to the `tanh`-bounded update heads, which cap the flow the network can emit.

## Methodology in Plain English

**The core trick: replace warping with a fixed lookup window.** Standard iterative flow networks re-align the second frame's features to the current estimate before each correction, which requires reading memory at flow-computed (usually fractional) positions. TinyFlow instead correlates the two frames' features directly over a fixed set of constant offsets centered at zero. Since shifts by a constant offset are just convolutions with one-hot kernels, the entire correlation becomes ordinary `Conv` and `Mul` layers with no learned weights and no data-dependent addressing. To keep the cost down, the network computes only the two axis marginals of the correlation volume — **2(2r+1)** channels per location instead of **(2r+1)²**.

**Why the fixed window suffices.** For integer flow, a warped correlation volume is exactly a shifted read of the fixed one, so warping adds no matching evidence — its only effect is to recenter the search window. TinyFlow instead keeps the window fixed and makes the radii large enough at coarse scales, where the grid is small and extra channels are cheap. It uses **r₁₆ = 8, r₈ = 6, r₄ = 3**, covering **±128, ±48, ±12** pixels along each axis; coarse-to-fine refinement means each scale only has to capture the residual left by the one above.

**Architecture.** A shared encoder of depthwise-separable convolutions builds a feature pyramid at scales **{16, 8, 4}**. Features pass through a learnable **1×1 conv + batch norm** projector divided by **√C**, which bounds correlation magnitudes without the hardware-unfriendly per-pixel L2 normalization. A head regresses initial flow at the coarsest scale; a weight-tied update block then refines over **T_s = 4** steps during training, with each step bounded by a scaled `tanh` (**d₁₆ = 4, d₈ = 2, d₄ = 1** pixels) so every flow tensor's numeric range is known in advance — important for 8-bit encoding. The final quarter-resolution flow is bilinearly upsampled.

**Training.** Supervision uses a Charbonnier loss (ε = 10⁻³, γ = 0.45) at every scale, deep supervision on every iterate with later iterates weighted more, and an edge-aware smoothness term (β = 10) computed on the downsampled grayscale first frame. Training uses FlyingChairs throughout, with FlyingThings3D added for fine-tuning; MPI-Sintel is used only for testing, never for training, fine-tuning, or calibration. Learning rates are **2×10⁻⁴** for training and **6×10⁻⁵** for quantization-aware fine-tuning.

**Deployment tricks.** Fake-quantization nodes are inserted exactly where the accelerator compiler will quantize (per-channel symmetric INT8 weights, per-tensor asymmetric UINT8 activations), with straight-through gradients. A warp-based teacher (a `grid_sample` variant that cannot be deployed) provides a distillation loss on the quarter-resolution flow with weight between 0.25 and 0.5. Checkpoints are selected and averaged — a "model soup" — by INT8 accuracy rather than Float32 accuracy. The soup of the three best fine-tuning epochs (**6.27, 6.37, 6.21** Clean; **7.21, 7.06, 7.12** Final) scores **6.13 and 6.95**, better than any ingredient. Finally, because the update blocks are weight-tied, inference uses **eight** refinement iterations instead of four without retraining, lowering Sintel Clean EPE by about **0.5** while leaving Final unchanged; beyond eight, Clean gains marginally and Final degrades.

## Why This Matters

This paper attacks a specific and mostly invisible constraint: the reason edge flow networks are inaccurate is not that they are small, but that the mechanism producing accuracy was assumed to be incompatible with static-dataflow hardware. TinyFlow shows the mechanism can be re-expressed as ordinary arithmetic. It also demonstrates a general template — using a non-deployable teacher to supervise a deployable student, and selecting checkpoints by quantized rather than float accuracy — that applies beyond optical flow.

**Real-world applications:**

- **Onboard navigation for small drones and micro-quadcopters**, where the paper's own motivating examples include dense flow on a GAP8 microcontroller and palm-sized drones.
- **Visual odometry and state estimation** on robots with no depth sensor, since the paper's flow-only VO experiments show the flow constrains camera rotation and direction of travel directly.
- **Obstacle avoidance and dynamic scene understanding** on power-limited platforms — the paper notes flow supports navigation, structure from motion, object tracking, and dynamic scene understanding.
- **Robust perception under auto-exposure**, where frame-to-frame brightness changes currently break competing deployable models by an order of magnitude in EPE.

**Industry relevance:** the evaluation runs on a Hailo-8 accelerator over PCIe on a Raspberry Pi 5 with Hailo Dataflow Compiler 3.34.0 and HailoRT 4.23.0 — commodity embedded hardware, not a research prototype. The 54% parameter reduction relative to EdgeFlowNet at higher accuracy is directly relevant to anyone budgeting model size against frame rate on a fixed power envelope.

## Future Directions

- **Extending the correlation window's reach.** The paper explicitly locates the residual gap to FlowNetS and NeuFlow v2 in the fixed window's capture range rather than in model capacity, which invites work on cheaper ways to cover larger displacements without reintroducing data-dependent addressing.
- **Closing the indoor flight gap.** TinyFlow has the lower mean ATE on synthetic TartanAir but loses to EdgeFlowNet on the two indoor UZH-FPV flights and consequently on the three-flight mean (5.32 m vs. 4.25 m). What property of indoor footage causes this is not resolved.
- **Recovering the latency cost of iteration.** TinyFlow runs at 10.5 FPS on the Hailo-8 versus 64 FPS for EdgeFlowNet and 190 FPS for NanoFlowNet. Since iterations are weight-tied and the count is a deployment-time choice, adaptive or flow-dependent iteration counts are an open design axis.
- **Generalizing the warp-free formulation.** The paper only demonstrates the technique for optical flow. Whether the same fixed-offset correlation can replace flow-dependent resampling in other iterative refinement architectures — or other tasks that depend on `grid_sample`-style operators — is not explored.

## Target Audience

Robotics and embedded-vision engineers deploying perception models on NPUs and microcontrollers; researchers working on efficient optical flow and iterative refinement architectures; quantization and model-compression practitioners interested in distillation and checkpoint souping for INT8 export; and graduate students in robot perception who want a clear case study in how hardware constraints shape network design rather than merely shrinking it.

## Authors’ abstract

High-performance optical flow networks are difficult to deploy on resource-constrained edge accelerators because their iterative refinement warps features by the current flow, which relies on flow-dependent resampling and data-dependent memory access. We present TinyFlow, a 1.26M-parameter warp-free optical flow network that preserves iterative coarse-to-fine refinement by replacing the warp with a fixed-window correlation over constant offsets, so the whole network compiles…

[The full abstract on arXiv](https://arxiv.org/abs/2610.33338)

[Read the original paper](https://arxiv.org/abs/2610.33338)

## Related papers

- [FLoTS-SLAM: Optical Flow-Derived Uncertainty for Monocular Dynamic SLAM with Two-Stage Optimization](https://robotics.world/paper/flots-slam-optical-flow-derived-uncertainty-for-monocular-dynamic-slam-2610.23496) 2026-10-16 · cs.RO · Key terms of the title in common
- [Evo-World: A Lightweight Vision-Language-Action Model with Future Motion Prediction via Optical-Flow Supervision](https://robotics.world/paper/evo-world-a-lightweight-vision-language-action-model-with-future-motion-2610.12936) 2026-10-09 · cs.RO · Key terms of the title in common

---

Canonical: https://robotics.world/paper/tinyflow-breaking-the-warping-bottleneck-for-edge-optical-flow-2610.33338
