Trainable Topology Supervision under Structurally Unreliable Pseudo Supervision

Jieyang Zhou, Ziliang Wang, Bin Hu, ying yang, Aoli He, Xianhong Wen, Kehua GuoNeurIPS 2026

TL;DR

When training image segmentation models without human labels, we often rely on AI-generated "pseudo-labels"—which are notoriously messy, full of broken limbs, missing pieces, and phantom holes. Traditional topology losses try to force the model to match the exact connected structure of these targets, inadvertently teaching the model to copy structural garbage. This paper flips the script: instead of blindly matching noisy targets, it extracts soft, reliable structural signals and injects them into training with surgical caution, improving both object detection and structural coherence.

What Problem Does This Paper Address?

In dense prediction tasks like image segmentation, getting pixel-by-pixel accuracy isn't enough. If you're segmenting a walking stick insect or blood vessels, a tiny two-pixel gap breaks a single connected object into two—a massive structural failure despite 99.9% pixel accuracy. To fix this, researchers use topology supervision, which penalizes the model if its predicted number of connected components and holes (known as Betti numbers, $\beta_0$ and $\beta_1$) doesn't match the ground truth.

Here’s the catch: what happens when there is no human ground truth? In unsupervised or teacher–student setups, models learn from noisy "pseudo-masks." Consider Unsupervised Camouflaged Object Detection (UCOD)—finding hidden animals in cluttered scenes without labels. Here, pseudo-labels suffer from severe structural distortions: shattered connections, missing body parts, and background clutter fused to the foreground.

Figure 1: Premise failure of direct topology supervision under structurally unreliable pseudo supervi- sion in UCOD. (a) Fixed pseudo-mask generation introduces substantial supervision noise. (b) In UCOD, structural unreliability is further amplified by weak camouflage semantics, low-resolution pseudo masks, small objects, and strong foreground–background confusion. (c) The resulting pseudo- mask errors frequently appear as missing parts, broken weak connections, and cross-region mislinks.

If you apply standard topology losses here, the premise fails. Forcing a student network to strictly copy the topology of a shattered pseudo-label just bakes those structural errors permanently into the model. The authors ask: When target structures are broken from the start, what topological clues are still worth learning, and how do we feed them into the optimizer without derailing training?

Methods

Built atop a standard dynamic teacher–student pipeline (UCOD-DPL), the authors replace naive target-matching with two novel mechanisms:

  1. Differentiable Persistent-Homology Proxy Loss ($\mathcal{L}_{\text{PHP}}$): Standard topological methods compute and match "persistence barcodes"—exact, computationally heavy maps of where components and holes appear and vanish across probability thresholds. The authors bypass barcodes entirely. Instead, they sweep thresholds across the continuous probability map and track a differentiable soft Euler-characteristic trajectory (essentially a smooth count of vertices minus edges plus faces on the pixel grid). Looking at how this count shifts between adjacent thresholds gives "birth-like" and "death-like" structural activity proxies. Crucially, they use a one-sided "Cap" formulation: it penalizes the student only when it hallucinates excess structural chaos beyond the teacher's noisy reference, falling back to a general complexity penalty when the teacher seems unreliable, and anchoring rough spatial locations via directional moments.
Figure 2: Overview of the proposed reformulation of topology supervision. Trainable topology signals are derived by the differentiable PH proxy loss and conservatively injected into optimization under structurally unreliable pseudo supervision.
  1. Conservative Topology-Consistency Injection: Simply adding $\mathcal{L}_{\text{PHP}}$ to the standard pixel loss causes gradient wars. Instead, the authors regulate the topological gradient before it updates the student:
  2. Scale Balancing & Capping: Rescales the topology gradient relative to the pixel gradient norm (using square-root scaling and a hard relative cap) so topology never hijacks training.
  3. Conflict-Aware Projection: If the topology gradient points in an opposing direction to the pixel gradient (negative inner product), the conflicting component is projected out, forcing the update onto the orthogonal complement of the pixel gradient.

Datasets

No new datasets are introduced; the authors use established benchmarks:

  • Training (Unlabeled UCOD): 1,000 images from CAMO and 3,040 from COD10K (zero ground-truth labels used).
  • Evaluation (UCOD): CAMO (250 images), CHAMELEON (76), COD10K (2,026), and NC4K (4,121).
  • Cross-Task Transfer: Three histology segmentation datasets—CRAG, GlaS, and MoNuSeg—evaluated in the appendix to prove the method works beyond camouflaged animals.

