What is the model lifecycle?
The model lifecycle is the set of stages a machine learning model passes through: defining its purpose, preparing data, training and validation, deployment, monitoring in production, retraining and finally decommissioning.
Machine Learning Operations is the set of principles, tools and roles that automate these stages; the lifecycle is the stages themselves. The AI system lifecycle is wider, also covering the surrounding system and its context of use.
- Topic
- Infrastructure and runtime
- Also known as
- Machine learning lifecycle, ML lifecycle, model lifecycle management
- Origin
- 2015 NeurIPS technical debt study; 2023 NIST AI Risk Management Framework
How the model lifecycle works
- Plan and design: purpose, assumptions, requirements and data characteristics are documented.
- Development: the model is built, trained, tuned and validated.
- Deployment: the model is piloted and checked for compatibility with existing systems and regulation.
- Operation and monitoring: data, model and serving performance are assessed regularly; drift triggers retraining.
- Decommissioning: the model is retired without increasing risk and its records are kept.
In more detail
Continuous training and feedback loops
Continuous training means retraining the model periodically on new feature data; it relies on a monitoring component, a feedback loop and an automated workflow. Every retraining run includes an evaluation that measures the change in model quality. A feedback loop from the monitoring component to the scheduler starts retraining based on serving performance.
Commonly confused terms
| Term | How it differs |
|---|---|
| AI lifecycle governance | AI lifecycle governance is the organisational framework for approvals, accountability and risk decisions at each stage. The model lifecycle is the set of technical stages the model itself passes through. |
Why the model lifecycle matters for on-premises AI
A 2015 study showed that only a tiny fraction of the code in many real-world machine learning systems is devoted to learning or prediction and that such systems incur massive ongoing maintenance costs. The NIST AI Risk Management Framework recommends that risk management start at planning and design and continue throughout the lifecycle. Versioning data, model and code supports reproducibility and audit traceability.
An insurer keeps every version of its claims model in a model registry with its training data and validation report. A new version goes live after approval; a drift alert starts retraining and retired versions are archived with their documentation.
Common questions
Does the model lifecycle end at deployment?
No. Monitoring, retraining and eventually decommissioning follow deployment. The NIST framework also recommends defining processes for decommissioning AI systems safely.
Is the lifecycle different for large language models?
The stages are similar, but organisations usually select an existing model, fine-tune it and also version their prompts instead of training from scratch. These practices are grouped under Large Language Model Operations.
Related terms
Sources
- Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST, 2023
- Hidden Technical Debt in Machine Learning Systems, NeurIPS, 2015
- Machine Learning Operations (MLOps): Overview, Definition, and Architecture, arXiv, 2022
In the glossary: Glossary, M to Q