Inferensys

Glossary

Least Mean Squares (LMS)

A stochastic gradient descent algorithm that updates filter coefficients based on the instantaneous estimate of the mean squared error gradient.
Knowledge engineer constructing knowledge base on laptop, document hierarchy visible, casual office setup.
ADAPTIVE FILTERING ALGORITHM

What is Least Mean Squares (LMS)?

A foundational stochastic gradient descent algorithm for adaptive filtering and coefficient estimation in digital predistortion systems.

Least Mean Squares (LMS) is a stochastic gradient descent algorithm that iteratively updates filter coefficients by minimizing the instantaneous estimate of the mean squared error between a desired signal and the actual output. Unlike batch methods requiring complete statistics, LMS operates sample-by-sample, making it computationally lightweight and suitable for real-time adaptive filtering in non-stationary environments.

The algorithm's simplicity comes with a trade-off: its convergence rate depends on the step-size parameter, where larger values accelerate adaptation but increase steady-state misadjustment—the excess error caused by gradient noise. In digital predistortion contexts, LMS serves as a baseline coefficient estimator within indirect learning architectures, though its slow convergence often leads engineers to prefer Recursive Least Squares (RLS) for faster tracking of power amplifier nonlinearities.

ALGORITHM FUNDAMENTALS

Key Characteristics of LMS

The Least Mean Squares (LMS) algorithm is a foundational stochastic gradient descent method for adaptive filtering. Its simplicity and robustness make it a benchmark for online coefficient estimation in digital predistortion systems.

01

Stochastic Gradient Descent Core

LMS updates filter coefficients using the instantaneous estimate of the gradient of the mean squared error cost function. Unlike batch methods, it processes one sample at a time:

  • Update Rule: w(n+1) = w(n) + μ * e(n) * x(n)
  • e(n): Instantaneous error between desired and actual output
  • x(n): Input signal vector
  • μ: Step-size parameter controlling convergence speed and stability This sample-by-sample operation makes it ideal for real-time DPD coefficient tracking.
O(N)
Complexity per Iteration
1 sample
Update Granularity
02

Step-Size Trade-off

The step-size parameter μ governs a fundamental performance trade-off:

  • Large μ: Faster convergence but larger steady-state misadjustment and potential instability
  • Small μ: Lower misadjustment and smoother steady-state behavior but slower convergence
  • Stability Bound: 0 < μ < 2 / λ_max, where λ_max is the largest eigenvalue of the input autocorrelation matrix In DPD applications, μ must be carefully tuned to track PA thermal memory effects without introducing excessive gradient noise.
0 < μ < 2/λ_max
Stability Condition
03

Misadjustment in Adaptive Systems

Misadjustment is the excess mean squared error beyond the theoretical Wiener optimum, caused by gradient noise in stochastic updates:

  • Source: LMS uses noisy instantaneous gradient estimates instead of true ensemble averages
  • Proportional to μ: Misadjustment increases linearly with step-size
  • Steady-state MSE: ξ_steady = ξ_min + ξ_excess
  • Trade-off: Faster convergence (higher μ) directly increases the noise floor of coefficient estimates In DPD, excessive misadjustment manifests as residual spectral regrowth and degraded ACPR performance.
05

Convergence Rate Limitations

LMS convergence speed is governed by the eigenvalue spread of the input autocorrelation matrix:

  • Eigenvalue Spread: Ratio of λ_max to λ_min determines convergence time
  • Highly Correlated Inputs: Signals with large eigenvalue spreads (e.g., narrowband or highly oversampled waveforms) slow convergence dramatically
  • Comparison to RLS: Recursive Least Squares achieves faster convergence independent of eigenvalue spread but at O(N²) complexity
  • DPD Implication: For wideband signals with flat spectra, LMS converges efficiently; for narrowband training tones, convergence may be unacceptably slow.
06

Gradient Noise and Coefficient Drift

The noisy gradient estimates in LMS introduce two related phenomena:

  • Gradient Noise: Random perturbations in coefficient updates that prevent exact convergence to the Wiener solution
  • Coefficient Drift: Gradual wandering of coefficients from optimal values, exacerbated by:
    • Finite-precision arithmetic in fixed-point FPGA implementations
    • Low-level persistent excitation noise
    • Thermal variations in PA characteristics
  • Mitigation: Leakage LMS adds a small leakage factor γ to the update: w(n+1) = γ*w(n) + μ*e(n)*x(n) to bound coefficient magnitudes and prevent drift.
ADAPTIVE FILTERING ALGORITHMS

LMS vs. RLS vs. NLMS: Algorithm Comparison

A technical comparison of three core adaptive filtering algorithms used for coefficient estimation in digital predistortion systems.

FeatureLMSNLMSRLS

Algorithm Family

Stochastic Gradient Descent

Normalized Stochastic Gradient Descent

Recursive Least Squares

Cost Function

Instantaneous Squared Error

Instantaneous Squared Error (Normalized)

Weighted Least Squares (Deterministic)

Convergence Rate

Slow

Moderate (Input-Invariant)

Fast (Order of Magnitude)

Computational Complexity per Iteration

O(N)

O(N)

O(N²)

Sensitivity to Input Signal Scaling

High

Low (Self-Normalizing)

Low

Steady-State Misadjustment

Moderate

Moderate

Low

Numerical Stability

High

High

Moderate (Requires Regularization)

Tracking Capability for Non-Stationary Systems

Good

Good

Poor (Memory Dependent on Forgetting Factor)

LEAST MEAN SQUARES IN DPD

Frequently Asked Questions

Clear answers to common questions about the Least Mean Squares algorithm and its role in adaptive digital predistortion coefficient estimation.

The Least Mean Squares (LMS) algorithm is a stochastic gradient descent method that adaptively updates filter coefficients to minimize the instantaneous squared error between a desired signal and the actual output. In digital predistortion, LMS iteratively adjusts the predistorter coefficients by moving them in the opposite direction of the error gradient. The update equation is w(n+1) = w(n) + μ * e(n) * x(n), where w represents the coefficient vector, μ is the step size controlling convergence speed, e(n) is the error signal, and x(n) is the input regressor. Unlike Recursive Least Squares (RLS), LMS uses only the current sample's gradient estimate, making it computationally lightweight—requiring only 2N+1 multiplications per iteration for an N-tap filter—but slower to converge when the input signal is highly correlated.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.