Aiming Feature Compactness at the Class Pairs That Look Alike in Very-High-Resolution Imagery

In sub-meter satellite and aerial images, most segmentation errors come from a handful of class pairs that look nearly identical: barren land against farmland or background clutter, low vegetation against trees, recently dead crowns against bare soil. Medical imaging has studied this "visual mimic" problem for years. A shared background such as lung tissue or skin tone dominates training, and models learn the cue the classes share rather than the small differences between them. The strongest geometric fix in remote sensing, In2NeCT, treats every class pair alike. It fixes the classifier to an equiangular simplex, so every class direction sits at the same angle from every other, and it pulls each class's features tightly toward its vertex in all directions. We propose to keep that maximally separated classifier and change where compactness is spent. Features are squeezed only along the few directions that decide the confusable pairs. The decision boundary between classes $a$ and $b$ under a fixed classifier is perpendicular to the difference of their vertices, so for those pairs only the feature spread along that axis matters.

The claim is narrow and testable. Errors on look-alike pairs are governed by within-class spread along the pair's decision axis, not by total feature spread. A loss that targets this spread should improve the confused pairs more than isotropic compactness does, at the same cost. We also test a resolution-dependent prediction: the advantage should grow as ground sampling distance coarsens from aerial (0.3 m) toward satellite (1–1.5 m) scales, because mixed pixels at object edges bring the pairs closer together.

What prior work establishes

Three lines of evidence motivate the proposal.

From medical imaging, DISCOVR shows that contrastive self-supervision on echocardiograms collapses because repeated anatomy dominates the representation. Learning with Counterfactual Explanations for Radiology Report Generation finds that report generators latch onto shared organ appearance instead of the lesion. DualAttNet reduces chest X-ray false positives by giving "which disease" and "where" separate supervision. All three point the same way: the shared signal has to be actively suppressed. None of them gives a geometric account of which feature directions matter for which pair, and that is what we add.

From remote sensing, In2NeCT supplies the method we build on. It uses a fixed equiangular-tight-frame classifier plus a class-averaged contrastive loss, and reports a 19.5% relative IoU gain on LoveDA's rare "barren" class at about 10% extra training time. Its authors and the research file flag that equidistant geometry ignores the fact that some classes overlap far more than others. A natural reading of that limitation is to make related classes closer, as in hierarchy-aware prototypes. We argue the opposite for accuracy. The equiangular frame already maximizes the smallest angle between any two classes. Any hierarchical reshaping must shrink some angles, and the angles that would shrink are exactly the ones between mimics. The free choice lies on the feature side, in how compactness is allocated. This contrast with the hierarchy reading is what makes the proposal different from In2NeCT, not a variant of it.

Finally, the high-resolution literature sets the regime and the motivation for studying resolution. Scattered tree death contributes to substantial forest loss in California shows that 30 m Landsat products miss about 71% of dead trees that sub-meter NAIP imagery resolves. Classification of Bark Beetle-Induced Forest Tree Mortality using Deep Learning separates overlapping Yellow and Red infestation stages only at centimeter drone resolution, and finds that color jitter destroys the hues those stages depend on. Between these two scales, at roughly 0.5–1.5 m, mimic pairs are expected to merge, yet that range is where wall-to-wall satellite mapping actually runs.

Core Claim and Mechanism

Let $v_1,\dots,v_K$ be the fixed unit vertices of the equiangular classifier over $K$ classes. Let $z$ be a pixel's feature after normalization to the unit sphere, and let $\mu_c$ be the running mean feature of class $c$. For a confusable pair $(a,b)$, define the decision axis $u_{ab} = (v_a - v_b)/\lVert v_a - v_b \rVert$. The proposed auxiliary loss is

$$ \mathcal{L}_{\text{pair}} = \sum_{(a,b)\in P} \pi_{ab} \sum_{c\in\{a,b\}} \mathbb{E}_{z \in c}\big[\big((z-\mu_c)^\top u_{ab}\big)^2\big], $$

where $P$ is the set of mimic pairs and $\pi_{ab}$ is the pair's symmetric confusion rate under a plain cross-entropy model on a held-out validation split, renormalized to sum to one. The loss penalizes spread only along the axes that decide mimic errors and leaves other directions free. Those free directions can still carry boundary, texture, and context information that segmentation needs. The rationale comes from a two-class Gaussian approximation, in which the misclassification rate depends on the gap between projected means divided by the projected standard deviation. The fixed frame sets the gap, so the projected spread is the only remaining lever.

Like In2NeCT's branches, $\mathcal{L}_{\text{pair}}$ is used only during training and adds no inference cost. The set $P$ is chosen once from validation confusion and never from test data. We report both a fixed top-$k$ choice ($k=3$) and a threshold choice so that results do not hinge on this selection.

Research Program

We build three things.

The first is a diagnostic. For any trained segmenter on LoveDA, ISPRS Vaihingen, and ISPRS Potsdam, we compute the per-pair confusion matrix and the per-pair projected Fisher ratio, meaning the squared mean gap divided by the summed projected variance. We then test whether In2NeCT's reported gains come mostly from reduced mimic-pair confusion or from reduced majority–minority crowding. The answer is useful whether or not the new loss wins, because it tells the field which failure the equiangular frame actually fixes.

