Error-driven learning #
A learner holds a matrix W of association weights from cues to outcomes and meets learning
events, each a cue vector x paired with an outcome vector y. The weights predict the outcome
x ᵥ* W, and the error-driven update moves the weight from cue i to outcome j by the cue's
value times the outcome's prediction error, scaled by a rate α i for the cue and a rate β j
for the outcome. On indicator vectors this is the rule of Rescorla and Wagner, where α is the
salience of a cue and β the importance of an outcome. With a single rate it is the rule of
Widrow and Hoff for real-valued vectors.
The cues of an event share its prediction error. An event that the weights already predict therefore changes nothing, and repeating an event shrinks its error geometrically while dividing the weight gained among the cues in proportion to their rates.
Main definitions #
ErrorDrivenLearning.update: the weights after one learning event.
Main results #
ErrorDrivenLearning.update_eq_self_iff: an event leaves the weights fixed exactly when none of its cues is effective or none of its outcomes is mispredicted.ErrorDrivenLearning.iterate_update,ErrorDrivenLearning.tendsto_iterate_update_apply: the weights afternrepetitions of an event, and their limit.
References #
The error-driven update of the weights W on a learning event with cues x and outcomes
y adds α i * x i * ((y j - (x ᵥ* W) j) * β j) to the weight from cue i to outcome j, the
cue's rate and value times the outcome's prediction error and rate.
Equations
- ErrorDrivenLearning.update α β x y W = W + Matrix.vecMulVec (α * x) ((y - Matrix.vecMul x W) * β)
Instances For
With one rate η for every cue and outcome the update is the Widrow–Hoff rule.
On a set s of present cues and a set t of present outcomes with maximal activations lam
the update is the Rescorla–Wagner rule. A present cue gains α i * β j times the error of
outcome j against the summed weights of the present cues, and an absent cue gains nothing.
One event #
An event scales its own prediction error for outcome j by 1 - x ⬝ᵥ (α * x) * β j.
An event leaves the weights fixed exactly when none of its cues is effective or none of its outcomes is mispredicted.
An event whose outcome the weights already predict teaches nothing.
Repeating an event #
After n repetitions of an event every cue has gained in proportion to its rate and
value.
Under repetition the prediction converges to the outcome, provided each outcome's error factor is less than one in absolute value.
Under repetition the weight from cue i to outcome j converges, the cue having gained
the share α i * x i / x ⬝ᵥ (α * x) of the outcome's initial prediction error.