Per-Vessel Topology Knobs: One Segmentation Model, Many Connectivity Trade-offs

Models that segment blood vessels, nerves or roads are usually trained to maximize pixel overlap with the annotation. A one-voxel gap barely changes that overlap score, but it can sever a vessel and ruin anything computed downstream, such as a blood-flow simulation or a check of which arteries a patient has. Topology-preserving losses address this. Examples include losses that reward overlap along the vessel centerline and losses that penalize changes in connectivity. Every one of them is mixed with the overlap loss using a single hand-picked weight, and they push in opposite directions: overlap favors dropping faint thin branches, while topology favors bridging gaps and thickening boundaries. In multi-class anatomy the problem multiplies. The Circle of Willis, the ring of arteries at the base of the brain, is labeled as 13 vessel segments. Its thick carotid trunks and its hair-thin communicating arteries need very different balances between overlap and connectivity, so training becomes a 26-objective problem that one global weight cannot serve.

We propose to train a single segmentation network that exposes one "topology knob" per vessel class, so that a user can set connectivity-versus-overlap separately for each segment at inference time without retraining. The bet that makes this tractable is that the trade-offs are nearly separable. Classes occupy disjoint regions of the image, so turning class $k$'s knob should mostly change class $k$'s output. If that holds, the 26-objective problem does not need a model of the full trade-off surface in 26 dimensions. A model that learns each class's one-dimensional trade-off plus weak interactions between neighboring segments should be enough. We test this separability directly, and the rest of the design depends on it.

Core Claim

Many-objective methods are built for the general case. Pareto front learning trains one network, conditioned on a preference vector, to cover every trade-off. Its difficulty is that the space of preference vectors (the simplex) grows exponentially with the number of objectives, and the PaLoRA authors name dozens of objectives as an open problem (Pareto Low-Rank Adapters). Per-class topology in segmentation is not the general case, because its objectives come with spatial structure. We claim that replacing the 26-dimensional simplex with a product of 13 one-dimensional knobs, implemented as one low-rank adapter per class, recovers per-class trade-offs that are close to those of separately trained models. We also claim that the payoff is clinical: setting the knobs per task beats any single fixed weighting on downstream anatomical-variant classification.

Concretely, let $W_0$ be shared backbone weights, $A_kB_k$ a low-rank adapter for class $k$, and $t_k\in[0,1]$ that class's knob. The network weights and the training loss for a sampled knob vector $t$ are

$$W(t)=W_0+\sum_{k=1}^{13} t_k A_k B_k,\qquad \mathcal{L}(t)=\sum_{k=1}^{13}\big[(1-t_k)\,\mathcal{L}^{\text{Dice}}_k+t_k\,\mathcal{L}^{\text{topo}}_k\big],$$

where $\mathcal{L}^{\text{Dice}}_k$ is the soft-Dice loss on class $k$ and $\mathcal{L}^{\text{topo}}_k$ is a topology loss on class $k$ alone. Knobs are sampled independently per class during training.

Relation to Prior Work

Several papers motivate the gap. clDice (clDice) defines a differentiable centerline overlap and mixes it with soft-Dice through a fixed $\alpha$. Betti matching (Topologically Faithful Image Segmentation via Induced Matching of Persistence Barcodes) spatially matches persistent topological features but adds them through one scalar weight. It also reports that topological and overlap gradients conflict. Topograph (Topograph) keeps gradients only from error components that change connectivity, and it runs in near-linear time. None of the three studies the trade-off surface, and none treats classes separately.

Two works constrain the design. The TopCoW benchmark (Benchmarking the CoW with the TopCoW Challenge) shows that strong entries already use in-training topology losses and reach high overlap, so our gains must appear in connectivity and downstream use, not in Dice. Betti matching costs cubic time and must run on small crops. We therefore use Topograph and clDice as the per-class topology losses, because a cubic-time loss multiplied by 13 classes and many knob samples is infeasible.

The method itself comes from PaLoRA, which interpolates task-specific low-rank adapters with a point on the simplex and anneals its sampling from the center outward. We differ in three ways. Our adapters correspond to trade-offs within a single output, not to separate tasks. The control space is a cube of independent knobs, not a simplex. Separability is a hypothesis we measure, not an assumption. Data-driven preference sampling (Data-Driven Preference Sampling for Pareto Front Learning) adapts a Dirichlet mixture so that preferences concentrate on the valid parts of the front. We use it as a competing sampler. Finally, the result that small approximate Pareto sets are NP-hard to find for three or more objectives (Small Approximate Pareto Sets) is a reason to exploit problem structure rather than attempt general coverage.

Research Program

We build the knob model on a standard 3D U-Net trained on TopCoW's 200 paired MRA and CTA scans, using the challenge's 13 labels. Training has two stages. A shared warm-up uses Dice and cross-entropy, because topology losses give misleading gradients when predictions do not yet overlap the target, as the Betti matching paper notes. Adapter training then samples per-class knobs with a center-out annealing schedule borrowed from PaLoRA.

