Networks that predict a value at every pixel, such as depth or semantic labels, are usually built as encoder–decoders. The encoder shrinks the image into a compact summary, and the decoder expands it back to full resolution. The decoder receives help from skip connections: direct wires that copy high-resolution early-layer features past the compressed middle so that edges and thin structures survive. Those same early layers also respond to low-level traits of the environment, including sensor noise, texture statistics, illumination, and typical edge density. We propose that a large part of the collapse of an indoor-trained depth model on outdoor streets, and of an outdoor-trained model in living rooms, enters through these skip wires and not through the compressed middle. If so, the fix should be applied to the skip pathway alone. Applying it to the whole network or to the input image would remove spatial detail that the network needs.
The work has two parts. The first is a diagnostic that measures, layer by layer, where the cross-environment error comes from. It does this by swapping feature statistics at test time and by tracking how well spatial position is preserved. The second is a training intervention: randomize low-level feature statistics only on the skip path, and check that this keeps the position-tracking property that skips exist to provide. The diagnostic stands on its own as a result. If it shows the bottleneck is the culprit, the intervention is the wrong idea and we will say so.
Core Claim
Our hypothesis is that, under an environmental scope shift (indoor ↔ outdoor), the shift in early-layer feature statistics that skip connections pass to the decoder accounts for a majority of the drop in structural accuracy, meaning relative depth error and depth-boundary accuracy. A skip-only correction should recover more of this gap than an equal-strength correction of the bottleneck or the input, and it should not reduce spatial equivariance in the decoder. By spatial equivariance we mean that features move with the content when the image is shifted or rotated.
Grounding in Prior Work
Two analyses provide the motivation. SEIS measures how well each layer tracks spatial position (its equivariance score $S_{equiv}$) and how stable its spatial basis is (its invariance score $S_{inv}$). In U-Nets it finds that equivariance collapses in the bottleneck and is re-injected by long skips; a multi-task bottleneck on PASCAL VOC reaches $S_{equiv}=0.54$. That paper only tests synthetic 2D affine transforms. We reuse its metric under physical environment shifts.
Ham et al. prove for linear denoising autoencoders that identity skips suppress the variance spike at the interpolation threshold by a factor of $1/d$, where $d$ is the input dimension. Together with Singh et al., who show that transfer pipelines which discard the decoder lose boundary recovery, these results act as a constraint. Removing skips is not a valid fix, so any intervention must leave the skips in place and act on their content.
On the environment side, three papers motivate the indoor/outdoor framing. Mousavian et al. report that their NYU-trained joint model cannot reconcile outdoor depth ranges. GeoNet and DC-NLAR build planar and non-local-similarity priors that hold indoors and plausibly break outdoors.
The closest connecting work is DADA. It uses predicted depth to weight adversarial alignment for synthetic-to-real driving segmentation and improves mIoU from 40.8% to 42.6% on SYNTHIA→Cityscapes. DADA stays within outdoor scenes and aligns high-level outputs. It never asks which architectural pathway carries the shift, and that question is ours.
NeRFmentation improves KITTI→Waymo depth with novel-view augmentation but gets limited or negative gains indoors. This asymmetry suggests the indoor gap is not mainly a viewpoint problem, which is consistent with our hypothesis but does not prove it.
gen2seg could be read as a contradiction. A full Stable Diffusion U-Net with skips, fine-tuned only on Hypersim and Virtual KITTI 2, generalizes to fine structures (51.4 mIoU on iShape versus 16.8 for SAM). Our reading is that web-scale generative pretraining may already make early features insensitive to environment statistics. We test this directly by including a generatively pretrained backbone as one condition. If its skip path shows no environment sensitivity, that bounds our claim to models whose early layers were learned from a narrow scope.
Research Program
We train one encoder–decoder family for monocular depth: a ResNet-based U-Net, plus a transformer-encoder variant. Each is trained on a single environment, either NYU-Depth V2 (indoor) or KITTI Eigen split (outdoor). Each is evaluated on the other environment and on a same-scope shifted set: SUN RGB-D for indoor and Waymo for outdoor.
Indoor and outdoor depth ranges differ by about an order of magnitude, so "wrong scale" would otherwise swamp "wrong structure." We handle this by predicting log depth and reporting errors after per-image least-squares scale-and-shift alignment as the primary structural measure. Raw metric errors are reported separately. We measure boundaries with a depth-edge F-score computed against ground-truth depth discontinuities. NYU and KITTI ground truth differ in density, so the KITTI boundary score is computed only where LiDAR is dense enough, and we state this caveat.
The diagnostic is a statistic transplant. For a target-environment image, we replace the per-channel mean and standard deviation of a chosen feature map with the source-domain running statistics, while keeping its spatial pattern. We do this separately for each skip tensor, for the bottleneck, and for the input. The quantity of interest is the fraction of the source-to-target gap recovered by each intervention. Alongside, we compute SEIS $S_{equiv}$ and $S_{inv}$ at every encoder, bottleneck, and decoder layer on matched source and target batches. This tells us whether target images degrade position tracking in the decoder and whether that degradation is fixed by correcting skips.
The intervention is skip-path statistic randomization during training. With some probability, each skip tensor's channel statistics are re-sampled by mixing them with those of other images and with random perturbations, while the bottleneck path is left untouched. This is deliberately simple. The proposal's novelty is the claim about where to apply it, not a new module.
Baselines
The do-nothing reference is the same U-Net trained on the source environment with standard flips and crops and evaluated cross-environment. Every recovery fraction is computed against this model.
The first strong competitor is input-level photometric alignment: Fourier Domain Adaptation and style-transfer augmentation. These are the photometric baselines NeRFmentation benchmarks against, reaching Waymo REL 0.297 and 0.287 respectively. They matter because they target the same low-level statistics we attribute to skips, but they do it before any layer.
The strongest reported number for out-of-domain depth in the file is NeRFmentation's KITTI→Waymo REL of 0.220 with vertical-translation augmentation, from NeRFmentation. On our within-outdoor shift we will reproduce NeRFmentation's protocol on the same splits. Beating it means matching or improving 0.220 REL without any view synthesis. For the indoor↔outdoor directions there is no reported result found on Lacuna for NYU→KITTI or KITTI→NYU, so we establish these numbers ourselves.
We will also run DADA-style depth-weighted entropy alignment. DADA requires target images, so it gets the same unlabeled target images that we use for statistic estimation, and it is reported as an adaptation upper reference rather than a generalization competitor.
The key ablation applies the identical randomization to all layers, which is the MixStyle-like whole-network version, and to the bottleneck only. All methods share the backbone, data, schedule, and a matched hyperparameter search of 20 trials each, selected on a held-out source split only.
Our claim counts as supported under three conditions. First, skip-only randomization beats input-level FDA and style transfer on aligned relative error and depth-edge F-score in both indoor→outdoor and outdoor→indoor. Second, it matches or beats whole-network randomization on those metrics while keeping decoder $S_{equiv}$ within noise of the unrandomized model. Third, the whole-network variant lowers decoder $S_{equiv}$.
Why not just…?
Why not just do photometric augmentation or FDA on the input? Input alignment changes color and low-frequency spectrum. It cannot change how sensor noise, edge density, or texture scale are re-encoded by early convolutions, and those encodings are what the skips copy forward. The evidence that photometric methods are insufficient so far comes from outdoor-only depth: FDA and style transfer trail geometric augmentation on Waymo (0.297 and 0.287 versus 0.220 REL in NeRFmentation). This is a real threat for indoor↔outdoor, where photometric differences are large. The input-level row of the transplant diagnostic settles it. If input correction recovers as much gap as skip correction, our pathway claim fails.
Why not just normalize or randomize statistics everywhere? Whole-network statistic mixing is the most plausible "works as well" alternative, and we treat it as the primary ablation rather than arguing around it. Our prediction is that perturbing bottleneck and decoder statistics also disturbs the semantic and position signals that SEIS shows are re-injected via skips, costing boundary accuracy. If the whole-network version matches skip-only randomization on every metric including $S_{equiv}$, we will report the diagnostic as the contribution and drop the claim that skip targeting matters.
Why not just use a large pretrained encoder with a light head, or drop the skips? Singh et al. show that discarding decoders loses boundary recovery. Ham et al. show skips control variance, and gen2seg shows a discriminative foundation model scoring 16.8 on iShape thin structures. We still include a frozen pretrained-encoder baseline and a no-skip U-Net, so the boundary cost of these simpler choices is measured on our data rather than assumed. We also include a generatively pretrained U-Net condition, because gen2seg suggests broad pretraining may already remove the skip-path sensitivity we are positing.
Decisive Checks
The first check is the transplant result. Correcting only skip statistics must recover at least half of the aligned-error gap in both directions, while bottleneck-only correction recovers clearly less. If not, the hypothesis is wrong.
The second check is the equivariance result. Target-environment images should lower decoder-layer $S_{equiv}$ relative to source images, and skip correction should restore it.
The third check is the training result. Skip-only randomization should beat FDA and style transfer, and should match whole-network randomization at equal or higher decoder $S_{equiv}$, on NYU↔KITTI, with the Waymo and SUN RGB-D within-scope shifts showing whether the effect is specific to environmental scope or general to any shift. Since SEIS is linear, we add a nonlinear probe that regresses pixel coordinates from features as a robustness check on the equivariance conclusions.
References
- SEIS: Subspace-based Equivariance and Invariance Scores for Neural Representations
- Impact of Bottleneck Layers and Skip Connections on the Generalization of Linear Denoising Autoencoders
- Self-Supervised Feature Learning for Semantic Segmentation of Overhead Imagery
- Joint Semantic Segmentation and Depth Estimation with Deep Convolutional Networks
- GeoNet: Geometric Neural Network for Joint Depth and Surface Normal Estimation
- Indoor Depth Recovery Based on Deep Unfolding with Non-Local Prior
- DADA: Depth-aware Domain Adaptation in Semantic Segmentation
- NeRFmentation: Improving Monocular Depth Estimation with NeRF-Based Data Augmentation
- gen2seg: Generative Models Enable Generalizable Instance Segmentation