Level 0: Foundation
★☆☆☆☆ Introductory⏱ 5 minGeneral audience. No mathematics required.Learn from the size of the error, not just its sign
The perceptron only notices whether it was right or wrong. ADALINE looks at how wrong its raw output was, before the threshold, and corrects in proportion: a big miss gives a big correction, a near miss a small one, and even correct answers are nudged towards the target value. This is gradient descent on squared error, and unlike the perceptron it settles down even when the classes overlap.
The LMS rule is the workhorse of adaptive signal processing: echo cancellers in every phone call, adaptive equalisers in modems, noise cancellation in headsets, and adaptive filters in radar and control. Widrow and Hoff’s 1960 rule is the same stochastic gradient descent that trains today’s networks.
- 1. ADALINE trains on…
- 2. The LMS rule is gradient descent on…
- 3. LMS is used in…
Level 1: Beginner
★★☆☆☆ Basic⏱ 20 minSecondary-school mathematics: arithmetic and elementary algebra.By hand
- LMS (Widrow–Hoff): w ← w + η(y − w·x)x, with y = ±1 and the linear output w·x. Example: w = (0, 0), x = (1, 2), y = 1, η = 0.1 → w = (0.1, 0.2). If w·x already equals y, nothing changes.
- Classification: predict sign(w·x).
- Batch version: w ← w + ηXᵀ(y − Xw)/n converges to the least-squares solution when η < 2/λmax, with λmax the largest eigenvalue of XᵀX/n. For eigenvalues 4 and 1 the limit is 0.5.
- Error along an eigenvector is multiplied by |1 − ηλ| each step: 0.5 for η = 0.1, λ = 5; 1.5 (divergent) for η = 0.5.
- MADALINE: several ADALINEs feed a fixed vote (majority, AND or OR); its MRII training rule flips the unit whose output is closest to zero.
- 1. LMS update for w = (0, 0), x = (1, 2), y = 1, η = 0.1:
- 2. Stability limit for eigenvalues 4 and 1:
- 3. MADALINE combines ADALINEs by…
Level 2: Intermediate
★★★☆☆ Intermediate⏱ 25 minUndergraduate students and practising engineers.ADALINE in code
Exercise 1. On a 4-feature least-squares problem with stability limit 2/λmax = 0.218, batch LMS at 0.95 times the limit converged to the least-squares weights (loss 0.0053); at 1.05 times the limit the loss reached 10¹⁶ within 200 steps.
Practice.
- Normalise inputs: the stability limit depends on input scale. The normalised LMS (NLMS) rule divides the step by ‖x‖², which makes it scale-free.
- For classification today, logistic regression (cross-entropy) is preferred: squared error on ±1 targets penalises points that are “too correct”.
- LMS remains the default for adaptive filters because it is cheap, robust and tracks slowly changing systems.
for x, t in zip(X, y):
w += lr * (t - w @ x) * x # Widrow–Hoff / LMS- 1. NLMS divides the step by…
- 2. Squared error on ±1 targets penalises…
- 3. In exercise 1, at 1.05× the limit the loss…
Level 3: Advanced
★★★★☆ Advanced⏱ 25 minGraduate level, with full derivations and proofs.Theory
LMS as stochastic gradient descent. The per-example loss ½(y − w·x)² has gradient −(y − w·x)x, so LMS is SGD on mean squared error. Its expected update is the batch gradient, whose fixed point is the least-squares (Wiener) solution w* = R⁻¹p, with R = E[xxᵀ] and p = E[yx].
Stability. For the batch rule the error evolves as e ← (I − ηR)e, so it converges iff |1 − ηλ| < 1 for every eigenvalue λ of R, that is η < 2/λmax. Convergence speed is limited by the smallest eigenvalue, so the spread λmax/λmin (the eigenvalue spread) controls how slow LMS is.
Misadjustment. With a constant step, stochastic LMS jitters around w*; its excess mean squared error is roughly proportional to η·trace(R), the classic trade-off between speed and accuracy in adaptive filtering.
Perceptron versus ADALINE. The perceptron minimises the number of mistakes only when zero is achievable; on overlapping classes it cycles. ADALINE always has a well-defined optimum, the least-squares fit, so it settles, at the cost of optimising a surrogate that is not the classification error.
- 1. LMS converges in expectation to…
- 2. LMS speed is limited by…
- 3. With a constant step, LMS…
Level 4: Expert
★★★★★ Expert⏱ 25 minResearchers: original papers and open problems.ADALINE versus the perceptron on noisy labels
History.
- B. Widrow and M. Hoff (1960) introduced ADALINE and the LMS rule.
- B. Widrow and colleagues developed MADALINE (1962) and its MRII rule (1988).
- B. Widrow and S. Stearns (1985) wrote the standard text on adaptive signal processing.
Exercise 2. 200 training points in 5 dimensions labelled by a linear rule, with 10% of labels flipped; tested on 5000 points with noise-free labels. One pass per epoch for 40 epochs, five seeds. Statistics over the last 10 epochs:
| method | mean test accuracy | epoch-to-epoch std | worst epoch |
|---|---|---|---|
| perceptron | 0.819 | 0.063 | 0.564 |
| ADALINE (LMS, η = 0.01) | 0.943 | 0.012 | 0.877 |
- The perceptron never settled: the data were not separable, so it kept updating on noisy points, and its current weights swung between good and poor boundaries.
- ADALINE settled near the least-squares fit and was both more accurate and far more stable.
- Lesson: a loss that measures how wrong, not just whether wrong, gives a stable optimum on overlapping data. This is why modern training uses smooth losses.
ADALINE in AI, robotics and aerospace
- Adaptive filtering: echo and noise cancellation, channel equalisation and interference rejection in communications.
- Adaptive control: LMS-style parameter updates appear in model-reference adaptive controllers and in active vibration control of structures.
- Online calibration of sensors, where a linear correction is updated continuously as conditions drift.
References
- B. Widrow, M. E. Hoff (1960). “Adaptive switching circuits.” IRE WESCON Convention Record, part 4.
- B. Widrow, M. A. Lehr (1990). “30 years of adaptive neural networks: perceptron, madaline, and backpropagation.” Proc. IEEE 78(9).
- B. Widrow, S. D. Stearns (1985). Adaptive Signal Processing. Prentice Hall.
- S. Haykin (2013). Adaptive Filter Theory, 5th ed. Pearson.