liveBook · Manning

Fallback

As explained in Machine Learning System Design

A fallback is an alternative behavior or implementation used when the primary behavior or system cannot operate normally.

Suppose an inventory prediction system depends on external data, and that data stops arriving. The primary model may be healthy but unable to make a useful prediction. A fallback is a backup response or implementation that lets the system keep making decisions when its primary approach fails, is unavailable, or produces an unacceptable answer. section 13.4

Choose a fallback that remains useful under the failure you expect:

  • Keep a simpler baseline alongside the main model. It can return an answer in the required format when the primary prediction fails. section 8.1
  • Use a secondary model trained on different data or built with a different algorithm. One design relies on stable features first and uses a wider feature set to correct its output when appropriate. section 13.4
  • Use rules for simple cases or when a stable, predictable response matters more than a model prediction. Decide in advance which inputs or conditions select each response. section 13.4

Inventory predictions with several backups

An inventory system can first fall back to a model using only significant features, then to a time-series model less dependent on external features, and finally to sales resembling the previous week’s, adjusted for expected events and holidays. Data-drift and quality alarms trigger the switch between layers. section 13.5.1

A fallback is not just an error message: it should provide a usable answer when normal prediction cannot. Plan both the alternative and the condition that activates it. Keeping a simple baseline available can make that plan easier to maintain. section 13.4 section 8.1

How Machine Learning System Design covers it

How deep it goes
Defines the backup role and compares model and rule-based designs, then illustrates tiered switching without specifying implementation code.
Examples
Uses equipment-failure prediction and an inventory system with feature-based, time-series, and previous-week-sales backups.
What it assumes
Assumes familiarity with a primary ML model but defines fallback from the basic idea of a backup plan.
What you can do after
Operate/configure it by choosing backup responses and conditions that switch predictions when drift, quality problems, or model failures occur.
How it connects
Connects fallbacks to baseline models, feature drift monitoring, data quality, and rule-based systems.

Also explained in

Compare how 15 books explain fallback →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.