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

Expert Problem and Hedge Algorithm

Research Depth 100 in the knowledge graph I know this Set as goal
689prerequisites beneath it
See this on the map →
Multiplicative Weights MethodOnline Learning and Regret Bounds+1 more
online-learning experts hedge prediction

Core Idea

The expert problem is the canonical online learning setting: at each round, a learner must choose among N experts' advice, then suffers the loss of the chosen expert. The goal is to achieve cumulative loss close to the best expert in hindsight. The Hedge algorithm (also called the exponential weights algorithm) solves this by maintaining a probability distribution over experts, updated multiplicatively: p_i(t+1) proportional to p_i(t) * exp(-eta * loss_i(t)). Hedge achieves regret O(sqrt(T * ln N)), which is optimal — no algorithm can do better against an adversary. The expert problem serves as the theoretical foundation for ensemble methods, model selection, and boosting.

Explainer

The expert problem is the simplest and most fundamental setting in online learning. Each round, N experts offer advice (implicitly, through their predicted actions), the learner chooses one or randomizes among them, and then nature reveals the outcome and each expert's loss. The learner's goal is to minimize regret — the gap between its cumulative loss and the best expert's cumulative loss in hindsight. No assumptions are made about how the losses are generated; they could be adversarial.

The Hedge algorithm solves this problem optimally. It maintains a weight w_i for each expert, initialized to 1. At each round: assign probability p_i = w_i / sum_j w_j to expert i, sample an expert according to this distribution (or play the mixed strategy directly if losses are linear), observe all experts' losses, and update w_i <- w_i * exp(-eta * loss_i). The exponential update is the defining feature: experts with high loss see their weights decrease exponentially, while low-loss experts maintain or increase their relative weight. Over time, the distribution concentrates on consistently good experts.

The regret analysis uses a potential function argument. Define Phi_t = ln(sum_i w_i(t)). The potential decreases each round by at least eta * (learner's expected loss) - eta2 (a second-order correction). At the end, the potential is at least ln(w_best(T)) = -eta * (best expert's total loss). Combining the upper and lower bounds on the potential change gives: learner's loss <= best expert's loss + (ln N)/eta + eta * T. The optimal eta = sqrt(ln(N)/T) balances these terms, yielding regret 2 * sqrt(T * ln N).

The O(sqrt(T * ln N)) regret bound is optimal — a matching lower bound shows no algorithm can achieve o(sqrt(T * ln N)) regret in the worst case. The logarithmic dependence on N is remarkable and practically important: the cost of including additional experts is negligible. This makes the expert framework a natural foundation for ensemble methods (combine many base learners), model selection (compete with a pool of candidate models), and online portfolio selection (compete with the best stock in hindsight). The Hedge algorithm also serves as the template for more sophisticated online learning algorithms — online mirror descent generalizes Hedge from discrete experts to continuous action spaces, inheriting its optimal regret guarantees.

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 BoundsMultiplicative Weights MethodExpert Problem and Hedge Algorithm

Longest path: 101 steps · 689 total prerequisite topics

Prerequisites (3)

Leads To (0)

No topics depend on this one yet.