A model registry is a centralized, versioned catalog of trained machine learning models that records each model artifact together with its metadata, lineage and lifecycle stage. In AI infrastructure, it is the system of record between training and deployment: training pipelines write new versions into it, and serving platforms read approved versions from it.
Without a registry, teams tend to pass model files through shared folders, object storage buckets with ad hoc names or chat messages, which makes it impossible to answer basic audit questions such as which model is in production, who approved it and which data produced it. The registry turns those answers into queryable records.
How a model registry organizes models and versions
A model registry organizes artifacts as registered models with immutable numbered versions. A registered model is a logical name, such as a fraud classifier, while each version points to one concrete artifact: serialized weights, a container image or an exported graph in a format such as ONNX, SavedModel or safetensors.
The registry rarely stores large binaries itself. It usually keeps metadata in a database and the artifact bytes in object storage, linking the two through a URI and a content hash. The hash matters: it guarantees that the file loaded by a serving system is byte-identical to the file that was evaluated, which prevents silent substitution.
The following table lists the core record types that a mature registry maintains and the question each one answers.
| Record | Typical content | Question it answers |
|---|---|---|
| Model version | Artifact URI, hash, framework, size | Which exact file is this? |
| Lineage | Training run ID, code commit, dataset snapshot | How was it produced? |
| Evaluation results | Metrics on holdout and slice datasets | How good is it, and for whom? |
| Signature | Input and output schema, data types | How must it be called? |
| Stage or alias | Staging, production, archived, champion | Where is it allowed to run? |
| Audit trail | Approver, timestamp, change reason | Who decided, and why? |
Lifecycle stages and promotion workflows
The defining function of a registry is governed promotion: moving a version from candidate to production through explicit, recorded transitions. Older tools used fixed stages, while newer ones favor mutable aliases such as champion and challenger, which can be reassigned to any version without renaming anything.
Promotion is typically gated by automated checks plus human approval. A continuous integration job compares the candidate against the current production version on the same evaluation set, verifies latency and memory budgets, and only then requests sign-off from a model owner or a risk reviewer.
| Stage | Purpose | Typical gate to enter |
|---|---|---|
| Registered | Candidate logged from a training run | Training job succeeded |
| Staging | Integration and load testing | Metrics beat baseline on holdout data |
| Production | Serves live traffic | Approval plus shadow or canary results |
| Archived | Retained for audit and rollback | Superseded or retired by owner |
Because versions are immutable and stages are pointers, rollback becomes a metadata change rather than a redeployment of old files. Reassigning the production alias to the previous version can restore service within minutes, provided the serving layer resolves aliases at load time.
Model registry compared with related components
A model registry is often confused with neighboring MLOps components because they share metadata. The distinction is one of responsibility: the registry governs which artifacts are approved, while other components store experiments, serve predictions or manage features.
| Component | Primary responsibility | Relationship to the registry |
|---|---|---|
| Experiment tracker | Logs every training run and its metrics | Feeds selected runs into the registry |
| Artifact store | Holds raw files and binaries | Stores bytes the registry references |
| Feature store | Serves consistent input features | Registry records which features a model expects |
| Model serving | Runs inference on live requests | Pulls approved versions from the registry |
| Container registry | Stores application images | May hold packaged models the registry points to |
In large language model platforms, the registry also tracks fine-tuned adapters, quantized variants and prompt templates as versioned assets. A single base model may have dozens of derived versions produced by model compression or LoRA fine-tuning, and the registry links each one to its parent so that license and safety obligations propagate correctly.
Choosing and configuring a model registry
Selecting a registry depends mainly on team size, regulatory exposure and existing platform. Open-source options such as MLflow Model Registry suit teams that want portability, while managed registries in cloud ML platforms reduce operational work at the cost of tighter vendor coupling.
| Situation | Recommended approach | Reason |
|---|---|---|
| Small team, few models | Lightweight open-source registry | Low overhead, easy migration later |
| Regulated industry | Registry with enforced approvals and retention | Audit evidence for model risk reviews |
| Many LLM variants | Registry with lineage graphs and aliases | Tracks adapters and quantized copies |
| Multi-cloud serving | Registry decoupled from any one cloud | Avoids duplicate catalogs per provider |
Regardless of the product, a few settings deserve attention: require a signature and evaluation report before registration, enforce role-based permissions on promotion, and configure retention rules so archived versions remain available for the period required by internal policy or regulation.
Limitations and common mistakes
A registry only provides value when it is the single authoritative path to production. If engineers can still deploy models from local files or arbitrary buckets, the catalog drifts out of sync with reality and its audit trail loses meaning.
- Registering without lineage: a version without a dataset snapshot and code commit cannot be reproduced or investigated after an incident.
- Treating stages as approval: moving a pointer is not a review; gates must be enforced by policy, not by convention.
- Storing secrets in metadata: credentials embedded in tags or descriptions leak to everyone with read access.
- Ignoring serving-side caching: if inference servers cache models indefinitely, alias changes do not take effect and rollbacks silently fail.
- Unbounded retention costs: large model weights accumulate quickly, so archival policies should move old versions to cheaper storage tiers.
The simple explanation
A model registry is like a library catalog for AI models. Every time a team trains a new model, it gets a numbered entry with notes on how it was made, how well it performed and who checked it.
When the company wants to use a model in a real product, it does not grab a random file. It picks the entry marked as approved. If the new model misbehaves, the team simply points back to the earlier entry. The key idea is that everyone knows exactly which model is running and why.
How it is used in practice
A mid-sized online lender retrains its credit risk model every month. Each training pipeline run registers a new version with the dataset snapshot ID, the code commit and metrics such as AUC of 0.81 and approval-rate parity across applicant groups. A compliance analyst reviews the evaluation report in the registry before the version can receive the production alias.
In one cycle, version 27 passed offline checks but showed a 4 percent rise in false declines during a two-week canary on 10 percent of traffic. The team reassigned the production alias back to version 26 in under ten minutes, without rebuilding any service. Months later, when a regulator asked which model had decided a specific application, the team answered from the registry audit trail in a single query, with the exact version, approver and training data on record.