Graceful Failure Across Disasters: Does Training on Damage Order Keep Satellite Models from Inverting Severity?

When a building-damage model trained on satellite images from past disasters is deployed on a new one, it gets worse. The important question is how it gets worse. A model that calls a "major damage" building "destroyed" is still useful to a response team. A model that calls a destroyed building "undamaged" sends help to the wrong place. Standard classifiers are trained with cross-entropy, a loss that treats the four damage levels (undamaged, minor, major, destroyed) as unrelated labels, so a far miss costs the same as a near miss. Distance-aware losses charge more for predictions that land further from the true level. They have been shown to produce "smarter mistakes" in text rating and in regression-style tasks, but nobody has tested whether that benefit survives, or grows, when the test images come from a region and disaster the model has never seen.

The claim we will test is that building severity order into training makes a model's errors under geographic shift grow mostly into neighboring damage levels, while cross-entropy errors grow into far misses. We will also test whether this benefit requires putting distance into the training signal, or whether a cheap fix does as well: take an ordinary cross-entropy model and choose the prediction that minimizes expected distance at inference. That comparison is what makes the project decisive rather than another loss-function leaderboard. If the inference-time fix matches, the practical recommendation is simple, and we will report it as such.

Core Claim

Under leave-one-disaster-out evaluation on xBD, we expect distance-aware training to lower the shift amplification of far misses. We define that quantity as the ratio of the rate of errors two or more levels off (and specifically destroyed→undamaged) on the unseen event to the same rate on held-in events. The expected mechanism is representational. A distance-aware loss arranges the network's internal features along a single severity direction. That direction is anchored in physical change between pre- and post-disaster images, so it should transfer across regions even when roof materials and debris spectra do not. Cross-entropy is free to separate classes using region-specific texture cues. When those cues change, a building can jump to any class, including the far end of the scale. The prediction implies that a post-hoc distance-minimizing decision rule applied to a cross-entropy model will recover in-distribution far-miss rates but not out-of-distribution ones. The reason is that under shift, cross-entropy places confident mass on the wrong end of the scale, and no decision rule can undo that.

Relation to Prior Work

The distance-aware side supplies the methods. A Simple Log-based Loss Function for Ordinal Text Classification introduces Ordinal Log-Loss (OLL), which penalizes probability on each wrong class by its distance raised to a power $\alpha$. It reports off-by-one accuracy of 92.5% versus 90.9% for cross-entropy on Amazon Reviews. Better autoregressive regression with LLMs via regression-aware fine-tuning trains the expected value of the softmax against the true target with squared error (called RAFT). It reports RMSE 0.45 versus 0.78 for cross-entropy on Amazon Wireless. Earth mover's losses on cumulative distributions, as used in Advancing Sequential Numerical Prediction in Autoregressive Models, and rank-threshold models such as Deep and interpretable regression models for ordinal outcomes complete the family. All of these were evaluated in-distribution on text, faces, or tabular data. We reuse them unchanged and move the question to geographic shift.

The closest prior work is Universal Domain Adaptation in Ordinal Regression. It argues that class-clustering adaptation harms ordinal data and aligns source and target along a continuous manifold with adversarial and pairwise ranking terms, reaching MAE 9.36 versus 11.23 on AFAD→UTKFace. It motivates our hypothesis that ordered representations transfer better. It differs from us in three ways: it needs unlabeled target data and adversarial training, it studies face age, and it never asks whether the loss alone changes the type of error. We use source-only training with no target access, which matches disaster response, where there is no time to adapt.

The geographic side motivates the problem and constrains the design. Position: Mission Critical – Satellite Data is a Distinct Modality in Machine Learning reports post-disaster models losing as much as 30% accuracy on unseen sites. It also argues that random splits create an illusion of performance, so every split here holds out whole events. Pyramid Pooling Module-Based Semi-Siamese Network treats damage as an ordinal continuum but trains with dice, focal, and weighted binary cross-entropy. It reports per-class F1 of 0.90, 0.41, 0.65, and 0.70, which shows adjacent-class confusion remains even with careful weighting. WILDS constrains our expectations. Invariance methods rarely beat plain empirical risk minimization on real geographic shifts, so we do not propose a new robustness algorithm. We change only the geometry of the loss. Fine-tune Smarter, Not Harder shows that low-rank adaptation (LoRA), which fine-tunes only small added weight matrices, beats full fine-tuning on geographic hold-outs (87.57% vs 82.07% mIoU on Sen1Floods11). That makes LoRA a necessary comparison axis. Finally, Reducing Supervision Uncertainty Induces Model Miscalibration warns that changing how sharp the supervision is changes confidence. This is a direct threat: any gain might come from softer outputs rather than from distance. Our ablations are designed around it.

Research Program

We train one fixed pre/post-disaster siamese segmentation-and-classification network on xBD (xBD), keeping the building localization stage identical across conditions and varying only the damage-classification loss. The losses are cross-entropy, class-weighted focal cross-entropy, OLL with $\alpha \in \{1, 1.5, 2\}$, the cumulative earth mover's loss, RAFT expected-value loss, a rank-threshold (cumulative logit) head, and a direct scalar regression head. The protocol is leave-one-event-out over the 19 events, with results aggregated by disaster type and by continent. All hyperparameters are selected on a separate held-out event, never the test event and never a random split.

