AI Glossary / AI and machine learning / Intermediate
Online learning
Definition
Online learning is training that updates the model as each new item of data arrives, instead of collecting a fixed dataset and training once on the whole batch.
What it means
The name describes the rhythm, not the internet: the model learns on a stream, one observation or one small group at a time, and it can keep learning for as long as the stream flows.
This matters when data never stops arriving, like clicks, transactions or sensor readings, and when the world drifts, so a model trained last quarter quietly decays. Online updates let the model follow the drift instead of waiting for the next full retrain.
The trade-off is fragility. A model that updates on every item can also be poisoned by every item: a burst of bad data, a feedback loop or an attack can bend the model before anyone notices, so online systems need guardrails that batch training does not.
Most production setups blend the two rhythms: the stream keeps the model current between periodic full retrains that re-anchor it on clean, curated history.
For a business, online learning is less a model choice than an operating practice, with monitoring and rollback as the price of freshness.
How it works
Feed new observations to the model as they arrive, updating parameters by small steps instead of retraining from scratch.
Weight updates by volume and recency so a short unusual burst moves the model less than a sustained change.
Gate every update through checks on recent held-out data, and roll back automatically when a check fails.
Cap how fast parameters may move, so no single burst can bend the model far before review.
Audit for feedback loops, where the model's own predictions shape the data it next learns from.
Schedule periodic batch retrains to clean up drift accumulated from many small updates.
Three practical examples
- A fraud model updates nightly on the day's confirmed transactions, staying current with new fraud patterns without a full retrain.
- A news recommender adjusts article rankings within minutes as readers click, letting the same model serve morning and evening tastes.
- A demand forecaster ingests each day's sales and shifts its predictions gradually as seasons change, rather than jumping after a quarterly retrain.
Think of it this way
Think of a barista who adjusts the grind after every few cups based on taste, instead of attending one training course a year. The skill stays current, but a broken palate on a bad day can ruin the afternoon.
Worked example
the drifting clickstream
Suppose an ad system updates its click model every hour. The figures are illustrative.
A holiday weekend changes what people click, and by Monday the hourly updates have already shifted the model toward weekend tastes, so weekday ads underperform until the stream drifts back.
The fix is a damping rule: updates are weighted by volume and recency, so a short unusual burst moves the model a little while a sustained change moves it a lot.
The incident generalizes: online learning needs a notion of how fast the world is allowed to change, set deliberately rather than inherited from the data's noisiest moments.
Illustrative case study
A logistics company replaced monthly retrains of its delivery-time model with daily online updates and cut average prediction error by a fifth within a quarter. The gain came with a new discipline: every update ran through automated checks that compared the new model against the old on a held-out sample, and a failed check rolled the model back. One rollback caught a data-feed bug that had mislabeled a depot's timestamps for six hours. The team concluded that the learning is the easy part; the guarding is the work.
Common misconceptions and mistakes
- Online learning means learning from the internet. It means learning from a stream of arriving data, wherever that stream comes from.
- It removes the need for full retrains. Periodic batch retraining is still used to clean up accumulated drift and to reset after incidents.
- It is always fresher and therefore better. Freshness without guardrails just means the model absorbs noise and attacks faster.
Business use
Adopt online updates when the environment drifts faster than your retrain cycle and the cost of a stale model is measurable.
Put a gate between the stream and the model: validation on recent held-out data, rate limits on parameter movement, and instant rollback.
Watch for feedback loops and audit for them on a schedule, because they are the quiet failure mode of self-updating systems.
Keep a batch-trained fallback model on the shelf so a poisoned stream can be cut off without taking the service down.
Start with a slow update rhythm and speed it up only when the monitoring earns trust, since cadence is cheaper to raise than to recover from.
People also ask
Is online learning the same as deep learning?
No: online describes when updates happen, deep describes the model shape, and the two combine freely.
How often should a model update?
As often as drift justifies and guardrails allow: hourly for fast-moving clickstreams, daily or weekly for steadier domains.
What is the biggest risk?
Learning from bad data at speed, whether from bugs, attacks or feedback loops, so monitoring and rollback are mandatory.
Does it replace batch training?
Usually they coexist: the stream keeps the model current, and periodic batch runs re-anchor it on clean history.
Check your understanding
What problem does online learning solve, and what new problem does it create?
Answer: It solves staleness: the model follows a drifting world as data arrives instead of waiting for the next scheduled retrain. It creates an exposure: every arriving item can move the model, so bad data, feedback loops and attacks must be caught by gates, monitoring and rollback rather than by a slow training calendar.
Related terms
- Concept drift
- Feedback loop
- Retraining
- batch learning
- model monitoring
- incremental learning
Learn next
AI for Business Owners helps you judge when faster model updates are worth the operational discipline they demand: https://aiforbusinessandlife.com/academy/ai-for-business-owners [C2]
More in AI and machine learning
- One-shot learning - One-shot learning is learning to recognize a category from a single example: show the system one photo of a new product, one recording of a new voice, and...
- One-vs-one - One-vs-one is a scheme for multi-class classification that trains one binary classifier for every pair of classes: ten classes mean forty-five pairwise...
- One-vs-Rest - One-vs-Rest is a scheme for multi-class classification that trains one binary model per class, each answering a single question: is this item a member of my...
- Online-Offline Feature Skew - Online-offline feature skew is the mismatch that appears when a feature is computed one way in the training data and a subtly different way in the live...
- Online One-Class SVM - An online one-class SVM is a novelty detector trained mostly on examples of normal behavior and updated as new normal data arrives, flagging whatever does...
- Open-source artificial intelligence - Open-source artificial intelligence refers to AI systems released with permissions and materials that enable others to use, inspect, modify and share them.
Sources
[S2] Google, Machine Learning Glossary; [S24] scikit-learn documentation, Glossary of Common Terms and API Elements; [S3] NIST AI Resource Center glossary. Full URLs are in the source ledger. Verified 11 October 2026.
Previous: Online Inference Pipeline Next: Online-Offline Feature Skew