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

  1. Examples arrive from a data stream one at a time or in small batches.
  2. The model predicts; once the true answer is known the loss is computed.
  3. Parameters take one small stochastic gradient descent step; old data is not reprocessed.
  4. 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

TermHow it differs
Catastrophic forgettingCatastrophic 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.

ON-PREMISES EXAMPLE

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.

Sources

In the glossary: Glossary, M to Q

What does this term mean for your infrastructure?

We can work out together in a technical assessment how it maps onto your data, hardware and security requirements.

Request a technical assessment →

This site sets no cookies. Visitor numbers are counted in aggregate using a cookieless method that does not identify anyone. See the Privacy Policy for details.