Which Tie-Break Makes Watershed Cuts Converge? Geometric Genericity for Spanning-Forest Segmentation of Sampled Manifolds

A watershed splits a landscape into catchment basins: each point is assigned to the valley that water would drain into. On graphs, a well-established result says this partition is exactly a minimum spanning forest. That is the cheapest set of edges connecting every node to one of the valley-bottom seeds, and the boundary lines are the edges the forest leaves out. The equivalence makes watersheds unique, linear-time and hierarchical. It has a blind spot, though. When a function is sampled at points and edges are weighted by the higher endpoint's altitude, every point's links to its lower neighbours have the same weight. The forest is then decided by tie-breaking, and near basin boundaries the tie-break decides the answer. We argue this is the real reason nobody has connected the discrete spanning-forest watershed to a continuous limit on a smooth manifold, an open question Najman states explicitly. The fix is to make edge weights generic in a geometric way, not an arbitrary one.

Concretely, we propose a lexicographic edge weight: altitude first, steepness second. This keeps the exact spanning-forest/watershed equivalence and, we prove, turns the forest into a steepest-descent drainage tree. We then test the conjecture that its cut converges to the true gradient-flow basin boundaries as the sample grows. We further conjecture that the rate is governed by how uniformly each node's neighbours surround it, which is what $d$-generic perturbation (nudging points so no Delaunay triangle is a near-flat sliver) controls. Random tie-breaking, regular grids and sliver-ridden meshes should fail to converge. As a by-product, protected meshes give a per-point certificate saying which basin labels cannot change under small perturbations of the data.

Core Claim

Several papers establish that watershed cuts are minimum spanning forest cuts. Cousty, Najman and colleagues do so for edge-weighted graphs (Najman et al., Cousty et al.). Gradient Vector Fields of Discrete Morse Functions are Minimum Spanning Forests and Discrete Morse Functions and Watersheds show it for the gradient of a discrete Morse function, a combinatorial analogue of a smooth function's critical points and descent directions. All of these assume a forest that is unique, which requires "basic" functions with no repeated values. That assumption is exactly what fails when a smooth function $F$ is sampled. Under the standard altitude weight $\max(F(p),F(q))$, all edges from a point $q$ to its lower neighbours tie at $F(q)$. In the continuum the matching degeneracy is total: every point above a saddle's height reaches several minima along paths whose highest point is the same.

Our claim has three parts. The first is exact. With edge weight

$$ w(pq) = \Big(\max\{F(p),F(q)\},\; -\frac{|F(p)-F(q)|}{\ell(pq)}\Big), $$

where $\ell(pq)$ is the edge length (intrinsic on surfaces) and pairs are compared lexicographically, Kruskal's algorithm attaches each non-minimum point to its steepest lower neighbour. The argument: all of $q$'s lower neighbours are already in seeded trees by induction, and within the tie group at height $F(q)$ the steepest edge is processed first. The minimum spanning forest is therefore a discrete steepest-descent forest, and all the uniqueness, hierarchy and persistence results of the Morse/watershed papers carry over.

The second part is conjectural and the main empirical target. On random samples whose Delaunay simplices are thick and protected, the per-step direction error of edge-restricted descent is bounded and roughly zero-mean, so it averages out. Lateral drift then grows like $\sqrt{L h}$ over a path of length $L$ with mean edge length $h$, a random-walk estimate, and the cut converges to the continuous basin boundaries at a rate near $h^{1/2}$. On a regular grid the error is systematic: descent snaps to axis directions, giving an error that does not vanish. With slivers or arbitrary tie-breaks the error is heavy-tailed or unstructured.

The third part is practical. A thick, protected mesh turns the forest's tie margin, the gap between the steepest and second-steepest lower neighbour when they lead to different basins, into a certificate. Protection guarantees the mesh does not change under position perturbations smaller than the protection radius. Thickness lower-bounds edge lengths relative to local scale. Together they bound how much any slope can move. That bound scales like the perturbation size times $F$'s Lipschitz constant plus the slope, divided by the shortest edge. A label whose margin exceeds it cannot flip.

Research Program

The work has three strands: a theorem, a convergence study, and a stability certificate.

