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.
Glossary
Least Mean Squares (LMS)

What is Least Mean Squares (LMS)?
A foundational stochastic gradient descent algorithm for adaptive filtering and coefficient estimation in digital predistortion systems.
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.
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.
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.
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.
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.
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.
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.
LMS vs. RLS vs. NLMS: Algorithm Comparison
A technical comparison of three core adaptive filtering algorithms used for coefficient estimation in digital predistortion systems.
| Feature | LMS | NLMS | RLS |
|---|---|---|---|
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) |
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.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Explore the core algorithms and mathematical concepts that underpin adaptive coefficient estimation for digital predistortion systems.
Recursive Least Squares (RLS)
An adaptive filtering algorithm that recursively finds the coefficients minimizing a weighted linear least squares cost function. Unlike LMS, RLS uses all available input data to compute the inverse of the autocorrelation matrix, resulting in faster convergence—typically an order of magnitude quicker than LMS. The trade-off is higher computational complexity: O(N²) versus O(N) for LMS. RLS is particularly effective for tracking time-varying PA nonlinearities in rapidly changing signal conditions.
Stochastic Gradient Descent (SGD)
An iterative optimization method that updates model parameters using the gradient of the loss function computed on a single or small batch of samples. LMS is a specific application of SGD to linear adaptive filtering. Key characteristics include:
- Noisy gradient estimates introduce misadjustment but help escape local minima
- Learning rate critically controls convergence speed vs. steady-state error trade-off
- Forms the foundation for mini-batch training in neural network-based DPD architectures
Condition Number
A measure of the sensitivity of a matrix to numerical errors, defined as the ratio of the largest to smallest singular value. In DPD coefficient estimation, a high condition number in the input signal's autocorrelation matrix indicates ill-conditioning, leading to:
- Amplified numerical noise in coefficient estimates
- Slow convergence or divergence in LMS and RLS
- Sensitivity to finite-precision arithmetic in FPGA implementations
Tikhonov regularization is commonly applied to reduce the effective condition number.
QR-RLS Algorithm
A numerically stable implementation of the RLS algorithm using QR decomposition to solve the least squares problem. By decomposing the data matrix into an orthogonal matrix Q and upper triangular matrix R, QR-RLS avoids explicit computation of the autocorrelation matrix inverse. Benefits include:
- Superior numerical robustness against ill-conditioning
- Well-suited for fixed-point FPGA implementation
- Maintains stability during periods of low input signal power
Often preferred over standard RLS in production DPD systems where numerical precision is constrained.
Misadjustment
The excess mean squared error in an adaptive system beyond the theoretical Wiener optimum, caused by gradient noise in stochastic coefficient updates. In LMS-based DPD training:
- Misadjustment is proportional to the step size μ
- Larger μ accelerates convergence but increases steady-state misadjustment
- Represents the fundamental convergence-vs-accuracy trade-off
For DPD applications, misadjustment directly translates to residual nonlinear distortion and degraded ACPR performance.
Levenberg-Marquardt Algorithm
A robust iterative optimization algorithm that interpolates between Gauss-Newton and gradient descent methods to solve nonlinear least squares curve-fitting problems. For DPD applications:
- Provides quadratic convergence near the optimum for memory polynomial coefficient extraction
- A damping parameter dynamically switches behavior based on error reduction
- Particularly effective for offline model extraction where computational cost is less constrained
- Handles the nonlinear parameter estimation required for Volterra series-based predistorters

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us