Motion estimators blur velocities across object silhouettes. When they do, two objects that move differently end up joined by a thin band of intermediate motion, and any segmentation built on that motion merges them. This proposal treats the leak as a topological event: a change in which regions are connected. In plain terms, we build a graph over pixels (or LiDAR points), weight each edge by how different the estimated motion is at its two ends, and ask for the cheapest path between two objects, meaning the path whose single worst step is smallest. If that worst step is small, motion has bled from one object into the other. The loss pushes the flow apart at exactly that one edge. A matching term pulls each object's motion together along its own cheapest internal path. Because only connected components are involved, the computation is a sort followed by a union-find pass. That is near-linear and exact over the whole frame. It sidesteps the cubic cost that has confined topological losses to small patches.
The segmentation and motion problems feed each other through this single object. Segmentation masks say which components should exist. The flow field defines the order in which pixels join into components. Each gets a gradient from the disagreement. Joint models today couple the two through feature concatenation (SegFlow), local geometric smoothness (OGC), or spring-like rigidity (Let It Flow). None of them has a term that fires specifically when two objects become connected through their motion. That is the failure we target, and the place where it matters most is non-rigid, thin, small objects such as pedestrians and cyclists.
Core Claim
The claim is that 0-dimensional persistent homology computed on a filtration by motion difference is cheap enough to run exactly over full frames and point clouds during training. Persistent homology tracks when connected components appear and merge as a threshold sweeps upward. Here the threshold is motion difference, so each merge is a moment when two regions start to look like they share motion. Used as a loss coupled to predicted or ground-truth instance masks, this reduces cross-object motion bleeding and object merging more than a local boundary-weighted loss with the same supervision. It also works without ground-truth flow, and it does not assume rigidity, because connectivity survives smooth deformation.
Let $G=(V,E)$ be a 4-neighbour pixel grid or a k-nearest-neighbour point graph. Let $f_i$ be the estimated flow (or scene flow) at node $i$, and give each edge the weight $w_{ij}=\lVert f_i-f_j\rVert$. The minimax distance $d(u,v)=\min_{P:u\to v}\max_{(i,j)\in P} w_{ij}$ is the threshold at which $u$ and $v$ first join a common component. Equivalently, it is the largest edge on their path in the minimum spanning tree. For instance masks $A$ and $B$ with margins $m_{\text{sep}}>m_{\text{in}}$, the loss is
$$\mathcal{L}_{\text{topo}}=\sum_{A\neq B}\big[m_{\text{sep}}-d(A,B)\big]_+^2+\sum_{A}\big[\max_{u,v\in A} d_A(u,v)-m_{\text{in}}\big]_+^2 .$$
Here $d(A,B)$ is the smallest minimax distance between any point of $A$ and any point of $B$. The quantity $d_A$ is the minimax distance computed on the subgraph induced by $A$. Each hinge term is a function of a single critical edge, so its gradient reaches only the two endpoint flows of that edge. This is the motion-field analogue of the "critical pixels" in Topology-Preserving Deep Image Segmentation. All terms come out of one Kruskal pass over edges sorted by $w$, with union-find carrying instance labels. The sort dominates the cost, which matches the overhead Rieck et al. identify for filtrations.
This is not new topology. Maximin-path affinity losses already exist for neuron segmentation in electron microscopy. What is new is making the motion field itself the filtration, so that the topological gradient sharpens velocity discontinuities, and closing the loop so that the same quantity also trains the segmentation.
Research Program
The first component is the loss and its GPU implementation. We need a batched edge sort, a union-find with label bookkeeping that records the first cross-instance merge edge for every instance pair, and the internal bottleneck edge for every instance. At 1080p a 4-neighbour grid has about 8M edges. We will measure wall-clock time against the backbone's forward pass. We will also measure the cost of TopoNet-style 65×65 patch persistence on the same frames. This tests directly whether the cubic bottleneck described for TopoNet is avoidable for this class of errors. A secondary variant handles holes, such as a hollow object or the gap between a cyclist's frame and wheel. In 2D, holes can be counted by running the same component pass on the complement, so they stay near-linear. We will add this variant only if the component-only loss leaves measurable hole errors.
The second component is the supervised 2D arm. A RAFT-style recurrent flow network (RAFT, which refines flow at 1/8 resolution from an all-pairs correlation volume) gets a lightweight instance-mask head. On synthetic data with object-index maps, the ground-truth masks supply $A,B$. On real video, the predicted masks supply them, and a symmetric term moves the mask head's cut toward high-persistence merges in the flow. We apply the loss at both 1/8 and full upsampled resolution. The point of the full-resolution pass is to test whether learned convex upsampling still leaks at silhouettes.
The third component is the self-supervised 3D arm, where the idea matters most. We reproduce the OGC loop (OGC), which alternates single-frame mask prediction with rigid registration driven by a self-supervised flow teacher. We then add $\mathcal{L}_{\text{topo}}$ on the kNN point graph using predicted masks. In one variant we replace the rigidity consistency for the object classes OGC fails on. The question is whether connectivity under motion can stand in for rigidity on articulated and deforming objects.
The fourth component is the obvious degenerate solution, which we must rule out: the flow and masks could agree trivially, for example with one giant mask or uniform flow. The photometric or Chamfer flow terms, together with OGC's own losses, remain the anchors. We track the number of predicted instances and flow variance as collapse diagnostics.
Baselines
The naive reference is the same backbone with no coupling term. In 2D that is RAFT plus a mask head trained with the standard flow and mask losses. In 3D it is OGC as published. Every other variant must beat this at equal steps, data, and hyperparameter budget. We will tune each variant's loss weight on the same grid of values, because topological losses are known to be sensitive to this weight (Hu et al.).
The strongest existing joint 2D method is SegFlow. It couples a ResNet-101 segmentation branch and a FlowNetS flow branch through bidirectional feature concatenation. It reports a "J-mean of 0.748" on DAVIS and an "EPE of 4.06" on Monkaa Clean, against 5.60 for FlowNetS alone. Because its flow backbone is far weaker than RAFT, we run it two ways: as published, for reference, and as SegFlow-style feature coupling grafted onto our RAFT backbone, with identical training data. Beating the grafted version on boundary-band error and bleed counts, without losing mean EPE or DAVIS J, is what counts as a win.
For LiDAR, the strongest competitors are Let It Flow and OGC. Let It Flow is test-time joint optimization of flow and hard and soft rigid clusters. It reports an "EPE of 0.031m" on Argoverse 2 dynamic pedestrians, against 0.062m for NSFP. OGC reports "54.4 AP" on KITTI-SF, against 62.4 AP for its supervised counterpart. We will run Let It Flow's released configuration on the same scans and report its per-frame optimization time beside our feed-forward time. For a fair test of the loss itself, we also add $\mathcal{L}_{\text{topo}}$ as an extra energy term inside Let It Flow's optimizer. Beating 0.031m pedestrian EPE as an amortized model would be a strong result. Matching it in one forward pass would still be useful. Improving it when the term is added inside the optimizer isolates the loss from the issue of amortization.
The key ablation is a local mask-boundary loss given the same masks. It penalizes $\lVert f_i-f_j\rVert$ falling below the margin on every edge that crosses an instance boundary, and penalizes it rising above the margin on every interior edge. This is the learned analogue of the mask-guided smoothness switching of Sun et al. (2013). It uses identical information, so it isolates the one ingredient that is new: the global bottleneck selection of critical edges. A second ablation applies TopoNet's patch persistence to the predicted mask only, not to the flow. It separates "topology helps the masks" from "topology computed on motion helps the motion."
Why not just…?
Why not just penalize flow smoothness across mask boundaries locally? This is the most serious threat, and it is exactly the key ablation above. The local loss spends its gradient evenly on every boundary edge, most of which already separate correctly. A single leaking corridor two pixels wide, where a pedestrian's arm meets a background car, barely moves its average. The topological loss puts all of its gradient on that corridor. If the local loss matches ours on bleed count and boundary-band EPE, then the global bottleneck structure is not worth having. We would then report the cheaper loss.
Why not just use RAFT, whose convex upsampling already keeps boundaries sharp? RAFT's reported gains are relative ("reduced the end-point-error (EPE) by 30%" on Sintel Final, "16% reduction in F1-all" on KITTI-2015). We found no reported result on Lacuna for RAFT's error specifically at motion boundaries. Its upsampler is a local learned filter, and it needs dense ground-truth flow, which the LiDAR setting lacks. The 2D arm uses RAFT as the backbone, so any gain is measured on top of it. If RAFT already shows near-zero bleed counts on Sintel, the 2D arm becomes a negative result and the contribution narrows to the self-supervised 3D arm.
Why not just cluster the estimated flow afterward, or use edge-aware interpolation? Flow-then-cluster pipelines inherit the leak, because a blurred bridge looks like common fate. Let It Flow reports that two-step clustering "frequently leads to under-segmentation." On SAPIEN, OGC reports 6.3 AP for DBSCAN against 55.6 for joint optimization. EpicFlow interpolates sparse matches along image-edge geodesics. It assumes photometric edges coincide with motion boundaries, which fails on textured or low-contrast objects. Our filtration uses motion difference, not intensity. We will report bleed counts on Sintel sequences split by low versus high foreground-background contrast to test that difference directly.
Why not just apply TopoNet's patch persistence? Its patches are 65×65 and stitched with relative homology. It was evaluated on static binary masks, where it cut Betti error on ISBI12 "from 3.187 to 0.429." A leak between two large objects can span more than a patch, and persistence on the mask says nothing about the flow. The mask-only TopoNet ablation and the runtime comparison settle both points.
Proposed Experiments
In 2D, we train on FlyingThings3D using its object-index maps and evaluate on MPI Sintel Clean and Final and on Monkaa Clean. We report mean EPE, EPE within a 5-pixel band around ground-truth flow discontinuities, and a bleed count. The bleed count is the number of ground-truth object pairs whose minimax flow distance, under the predicted flow, falls below 1 pixel per frame. It is a motion analogue of Betti-number error, computed with the same union-find code applied to ground-truth masks. Segmentation is evaluated on DAVIS with region similarity J, contour accuracy F, and temporal stability T. For Sintel, no absolute EPE for EpicFlow or RAFT was found on Lacuna, so all Sintel comparisons use our own re-runs.
In 3D, we evaluate on KITTI-SF (AP), SAPIEN (AP, articulated objects), and Argoverse 2. On Argoverse 2 we report EPE per dynamic class, with pedestrians and cyclists reported separately, because that is where rigidity breaks.
The decisive checks are three. First, the topological loss must reduce bleed count and boundary-band EPE beyond the local mask-boundary loss at equal tuning budget, without raising mean EPE. Second, in the OGC loop it must raise pedestrian and cyclist accuracy, or SAPIEN AP, when rigidity is relaxed. This would be the evidence that connectivity substitutes for rigidity on deforming objects. Third, its full-frame cost must remain a small fraction of the forward pass at 1080p while patch persistence does not. If the first check fails, the global formulation is unjustified. If the second fails, the method reduces to a modest 2D boundary regularizer. We will state that outcome plainly.
The method does not address OGC's "never-moving" objects, because a parked object produces no motion difference to filter on. We will report static-class AP separately rather than let averages hide it.
References
- SegFlow: Joint Learning for Video Object Segmentation and Optical Flow
- OGC: Unsupervised 3D Object Segmentation from Rigid Dynamics of Point Clouds
- Let It Flow: Simultaneous Optimization of 3D Flow and Object Clustering
- Topology-Preserving Deep Image Segmentation
- A Persistent Weisfeiler-Lehman Procedure for Graph Classification
- RAFT: Recurrent All-Pairs Field Transforms for Optical Flow
- A Fully-Connected Layered Model of Foreground and Background Flow
- EpicFlow: Edge-preserving interpolation of correspondences for optical flow