What is AI online learning?
In online learning, data arrives in sequence and the model is updated after each new example or small batch. In each round the model makes a prediction, sees the correct answer, computes its loss and adjusts its parameters.
Unlike batch training, where the model sees the whole dataset at once and then stays fixed, an online model keeps updating as data arrives. Continual learning, by contrast, targets learning new tasks without forgetting old ones.
- Topic
- Machine learning, models and training
- Also known as
- Incremental learning, learning from data streams
- Origin
- 1958 perceptron study; 2012 survey
How AI online learning works
- Examples arrive from a data stream one at a time or in small batches.
- The model predicts; once the true answer is known the loss is computed.
- Parameters take one small stochastic gradient descent step; old data is not reprocessed.
- Success is measured by regret: how far total loss exceeds that of the best fixed model in hindsight.
In more detail
Regret as the yardstick
In online learning theory success is measured by regret: the gap between the learner's total loss and the total loss of the best fixed model in hindsight. For algorithms whose regret grows more slowly than the number of rounds, the difference between the learner's average loss and the best model's average loss tends to zero as rounds increase. The theory does not assume the data sequence is random; it can even come from an adversary adapting to the learner.
Commonly confused terms
| Term | How it differs |
|---|---|
| Catastrophic forgetting | Catastrophic forgetting is when a model loses abilities it learned earlier while being updated on new data. Online learning is a training mode; because it updates continually it can carry the risk of catastrophic forgetting, so validation on older examples continues. |
Why AI online learning matters for on-premises AI
Online learning keeps a model current when the data distribution shifts. A review calls unforeseeable change in the distribution of streaming data concept drift and notes that unaddressed drift leads to poor learning results. It spread with large scale uses such as online advertising and web ranking. Because every update changes the model, model monitoring and a rollback plan are needed.
A bank updates its fraud detection model in small batches with the day's approved and disputed transactions. After each update the team checks performance on a fixed validation set and rolls back if it drops.
Common questions
Does online learning need an internet connection?
No. The name comes from data arriving in sequence and the model updating step by step. Training can run entirely on in-house servers.
What is the main risk of online learning?
Faulty or deliberately corrupted data can reach the model quickly. Updates are therefore monitored and rolled back when needed.
Do large language models learn online as they are used?
Usually not. A deployed model's weights do not change after each conversation; new knowledge is usually added through retrieval or periodic fine-tuning.
Related terms
- AI concept drift
- AI stochastic gradient descent (SGD)
- AI continual learning
- AI model monitoring
- Catastrophic forgetting
Sources
- Online Learning and Online Convex Optimization, Foundations and Trends in Machine Learning, 2012
- Learning under Concept Drift: A Review, IEEE Transactions on Knowledge and Data Engineering, 2018
- Strategies to scale computationally: bigger data, scikit-learn documentation, 2026
In the glossary: Glossary, M to Q