The second is the loss itself, implemented as a drop-in on In2NeCT's backbones (UNetFormer, MANet, LSKNet).

The third is a controlled resolution sweep. LoveDA's 0.3 m imagery is degraded by area averaging to 0.6, 1.2, and 2.4 m, with labels resampled by majority vote. We track how the confusion on each mimic pair and its Fisher ratio change with pixel size, and whether the pairwise loss's margin over isotropic compactness widens as predicted. As a secondary, forest-specific setting, we run the same analysis on the GaoFen-2 mangrove task from Remote Sensing Forestry Similarity Convolution. There, shrubs that look like dwarf mangroves are the known false-positive source, so the problem is a one-pair version of the mimic case.

Baselines

The naive reference is the same backbone trained with cross-entropy alone, with identical crops, schedule, and augmentation. Following Kapil et al., the augmentation is geometric only, without color jitter. For orientation, LoveDA reports a supervised HRNet at 49.79% test mIoU, rising to 52.14% with multi-scale training and testing. We rerun our own cross-entropy baseline rather than relying on that number.

The strongest existing competitor is In2NeCT. It is the only method in the file that regularizes class geometry in very-high-resolution segmentation, and it targets the closest failure mode. Its reported result is a 19.5% relative IoU improvement on LoveDA "barren". No absolute In2NeCT mIoU on LoveDA, Vaihingen, or Potsdam was found on Lacuna, so we reimplement it on the same backbones. Each method gets the same number of hyperparameter trials, tuned on the same validation split. For In2NeCT that means the contrastive weight and temperature; for ours, the loss weight and $k$. Each configuration is trained with three seeds, and we report the mean and spread. Beating In2NeCT means a mean mIoU gain beyond the seed spread, together with a lower confusion rate on the pre-registered mimic pairs, on at least two of the three backbones.

A simpler competitor is pair-weighted cross-entropy. It upweights pixels of mimic classes by $\pi_{ab}$ and changes the loss, not the geometry. It isolates whether the benefit comes from attention to those classes rather than from the directional constraint.

Two ablations isolate the key ingredient. In the first, $u_{ab}$ is replaced by random unit directions while the total penalty magnitude is kept the same. In the second, the penalty is spread isotropically, which is effectively In2NeCT's compactness term reweighted toward the mimic classes. If either ablation matches the full loss, the decision-axis idea is not what drives the gain.

Why not just…?

Why not just use In2NeCT and turn up its compactness weight? This is the real threat. Isotropic compactness also shrinks spread along $u_{ab}$, so with enough weight it could match the targeted loss. The isotropic ablation above is exactly this alternative under an equal tuning budget. If it matches, we report that the directional view adds diagnostic insight but no method, and the per-pair Fisher analysis remains the contribution.

Why not make similar classes closer, as a hierarchy-aware prototype geometry would? Moving prototypes closer reduces the margin between the pairs that already fail, which should raise their confusion. We include a hierarchy-shaped fixed classifier (forest, agriculture, and barren grouped; built structures grouped) as an additional arm. We predict lower mimic-pair accuracy and possibly milder error severity, and the experiment decides.

Why not just use higher resolution or a web-pretrained foundation backbone? Open-Canopy reports that DINOv2 and CLIP pretraining did not significantly beat ImageNet initialization on 1.5 m satellite imagery. SelvaBox reaches only 48.60 RF1₇₅ even at centimeter resolution, with ambiguity acknowledged as inherent. Higher resolution helps, but it is not available for wall-to-wall satellite mapping, which is why the resolution sweep asks how much of the mimic problem the loss recovers at the coarser scales.

Why not an edge-plus-texture dual-stream network like EffiXB3? It was validated only on close-up leaf crops against plain backgrounds, and it doubles the backbone cost. It also addresses a different confusion: classes with the same color but different shape. Barren land and farmland at 0.3 m differ in texture and context more than in edges. We do not treat it as a primary baseline, though a Canny-channel input variant is cheap to add if reviewers request it.

Proposed Experiments and Decisive Checks

The main comparison covers the five arms above on LoveDA, Vaihingen, and Potsdam across three backbones. LoveDA is evaluated on its official test split, and the other two on their standard splits. We report mIoU, per-class IoU, confusion on each pre-registered mimic pair, and the projected Fisher ratio. A second experiment repeats the comparison on LoveDA's urban-to-rural and rural-to-urban transfers, training on the source domain only. The question there is whether targeted compactness survives a change of background. The reference gap is CBST at 41.32% versus an oracle at 45.67% mIoU for rural-to-urban, as reported in LoveDA.

The result counts as decisive in favor of the idea only if three things hold. The full loss lowers mimic-pair confusion more than both the random-direction and isotropic ablations. That improvement is concentrated on the pairs in $P$, not spread evenly across classes. Its margin over In2NeCT grows monotonically from 0.3 m to 2.4 m in the resolution sweep. If the margin is flat across resolutions, or the random-direction ablation performs as well, we conclude that mimic errors in this regime are not mainly a variance-along-the-boundary problem.