Theory. The first strand proves the exact Kruskal-equals-steepest-descent statement, including how ties in the second key should be handled. It then states the convergence conjecture precisely: Hausdorff convergence of the discrete cut to the union of basin boundaries of a Morse function on a compact manifold, away from small neighbourhoods of critical points, for samples with density bounded below. We will attempt the proof first in the flat square and on the sphere.

Three papers supply the machinery. From Delaunay stability via perturbations we reuse the result that a $\rho_0\epsilon$-perturbation yields a $d$-generic set with every Delaunay simplex having bounded thickness and $\delta_0$ protection. This is exactly the uniform neighbourhood geometry the averaging argument needs. From Jean-Daniel Boissonnat et al. we use the result that circumcentre displacement scales inversely with thickness, which controls mesh stability. From Graph Laplacians and their convergence on random neighborhood graphs we take the warning that density gradients contaminate naive graph operators, and its $h \approx n^{-1/(m+4)}$ radius as the principled setting for neighbourhood-graph baselines. We will check whether the steepness key is first-order insensitive to sampling density, as a slope ratio should be, while a "lowest neighbour" rule is biased toward long edges.

Relation to prior bridges. Extending the Power Watershed Framework Thanks to Γ-Convergence proves that as an energy exponent $p\to\infty$ on a fixed graph, minimizers converge to a spanning forest. It also shows that the full graph can be replaced by its spanning tree, but leaves the continuous counterpart open. We take the other limit, sample size growing on a fixed manifold, and identify the tie-break as what a continuous formulation must specify. The Graph ∞-Laplacian Eigenvalue Problem shows $p\to\infty$ eigenfunctions locking onto shortest paths, and also flags the continuum limit on random geometric graphs as open. Our setting is a simpler, fully testable instance of the same question.

Stable Delaunay Graphs obtains stability by pruning unstable Delaunay edges, and proves this can drop spanning-tree edges. We instead keep the full Delaunay mesh and stabilise it by perturbation, so the Euclidean MST stays inside the graph. On the Stability of Functional Maps and Shape Difference Operators motivates the general move. It replaces an unstable discrete choice (truncation at $k$ eigenfunctions when eigenvalues cluster) with a geometrically meaningful continuous criterion. Here the analogous unstable discrete choice is the tie-break.

Implementation. Point sets are perturbed with the sequential algorithm, whose expected cost is $O(m)n^2+O(m^2)n$. On surfaces we compare against intrinsic Delaunay meshes from Surface Simplification using Intrinsic Error Metrics, which guarantee no angle below 30°. We then compute the lexicographic forest by Kruskal or by the linear-time collapse algorithm of the Morse-watershed papers, and output the margin certificate.

Baselines

The do-nothing reference is the standard watershed cut. It uses the altitude weight $\max(F(p),F(q))$ with ties broken by vertex index, on the same raw Delaunay graph and with the same seeds at the sampled minima. This is what existing spanning-forest watershed code effectively does. It shows whether the tie problem matters at all; we predict its boundary error does not shrink with sample size.

The random tie-break baseline replaces index order with a random secondary key, in the style of simulation of simplicity. This also produces the "basic" functions assumed by Gradient Vector Fields of Discrete Morse Functions are Minimum Spanning Forests. It isolates the claim that genericity alone is not enough: the forest becomes unique, but should not converge.

The strongest existing competitor is the power watershed of Couprie et al., as formalised in Extending the Power Watershed Framework Thanks to Γ-Convergence. On each equal-weight plateau it resolves ties with a random-walker solve, which is a graph Laplacian with known continuum behaviour, rather than arbitrarily. On a tie-star this amounts to an averaged vote of lower neighbours. That vote may well be first-order correct near a separatrix, so this baseline is a genuine threat. It runs on the identical graph and seeds, and its random-walker exponent gets the same small tuning grid as our method's single hyperparameter (none, apart from the perturbation scale).

No reported result was found on Lacuna for watershed boundary accuracy against a continuous ground truth for any of these methods, so the comparison numbers will be produced here. For the 2D image setting, Real-Time Salient Object Detection with a Minimum Spanning Tree reports 24.6 ms per 300×400 image and the lowest MAE among 12 methods on MSRA-1000, ECSSD and PASCAL-S. The file gives no MAE values, so we will rerun it rather than quote it.

