Back to Blog
MLOps

Training and retraining: how production MLOps pipelines actually work

A practical view of how enterprise models move from raw data to features, experiments, registries, deployment, monitoring, and governed retraining.

Initial training and ongoing retraining are not the same risk. Here's how offline and online eval gates, feedback-loop de-biasing, and governed promotion keep production models from drifting silently.

July 10, 202614 min read
MLOpsModel RetrainingEvaluationsEnterprise AI
AgentTrust OS

Training and Retraining Pipelines

DATA → TRAIN → REGISTER → DEPLOY → MONITOR → RETRAIN

TL;DR
  • Initial training and ongoing retraining are not the same problem — retraining runs on live transactions with real business impact if it goes wrong.
  • Offline evals (backtests, holdout sets) happen before a retrained model ever sees traffic. Online evals (shadow mode, canary, A/B) happen after, with real users in the loop.
  • The most common enterprise failure is a feedback loop: a model's own outputs become tomorrow's training data, quietly amplifying its own mistakes.
  • Fraud detection, recommendations, credit risk, and support agents each need a different retraining cadence and a different eval bar before promotion.
  • AgentTrust OS gates every retrain through Trust Certify, monitors it live through Trust Runtime, and logs the full data lineage through Trust Audit.

Keep reading for the full breakdown →

A fraud detection model at a mid-size payments company gets retrained every Sunday night on the previous week's transactions. Six weeks in, the false-positive rate on legitimate high-value transfers quietly climbs from 2% to 11%. Nobody notices until a corporate customer escalates a blocked six-figure wire. The root cause isn't the model architecture. It's silent retraining drift — a nightly job that pulled in a batch of transactions mislabeled by an upstream review queue, and nobody had an eval gate that would have caught it before it reached production.

This is the part of the AI lifecycle that doesn't make it into vendor demos. Training a model once, on a clean historical dataset, is a solved problem — every cloud ML platform can do it. Retraining that same model continuously, on transactions that are still happening, with a feedback loop that includes the model's own past decisions, is a different discipline entirely. Get the pipeline wrong and the model doesn't fail loudly. It fails quietly, for weeks, until someone downstream notices the damage.

This article covers how training and retraining pipelines actually differ, where offline and online evaluation each belong, what data enterprises use at each stage, four real deployment scenarios, and the specific Do's and Don'ts that separate a retraining pipeline that scales from one that erodes trust in production.

DEFINITION

Training and retraining are not the same risk profile

Definition

Training builds a model from a fixed, historical dataset with no production dependency. Retraining updates a model that is already serving live traffic, using data generated after it went live — including, often, data shaped by the model's own prior decisions.

Initial training is a one-time, controlled event. You pull a historical dataset, split it into train/validation/test, iterate on architecture and features, and ship the version that clears your bar. The data is static. Nothing you do during training can affect the dataset itself.

Retraining breaks that isolation. The transactions flowing in this week were partly shaped by decisions the current model made last week. A recommendation model that stops surfacing a product category will retrain on data with fewer clicks on that category — not because customers stopped wanting it, but because the model stopped showing it. A fraud model that blocks a merchant pattern will retrain on data with fewer of those transactions in the "legitimate" bucket, because the ones that would have proven it wrong never got the chance to happen.

Key Insight

The model that retrains on its own footprint is not learning about the world. It's learning about itself. Every enterprise retraining pipeline has to break this loop deliberately — it does not break on its own.

ACTUAL MLOPS PIPELINE

How a model is trained before it ever reaches production

An enterprise training pipeline is not a single notebook that calls fit(). It is a reproducible, versioned workflow that turns source data into a deployable model artifact, with evidence captured at every stage.

Data planeBuild trusted training inputs
Sources
Raw data
Warehouse, lake, streams, labels
Validation
Data quality
Schema, nulls, leakage, drift
Transform
Feature pipeline
Reusable offline features
Version
Training dataset
Immutable snapshot + lineage
Experiment planeTrain and compare candidates
Split
Train / val / test
Time-aware or stratified
Compute
Training jobs
CPU/GPU runs with fixed seeds
Optimize
Tuning
Search parameters and thresholds
Evaluate
Candidate selection
Quality, fairness, robustness
Release planePackage, approve, and deploy
Package
Model artifact
Weights + preprocessing + schema
Register
Model registry
Version, metrics, owner, lineage
Approve
Release gate
Policy and human sign-off
Serve
Production endpoint
Batch, real-time, or edge

