Research
Sparse All-Layer Connector for Domain Generalised Semantic Segmentation
Sparse All-Layer Connector for Domain Generalised Semantic Segmentation Overview Research area: Computer vision — domain generalised semantic segmentation (DGSS), multi-foundation-model feature fusion

- arXiv
- 2610.15660
- Published
- 2026-10-11
- Authors
- Ruoyu Guo, Xin Kun Lin, Maurice Pagnucco, Yang Song
AI summary
Sparse All-Layer Connector for Domain Generalised Semantic SegmentationOverview
Research area: Computer vision — domain generalised semantic segmentation (DGSS), multi-foundation-model feature fusion, and transfer learning.
Technical level: Advanced. The paper assumes familiarity with transformer encoder hierarchies, cross-attention, sparsity-inducing projections (Sparsegen), and standard DGSS evaluation protocols (synthetic-to-real transfer).
Scope: A single paper (arXiv:2610.15660v1, 11 Oct 2026, CC BY-NC-ND 4.0) proposing a cross-depth, sparsely-selected connector for fusing two frozen foundation-model encoders, evaluated on four model pairings across three DGSS settings and five driving-scene datasets.
What This Paper Is About
Existing methods that combine multiple foundation models for segmentation all fuse features between depth-aligned layers — layer l of one model with layer l of another — implicitly assuming that useful information lives at the same depth in both models. The authors show this assumption is shaky: models pretrained under different objectives develop different representation hierarchies and different depth-wise sensitivity to domain shift. The paper's goal is to replace the fixed depth-aligned pairing with a learned, sparse, cross-depth fusion that lets each layer draw on whichever earlier layers of the other model are actually informative.
Key Contributions
- Sparse All-Layer Connector (SALC). A multi-model DGSS fusion module in which each query layer can aggregate features from all preceding candidate layers of the other encoder, rather than only its depth-aligned partner. Selection is sparse and is controlled per layer and per token by a learned sparsity factor.
- Token-wise adaptive sparsity via Sparsegen. Importance scores over candidate layers are predicted by an MLP and projected into a sparse weight distribution (Sparsegen, Laha et al. 2018) with a sparsity factor λ predicted from the depth-aligned candidate feature, so the number of active layers adapts to both depth and image content instead of being a fixed K.
- Candidate dropout regularisation. Two instantiations — uniform drop (fixed probability for all candidates) and frequency-based drop (drop probability scaled by historical selection frequency via EMA statistics, with a target usage ρ = 1/N̄). The frequency-based version strengthens sparsity, reduces cross-domain variation, and encourages exploration of alternative informative layers.
- Empirical and analytical validation. Results across four foundation-model combinations and three DGSS settings, plus layer-selection analyses (weight distributions, activation frequency, preceding-weight ratio, λ across depth) and ablations isolating sparsity control, dropout, candidate scope, fusion direction, and fusion strategy.
Main Findings
- Depth-aligned fusion is not reliably optimal. Comparing depth-aligned pairing against randomly paired layers between CLIP and DINOv2 (sampled independently for each model over 40+ seeds, trained on GTAV and evaluated on Cityscapes, BDD100K and Mapillary) produced mixed results, indicating performance is sensitive to how layers are matched.
- The two models have opposite depth-wise domain sensitivity. Using Maximum Mean Discrepancy averaged over all six domain pairs of four domains, CLIP's discrepancy is lowest at middle layers and rises toward the end, while DINOv2's decreases monotonically with depth.
- Best average results on the main benchmarks. GTAV → {Cityscapes, BDD100K, Mapillary}: SALC with DINOv2-CLIP averages 69.40 mIoU, +1.58 over the depth-aligned MFuser baseline (67.82) and +1.13 over the strongest single-foundation-model method SoMA (68.27). SYNTHIA → {C, B, M}: SALC reaches 52.99 with DINOv2-CLIP, +2.65 over MFuser (50.34).
- Largest single-domain gain. +4.16 mIoU over DepthForge on GTAV → Cityscapes (73.20 vs 69.04, DINOv2-DepthAnythingV2).
- Depth-aligned fusion can hurt under large domain shift. On SYNTHIA → {C, B, M}, multi-model baselines DepthForge (48.27 avg) and MFuser (50.34 avg) fall below the single-encoder CLOUDS (52.07 avg); SALC does not.
- SAM-CLIP is the weak case. Gains on the SAM-CLIP combination are smaller and occasionally slightly negative (e.g. 63.80 vs 63.29 for MFuser on G, but 46.61 vs 46.93 on S). The authors hypothesise this stems from SAM's weak layer-wise structure when paired with CLIP, and note the analysis is in an appendix that is truncated in the supplied content.
- Adaptive, token-wise sparsity matters. Replacing token-wise λ with a fixed λ or a layer-wise λ both reduce average mIoU to 67.84, i.e. 1.56 below full SALC — fixed λ ignores the growth of the candidate pool, layer-wise λ loses the per-token adaptivity needed for dense prediction.
- Frequency-based dropout beats uniform and no dropout. No dropout 68.98, uniform dropout 67.85, frequency-based (full SALC) 69.40. Over three independent runs, frequency-based dropout had the smallest standard deviation (≤ 0.11 average), while uniform dropout showed 0.89 on DINOv2-CLIP and 0.30 on DINOv2-SigLIP.
- SALC beats other fusion strategies. No fusion 65.76, depth-aligned linear connector 67.50, cross-depth attention 68.16, cross-depth Top2 routing 67.77, SALC 69.40 — i.e. cross-depth fusion helps, but the dynamic sparsity is what closes the gap.
- Broad candidate access and bidirectionality both help. Restricting candidates to the most recent 2 or 4 layers drops average mIoU by 0.37 and 0.12 respectively; allowing fusion in only one direction gives 66.99 (CLIP→DINOv2) or 68.49 (DINOv2→CLIP) versus 69.40 for bidirectional.
- The learned selection is backbone-specific but domain-stable. CLIP draws primarily on DINOv2's shallow layers plus the depth-aligned one, while DINOv2 prefers CLIP's middle layers — an asymmetry the authors attribute to DINOv2's shallow layers capturing local structure and CLIP's middle layers being more transferable. Cross-domain disagreement is concentrated in a small subset of layers, and most candidates are selected occasionally rather than collapsing to a fixed subset. λ shows much higher cross-domain variability at deeper layers than at shallow ones.
- Parameter efficiency. SALC has 9.59M trainable parameters, versus 141.79M for MFuser, 11.65M for FADA, 4.9M for SoMA, 3.78M for Vireo, 2.99M for DepthForge and 2.99M for Rein.
Methodology in Plain English
The setup uses two frozen pretrained encoders (e.g. DINOv2 and CLIP) that both look at the same image and each produce a stack of 24 transformer layers. The last-layer features from both are concatenated and fed to a Mask2Former decoder that produces the segmentation map. Only the connector and decoder are trained.
The new connector changes which layers talk to each other. Instead of wiring layer l to layer l, for each layer in one model the module collects features from all layers up to that depth in the other model, and decides which of them are worth using:
- It normalises the collected candidate features (to stop deep layers dominating purely by magnitude) and scores each candidate with a small MLP.
- It feeds those scores through Sparsegen, which turns them into a weight distribution that is exactly zero for candidates below a threshold and sums to one over the rest. The threshold is controlled by a sparsity factor λ that is itself predicted from the depth-aligned candidate feature — so λ can differ for every layer and every spatial token. Large λ means "use few layers"; small λ means "use many."
- It takes the weighted sum of candidates and projects it into the other model's feature space, adding it residually.
Because the candidate pool grows with depth, the module could over-rely on a few layers. The authors counter this with candidate dropout: during training, candidate layers are randomly masked out of the weight vector and the remaining weights are renormalised. The frequency-based variant tracks how much weight each candidate has historically received (via exponential moving averages) plus the average number of active candidates per token, and drops over-used layers more aggressively using p_i = p_max · [max((ū_i − ρ)/(1 − ρ), 0)]^γ. Dropout is training-only.
Training uses standard Mask2Former losses (binary cross-entropy, dice, and classification) and is implemented on top of two existing frameworks — MFuser for the DINOv2-CLIP, DINOv2-SigLIP and SAM-CLIP pairings, and DepthForge for DINOv2-DepthAnythingV2.
Why This Matters
Impact on research. The paper challenges a design default that is baked into most multi-foundation-model DGSS work — that layer l should pair with layer l. The MMD analysis provides concrete evidence that depth-wise domain sensitivity differs across pretrained models, and the ablation table shows the alternative (cross-depth with dynamic sparsity) is worth roughly 1.9 mIoU on average over a depth-aligned linear connector in the same framework. It also shows that adding a second model can be actively harmful under large synthetic-to-real shifts unless the fusion is selective, which reframes "more models" as a design problem rather than a free win.
Real-world applications (domain-shift-sensitive perception):
- Autonomous driving and driver-assistance systems trained in simulation or one city and deployed in another (the paper's GTAV/SYNTHIA → Cityscapes/BDD100K/Mapillary setting is exactly this).
- Robotics and outdoor inspection, where lighting, weather and camera hardware shift between deployment sites.
- Medical or aerial imagery segmentation, where acquisition devices and protocols vary and labelled target data is unavailable.
- Any pipeline that already runs several frozen foundation models and wants to combine them without retraining them or paying a large parameter budget.
Industry relevance. SALC adds 9.59M trainable parameters on top of frozen backbones — far below MFuser's 141.79M — while training on a single NVIDIA RTX 6000 Ada GPU with 48GB of memory. That makes multi-foundation-model fusion practical for teams that cannot fine-tune large encoders, and the dropout regularisation costs nothing at inference.
Future Directions
- Fixing the SAM-CLIP case. The paper's own limitation section (truncated here) attributes smaller gains on SAM-CLIP to SAM's weak layer-wise structure; how to make cross-depth selection work when one encoder's hierarchy is poorly organised remains open.
- Adapting the sparsity budget itself. λ is predicted per token and per layer, but the analysis shows deeper layers carry most of the cross-domain variability; whether sparsity should be scheduled or regularised differently with depth is not resolved.
- Extending beyond four model pairings and three settings. The evaluation covers CLIP, SigLIP, DINOv2, SAM and DepthAnythingV2 in three DGSS protocols; whether the same selection patterns and gains hold for additional model types, modalities and non-driving domains is untested.
- Understanding why the learned patterns are backbone-specific. The authors observe asymmetry (CLIP→DINOv2 shallow, DINOv2→CLIP middle) and offer an interpretation, but a predictive account of which depth pairings will help for a new model combination would be more useful than post-hoc visualisation.
- Cost/benefit of dropout statistics. Frequency-based dropout requires per-SALC EMA tracking of weight and active-count statistics; the sensitivity to EMA momentum, γ and p_max (set to 0.99, 2 and 0.4 here) is reported only as fixed values.
Target Audience
Researchers and graduate students working on domain generalisation, domain adaptation, or multi-encoder fusion for dense prediction; practitioners who want to combine frozen foundation models without large-scale fine-tuning; and readers already familiar with transformer feature hierarchies and segmentation decoders who are looking for a concrete critique of depth-aligned fusion and a lightweight alternative. Beginners will find the intuition accessible but the Sparsegen formulation and DGSS benchmarking conventions demanding.
Authors’ abstract
Domain generalised semantic segmentation (DGSS) has recently benefited from combining multiple foundation models, such as vision-language and vision foundation models, to leverage their diverse representations for generalisation. Existing multi-model approaches share a common design choice: cross-model fusion is restricted to depth-aligned layers, implicitly assuming that mutually beneficial information resides at the same depth across models. However, foundation models pretrained under different objectives may develop distinct representation hierarchies, making the optimality of depth-aligned fusion questionable. Moreover, we observe that the foundation models exhibit different depth-wise domain sensitivity. Motivated by these observations, we propose a Sparse All-Layer Connector (SALC) that enables each layer to access information from preceding layers of another model. As the number of accessible layers grows with depth, dense aggregation may hurt generalisation. SALC therefore learns to adaptively select a sparse subset of informative layers. We further introduce a candidate dropout regularisation that strengthens sparsity and encourages SALC to explore diverse layers, leading to more robust selection. Across four foundation model combinations and three DGSS evaluation settings, the proposed design demonstrates stronger generalisation than conventional depth-aligned fusion. The code is available at https://github.com/RuoyuGuo/SALC.