Online learning

Online learning is a way of training in which a model updates step by step as new data arrives, rather than learning from a fixed dataset all at once.

Most models are trained in batch: collect a dataset, train on all of it, then deploy the result unchanged. Online machine learning works differently. Data arrives in sequence, and the model updates its predictions after each new example or small group of examples. The online in the name refers to this continuous, sequential updating, not to the internet.

Wikipedia gives two main reasons to work this way. One is scale: when a dataset is too large to train on in one go, learning from it piece by piece is the only practical option. The other is change: when the patterns in the data shift over time, as prices in financial markets do, a model has to keep adapting. Typical uses include spam filtering, real-time fraud detection, dynamic pricing for online shops and deciding which ads to show in search results. A spam filter that learns from every message users mark as junk is a classic case.

Google's machine learning glossary uses online as a synonym for dynamic, and describes a dynamic model as one that is retrained frequently or even continuously, a lifelong learner that keeps adapting to changing data. It contrasts this with a static model that is trained once and then left alone. This is different from online inference, which only means generating predictions on demand.

Learning continuously has costs. Wikipedia notes that online algorithms can suffer catastrophic interference, where new data overwrites what was learned before. A model updating on live data can also absorb errors, manipulation or feedback from its own earlier decisions faster than anyone notices. That is why systems that learn in production need monitoring and the ability to roll back.

Today's large language models are mostly not online learners. Their weights are fixed when they are deployed, so a chatbot does not change its underlying model during a conversation, although Wikipedia notes growing research interest in letting language models adapt continuously after their initial training.

Common questions

What is the difference between online learning and batch learning?

Batch learning trains a model on a complete dataset at once and then keeps it fixed. Online learning updates the model continually as new data arrives, one example or small group at a time. Batch is simpler to control; online adapts faster to change.

Does ChatGPT learn from my conversations in real time?

No. Large language models such as ChatGPT run on fixed weights, so the model itself does not change during your conversation. Whether conversations are used to train later versions is a separate matter set by each provider's data policy.

Is online learning the same as continual learning?

They overlap. Online learning describes the mechanics of updating a model as data streams in. Continual learning focuses on the goal of picking up new tasks or knowledge over time without forgetting old ones, a problem that online updating makes more pressing.

What is online learning used for in AI?

It suits problems where data never stops arriving or keeps changing, such as spam filtering, fraud detection, dynamic pricing, ad selection and some recommendation systems. In these settings a model trained once would quickly fall out of date.

Finding more

Search for "online machine learning", "online vs batch learning" or "static vs dynamic models" to see how continuously updated systems work. Reliable sources include Google's Machine Learning Glossary and Crash Course, textbooks on statistical learning and encyclopedia articles that cite them. Be aware that searches for online learning mostly return results about education over the internet, so adding the words machine learning helps.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.