Figure 1 — A real initial-training pipeline has three connected planes: data, experimentation, and release.

1. Orchestrator

Runs each stage with retries, dependencies, schedules, and artifacts. Typical choices include Airflow, Kubeflow Pipelines, SageMaker Pipelines, Vertex AI Pipelines, or Azure ML pipelines.

validate → feature → train → evaluate

2. Experiment tracker

Captures parameters, code commit, dataset version, metrics, and artifacts so a winning model can be reproduced instead of merely remembered.

run_id + git_sha + dataset_id

3. Model registry

Moves approved artifacts through lifecycle states such as Candidate, Staging, Approved, Production, and Archived.

candidate → approved → production
Production principle

The deployable unit is not only model weights. It includes preprocessing logic, feature definitions, input/output schemas, decision thresholds, dependencies, and evaluation evidence.

HOW IT WORKS

How the production retraining pipeline is triggered and executed

Retraining starts only after production evidence indicates that the current model is stale, degraded, or no longer aligned with the business. The pipeline below shows the actual trigger-to-promotion path.

01

Trigger

Schedule, data-volume threshold, performance decay, drift alert, policy change, or approved human request.

02

Snapshot

Create a point-in-time dataset with mature labels, feature definitions, source lineage, and exclusion rules.

03

Train

Run the same version-controlled pipeline as initial training and produce one or more candidate artifacts.

04

Challenge

Compare candidate vs. champion using frozen holdouts, recent windows, slices, fairness, safety, and cost.

05

Register

Store the candidate, metrics, dataset ID, code commit, approvals, and deployment contract in the registry.

06

Shadow

Score live traffic without affecting decisions and compare outputs, latency, stability, and business KPIs.

07

Canary

Route a small percentage of traffic to the candidate with automated stop and rollback thresholds.

08

Promote

Advance the candidate to champion only after online success; archive evidence and continue monitoring.

STEP 01Ingest live dataTransactions +outcome labelsSTEP 02Curate datasetDe-bias feedbackloop, dedupeSTEP 03Retrain candidateSame pipeline,versioned artifactSTEP 04Offline evalBacktest vs. frozenholdout + prior modelCertify gateSTEP 05Online evalShadow mode, thencanary on live trafficRuntime gateSTEP 06Promote + monitorFull rollout,audit trail loggedfeeds next retraining cycle
Figure 2 — The retraining path from live evidence to governed production promotion. Offline and online evaluation remain separate gates.
Pro Tip

Never let step 6 feed step 1 without step 2's de-biasing logic in between. That direct loop is exactly how models learn to reinforce their own past decisions instead of the underlying reality.

WHAT EACH RUN PRODUCES

The artifacts that make training reproducible

Pipeline stageRequired outputWhy it matters
Data validationQuality report, schema contract, leakage checksPrevents a valid training job from learning from invalid data.
Feature generationFeature definitions, point-in-time snapshot, feature statisticsKeeps training and serving transformations consistent.
TrainingModel artifact, parameters, environment lockfile, logsMakes the run repeatable and debuggable.
EvaluationGlobal metrics, slice metrics, fairness/safety tests, error analysisShows where the model works and where it fails.
RegistrationModel version, owner, lineage, approval state, deployment contractCreates a governed handoff between ML and production operations.
DeploymentEndpoint revision, traffic policy, rollback target, observability linksLimits blast radius and makes recovery immediate.
COMPARISON

Offline evals vs. online evals

Most teams run one and call it done. Enterprises that retrain safely run both, because each one catches a failure mode the other structurally cannot.

DimensionOffline evalOnline eval
When it runsBefore the retrained model ever sees live trafficAfter the retrained model is serving real or shadowed traffic
Data usedFrozen holdout set, historical backtest windowLive production traffic, real user behavior
CatchesRegressions vs. the previous model, metric drops, label leakageDistribution shift, latency regressions, real-world edge cases the holdout never saw
Blind spotCannot see anything that didn't exist when the holdout was frozenExposes real users to risk if the blast radius isn't capped
Typical methodBacktesting, k-fold cross-validation, adversarial test setsShadow mode, canary rollout, interleaved A/B testing
Enterprise ruleNo candidate reaches online eval without clearing offline eval firstNo candidate reaches full promotion without a clean online eval window

The failure mode enterprises hit most often isn't picking the wrong method — it's treating offline eval as sufficient on its own. A model can beat every offline metric and still degrade in production, because the holdout set was frozen weeks ago and the live transaction mix has since shifted. Offline eval answers "did we regress against history?" Online eval answers "is this actually working right now?" Neither question substitutes for the other.

