Adaptive LMS Filter

Research
Introduced by
Bernard Widrow and Marcian E. Hoff
Year
1960
Type
Gradient descent adaptive filtering
Family
Adaptive signal processing

What does it do?

The Least Mean Squares (LMS) filter is an adaptive signal processing algorithm that updates its coefficients sample by sample to reduce the squared error between the filter output and a desired signal. Introduced by Bernard Widrow and Marcian Hoff in 1960, it is a gradient-descent method whose per-sample cost is low enough for real-time and embedded use.

Its main trade-off is slower convergence than more computationally demanding adaptive algorithms.

The intuition behind the method

At each sample, LMS takes the current error e(n), the difference between the desired signal and the filter output, and uses it to estimate the gradient of the squared error. Each coefficient is then moved a small step in the direction that reduces that error. Because the gradient is estimated from one sample rather than from full signal statistics, the update is noisy, but the filter can track signals and systems whose characteristics change over time without first estimating their statistics or identifying the system.

History

Bernard Widrow and Marcian Hoff introduced the LMS rule in 1960 in Adaptive Switching Circuits, in the context of the adaline adaptive element. The algorithm became a standard reference point for adaptive filtering and has been applied to adaptive antenna arrays, echo cancellation in telecommunications and system identification. Later algorithms, including normalized and recursive least-squares variants, are often compared with it as a baseline.

When to use it

Choose LMS for real-time filtering when the signal or system is unknown at the start or changes over time, and when the per-sample computation and memory must stay small, as in embedded or streaming systems. It is a common choice for echo cancellation, channel equalization, adaptive noise cancellation and system identification. Do not use plain LMS when fast convergence is required; RLS converges faster at a higher computational cost. On strongly correlated inputs, plain LMS converges slowly and normalization does not remove this slowdown, so avoid it there when convergence speed matters. When the signal statistics are known and stationary, a batch or Wiener design is usually more direct.

Limitations and considerations

  • When the input is strongly correlated, convergence is slow, because the spread of the eigenvalues of the input autocorrelation matrix controls how quickly different coefficient directions converge.
  • Performance depends strongly on the step size: a value that is too large makes the update unstable, and one that is too small makes convergence very slow.
  • Gradient noise from single-sample estimates causes misadjustment: after convergence the coefficients keep fluctuating around the optimum, which leaves a larger residual error than the ideal solution.
  • When the signal statistics are known and the environment is stationary, the Wiener filter gives the optimal linear solution directly; LMS only approaches that solution, with fluctuations caused by gradient noise.
  • For a linear FIR filter the error surface is a single quadratic bowl. If the structure is made nonlinear, gradient descent may settle in local minima rather than the global optimum.
  • Its convergence and misadjustment results rest on assumptions: the input and desired signals are stationary or vary slowly, the step size is small enough that the coefficients change slowly relative to the signal, and the usual independence assumptions hold. When these conditions fail, the comparison with the Wiener solution and the description of convergence behaviour may not apply.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Low per-sample cost: the filter output and the coefficient update each require multiplications and additions proportional to the filter length, which suits embedded hardware.
  • It avoids forming and inverting the input autocorrelation matrix, which Wiener-type solutions require, so it can run directly on streaming data.
  • It tracks non-stationary signals because the coefficients are updated continuously rather than fitted once to a fixed data set.
  • Its main settings are the step size and the filter length, and it needs no explicit model of the system being identified.
  • It has been applied in many practical settings, from telecommunications to biomedical signal processing.

Applications

  • Echo cancellation in telecommunications and voice conferencing systems for removing reflected signals
  • Channel equalization in high-speed digital communications to counteract inter-symbol interference
  • Adaptive noise cancellation in biomedical applications, such as artifact removal from ECG and EEG signals
  • System identification to estimate unknown system impulse responses in feedback control and modeling
  • Active noise control in audio systems and vibration suppression in mechanical structures

How it works

How it works

1

Obtain the input signal and the desired reference signal that the adaptive filter should estimate or track.

2

