Foundations to Frontier
Tests

Graceful Degradation

A system degrades gracefully when the loss of a component reduces its performance step by step instead of causing a sudden failure. For learning-based systems this means three things: models that still work when some inputs are missing, monitors that notice when an input has failed silently, and a mode manager that reduces ambition, or hands over to a safe mode, as capability falls. The exercises train perception models on four redundant sensors, compare zero-filling, mean imputation and sensor-dropout training as sensors fail, and add a degraded mode that declines to answer when confidence is low.

Level 0: Foundation

★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.

Losing a sense without losing the way

A driver who loses their glasses slows down; they do not drive at full speed or stop dead in the road. Good machines behave the same way. A robot with four sensors should keep working when one fails, more carefully when two fail, and stop safely when it can no longer see well enough. That only works if the software was built for missing sensors, if it can tell that a sensor is giving nonsense, and if it knows when to hand control to something simpler.

🎮 Reliability lab

4 of 4 sensors available. Test accuracy (M3-3 study, seed 0):

trained on complete data, zero-filled
0.988
trained on complete data, mean-imputed
0.988
trained with sensor dropout
0.992

Degraded mode for the dropout model (answer only when the top probability reaches the level that keeps 99% of inputs with all sensors): answers 98.2% of inputs, with accuracy 0.999; the rest are handed to a safe mode.

Untick sensors to simulate failures. A model trained with sensors randomly missing degrades gracefully; a model trained only on complete data does not know what to do with a missing sensor.

Why engineers care

Aircraft fly-by-wire systems drop from normal law to alternate and direct law as sensors and computers fail, keeping the aircraft flyable with less automatic protection.

📝 Quick check (Level 0)
0/3 answered
  1. 1. Graceful degradation means…
  2. 2. A model trained only on complete data…
  3. 3. When capability falls too far, the system should…

Level 1: Beginner

★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.

By hand

  • Graceful degradation: the property that performance decreases in proportion to the loss of resources, rather than collapsing (also called fail-operational behaviour, in contrast to fail-safe shutdown).
  • Degraded modes and mode management: predefined reduced-capability modes (lower speed, fewer functions, minimal risk manoeuvre) entered on detected faults; in automated driving the minimal risk condition of ISO 21448 and UL 4600, in aviation the fly-by-wire control laws.
  • Missing inputs: zero-filling, mean imputation, and models trained with the same pattern of missing inputs (sensor dropout, modality dropout), optionally with mask indicators as extra inputs.
  • Fault detection and isolation (FDI): finding which component failed, for example from residuals between a sensor and its prediction from the others (analytical redundancy).
  • Sensor fusion: combining redundant measurements weighted by their uncertainty, so that losing one widens the uncertainty instead of removing the estimate.
  • Selective prediction: declining to answer when confidence is low, turning errors into explicit hand-overs.
📝 Quick check (Level 1)
0/3 answered
  1. 1. Analytical redundancy detects faults by…
  2. 2. Sensor dropout means…
  3. 3. A minimal risk condition is…

Level 2: Intermediate

★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.

Training for missing sensors

Exercise 1.

  • Six classes observed through four sensors of five features each; the sensors see different projections of the same hidden prototype, with noise from 0.6 to 1.2 and different offsets.
  • Missing sensors handled by zero-filling with mask inputs, or by mean imputation.
  • Training with sensor dropout: each sensor is removed with probability p in each step, keeping at least one.
  • Accuracy averaged over every combination of failed sensors.

Practice.

  • Train with the failures you expect: drop sensors, modalities or features during training at rates that reflect service experience.
  • Tell the model what is missing with mask inputs, rather than silently filling in values it has never seen.
  • Detect silent failures: a stuck or drifting sensor still reports values; use cross-sensor residuals, range and rate checks.
  • Define degraded modes and their triggers in advance, with clear hand-over behaviour, and test them as thoroughly as the normal mode.
  • Report uncertainty from fusion and models so that downstream planning can adapt speed and margins.
def train(X, y, drop=0.3):
    for each step:
        m = random availability mask, each sensor kept with prob 1 - drop
        inputs = concat(X * repeat(m, features per sensor), m)     # zero-fill plus mask
        gradient step on cross-entropy

def degradation(model, X, y):
    return [mean over masks with f failed sensors of accuracy(model, X, mask)
            for f in 0 .. 3]
🐍 Exercise 1: models that tolerate missing sensors
Implement zero-filling with masks, mean imputation and sensor-dropout training, and measure accuracy over every combination of failed sensors.
📝 Quick check (Level 2)
0/3 answered
  1. 1. Mask inputs tell the model…
  2. 2. A stuck sensor is dangerous because…
  3. 3. Degraded modes should be…

Level 3: Advanced

★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.

Theory

Why complete-data training fails with missing inputs. A network trained only on complete inputs has never seen a sensor reading zero, or the training mean, together with plausible values from the other sensors. Such inputs lie outside its training distribution, and its decision regions there are arbitrary (topic M2-4). Training with sensor dropout makes every pattern of availability part of the training distribution; with mask inputs the network can learn a different weighting for each pattern, approximating the best classifier given the available sensors. One network then replaces up to 2^G − 1 specialists for G sensors.

Why fusion degrades gracefully. For independent unbiased measurements with variances σᵢ², the minimum-variance linear combination weights each by 1/σᵢ² and has variance 1/Σᵢ(1/σᵢ²). Removing a sensor removes one term, so the variance grows smoothly and is never worse than that of the best remaining sensor. The same arithmetic explains why accuracy falls gradually as sensors fail, as long as the model uses what remains.

