Curriculum learning: easier first is a hypothesis to test
课程学习
Change the training distribution gradually, track one fixed target objective, and compare an equal-budget control.
curriculum-learningStart with the problem
A teacher chooses both what to present and when to present it. Curriculum learning makes analogous choices about training examples, their weights or their order. Short sentences before long sentences is one possible curriculum; low-loss examples before high-loss ones is another. “Easy” must be defined for the task, and the pace of introducing harder data must be specified.
Bengio and colleagues, Section 3, formulate a sequence of reweighted training distributions that ends at the target distribution. They discuss a continuation-method interpretation as a hypothesis, not a guarantee of finding a global optimum. Our example uses that reweighting idea to show something less convenient but useful: a curriculum can delay progress on the final objective.
Definitions and derivation
Use one scalar linear-model parameter θ and two examples. The first has input 1 and target 1, with loss (θ−1)²/2. The second has input 3 and target 0, with loss 9θ²/2. We call the first “easy” only because its curvature is lower. This artificial definition says nothing about semantic difficulty.
Give the second example a relative weight α, increasing from zero to one. Normalize the weights to obtain the training distribution and objective:
At α=0, only the first example contributes. At α=1, both have equal probability, which is the final target distribution. Intermediate stages change the problem being optimized, rather than merely changing the learning rate. Differentiating and setting the gradient to zero gives:
The easy-only optimum is 1, whereas the final optimum is 0.1. Moving toward the first can move away from the second. To compare training stages fairly, evaluate the same F₁ at every checkpoint; a decrease in one stage’s Fα cannot be compared directly with a different stage’s loss.
A rate-0.1 gradient step has an exact affine recurrence:
With α=1 throughout, the recurrence is θnext=θ/2+0.05. From θ₀=0 it gives θt=0.1(1−2⁻ᵗ). Our curriculum holds α at zero for four steps, then uses 1/4 twice, 1/2 twice and 1 four times. Repeated stages represent pacing; the distribution broadens when α increases, not at every individual update.
Run the calculation
The complete Python 3.12 program uses exact fractions and performs 12 updates for both the curriculum and the full-distribution control. Both component gradients are evaluated at every step, even when one coefficient is zero, so each run spends 24 component-gradient evaluations.
from fractions import Fraction as F
SCHEDULE = [F(0)] * 4 + [F(1, 4)] * 2 + [F(1, 2)] * 2 + [F(1)] * 4
def objective(theta, alpha):
if not 0 <= alpha <= 1:
raise ValueError('Curriculum weight must be in [0, 1].')
return ((theta - 1) ** 2 + 9 * alpha * theta ** 2) / (2 * (1 + alpha))
def gradient(theta, alpha):
objective(theta, alpha)
return ((theta - 1) + alpha * 9 * theta) / (1 + alpha)
def train(schedule):
if not schedule or len(schedule) > 64 or schedule[-1] != 1 or any(a > b for a, b in zip(schedule, schedule[1:])):
raise ValueError('Use 1 to 64 nondecreasing weights ending at 1.')
theta, records = F(0), []
for alpha in schedule:
# Both component gradients are evaluated, including at alpha=0.
theta -= F(1, 10) * gradient(theta, alpha)
records.append((theta, objective(theta, alpha), objective(theta, F(1))))
return records, 2 * len(schedule)
if __name__ == '__main__':
for name, schedule in [('curriculum', SCHEDULE), ('full from start', [F(1)] * 12)]:
records, cost = train(schedule)
theta, stage_loss, target_loss = records[-1]
print(name, 'gradient evaluations', cost, 'theta', round(float(theta), 12),
'target loss', round(float(target_loss), 12))
print('target optimum', float(F(1, 10)), 'minimum loss', float(F(9, 40)))
Actual output:
curriculum gradient evaluations 24 theta 0.108766290975 target loss 0.225192119644
full from start gradient evaluations 24 theta 0.099975585938 target loss 0.22500000149
target optimum 0.1 minimum loss 0.225
The control ends closer to 0.1 and has a lower final-target loss. The curriculum is not divergent; it simply spends some of its fixed budget moving toward an intermediate optimum that does not help this task. Loss values are derived from the stated two-example objective, not a learning benchmark. For n weighted examples and d parameters, full-gradient stages cost O(nd) per update in a dense linear model; scoring and sorting a real dataset add their own preprocessing or training costs.
When the method fails
A curriculum needs both a scoring rule and a pacing rule. Hacohen and Weinshall separate these choices and study their interaction with tuned training hyperparameters. Their experimental improvements apply to their setups; neither that work nor the original proposal implies that easy-first ordering wins on every task.
Difficulty scores can encode the bias of a teacher model. Rare but important cases may be introduced too late, and low observed loss can favor already well-represented groups. Report performance by relevant data slices and verify that the final distribution is actually reached. Compare against ordinary shuffled training with equal total compute, including the cost of producing scores. Dynamic self-paced selection and hard-example mining may use different criteria; they should not be silently treated as the same fixed curriculum.
Exercises with answers
- Where is the easy-only optimum and where is the final optimum?
Answer 1: They are 1 and 0.1. The mismatch explains why early easy-only updates can be unhelpful.
- For α=1/2, what is the probability of the second example?
Answer 2: (1/2)/(1+1/2)=1/3. Relative weight and normalized probability are different quantities.
- Which objective should compare checkpoints from different stages?
Answer 3: The fixed target objective F₁, evaluated under the same target distribution.
- Does this counterexample show curricula never help?
Answer 4: No. It disproves a universal easy-first advantage. Different objectives, scoring rules, pacing and budgets can produce different outcomes.
Sources and next steps
Read the 2009 paper’s reweighted-distribution definition and continuation discussion alongside the 2019 scoring/pacing analysis. The exact two-example counterexample is original and carries no empirical claim about language or vision models. Compare learning-rate schedules to see the difference between changing update size and changing the objective’s data weights.
Make a prediction, then check
Which loss makes a fair comparison across changing curriculum stages?
Learning objectives
- Define scoring, pacing and the final target distribution.
- Test a curriculum against a fixed-objective equal-budget control.
Prerequisites & connections
Explore related knowledge →References
- Curriculum Learning
Yoshua Bengio; Jérôme Louradour; Ronan Collobert; Jason Weston · 2009 - On The Power of Curriculum Learning in Training Deep Networks
Guy Hacohen; Daphna Weinshall · 2019
Version1 · Editorial status: Recorded technical checks completed
View technical check record (AI)
Codex · 2026-09-06 · Codex single-AI-author technical check: primary-source scope, explicit assumptions, original calculations, independent mathematical references and bilingual tests; not independent human or second-agent review.
- Single-AI-author technical check: bounded primary-source reading, explicit assumptions, original calculations, runnable examples and matching bilingual equations, code and exercises. Not an independent human or second-agent review.
- Four focused CPython 3.12.4 tests passed per chapter, including independent derivatives, integrals, normal equations or exact/literal trajectory references as appropriate. NumPy 1.26.4 is used in six programs; PBT and curriculum use standard-library exact fractions. CPU teaching calculations, not framework or GPU benchmarks.
- Promoted the full prose, equations, code and exercises. Tests read formal MDX only; removed temporary fallbacks/draft skips and updated review assertion to checked. Algorithm and independent references are unchanged; final record binds both locale hashes.
- Bilingual SVG charts generated by Matplotlib 3.9.1 from executed chapter functions. Actual weighted gradients, logical activation/call counts and fixed-target excess losses are distinguished from hardware measurements. Both locale figures and sample data are hash-bound.
- Visual review caught the curriculum first-step excess loss of exactly zero on a logarithmic axis. The zero point is now omitted with explicit annotation; subsequent positive values and the preserved original calculation are unchanged. Formal figure captions and final hashes updated; frozen drafts retained.
Source locations checked:
- Curriculum Learning · Physical pages 2–3, Section 3 and reweighted-distribution definition; endpoint W1=1 and discrete-stage curricula.
- On The Power of Curriculum Learning in Training Deep Networks · Physical page 2: scoring and pacing functions, hyperparameter tuning and comparison scope.
Related topics