Set the initial coefficients (typically zero) and choose the step size μ, which controls the trade-off between adaptation speed and stability. Stability requires μ to stay below a limit that depends on the input power, so μ must be scaled to the signal level. A value that is stable for one signal can make the coefficients diverge on a signal of larger amplitude.

3

Compute the filter output by convolving the input with the current coefficients, then form the error e(n) as the desired signal minus that output.

4

Update the coefficients with the LMS rule w(n+1) = w(n) + 2·μ·e(n)·x(n), where μ is the step size, e(n) is the error and x(n) is the vector of recent input samples. The update uses only the current error and input, so no matrix inversion or stored signal statistics are required.

5

Monitor the error over time. If convergence is too slow the step size may be increased; if the error oscillates or grows, it should be reduced. Iteration continues until the coefficients settle around a stable solution. Under the assumptions listed in the limitations, this solution is close to the Wiener solution, and the steady-state error that remains above the Wiener minimum is the misadjustment caused by gradient noise. Comparing the settled error with the Wiener minimum, where that minimum can be estimated, shows how large this excess is. A steadily growing error indicates divergence, so μ should be reduced. Check the error trajectory on a test signal with known characteristics before deploying the filter.

Common pitfalls

  • Choosing a step size that is too large for the input power, which makes the coefficients diverge rather than converge.
  • Ignoring input power when setting μ: the same step size behaves very differently on signals of different amplitude, so settings may not transfer between applications unless μ is scaled to the input power.
  • Using plain LMS on strongly correlated inputs, where convergence becomes slow because the eigenvalue spread of the input autocorrelation matrix is large. NLMS normalises the step size by input power, which reduces sensitivity to signal level, but it does not remove the slowdown caused by eigenvalue spread. Preprocessing with whitening is the remedy that targets that spread.
  • Not monitoring the error trajectory during real-time operation, so divergence or changes in adaptation behaviour go unnoticed.

Frequently asked questions

How do I choose the learning rate (step size) for LMS?

No single value works for all signals. Stability depends on the input power, so the step size must be scaled to the signal level. Start with a small step size and increase it gradually while watching the error: oscillation or growing error means the step size is too large, and very slow decrease means it is too small. Normalized LMS (NLMS) scales the step size by the instantaneous input power, which makes the setting less dependent on signal level.

Why does LMS convergence slow down with correlated input signals?

Convergence speed is governed by the eigenvalue spread of the input autocorrelation matrix. Strongly correlated input gives widely spread eigenvalues, so the coefficient directions converge at very different rates, and the slowest directions dominate the time the filter needs to settle. Gradient noise does not cause this slowdown; it affects the steady-state misadjustment. Preprocessing with whitening reduces the eigenvalue spread and helps mitigate the issue. NLMS addresses the dependence on input power rather than on correlation.

What is the difference between LMS and NLMS (Normalized LMS)?

NLMS modifies the learning rate to be adaptive based on instantaneous input power: μ(n) = μ₀/(δ + ||x(n)||²), where δ is a small constant. The coefficient update becomes w(n+1) = w(n) + μ₀·e(n)·x(n)/(δ + ||x(n)||²). Because the step size is divided by the input power, the adaptation rate depends less on signal level, which is the main benefit of NLMS. It does not remove the slowdown caused by eigenvalue spread on correlated inputs. μ₀ must be kept small enough for stable adaptation, and δ prevents division by zero when the input power is small. NLMS is slightly more computationally expensive but often worth it for improved robustness.

Can LMS be used for nonlinear filtering?

Standard LMS is inherently linear. However, nonlinear variants exist, such as LMS with nonlinear activation functions in each tap (artificial neural networks) or kernel-based adaptive filters that implicitly operate in high-dimensional feature spaces. These nonlinear extensions are more computationally expensive but can adapt to nonlinear relationships between input and desired output.

Related methods

Sources

  1. Widrow, B., & Hoff, M. E. (1960). Adaptive Switching Circuits. IRE Wescon Convention Record, 4, 96–104.

    Open publication reference
  2. Haykin, S. (2002). Adaptive Filter Theory (4th ed.). Prentice Hall.

    Open publication reference