PROBLEM BREAKDOWN

What data actually goes into each stage

"More data" is not a retraining strategy. The composition of the dataset determines whether the retrain improves the model or just teaches it to repeat itself.

01

Historical training corpus

The original, curated dataset used to build the first production version. Kept frozen and versioned as the long-term baseline — every future retrain is measured against a model trained on this set, not just against last week's version.

02

Ongoing transaction stream

Live transactions since the last retrain, joined with outcome labels once they resolve — a fraud case confirmed, a claim adjudicated, a support ticket closed. Anything used before the label resolves is a leak, not a signal.

Pro Tip

Set a minimum label maturity window (e.g. 30 days for chargebacks) before a transaction enters the retraining set. Retraining on unresolved outcomes is how models learn the wrong lesson from the right data.

03

Human review / correction data

Cases a human reviewer overrode — the model flagged fraud, a human cleared it; the model approved a claim, a human denied it. This is the highest-value retraining signal in the entire pipeline, and the easiest to under-collect if review teams aren't instrumented to log it structurally.

04

Model-generated feedback data

Data shaped by the model's own decisions — clicks on what it recommended, transactions it allowed through. This must be down-weighted or explicitly de-biased before retraining, or the model reinforces its own blind spots every cycle.

05

Adversarial / synthetic edge cases

Deliberately constructed cases — known fraud patterns, rare claim types, prompt injection attempts for LLM-based systems — injected into both offline eval and retraining sets so the model doesn't forget rare failure modes just because they didn't occur this week.

BY THE NUMBERS

What silent retraining drift costs

6
Weeks it took the fraud model in our opening example to drift from 2% to 11% false positives
2
Separate eval gates required — offline and online — before any retrained model should reach full production
0
Direct feedback loops that should exist between a model's own output and its next training set, unmediated by human review
SCENARIOS

How the retraining cadence changes by use case

There is no universal retraining schedule. The right cadence and eval bar depends on how expensive a bad decision is, and how fast the underlying pattern actually moves.

ScenarioRetraining triggerPrimary risk if ungated
Fraud / transaction monitoringWeekly, or triggered by confirmed chargeback batchesFeedback loop — blocked transactions never generate the "actually fine" label needed to correct false positives
Recommendation systemsDaily, near-continuousPopularity bias — the model stops exploring categories it once suppressed, mistaking absence of clicks for absence of demand
Credit risk / underwritingQuarterly, tied to regulatory review cyclesDelayed labels — default outcomes can take 12–24 months to resolve, so retraining on premature data teaches the wrong risk signal
Support / agentic chat systemsContinuous online eval, batched offline retrain weeklyInstruction drift — the model gradually shifts tone or policy adherence based on which responses got thumbs-up, regardless of factual correctness
⚠ Warning

Credit risk teams that retrain monthly "to keep the model fresh" without waiting for defaults to mature are training on incomplete outcomes. A loan that looks performing at day 90 can default at month 14. Retraining cadence has to respect the label's actual maturity time, not the team's release calendar.

CHECKLIST

Do's and Don'ts for enterprise retraining pipelines

Do
  • Freeze a long-term holdout set that every future retrain is benchmarked against — not just the previous version.
  • Require label maturity windows before a transaction enters the retraining set.
  • Run shadow mode before any canary, and canary before any full promotion.
  • Log full data lineage: which records, which labels, which model version, which eval scores.
  • De-bias or down-weight the model's own historical outputs before they re-enter training data.
  • Set an automatic rollback trigger tied to online eval metrics, not a manual pager alert.
Don't
  • Don't retrain directly on the model's own decisions without a human-reviewed correction layer.
  • Don't treat a passing offline eval as sufficient to skip online eval before full rollout.
  • Don't retrain on labels that haven't resolved yet — unresolved outcomes are noise, not signal.
  • Don't let retraining cadence be set by a release calendar instead of the domain's actual label-maturity time.
  • Don't promote a retrained model without comparing it against both the previous version and the frozen baseline.
  • Don't skip adversarial/edge-case injection just because production traffic looked "clean" this cycle.
HOW AGENTTRUST OS GOVERNS THIS

Gating retraining before it becomes an incident

The retraining pipeline above only works if the offline and online eval gates are enforced, not optional. Most enterprises write the discipline down in a runbook and trust the team to follow it under deadline pressure. That's the same gap that let the fraud model in our opening example drift for six weeks unnoticed. AgentTrust OS turns that discipline into infrastructure.

