A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Online Learning and Regret Bounds

Research Depth 98 in the knowledge graph I know this Set as goal
3topics build on this
687prerequisites beneath it
See this on the map →
PAC Learning FrameworkConvex Optimization Fundamentals+1 moreBandit Problems (Multi-Armed Bandits)Expert Problem and Hedge Algorithm+1 more
online-learning regret adversarial sequential-prediction

Core Idea

Online learning is a sequential prediction framework where a learner makes decisions one at a time, observes a loss after each decision, and aims to minimize cumulative regret — the difference between the learner's total loss and the total loss of the best fixed strategy in hindsight. Unlike PAC learning, online learning makes no distributional assumptions: the sequence of examples can be adversarially chosen. The fundamental result is that O(sqrt(T)) regret is achievable and optimal for many problems, meaning the learner's average loss converges to the best fixed strategy's loss at rate 1/sqrt(T). This framework unifies prediction, optimization, and game theory.

Explainer

PAC learning assumes data is drawn i.i.d. from a fixed distribution — a strong assumption that may not hold in practice. Online learning drops this assumption entirely, operating in a sequential, potentially adversarial setting. The learner and the environment take turns: at each round t, the learner chooses an action (prediction, hypothesis, or strategy), the environment reveals a loss, and the learner updates. There are no distributional assumptions — the environment can be an adversary that chooses the worst possible sequence for the learner.

The performance measure in this adversarial setting cannot be absolute loss, because a sufficiently malicious adversary can impose high loss on any learner. Instead, the learner is measured by regret: the difference between its cumulative loss and the cumulative loss of the best fixed action in hindsight. Formally, Regret(T) = sum_{t=1}^{T} loss(learner_t) - min_{h in H} sum_{t=1}^{T} loss(h_t). The comparator is the single best fixed hypothesis over the entire sequence — the learner does not need to beat every hypothesis, just approach the best one's performance.

The central result is that O(sqrt(T)) regret is achievable for a wide class of problems. For prediction with expert advice (choosing among N experts each round), the Hedge algorithm achieves regret O(sqrt(T * ln N)). For online convex optimization (choosing a point in a convex set, then observing a convex loss), online gradient descent achieves regret O(sqrt(T)). These bounds hold against any adversary — no distributional assumption is needed. The sqrt(T) rate is also optimal: for most problems, no algorithm can achieve o(sqrt(T)) regret in the worst case.

The implications extend far beyond sequential prediction. Online learning algorithms can be converted to batch learning algorithms (online-to-batch conversion), providing an alternative route to generalization bounds that does not require uniform convergence. The regret framework also connects to game theory — no-regret strategies correspond to Nash equilibria in repeated games — and to optimization, where online gradient descent is the template for stochastic gradient descent. The framework's generality and adversarial robustness make it a cornerstone of modern theoretical machine learning, complementing the distributional assumptions of PAC learning with guarantees that hold in the worst case.

Practice Questions 4 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionProbability Density Functions and Continuous DistributionsCumulative Distribution FunctionsContinuous Random VariablesProbability Density FunctionsExpected ValueLinear Regression in Machine LearningNeural Network FundamentalsBackpropagation AlgorithmMultilayer Perceptrons (MLPs)Activation Functions in Neural NetworksVanishing Gradient ProblemGradient Descent and OptimizationConvex Optimization FundamentalsOnline Learning and Regret Bounds

Longest path: 99 steps · 687 total prerequisite topics

Prerequisites (3)

Leads To (3)