Ablations. Two ablations isolate the key ingredients. The first keeps our lexicographic weight but swaps the graph: regular grid, $k$-nearest-neighbour graph, $\epsilon$-ball graph at the Hein et al. radius, raw Delaunay, and $d$-generic perturbed Delaunay, all at matched average degree. The second keeps the perturbed mesh but replaces the steepness key with a "lowest neighbour" key (average-altitude weight). This separates slope normalisation from genericity. Beating a baseline means a strictly steeper log-log decay of boundary error with sample size on at least two of the three domain families, with non-overlapping confidence intervals across 20 sampling seeds, at equal or lower wall-clock time.

Why not just…?

Why not just break ties randomly, or perturb $F$ into a basic Morse function? That makes the forest unique and satisfies the hypotheses of the Morse-watershed theorems. But the choice it makes at each boundary point carries no geometric information, so labels in a band around every separatrix are essentially coin flips whose width need not shrink. The random tie-break baseline tests this directly. If it converges at our rate, the second key is unnecessary and the contribution reduces to the certificate.

Why not just use the power watershed, which already resolves plateaus? This is the most serious alternative. A lower-neighbour average could converge as well as steepest descent. The difference is cost and structure: it needs a linear solve per plateau, and its soft labels lose the exact forest. The experiment settles it. If power watershed matches our error curves, we will report the lexicographic weight as a cheaper equivalent rather than a better one.

Why not trace streamlines of a piecewise-linear gradient on the mesh? This is how we generate the reference, and it does converge. But it gives up what the spanning-forest view provides: linear-time hierarchies, the equivalence of persistence and morphological dynamics, and operation on graphs without a mesh. If a forest-based method cannot approach streamline accuracy, that tells us the discrete-continuous link Najman asked for has a real price.

Why not skip $d$-genericity and use a $k$-nearest-neighbour graph with large $k$? More neighbours shrink angular gaps, so this could work. The matched-degree ablation is the test. Our expectation is that perturbed Delaunay wins at low degree and on non-uniform densities, where nearest-neighbour stars become lopsided. If $k$-NN wins at equal edge budget, genericity's role shrinks to the stability certificate, and we will say so.

Proposed Experiments

Synthetic domains. On the flat square and the sphere $S^2$, the domains used by Hein et al., we draw uniform and Gaussian-density samples from $10^3$ to $10^6$ points. We define Morse functions with known saddles, such as sums of Gaussian bumps and spherical harmonics. Reference basins come from high-accuracy streamline integration on a fine intrinsic mesh. Metrics are Hausdorff distance between the discrete cut and reference boundaries outside a shrinking radius around critical points, the misassigned-area fraction, and the fitted log-log slope against $h$.

Decisive checks. Three outcomes would decide the claims. The grid with 4-neighbours should show a non-vanishing error under the steepness key; this checks that the slope comparison detects metrication. Perturbed Delaunay should show a slope near 1/2. Raw Delaunay with injected slivers should show heavy-tailed per-sample error that perturbation removes.

Surfaces. On a subset of the roughly 6,000 manifold Thingi10k meshes used by Surface Simplification using Intrinsic Error Metrics, and on TOSCA shapes and the cat point clouds (about 7,000 to 8,500 points), we compute watersheds of smooth intrinsic functions. Examples are low Laplace-Beltrami eigenfunctions and sums of geodesic-distance kernels. We compare original, intrinsically simplified and resampled versions, testing whether the cut is a stable function of the surface rather than of its discretisation.

Stability certificate. We perturb vertex positions with Gaussian noise of increasing scale and measure label-flip rates. A certified label must never flip below its certified radius; any flip is a falsification. We report the certified fraction of points as a function of the perturbation-scale-to-protection ratio.

Image sanity check. We rerun the minimum-barrier MST saliency pipeline on MSRA-1000, ECSSD and PASCAL-S with index versus lexicographic tie-breaking, measuring MAE and runtime. This checks that the change costs nothing in the setting where spanning-forest methods are already used.