Model Registry: Source of Truth for Deployed Models
A model registry is the source of truth for which trained model runs where, turning anonymous artifact files into versioned, staged assets. It matters when you deploy multiple models or need instant rollbacks.
Why it exists
Training a model produces more than just weights. It produces a specific combination of code, data snapshot, hyperparameters, and metrics. Without a system to pin these together, teams lose reproducibility. A model registry exists to solve the artifact identity crisis: it answers the question "what exactly is running in production right now, and how do I get back to it?" It closes the gap between experiment tracking, which is research-oriented, and production operations, which demands stability and auditability.
The mental model
Think of it as a combination of a library card catalog and a state machine for software releases. Each registered model is a catalog entry that points to immutable artifacts, but the entry also carries a lifecycle stage such as development, staging, or production. The registry does not just store files; it governs promotions. Like a library, the catalog is useless if the cards are blank or the books are shelved at random.
How it works
A registry ingests a model artifact, typically a serialized file or container image, along with metadata that includes the training run ID, dataset version, metrics, and dependencies. It assigns a versioned identifier and exposes stage labels. When a deployment pipeline requests the production model, it queries the registry by stage rather than by opaque file path. Advanced registries also capture lineage, linking the model back to the experiment and training data that produced it. Access control separates who can register a model from who can approve a stage promotion.
When to use it
Use a model registry when you have more than one model in production, when multiple engineers or teams share artifacts, or when compliance requires an audit trail of what was deployed and when. It is also critical for A/B testing scenarios where two versions must coexist, and for automated retraining pipelines that need to compare a challenger model against the current champion before swapping them.
When not to use it
Do not introduce a registry for a single static model that never changes, or during early prototyping when the cost of ceremony exceeds the value of traceability. If your team lacks the discipline to enforce stage transitions and metadata standards, the registry becomes an expensive file dump that adds latency without adding clarity.
One canonical example
A fraud detection team retrains its gradient boosted model weekly. The training pipeline completes and logs a new version to the registry with an F1 score of 0.94. A human reviewer promotes this version from staging to production after shadow testing. The serving microservice queries the registry for the current production tag and downloads the associated artifact. When monitoring detects drift two weeks later, the team rolls back in minutes by repointing the production tag to the previous registered version, avoiding a full retraining cycle.
Interview question
What is the key difference between a model registry and a basic artifact repository that merely stores serialized model files?
- a.It performs shadow testing and metric evaluation before approving stage promotions.
- b.It automatically triggers retraining pipelines when production drift is detected.
- c.It governs lifecycle stage promotions and links immutable artifacts to training lineage.Correct
- d.It subsumes experiment tracking by unifying research logs and production operations.
Why? this is the answer
The card emphasizes that a registry does not just store files but governs promotions and captures lineage, whereas a basic repository lacks stage labels and bound metadata. Option D is tempting because the registry closes the gap between experiment tracking and production, yet it complements rather than replaces experiment tracking systems.
Just read this? Test yourself on what you have been reading.
- #mlops
- #model-registry
- #deployment
- #lineage
- #governance
Put your scrolling time to good use
Learn one idea, try a quiz and save useful cards for revision. Tezvyn makes it easy to learn and stay current in your tech field, a few minutes at a time.
The iPhone app is on the way
We are building it. Until it lands, nothing here is held back from you: every interview card, your saved cards, streaks and the job board all work in Safari, plus hundreds of free practice quizzes of thirty questions each. Sign in and it all carries over to the app the day it arrives.
Want it as an icon? Tap Share at the bottom of Safari, then Add to Home Screen. It opens full screen and the cards you have read stay available offline.
We are hiring for this. Open roles that interview on mlops — each one lists the topics its interview covers.
See open roles