Palaeontologists trained a language-model-like system on fossil records to reconstruct biodiversity across hundreds of millions of years. The analysis suggests that three of Earth’s “Big Five” mass extinctions were gradual declines rather than sudden catastrophes.