liveBook · Manning

Stagnation

Stagnation is a search condition in which successive iterations or generations produce little or no meaningful improvement toward a better solution.

How 2 Manning books explain it

AI Agents in Action, Second Edition

Stagnation detection is the identification of repeated iterations whose outputs do not meaningfully change.

How it is used
Detects diminishing returns in agentic loops and triggers termination or strategy replanning.
How deep it goes
Gives overlap and confidence-plateau checks with example thresholds, plus a workspace-based detector and replanning route.
Examples
Uses a word-overlap termination exercise and a workspace detector that checks findings and confidence trends.
What you can do after
Practice stagnation checks and respond to stalled iterations by terminating or replanning.

Read how AI Agents in Action, Second Edition explains stagnation →

Evolutionary Deep Learning: Genetic algorithms and neural networks

Stagnation is a period during which an evolutionary species shows no discernible improvement in fitness.

How it is used
Uses stagnation to decide when an evolutionary species should be checked for extinction.
How deep it goes
Defines stagnation and exposes max_stagnation as a configuration interval, without detailing the extinction procedure.
Examples
Uses max_stagnation = 25 in a NEAT circles-classification configuration.
What you can do after
Operate NEAT by configuring the generations allowed before species-extinction checks.

Read how Evolutionary Deep Learning: Genetic algorithms and neural networks explains stagnation →

Also covered in

Related concepts

Questions about stagnation

What is stagnation?

Stagnation is a search condition in which successive iterations or generations produce little or no meaningful improvement toward a better solution.

Which Manning books explain stagnation?

AI Agents in Action, Second Edition and Evolutionary Deep Learning: Genetic algorithms and neural networks.

What is the difference between stagnation and iteration limit?

Stagnation is a search condition in which successive iterations or generations produce little or no meaningful improvement toward a better solution. An iteration limit is a configured maximum number of repeated cycles or updates an iterative process may perform before stopping.

What is stagnation part of?

Stagnation is part of metacognition. Metacognition is the capacity to monitor, evaluate, or regulate one's own cognitive processes.

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.