Home Knowledge Base Online Learning

Online Learning is the machine learning paradigm where the model is updated incrementally as each new data point (or small batch) arrives, rather than training on the entire dataset at once — essential for streaming data scenarios (real-time fraud detection, recommendation systems, sensor monitoring) where data arrives continuously, distributions shift over time (concept drift), and the model must adapt without storing or reprocessing the full history, making online learning the operational reality for most production ML systems.

Online vs. Batch Learning

Online Optimization Algorithms

Online Gradient Descent (OGD): For each example (x_t, y_t): compute loss L(w, x_t, y_t), update w ← w - η × ∇L. The regret (cumulative loss vs. best fixed model in hindsight) of OGD is O(√T) for convex losses — sublinear, meaning per-step regret → 0 as T → ∞.

Follow-the-Regularized-Leader (FTRL): w_t = argmin Σᵢ₌₁^t ∇L_i^T w + R(w). With L1 regularization R(w) = λ||w||₁, FTRL produces sparse models — exactly zero weights for irrelevant features. Used at Google scale for online ad click prediction with billions of features.

Adaptive Learning Rates: AdaGrad, Adam, etc., adapt per-parameter learning rates based on gradient history. Early large gradients for a feature → lower learning rate (avoid overshooting). Rare features → higher learning rate (learn quickly from sparse signals). Critical for online learning where feature frequencies vary enormously.

Concept Drift

The fundamental challenge of online learning — the data distribution changes over time:

Drift Detection Methods:

Production Online Learning

Online Learning is the deployment paradigm that keeps ML models synchronized with reality — the continuous adaptation mechanism that handles the non-stationarity, scale, and freshness requirements that batch retraining cannot satisfy for real-time production systems.

online learning streaming dataincremental learning algorithmconcept drift detectionstreaming gradient descentadaptive learning rate online

Explore 500+ Semiconductor & AI Topics

From EUV lithography to CUDA optimization — search the full knowledge base or chat with our AI assistant.