liveBook · Manning

Regression

As explained in Machine Learning System Design

A software defect in which a change causes previously working behavior to fail or deteriorate.

Regression is a defect introduced by a change that makes previously working behavior fail or deteriorate. In machine-learning systems, a model update can improve some test cases while creating new harmful errors elsewhere, so a better aggregate score does not automatically make the release safe. section 13.2

Treat regression as a release decision, not only a test result:

  • Run representative tests and review software-related coverage, while recognizing that tests alone cannot guarantee that a model change avoids harmful outcomes. section 13.2
  • Compare improvements against newly introduced errors instead of relying only on overall performance. section 13.2
  • Use human review when the tradeoff is difficult to judge; responsibility may belong to an ML engineer, product manager, domain expert, or aggregated user-feedback service. section 13.2
  • Test training pipelines to catch regression bugs earlier, increase iteration speed, and expose poor configurability choices. section 10.7

A model that scores better but releases a regression

A final test set contains 100 samples. A new model corrects three previous errors but introduces two new errors elsewhere. Although its overall performance improves, release approval still requires judging whether the new failures are acceptable. section 13.2

How Machine Learning System Design covers it

How deep it goes
Explains regression through release testing, error tradeoffs, human review, and pipeline checks, without detailing defect-isolation techniques.
Examples
Uses a 100-sample test-set tradeoff and pipeline changes that introduce regression bugs as concrete examples.
What it assumes
Assumes familiarity with software releases, test datasets, machine-learning models, and automated training pipelines.
What you can do after
Evaluate model and pipeline changes with tests, error tradeoffs, and appropriately assigned human review before release.
How it connects
Connects regression with machine-learning models, software testing, release cycles, human-in-the-loop review, AutoML, and training pipelines.

Also explained in

Compare how 5 books explain regression →

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.