The Widrow-Hoff (LMS) learning rule #
The delta rule for a linear map between real coordinate spaces: on observing
an input-output pair (x, y), add the rank-one error-driven correction
x' ↦ ⟨x, x'⟩ • (y − W x), scaled by a learning rate. On binary cue vectors
with uniform salience one step reproduces one Rescorla-Wagner trial
(whUpdate_single_eq_rescorlaWagner_update) — Widrow-Hoff is the real-valued
member of the error-driven family.
Main declarations #
whCorrection,whUpdate: the correction and theη-scaled step.whUpdate_eq_self_iff: a step fixesWiff its correction vanishes.sum_whCorrection_eq_zero_iff: the orthogonality principle — the weighted total correction vanishes iff the residuals are orthogonal to every input direction.whUpdate_single_eq_rescorlaWagner_update: on binary cues with uniform salience a Widrow-Hoff step is aCore.RescorlaWagnertrial.whUpdate_single_eq_self_of_blocked: blocking transfers through the specialization; overshadowing does not (non-uniform salience has no channel in binary cue coding).
The Widrow-Hoff correction on observing (x, y) is the rank-one
error-driven update direction x' ↦ ⟨x', x⟩ • (y − W x)
([WH60]'s xᵀ(y − ŷ)).
Equations
- Core.whCorrection x y W = (Fintype.linearCombination ℝ x).smulRight (y - W x)
Instances For
One Widrow-Hoff step on the observation (x, y) with learning
rate η.
Equations
- Core.whUpdate η x y W = W + η • Core.whCorrection x y W
Instances For
A step fixes W iff the observation's correction vanishes.
By the orthogonality principle for the Widrow-Hoff rule ([WH60]), the weighted total correction over a family of observations vanishes — the rule is at a fixed point in expectation — iff every weighted residual column is orthogonal to every linear functional of the inputs. The equilibrium condition is order-invariant by construction, whereas the incremental trajectory is order- and rate-dependent.
On a binary cue vector with uniform salience, one Widrow-Hoff step
reproduces one Rescorla-Wagner trial, reading cue l's weight off the map
at the l-th basis vector ([RW72]). Non-uniform salience
has no channel in binary cue coding, so overshadowing is out of scope
while blocking transfers (whUpdate_single_eq_self_of_blocked).
When the outcome is already fully predicted on the trial, the
Widrow-Hoff step leaves every cue weight unchanged — blocking transfers
through the specialization, as in
Core.RescorlaWagner.no_learning_at_equilibrium ([Ell06]).