PRE-PRODUCTIONTrust CertifyOffline eval gate on every retrain candidateRESULTProduction-approved model versionLIVE TRAFFICTrust RuntimeShadow → canary online eval, drift alarmsRESULTPromote / hold / auto-rollbackACCOUNTABILITYTrust Audit — immutable lineage of every dataset, eval score, and rollout decision
Figure 3 — Trust Certify gates the retrain before traffic. Trust Runtime governs it live. Trust Audit makes every step reconstructable.

Trust Certify runs the offline eval as a pass/fail gate, not a dashboard someone has to remember to check. A retrained fraud model is backtested against the frozen baseline and the current production version before it is ever eligible for traffic — if it regresses on either, it doesn't ship.

Trust Runtime owns the online eval phase — shadow mode, then canary — and enforces the promotion contract in real time. If false-positive rate, latency, or approval-rate drift crosses a defined threshold during canary, Trust Runtime holds the rollout or rolls it back automatically, before it reaches full production traffic.

Trust Audit keeps the record that makes the whole pipeline defensible: which transactions and labels went into a given retrain, which eval scores it cleared, who approved the promotion, and when. When a regulator or an incident review asks "why did this model make this decision," the answer is a lookup, not a reconstruction project.

READY TO GOVERN YOUR MODEL LIFECYCLE?

No model retrain reaches production without AgentTrust

Confidence in every decision — from pre-production certification to post-deployment audit.

Start Free →
FREQUENTLY ASKED QUESTIONS

Common questions

Only if the data is unbiased relative to the underlying reality. Live transactions are shaped by the current model's own decisions — what it blocked, what it recommended, what it approved. Feed that straight back into training without correction and the model doesn't get smarter about the world; it gets more confident in its own past mistakes.

Offline eval only tests against a frozen holdout — by definition, it cannot see anything that changed in production since that holdout was captured. A model can pass every offline metric and still degrade against real traffic. Online eval, run in shadow mode and then canary, is the only stage that tests against what's actually happening right now.

Most model registries store artifacts and metrics — they don't enforce that a retrain can't be promoted without clearing a gate. AgentTrust OS makes the offline eval, the online eval, and the rollback decision into hard gates in the pipeline itself, not dashboards a human has to remember to check under release pressure.

Start by freezing a long-term holdout set today, even if your current retrains have never used one. Then add a single offline gate — reject any candidate that regresses against both the frozen baseline and the current production model. That one change catches the majority of silent drift incidents before you've built anything else.

No. AgentTrust OS sits at the gate points — before promotion and during canary — rather than replacing your training pipeline, feature store, or model registry. It governs the decision to ship a retrain, not how the retrain itself is computed.

No, and we won't claim it does. A canary window that's too short or a metric threshold set too loosely can still let a bad retrain through. What a proper gate does is shrink the blast radius and shorten the time to detection — from six weeks of unnoticed drift to a canary window measured in hours, with an automatic rollback already wired to the metric that would have caught it.

More from the blog

AI ComplianceJuly 22, 2026AI ComplianceJuly 22, 2026AI GovernanceJuly 22, 2026AI GovernanceJuly 22, 2026AI ArchitectureJuly 22, 2026AI SecurityJuly 16, 2026AI ImplementationJuly 8, 2026AI Agent ArchitectureJuly 5, 2026AI Agent ArchitectureJune 30, 2026EngineeringJune 23, 2026AI Agent ArchitectureJuly 2, 2026AI Agent ArchitectureJuly 1, 2026IntegrationsJuly 1, 2026IntegrationsJuly 1, 2026IntegrationsJuly 2, 2026AI SecurityJuly 3, 2026AI SecurityJuly 1, 2026AI ComplianceJuly 2, 2026AI ComplianceJuly 3, 2026AI StrategyJuly 2, 2026AI StrategyJuly 3, 2026AI StrategyJuly 3, 2026AI StrategyJuly 3, 2026AI GovernanceJuly 28, 2026Healthcare AIJuly 28, 2026ArchitectureJuly 29, 2026ArchitectureJuly 29, 2026AI StrategyJuly 29, 2026AI StrategyJuly 30, 2026AI SecurityJuly 30, 2026AI ComplianceJuly 30, 2026EngineeringJuly 30, 2026AI GovernanceAugust 4, 2026EngineeringAugust 4, 2026EngineeringAugust 4, 2026