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.

A third-party API goes down, and an ML model loses a feature it needs. A fallback is a backup behavior that lets the system keep making decisions when its primary solution fails or is unavailable. It can also take over when a prediction is insufficiently confident or outside an acceptable range. section 13.4

The right backup depends on what can fail and how much disruption the business can tolerate. In equipment-failure prediction, for example, a fallback can help manufacturing continue when the primary model has problems. section 13.4

Common fallback choices include:

  • A simpler baseline model, kept alongside the primary model and used when the primary prediction fails. Its simplicity can make it easier to maintain and scale. section 8.1
  • A secondary ML model trained on different data or with a different algorithm. A dual-model setup can use stable features in one model and a larger feature set to correct its output, selecting an output according to the input or a predetermined rule. section 13.4
  • A rule-based system that provides a stable, predictable response when the model is unavailable or performing poorly. Rules can also handle simple cases while an ML model handles more complex ones. section 13.4

Retail demand prediction

A retail inventory system uses a model trained on a subset of significant features when that subset shows no detected drift or problems. If drift occurs, it can switch to a time-series model such as SARIMA or Prophet, which depends less on external features. As a last resort, it predicts sales from the previous week, adjusted for expected events and holidays. Data-drift and quality alarms trigger automatic switches between these alternatives. section 13.5.1

How Machine Learning System Design covers it

How deep it goes
Describes alternative implementations and selection rules, with a tiered monitoring-and-switching strategy.
Examples
Uses manufacturing equipment-failure prediction and a retail demand system with time-series and previous-week alternatives.
What you can do after
Apply fallback strategies by choosing backup responses and identifying conditions for switching to them.
How it connects
Connects fallbacks to baseline models, rule-based systems, and feature drift monitoring.

Also explained in

Compare how 16 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.