We then run three analyses. The first measures the error-distance profile on each unseen event: the full confusion matrix, the far-miss rate, and the destroyed→undamaged rate, each divided by its held-in counterpart. The second applies a Bayes decision rule to every trained model. This rule picks the class $\hat{y} = \arg\min_j \sum_i p_i\,|i-j|$, where $p_i$ is the predicted probability of level $i$. It separates what training contributes from what the decision contributes. The third is a representation probe. We fit a one-dimensional linear severity probe on held-in penultimate features, freeze it, and measure its Spearman correlation with true damage on the unseen event. If the mechanism holds, probe transfer should predict the reduction in far-miss amplification across losses and events.

A second ordinal geographic task tests generality. We bin PovertyMap-WILDS asset wealth into quintiles and use the WILDS out-of-country splits. There a native regression baseline exists, and WILDS reports ERM Pearson correlation falling from 0.60 in-distribution to 0.45 out-of-distribution.

Baselines

The naive reference point is plain cross-entropy with argmax decisions, trained with the same backbone, schedule, and augmentations as every other condition. The strongest existing training recipe for xBD is the weighted dice, focal, and binary cross-entropy mixture of PPM-SSNet. We reimplement its loss on our backbone so that architecture is held constant. The comparison anchors are the paper's own per-class F1 of 0.90, 0.41, 0.65, and 0.70, and the xBD dataset baseline's weighted F1 of 0.2654. For leave-one-event-out far-miss rates we found no reported result on Lacuna, so we will establish the baseline ourselves.

The strongest competitor on the actual question is cross-entropy plus the expected-distance decision rule. It costs nothing, needs no retraining, and directly targets far misses. Beating it means a lower far-miss amplification ratio on held-out events at equal or better macro F1, with a bootstrap confidence interval over buildings and consistency across at least two-thirds of events.

The key ablation is ordinary label smoothing, tuned to match the output entropy of the best distance-aware model. It softens supervision without any notion of distance, so it isolates distance from sharpness. We also run each loss under LoRA fine-tuning of a pretrained geospatial backbone as well as under full training, following Fine-tune Smarter, Not Harder. This tests whether distance awareness and parameter-efficient tuning are complementary or redundant. Every condition gets the same number of tuning trials, the same GPU budget, and the same held-out-event selection.

Why not just…?

Why not just pick the least-costly class at inference from a cross-entropy model? This is the real threat, and the project is built to settle it. If cross-entropy probabilities on unseen disasters still rank the true severity sensibly, the decision rule will close most of the gap, and we will report that training-time distance is unnecessary. The experiment that decides it is the direct comparison of far-miss amplification between cross-entropy plus the decision rule and each distance-aware loss plus the same rule. It is paired with the probe analysis, which tells us whether any remaining gap is representational.

Why not just regress a scalar damage score? Regression is the most ordinal method of all. It is included as a condition, and on the binned PovertyMap task it is the native formulation. The concerns are that it pulls predictions toward the dominant undamaged class and cannot express a building that looks equally like "minor" and "major." RAFT's authors found an expected-value softmax edged out a regression head (RMSE 0.45 vs 0.46), a margin small enough that we treat regression as a live competitor rather than a strawman.

Why not just use a domain generalization method or LoRA instead of changing the loss? WILDS found that invariance methods rarely beat ERM on satellite shifts, so we do not expect them to help much. LoRA, however, does help geographically, so we cross it with every loss rather than treat it as an alternative. If LoRA with cross-entropy matches full training with OLL on far-miss amplification, the loss change adds little beyond what preserving pretrained features already gives.

Why not learn a region-specific distance between damage levels? Spatially varying distances between levels are appealing, but they add a learned cost matrix. The simpler fixed $|i-j|$ distance has not yet been shown to help under shift. We will measure whether the fixed-distance loss fails in a region-dependent way, for example whether the confusion structure differs by disaster type, before building anything adaptive.

Proposed Experiments and Decisive Checks

The primary result is the far-miss amplification ratio, and the destroyed→undamaged rate, on each held-out xBD event for every loss, reported with and without the expected-distance decision rule. Secondary metrics are macro and per-class F1, off-by-one accuracy, mean absolute error in damage levels, ranked probability score, and expected calibration error computed on the unseen events. Calibration is included because responders act on probabilities, and Reducing Supervision Uncertainty Induces Model Miscalibration predicts that sharper or reshaped supervision may harm it.

The hypothesis is supported if three things hold. Distance-aware losses must reduce far-miss amplification more than the cross-entropy decision rule and more than entropy-matched label smoothing. The reduction must track severity-probe transfer across events. The effect must reappear on PovertyMap quintiles out of country.

The hypothesis is refuted, and the paper becomes a negative result with a clear recommendation, in either of two cases: the decision rule alone matches the distance-aware losses on unseen events, or label smoothing reproduces their gains. In that outcome, practitioners should train with cross-entropy and pick predictions by expected distance.