A camera moving through a scene constrains where each static point can reappear in the next frame. The point must land somewhere on a single line in the new image, the epipolar line, which is fixed by the camera's own motion. Attention mechanisms that search only along this line are cheaper and less error-prone than searching the whole image. They have a serious weakness, though. A moving object, such as a car driving ahead of the ego-vehicle in the same direction, can slide along that line while physically moving. A line-restricted matcher then accepts the car as static and assigns it a wrong depth. This is the classic failure of monocular reconstruction in driving, and a pure line test cannot catch it.
We propose to shrink the line to a short segment. A single-image metric depth model gives each pixel a plausible depth interval. Projecting that interval through the known camera motion turns the infinite epipolar line into a bounded stretch of pixels where a static point must reappear. Attention is restricted to that stretch, with its width set by the depth model's uncertainty. Static pixels then find their matches inside the segment, and those matches fix the metric scale of the camera's translation. Evidence that falls outside the segment, whether off the line or on the line but at the wrong depth, flags a moving object, including the collinear movers that line-only methods miss. For flagged pixels, depth change over time comes from local image expansion rather than triangulation, and the now-calibrated metric depth turns that change into metric three-dimensional motion.
Core Claim
A depth-bounded epipolar segment, computed inside the attention layer, does three jobs at once. It restricts matching for the static background. It tests for independent motion that is sensitive to motion along the epipolar line, not only across it. It anchors monocular scale over time, because only matches that pass the test are used for scale estimation, so dynamic pixels cannot corrupt it. Each ingredient has been demonstrated alone. The composition, and specifically the use of a single-view metric prior to bound the epipolar search, has not.
Concretely, let $x$ be a pixel in frame $t$ with homogeneous coordinates $\tilde{x}$, camera intrinsics $K$, and relative pose $(R, t_{ego})$ from frame $t$ to frame $t+1$. Let $[Z_{min}(x), Z_{max}(x)]$ be the depth interval given by the prior's mean and predicted uncertainty. The static segment is
$$S(x) = \{\, \pi\big(K(R\, Z K^{-1}\tilde{x} + t_{ego})\big) : Z \in [Z_{min}(x), Z_{max}(x)] \,\},$$
where $\pi$ divides by the last coordinate. The attention bias for target pixel $j$ is $M_{xj} = -d(j, S(x))^2 / 2\sigma_x^2$. Here $d$ is pixel distance to the segment and $\sigma_x$ is a learned width that absorbs pose and calibration error. This softens the hard mask of Epipolar Transformers, which is known to discard the true match entirely when geometry is slightly off.
A parallel coarse, unconstrained attention branch provides the alternative hypothesis. The per-pixel motion score is the log-ratio of best-match evidence outside versus inside $S(x)$.
Relation to Prior Work
Four lines of work supply the method.
- Epipolar attention. Epipolar Transformers samples points along the full epipolar line across a calibrated multi-camera rig. EAFormer replaces hard masks with Gaussian weighting by distance to the line, and shows this generalizes across camera setups. Look Around and Pay Attention adds epipolar logit masks to attention for multi-camera tracking. All three assume a rigid scene seen by synchronized cameras and search an unbounded line. We borrow their soft masking but apply it across time from one camera, bound the line with metric depth, and treat mass off the bounded segment as signal rather than noise.
- Metric depth prior. Metric3D v2 supplies it by normalizing focal length into a canonical camera space. It reaches zero-shot KITTI AbsRel of 0.044, but it is purely per-frame.
- Depth change without triangulation. Upgrading Optical Flow to 3D Scene Flow Through Optical Expansion recovers the ratio of depths $\tau = Z'/Z$ from the local expansion of image patches. It works exactly where triangulation fails, but leaves absolute scale open. Our calibrated $Z$ closes that gap.
- Dynamic epipolar flow. Unsupervised Deep Epipolar Flow for Stationary or Dynamic Scenes is the closest in spirit. It regularizes optical flow toward epipolar consistency, modeling moving objects as a union of motion subspaces over 2,000 sampled points. It predicts two-dimensional flow only, uses the constraint as a loss rather than inside the matcher, and has no depth bound. Its subspace test therefore cannot, by itself, distinguish a car moving along the epipolar line from a static point at a different depth.
Two further works motivate the proposal.
- Dynamic View Synthesis from Dynamic Monocular Video and Decoupling Dynamic Monocular Videos separate static and dynamic content by per-scene optimization. Both leave metric scale ungrounded and drift over time.
- 4RC is feed-forward over time, but uses unconstrained spatio-temporal attention.
One open problem constrains our design. Aligning dense depth to sparse metric anchors fails when the anchors lie on moving objects, as noted for sparse LiDAR and VIO grounding in LiDARTouch and Wofk et al.. Our scale estimate therefore uses only pixels that pass the segment test.
Research Program
We will build a two-frame, then short-window, feed-forward network with five parts.
- Depth prior. A frozen Metric3D v2 backbone provides metric depth. A light head predicts per-pixel log-depth uncertainty, which sets $[Z_{min}, Z_{max}]$.
- Pose. A pose head, or a provided odometry pose, gives $(R, t_{ego})$.
- Attention. The segment-restricted cross-frame attention layer runs at full resolution. The unconstrained branch runs at 1/8 resolution.
- Scale. A differentiable scale step fits a single scalar $s$ by weighted least squares. It aligns the prior depth to depths triangulated from matches inside the segment, weighted by one minus the motion score. It then rescales $t_{ego}$, recomputes $S(x)$, and repeats for two or three iterations.
- Dynamic head. For pixels flagged as moving, a head predicts the expansion ratio $\tau$ as in the optical-expansion work, and outputs metric three-dimensional motion as $(\tau - 1) Z$ along the viewing ray plus the lateral component from the matched flow.
Near the epipole, all segments collapse toward a point. There the network should lean on expansion rather than segment matching, so we will study whether the model learns this weighting on its own. If it does not, we will add a geometric gate based on distance to the epipole.
Training has two parts. The first is self-supervised photometric and geometric consistency on unlabeled driving video. The second is a supervised stage using the KITTI 2015 training split's ground-truth flow, disparity, and moving-object masks from the KITTI benchmark.
The analytical deliverable is a characterization of when the depth bound matters. We will relate motion-detection recall to the ratio between an object's along-line displacement and the segment's length, which in turn depends on the prior's uncertainty. We expect detection of collinear movers to degrade as the prior's depth interval widens, because a wider interval admits more along-line motion as "static." We will test this prediction directly.
Baselines
Naive reference. Metric3D v2 is applied frame by frame with ground-truth or odometry ego-pose, and every pixel is treated as static. Three-dimensional motion is then the difference of back-projected points. This establishes the floor for scene-flow and motion-segmentation quality, and for temporal flicker, when no cross-frame reasoning is done.
Strongest competitor: explicit two-stage pipeline. This is the classical version of our idea, done post hoc rather than inside attention. It uses the same frozen Metric3D v2 depth and an optical flow network trained on the same data. Pose comes from a robust essential-matrix fit whose translation scale is set by aligning prior depth to triangulated inliers. Pixels are labeled moving when their observed flow differs from the rigid flow induced by the scaled pose and prior depth by more than a tuned threshold. Moving pixels receive expansion-based depth change.
This baseline also sees depth, so in principle it also catches collinear movers. It is therefore the real test of whether doing the check inside the matcher adds anything. We will give it the same training data, the same backbone, and a threshold and hyperparameter search budget matched to ours on a held-out portion of KITTI 2015 training. Beating it means lower scene-flow outlier rate and higher moving-object IoU on KITTI 2015, specifically on the collinear-mover subset and on textureless or large-motion static regions. In those regions its flow errors propagate into false motion labels.
Published single-component baselines. Two published methods serve as reference points on their own metrics:
- Unsupervised Deep Epipolar Flow, for two-dimensional flow. It reports KITTI 2015 Fl-all of 16.24%.
- Optical expansion, for depth change. It reports KITTI 2015 motion-in-depth log error of 75 and 1-second time-to-collision error of 4.21%.
For metric depth, Metric3D v2's reported zero-shot KITTI AbsRel of 0.044 is the reference. We will rerun it on our exact evaluation frames, since the file does not specify its split.
For scale-consistent trajectories, Metric3D v2 inside Droid-SLAM reports 1.44% KITTI translation drift. Matching that from two-frame and short-window reasoning, without a full SLAM back end, would count as success. We would not claim to beat it.
Ablations isolating the key ingredient. Each ablation replaces the depth-bounded segment while holding everything else fixed:
- the full unbounded epipolar line, which is the Epipolar Transformers and EAFormer regime moved to time;
- unconstrained attention everywhere, which is the 4RC-style regime;
- a fixed-width segment, which removes the learned uncertainty.
A fourth ablation drops the motion-score weighting from the scale fit. This tests whether excluding dynamic pixels is what prevents scale corruption.
Why not just…?
Why not just let unconstrained spatio-temporal attention learn the geometry? Evidence from multi-view settings says hardcoded epipolar structure helps most under distribution shift. EAFormer reports roughly four times the zero-shot transfer performance of a learned-embedding baseline from Argoverse 2 to nuScenes. SPAD reports that epipolar restriction removes duplicated content across views. Neither result concerns moving objects over time, so our unconstrained-attention ablation, evaluated zero-shot on nuScenes and Waymo imagery, will settle it for this setting.
Why not just run the classical pipeline: metric depth, optical flow, robust pose, and a rigid-flow residual? This is the genuine threat, because it applies the same depth-aware motion test. Our bet is that restricting the matcher itself prevents the flow errors that the post hoc test then misreads as motion. Such errors are common in low-texture road surfaces and under large displacement. A post hoc test cannot recover from a wrong match, while a bounded search never proposes it. If the two-stage baseline matches us on the full KITTI 2015 set and on the hard subsets, the contribution reduces to efficiency. We will report that plainly.
Why not just mask moving objects with a 2D segmenter and reconstruct the static background? Split4D reports that segmentation-dependent decomposition breaks under fast motion and contact: 0.592 mIoU for tracking-dependent SA4D versus 0.893 for its own method on Multi-Human. Semantic masks also label parked cars as dynamic and moving pedestrians' shadows as static. Masking also discards the motion we want to measure. We will include a segmenter-mask variant of the naive baseline to quantify the parked-car false positives directly.
Why not just apply Metric3D v2 per frame? It gives good static depth, but not motion. Independent frames flicker, and small per-frame depth errors turn into large false motion when differenced. This is the ray-direction smearing documented by Cai et al.. The naive baseline measures exactly this gap.
Proposed Experiments
The primary benchmark is KITTI 2015 scene flow. We report four quantities:
- Fl-all for flow;
- motion-in-depth error and time-to-collision error for depth change;
- AbsRel of metric depth at both frames;
- IoU of predicted moving-object masks against the ground-truth object annotations. No reported result was found on Lacuna for moving-object segmentation IoU on this split, so all methods will be run by us.
The decisive subset is collinear movers. These are ground-truth moving pixels whose true flow has Sampson distance to the ego-motion epipolar line below one pixel. By construction, line-only methods cannot flag them.
The first decisive check is that depth-bounded attention detects these pixels at substantially higher recall than both the full-line ablation and Deep Epipolar Flow's subspace model. It must also at least match the two-stage rigid-residual pipeline.
The second check is scale stability. On KITTI raw sequences we chain two-frame scale estimates and measure metric translation drift against ground-truth odometry. We compare the dynamic-weighted scale fit with the unweighted one, especially on sequences with heavy traffic.
The third check is robustness to calibration error. We perturb focal length by 5 to 20 percent and measure how motion-detection false positives rise. This exposes the dependence inherited from Metric3D v2's canonical camera transform, and tests whether the learned segment width absorbs it.
Finally, we evaluate zero-shot on nuScenes front-camera sequences, using LiDAR-derived depth for AbsRel and annotated moving boxes for detection recall. This tests whether the geometric bound transfers across cameras as EAFormer's results suggest it should.
References
- Epipolar Transformers
- Epipolar Attention Field Transformers for Bird's Eye View Semantic Segmentation
- Look Around and Pay Attention: Multi-camera Point Tracking Reimagined with Transformers
- Metric3D v2: A Versatile Monocular Geometric Foundation Model for Zero-shot Metric Depth and Surface Normal Estimation
- Upgrading Optical Flow to 3D Scene Flow Through Optical Expansion
- Unsupervised Deep Epipolar Flow for Stationary or Dynamic Scenes
- Dynamic View Synthesis from Dynamic Monocular Video
- Decoupling Dynamic Monocular Videos for Dynamic View Synthesis
- 4RC: 4D Reconstruction via Conditional Querying Anytime and Anywhere
- LiDARTouch: Monocular metric depth estimation with a few-beam LiDAR
- Monocular Visual-Inertial Depth Estimation
- Are we ready for autonomous driving? The KITTI vision benchmark suite
- SPAD: Spatially Aware Multi-View Diffusers
- Split4D: Decomposed 4D Scene Reconstruction Without Video Segmentation
- ObjectFusion: Multi-modal 3D Object Detection with Object-Centric Fusion