The analysis centers on an interaction matrix. Its entry $(j,k)$ is the change in class $j$'s Dice and connectivity error when knob $k$ is swept with all other knobs held fixed. We expect a nearly diagonal matrix. Any large off-diagonal entries should fall on anatomically adjacent segments, such as a posterior communicating artery and the posterior cerebral artery it joins. If interactions are large, we add adapters for adjacent pairs, guided by the vessel adjacency graph. If even that fails, the separability claim is false, and that is a reportable result.

A secondary binary study on DRIVE and Massachusetts Roads, where the problem has only two objectives, isolates the question of whether adapter-induced trade-offs differ from threshold-induced ones.

Baselines

The naive reference point is the same U-Net trained with Dice plus cross-entropy and no topology term. All other methods are read relative to it.

The strongest existing competitor is a fixed-weight topology-regularized model of the kind that tops TopCoW. We use the same U-Net with clDice or Topograph at a single tuned weight. The TopCoW paper reports that top models exceed 90% Dice on CoW components and reach over 70% balanced accuracy on variant classification. The file has no reported per-class Betti or Topograph error on TopCoW, so we will rerun this baseline ourselves. It receives the same epochs and a hyperparameter search budget equal to the knob model's total training compute. Beating it means matching its Dice within one point while lowering per-class connectivity error on the communicating arteries, and raising variant-classification balanced accuracy when knobs are set per task.

The upper reference is a grid of separately trained fixed-weight models, five global weights each with full training. It gets roughly five times the compute. The knob model succeeds if its per-class trade-off curves fall within the run-to-run spread of the grid.

Two many-objective competitors use the same adapters and budget. The first is PaLoRA over the full 26-objective simplex with Dirichlet sampling. The second is the same model with data-driven Dirichlet-mixture sampling. If either matches the knob model, the factorization is unnecessary.

Two ablations isolate the key ingredient. The first replaces the 13 knobs with one global knob, which tests whether per-class control matters. The second conditions the network on the knob vector through feature-wise modulation instead of per-class adapters, which tests whether tying adapters to classes is what produces separability. A further ablation swaps the per-class linear mix for a smooth Tchebycheff aggregation, to check for non-convex segments of the front that linear weighting would miss.

Why not just…?

Why not just tune one fixed weight, as clDice and Topograph do? For a single structure type this may be adequate. The TopCoW classes, however, differ by orders of magnitude in volume and in how often they are absent, so one weight must under-regularize the communicating arteries or over-thicken the trunks. The single-knob ablation tests this directly. If per-class knobs bring no gain over the best single weight, the proposal reduces to existing practice and we will report that.

Why not just lower the probability threshold per class after training? This is the most serious threat. Lowering the threshold bridges gaps cheaply, needs no retraining, and is itself a per-class knob. Its limitation is that it can only redistribute probability mass the network already assigns. A gap where the network predicts near-zero probability cannot be bridged without also admitting background noise. The test is to sweep thresholds per class on the naive and fixed-weight baselines, then compare the resulting Dice-versus-connectivity curves with the knob model's curves in the same plane. Our claim holds only if the knob curves reach lower connectivity error at matched Dice, particularly on the thin classes. If thresholding matches them, the extra machinery is not justified.

Why not just use full Pareto front learning over all 26 objectives? PaLoRA reports a 31.7-fold memory reduction over PaMaL on NYUv2 and scales to 7 tasks on SARCOS. Its authors still leave dozens of objectives open, and our separability argument predicts that sampling the full simplex wastes budget on combinations that do not matter. The full-simplex and data-driven-sampling baselines above settle this. If either covers the per-class curves as well as the knob model, the factorization is not needed.

Proposed Experiments and Decisive Checks

On TopCoW we report per-class Dice and per-class connectivity error, measured as Betti-0 and Betti-1 errors and Topograph's connectivity-error measure. We also report per-class hypervolume, the area under each class's Dice-versus-connectivity curve, along with the interaction matrix and training cost. Topograph's reported loss time of about 96 ms, against about 327 ms for Betti matching on the Platelet data, sets the expected per-class overhead.

The downstream test extracts a vessel graph from the predicted segmentation and classifies Circle of Willis variants. The fixed-weight model's result is compared with the knob model under two settings: connectivity-favoring knobs on the communicating arteries, and the best fixed weight. The reference point is the >70% balanced accuracy reported by TopCoW.

Three outcomes are decisive. First, the interaction matrix is near-diagonal, or its off-diagonal mass is confined to adjacent segments. Second, the knob model's curves dominate the per-class threshold sweeps on the thin classes. Third, a single trained knob model matches the five-model grid within seed variance. If the first check fails, the many-objective structure is not separable and the full-simplex baselines become the right tool. If the second fails, post-hoc thresholding is enough.

On DRIVE and Roads, the same comparison of adapter curves against threshold curves, with clDice and Betti errors, tests whether the threshold result also holds when there are only two objectives.