Some segmentation models must outline wires, bicycle spokes, insect legs and antennas. These models are trained on carefully annotated data that rarely looks like the images they are later used on. A common fix for such train/test mismatch is "domain bridging": the model also sees intermediate versions of both training and test images in which the cues that differ between datasets, such as texture, color and noise, have been removed. The model is then asked to give the same prediction on the original and the simplified image. The most effective recent bridge removes those cues by adding blur-like Gaussian noise. That is exactly the wrong operation for thin objects. A structure one or two pixels wide looks like fine texture to such a filter, so it disappears before any alignment happens.
This proposal builds a bridge that strips texture while keeping thin structures. It replaces noise with edge-aware smoothing, which flattens surfaces but stops at sharp intensity changes, and blends in a thin-edge rendering of the image. It also replaces a second step that erases thin objects: the usual cleanup of the model's own guessed labels on test images. That cleanup shrinks each guessed mask toward its interior; we replace it with a filter that keeps the centerline of each structure. The two-sentence version is this. Bridges built from noise erase the very structures that thin-object segmentation exists to recover. A bridge designed to let one-pixel structures survive, together with label cleanup that does not shrink them away, should let a thin-object segmenter trained on composited data adapt to natural photographs without target labels.
Why the obvious combination fails, and what is new
Three lines of prior work sit near this intersection, and each, when moved to thin objects, breaks in a specific way.
The first line is degradation bridging. DiDA adds forward diffusion noise to source and target images to build a sequence of intermediate domains, and trains a time-conditioned encoder to stay consistent across that sequence. It reports 76.8% mIoU on GTA5→Cityscapes on top of MIC. Its premise is that noise destroys domain-specific high frequencies while sparing shape, and that premise is false for slender objects. DiDA supplies our training recipe, consistency across a graded sequence of degraded images, and also motivates the proposal by being the design that fails here.
The second line is boundary-aware adaptation. Shallow Features Guide UDA at Class Boundaries aligns shallow edge features across domains and warps semantic features toward boundaries, reaching 53.5 mIoU on GTA5→Cityscapes. It also erodes the guessed target masks class by class so that training only uses confident interiors. For an object whose interior area is near zero, erosion deletes it entirely. This paper constrains our design: we keep its insight that boundary pseudo-labels are noisy, but we need a filter that does not depend on interior area.
The third line is edge-domain bridging for sketch and patent retrieval. IDAMA maps product photos to edge maps before matching them to patent drawings. CBNC with randomized binary thin edges segments objects and renders them as thin binary edges, lifting Sketchy top-1 accuracy from 40.9% to 50.0%. Both show that an edge rendering removes photographic nuisance, so they supply the endpoint of our bridge. But both throw away the native-resolution intensity detail that BiRefNet shows to be necessary for tiny-pixel structures. BiRefNet feeds un-downsampled image patches to its decoder and adds explicit gradient supervision. We therefore never replace the input with edges. The edge rendering serves only as one end of a consistency path, and the segmenter keeps BiRefNet's full-resolution references.
What is new is the bridge's design criterion. The bridge must have a measurable property, thin-structure survival, that noise-based bridges lack. We pair it with pseudo-label cleanup that keeps a structure's centerline rather than its interior.
Core Claim
Fix a family of bridge operators $B_t$, with strength $t \in [0,1]$, that map an image to an intermediate version of it. Define the survival of thin structures at level $t$ as
$$\mathrm{Surv}(t) = \frac{1}{|T|}\sum_{p \in T} \mathbb{1}\big[\, c_p(B_t(x)) \ge \tau\, c_p(x) \,\big].$$
Here $T$ is the set of ground-truth thin pixels, meaning those within two pixels of the mask's skeleton in regions of width at most three pixels. $c_p(x)$ is the local contrast across the structure at pixel $p$, and $\tau$ is a retention fraction (we use 0.5).
We also measure how quickly each bridge removes the dataset-identifying signal. To do this, a small classifier is trained to tell source images from target images, and we record its accuracy on bridged images; we call that accuracy domain separability. Our claim is that a bridge whose survival stays high while domain separability falls gives larger adaptation gains on thin structures than Gaussian degradation does at matched separability.
Our bridge interpolates from the image toward an edge-aware smoothed version, using a guided or L0-style filter, with a thin-edge rendering overlaid. As $t$ grows, texture and color statistics vanish but high-contrast slender lines remain. Under Gaussian noise, by contrast, $\mathrm{Surv}(t)$ should collapse at small $t$. Computing both curves on ThinObject-5K and DIS5K is the first and cheapest test of the whole idea.
Research Program
The segmenter is BiRefNet with a PVTv2 backbone, chosen for training throughput. Training on the target domain uses a mean-teacher self-training loop, in which a slowly updated copy of the model produces the guessed target labels. The student receives two signals. It gets supervised loss on source images and on their bridged versions $B_t(x_s)$ with source masks. On target images, it is trained to match the teacher's prediction on $x_\text{tgt}$ when given $B_t(x_\text{tgt})$, following DiDA's degraded-image consistency. A time embedding conditions the encoder on $t$, as in DiDA.
Guessed target labels pass through a skeleton-aware filter instead of erosion. We compute the skeleton of each predicted component and keep a skeleton pixel only if two conditions hold. The teacher's predictions must agree across at least two bridge levels, and the pixel must stay connected to a confident body region or to a long skeleton branch. The kept skeleton is then dilated back to its predicted width, and unkept boundary pixels are ignored rather than labeled background. This targets the failure that erosion causes. It also counters the "over-eager" segmentation of background fences that TOS-Net reports, because isolated background lines tend not to connect to the confident foreground.
The analysis program measures three things across bridge families: survival curves, domain-separability curves, and the downstream thin-pixel gain. Its purpose is to test whether survival at matched separability predicts adaptation gain. If it does, survival becomes a design rule for future bridges. If it does not, the paper reports that noise bridges fail on thin objects for some other reason.
Baselines
The naive reference point is BiRefNet trained only on ThinObject-5K and applied directly to the target. ThinObject-5K is built by compositing refined objects onto varied backgrounds, so this measures the composited-to-natural gap with no adaptation. The ceiling is BiRefNet trained with full supervision on the target training split. BiRefNet's paper reports a 6.8% average $S_m$ gain over IS-Net on DIS5K, but the file gives no absolute $S_m$ value, so we report our own reproduced oracle number rather than quoting one.
The strongest existing adaptation competitor is DiDA's Gaussian bridge implemented on the identical BiRefNet and mean-teacher pipeline. It shares our compute budget, the same number of bridge levels, and the same tuning sweep over the maximum strength $t$. On the urban benchmark we also report DiDA's published 76.8% mIoU on GTA5→Cityscapes with MIC. However, no per-class thin-category result for DiDA was found on Lacuna, so the thin-class comparison relies on our reruns.
The second competitor is the boundary-aware method of Cardace et al. with class-wise erosion, rerun on the same backbone. Its published reference is 53.5 mIoU on GTA5→Cityscapes.
Two ablations isolate our ingredients. In the first, we swap only the bridge (Gaussian versus edge-aware) while keeping the skeleton filter. In the second, we swap only the cleanup (erosion versus skeleton-aware) while keeping our bridge. Beating the strongest competitor means a gain in target $IoU_{thin}$ larger than the seed-to-seed spread across three seeds, with no loss on whole-object $S_m$. It also means recovering a meaningful fraction of the source-only-to-oracle gap.
Why not just…?
Why not just use strong photometric augmentation? Color jitter, random blur and texture randomization on source images also remove dataset-specific appearance, need no target data, and are the most serious threat to this proposal. They differ from our method in one testable way: they never use unlabeled target images and never enforce consistency there. We run a source-only model with augmentations matched to our bridge's operators, including edge-aware smoothing applied as a random augmentation. If it matches our method, the contribution reduces to "edge-aware smoothing is a good augmentation," and we will report it that way.
Why not just turn DiDA's noise down? At small noise levels thin structures do survive, but the texture gap does not close either. The survival-versus-separability curves answer this directly. If some Gaussian level reaches our separability without losing survival, the Gaussian bridge at that level is the right baseline and our bridge has no advantage. The DiDA rerun tunes noise strength over the same sweep for exactly this reason.
Why not just feed Canny edges as an extra input channel? The file's evidence argues against raw gradients. TOS-Net reports false positives from ungated gradient streams on background clutter, and perceptual grouping work notes that machine edges are noisy and unorganized. An edge channel also does nothing about the gap in RGB appearance. We include a Canny-channel BiRefNet trained on source and evaluated on target to measure this.
Why not just keep erosion but with a smaller kernel? Any erosion radius of one pixel or more deletes structures two pixels wide, and a radius of zero is no filtering at all. The cleanup ablation reports thin-pixel recall of the kept guessed labels against hidden target masks for erosion radii 0 to 2 versus the skeleton filter.
Proposed Experiments
The main adaptation setting uses ThinObject-5K as the labeled source. Unlabeled target images come from the DIS5K training split, with masks hidden. Evaluation is on the DIS5K test splits and on HRSOD using $IoU_{thin}$, $S_m$ and the boundary-detail error $MAE_{BD}$ used by ESNet.
A second setting runs GTA5→Cityscapes and Cityscapes→ACDC on the same pipeline with a segmentation head. There we report per-class IoU on poles, traffic lights, signs and bicycles, plus trimap boundary accuracy following Cardace et al. The ACDC split matters because fog and night conditions lower thin-structure contrast. That should stress our bridge's reliance on contrast, so it is where we expect our method to be weakest.
The decisive checks, in order of cost, are as follows. The first is the survival and separability curves, which require no training. If Gaussian noise does not lose survival faster than edge-aware smoothing at matched separability, we stop. The second is the bridge-swap ablation at fixed cleanup. The third is the matched-augmentation baseline, which decides whether target-side consistency matters at all. The fourth is a fence-and-mesh subset of HRSOD and COIFT images, selected by hand, where we count background thin false positives to test whether the connectivity filter reduces TOS-Net's documented over-segmentation.
References
- Towards Unsupervised Domain Bridging via Image Degradation in Semantic Segmentation
- Shallow Features Guide Unsupervised Domain Adaptation for Semantic Segmentation at Class Boundaries
- Intermediate Domain Alignment and Morphology Analogy for Patent-Product Image Retrieval
- Co-segmentation Without any Pixel-Level Supervision with Application to Large-Scale Sketch Classification
- Bilateral Reference for High-Resolution Dichotomous Image Segmentation
- Deep Interactive Thin Object Selection
- Making better use of edges via perceptual grouping
- ESNet: Evolution and Succession Network for High-Resolution Salient Object Detection