Key Insights and Ideas

  • Don't match noisy structure; cap excess chaos: In ablations, symmetrically matching the teacher's topology ("Match" mode) yielded lower raw Betti-counting errors, but worse actual object detection. Why? Because matching noisy pseudo-labels forces the model to suppress fragile, real object parts just to satisfy a flawed count. One-sided excess control ("Cap") preserves the object while cleaning up artifacts.
  • Unregulated topology losses destroy unsupervised training: Naively adding the proxy loss directly to the pixel loss tanked the weighted F-measure ($F_\beta^w$) on NC4K from 0.7129 down to 0.4956. Gradient projection and norm capping aren't just minor tweaks—they are the difference between collapse and state-of-the-art gains, boosting $F_\beta^w$ to 0.7408.
  • Self-regulating early training: Whether you switch on topology supervision at epoch 0, 5, or 10, task performance is virtually identical. Because early gradients are wild and conflicting, the conservative injection mechanism naturally filters them out until the network stabilizes.

Key Results

Under strict "same-carrier" comparisons using a DINOv2 backbone on the UCOD-DPL framework:

  • Pixel-Level Gains: Averaged across all four COD benchmarks, the method improves weighted F-measure ($F_\beta^w$) from 0.6834 to 0.7097 and drops Mean Absolute Error (MAE) from 0.0610 to 0.0545 (with consistent gains on DINOv1 as well).
  • Topological Reliability: Across all four datasets, theirs is the only tested topology loss that improves pixel-level detection ($F_\beta^w$ +3.85%) while simultaneously slashing connected-component errors ($\beta_0$ down 23.72%, from 8.8374 to 6.7408) and hole-counting errors ($\beta_1$ down 36.32%, from 4.7853 to 3.0474). Existing topology losses (like TopoLoss, TopoSemiSeg, SATLoss, and MATCH) often lowered raw Betti counts by over-suppressing predictions, severely degrading overall detection quality.
  • Qualitative Wins: Visually, the method reconnects thin, broken insect legs and fills in spurious internal holes without erasing delicate foreground regions.

Limitations and Future Work

  • Euler Ambiguity: For 2D binary shapes, the Euler characteristic equals $\beta_0 - \beta_1$ (components minus holes). Because different combinations of components and holes can produce the exact same number (e.g., 2 components with 1 hole equals 1 component with 0 holes), $\mathcal{L}_{\text{PHP}}$ is strictly an event-level proxy—not an exact replacement for true persistence barcodes.
  • Metric Trade-offs: On Betti Matching Error (BME)—a strict feature-wise spatial correspondence metric—some competing topology losses score lower than the proposed method, highlighting a trade-off between strict topological matching and preserving noisy foregrounds.
  • Sensitivity to Over-Weighting: Pushing the topology loss weight too high ($\lambda_{\text{topo}} \ge 4.0$) still degrades pixel-level accuracy. Future work is not explicitly outlined in the main text.

Summary updated

Abstract

Topology supervision relies on meaningful structural targets, yet this assumption can fail under structurally unreliable pseudo supervision. In pseudo-label learning, the topology induced by pseudo masks may already contain distorted components, broken connections, or spurious holes, making direct supervision-side topology fitting unreliable and potentially propagating structural errors. We address this problem by reformulating topology supervision as trainable topology-side correction. Specifically, we propose a differentiable persistent-homology proxy loss that derives topology signals from a soft Euler-characteristic trajectory and threshold-wise structural variation, without computing or matching persistence barcodes. We further introduce a conservative topology-consistency injection mechanism that regulates when, how strongly, and in which direction these signals enter student optimization, while the teacher provides the noisy structural reference. We validate the proposed reformulation in unsupervised camouflaged object detection, a challenging setting where pseudo masks often contain severe structural distortions. Experiments under controlled same-carrier comparisons show consistent improvements in both task-level detection performance and topology-level structural reliability. Additional matched transfer experiments on histology segmentation provide evidence beyond UCOD. These results suggest that, under structurally unreliable pseudo supervision, topology supervision is more effective when derived as trainable proxy signals and introduced into optimization conservatively. Code is available at https://github.com/zhoujieyang/TopoCons.
BibTeX
@inproceedings{zhou2026trainable,
  author = {Jieyang Zhou and Ziliang Wang and Bin Hu and ying yang and Aoli He and Xianhong Wen and Kehua Guo},
  title = {{Trainable Topology Supervision under Structurally Unreliable Pseudo Supervision}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=ge0NKL4C5c},
}
Figure