Why abstention helps. If the model’s confidence is informative, the inputs with the lowest confidence contain a disproportionate share of its errors. Declining those inputs trades coverage for accuracy. With an error cost c_e and a hand-over cost c_h, answering an input with error probability q is worth it when c_e·q < c_h; a calibrated model should answer when its top probability exceeds 1 − c_h/c_e. As sensors fail, confidence falls on more inputs, and the share handed over rises automatically.

📝 Quick check (Level 3)
0/3 answered
  1. 1. Sensor dropout makes missing-sensor patterns…
  2. 2. Fused variance of independent sensors is…
  3. 3. A calibrated model should answer when its top probability exceeds…

Level 4: Expert

★★★★★ Expert⏱ 30 minResearchers: original papers and open problems.

How do zero-filling, mean imputation and sensor-dropout training compare as sensors fail, and what does a degraded mode that declines low-confidence inputs achieve?

History.

  • Fail-operational design was developed for aircraft flight controls and spacecraft in the 1960s and 1970s; Airbus fly-by-wire aircraft (from 1988) degrade from normal to alternate and direct law.
  • R. Isermann and P. Ballé (1997) systematised terminology for fault detection and diagnosis; J. Gertler (1998) wrote a standard text on analytical redundancy.
  • N. Srivastava and colleagues (2014) introduced dropout; N. Neverova and colleagues (2015) used modality dropout for gesture recognition with missing channels.
  • R. El-Yaniv and Y. Wiener (2010) analysed selective classification; Y. Geifman and R. El-Yaniv (2017) applied it to deep networks.
  • ISO 21448 (2022) and UL 4600 (2020) require degraded modes and a minimal risk condition for automated vehicles.

Exercise 2.

  • Three models trained on 1,500 points: trained on complete data with missing sensors zero-filled (with mask inputs), trained on complete data with mean imputation, and trained with sensor dropout (p = 0.3).
  • Mean test accuracy (2,000 points) over every combination of 0, 1, 2 and 3 failed sensors, and accuracy with a single surviving sensor.
  • Degraded mode for the dropout model: answer only when the top class probability reaches the level that keeps 99% of validation inputs with all sensors.

Seed 0, mean accuracy by number of failed sensors:

model 0 1 2 3
complete data, zero-filled 0.988 0.911 0.729 0.474
complete data, mean-imputed 0.988 0.942 0.799 0.548
sensor dropout 0.992 0.979 0.921 0.735

Seed 0, single surviving sensor (sensor 1 to 4, best to worst): zero-filled 0.511, 0.556, 0.490, 0.339; mean-imputed 0.555, 0.718, 0.591, 0.330; sensor dropout 0.869, 0.837, 0.711, 0.524.

Seed 0, degraded mode (threshold 0.884): share answered 0.982, 0.952, 0.819 and 0.435 with 0 to 3 failed sensors, accuracy when answering 0.999, 0.991, 0.980 and 0.957.

Seeds 1 and 2: sensor dropout 0.993, 0.978, 0.921, 0.746 and 0.993, 0.979, 0.919, 0.745; zero-filled 0.990, 0.900, 0.753, 0.516 and 0.987, 0.869, 0.714, 0.462; mean-imputed 0.983, 0.931, 0.813, 0.538 and 0.985, 0.924, 0.788, 0.526. Degraded mode with 3 failed sensors answered 0.508 and 0.566 of inputs with accuracy 0.944 and 0.923.

Findings.

  • Sensor-dropout training degraded gracefully: with two failed sensors it kept 0.919 to 0.921 accuracy in every seed, against 0.714 to 0.753 for zero-filling and 0.788 to 0.813 for mean imputation.
  • It cost nothing with all sensors present (0.992 to 0.993, against 0.983 to 0.990).
  • Complete-data models used a single remaining sensor badly: with only the best sensor left, 0.511 (zero-filled) and 0.555 (mean-imputed) against 0.869 with dropout training (seed 0).
  • The degraded mode kept answered accuracy above 0.92 in every seed even with three sensors failed, by handing over about half of the inputs; with all sensors it answered 98% to 99%.
  • Mean imputation beat zero-filling with one or two failures but not reliably with three, so filling in plausible values is no substitute for training on missing inputs.
🐍 Exercise 2 (research): how do zero-filling, mean imputation and sensor-dropout training compare as sensors fail, and what does a degraded mode that declines low-confidence inputs achieve?
Compare three ways of handling missing sensors as sensors fail, and evaluate a degraded mode that hands over low-confidence inputs.

Graceful degradation in practice

  • Automated driving: perception stacks are trained and validated with sensor dropouts, degraded weather and blocked sensors; the system reduces speed, increases following distance or performs a minimal risk manoeuvre when capability falls.
  • Aviation and space: flight-control laws, redundant air-data systems with voting and analytical redundancy, and spacecraft safe modes that keep the vehicle power-positive and communicating until the ground intervenes.
  • Machine learning services: fallback models, cached answers and rule-based backups keep a service available when a model, a feature pipeline or a data source fails (topic N3).

References

  1. R. Isermann and P. Ballé (1997). “Trends in the application of model-based fault detection and diagnosis of technical processes.” Control Engineering Practice.
  2. J. Gertler (1998). “Fault Detection and Diagnosis in Engineering Systems.” Marcel Dekker.
  3. N. Neverova, C. Wolf, G. Taylor and F. Nebout (2015). “ModDrop: adaptive multi-modal gesture recognition.” IEEE Transactions on Pattern Analysis and Machine Intelligence.
  4. Y. Geifman and R. El-Yaniv (2017). “Selective classification for deep neural networks.” NeurIPS.
  5. ISO 21448 (2022). “Road vehicles: safety of the intended functionality.”
  6. N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever and R. Salakhutdinov (2014). “Dropout: a simple way to prevent neural networks from overfitting.” JMLR.