Least Mean Squares (LMS) is a stochastic gradient descent algorithm that adapts filter coefficients iteratively using a noisy estimate of the gradient of the mean squared error cost function. Unlike batch Least Squares (LS) which requires a full data matrix, LMS processes each new (input, error) pair sequentially, making it ideal for online system identification and adaptive Digital Predistortion (DPD) where tracking time-varying power amplifier behavior is critical.
Glossary
Least Mean Squares (LMS)

What is Least Mean Squares (LMS)?
The Least Mean Squares (LMS) algorithm is a foundational adaptive filtering technique that updates model coefficients sample-by-sample to minimize the instantaneous squared error, prized for its computational simplicity in real-time systems.
The algorithm's simplicity—requiring only O(N) multiply-accumulate operations per iteration for an N-tap filter—enables efficient implementation on FPGA and embedded hardware. However, its convergence speed depends heavily on the step-size parameter μ: a larger μ accelerates adaptation but risks instability, while a smaller μ yields lower steady-state misadjustment at the cost of slower tracking. Variants like Normalized LMS (NLMS) mitigate this sensitivity by scaling μ inversely with input signal power.
Key Characteristics of LMS
The Least Mean Squares (LMS) algorithm is a foundational stochastic gradient descent method for adaptive filtering. Its defining characteristics make it uniquely suited for real-time digital predistortion coefficient estimation where computational simplicity and sample-by-sample tracking are paramount.
Stochastic Gradient Descent Foundation
LMS operates as a stochastic approximation of the steepest descent method, replacing the true gradient of the mean squared error with an instantaneous estimate computed from a single sample. Unlike batch Least Squares (LS) which requires the full covariance matrix, LMS updates the weight vector w(n+1) = w(n) + μ e(n) x(n) at each time step, where μ is the step size, e(n) is the instantaneous error, and x(n) is the input regressor vector. This sample-by-sample recursion eliminates matrix inversion entirely, reducing computational complexity to O(N) per iteration where N is the number of filter taps.
Step Size and Convergence Tradeoff
The step size parameter μ (mu) governs the fundamental bias-variance tradeoff in LMS. A large μ accelerates convergence toward the Wiener solution but produces excessive misadjustment—the steady-state excess mean squared error above the theoretical minimum. A small μ yields precise coefficient estimates with low misadjustment but slows adaptation. The stability bound requires 0 < μ < 2/λ_max, where λ_max is the largest eigenvalue of the input autocorrelation matrix. In practice, μ is typically set to a fraction of 1/tr(R), where tr(R) is the total input power.
Misadjustment and Steady-State Error
Unlike deterministic batch algorithms, LMS never converges to the exact Wiener solution. It exhibits perpetual coefficient jitter around the optimum due to gradient noise. The misadjustment M quantifies this penalty: M ≈ μ · tr(R) / 2. This reveals the direct proportionality between step size and steady-state error. For DPD applications, this means the linearization performance floor is set by the chosen μ. Techniques like step size annealing—gradually reducing μ during training—can achieve both fast initial convergence and low final misadjustment.
Normalized LMS Variant
The Normalized LMS (NLMS) algorithm addresses LMS's sensitivity to input signal power fluctuations—a critical concern in DPD where signal crest factor varies. NLMS normalizes the step size by the instantaneous input power: μ(n) = μ̃ / (||x(n)||² + δ), where δ is a small regularization constant preventing division by zero. This power normalization ensures consistent convergence speed regardless of signal amplitude, making NLMS the preferred choice over standard LMS in predistortion applications where wideband signals exhibit high peak-to-average power ratios.
Computational Simplicity for Real-Time DPD
LMS requires only 2N+1 multiplications and 2N additions per iteration, where N is the number of predistorter coefficients. This minimal footprint enables direct hardware implementation on FPGAs and ASICs without complex matrix operations. Key operations:
- Filtering: y(n) = w^T(n) x(n) — N multiplications, N-1 additions
- Error computation: e(n) = d(n) - y(n) — 1 subtraction
- Weight update: w(n+1) = w(n) + μ e(n) x(n) — N+1 multiplications, N additions This deterministic, low-latency structure makes LMS the baseline algorithm against which more complex coefficient extraction methods are benchmarked.
Eigenvalue Spread Sensitivity
LMS convergence speed is governed by the eigenvalue spread of the input autocorrelation matrix R—the ratio λ_max/λ_min. A large spread, common in DPD where memory polynomial basis functions are highly correlated, causes slow convergence along directions corresponding to small eigenvalues. This ill-conditioning motivates alternatives like Transform-Domain LMS or Affine Projection Algorithms for coefficient extraction. Pre-whitening the regressor data or applying Principal Component Analysis (PCA) can compress the eigenvalue spread and accelerate LMS convergence in practice.
LMS vs. RLS vs. NLMS: Adaptive Algorithm Comparison
A feature-level comparison of three core adaptive filtering algorithms used for online coefficient estimation in digital predistortion systems.
| Feature | LMS | NLMS | RLS |
|---|---|---|---|
Algorithm Family | Stochastic Gradient Descent | Normalized Stochastic Gradient Descent | Recursive Least Squares |
Cost Function Minimized | Instantaneous Squared Error | Instantaneous Squared Error | Weighted Sum of Squared Errors |
Computational Complexity per Iteration | O(N) | O(N) | O(N²) |
Convergence Speed | Slow | Moderate | Fast |
Sensitivity to Input Signal Power | High | Low | Low |
Steady-State Misadjustment | Higher | Moderate | Lower |
Numerical Stability | High | High | Moderate |
Suitable for Time-Varying Systems |
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.
Frequently Asked Questions
Quick, precise answers to common questions about the Least Mean Squares algorithm and its role in adaptive filter coefficient estimation for digital predistortion systems.
The Least Mean Squares (LMS) algorithm is a stochastic gradient descent method that adapts filter coefficients sample-by-sample to minimize the instantaneous squared error between a desired signal and the filter's actual output. Unlike batch algorithms that require the entire dataset, LMS operates iteratively: for each new input sample, it computes the error, then nudges the coefficient vector in the negative gradient direction scaled by a step size parameter (μ). The update rule is w(n+1) = w(n) + μ * e(n) * x(n), where w is the coefficient vector, e(n) is the instantaneous error, and x(n) is the input regressor. This simplicity makes LMS the foundational workhorse for real-time adaptive systems where computational resources are constrained and latency must be minimal.
Related Terms
Explore the core algorithms and architectural patterns that build upon or contrast with the Least Mean Squares (LMS) algorithm for adaptive coefficient estimation in digital predistortion systems.
Recursive Least Squares (RLS)
An adaptive filtering algorithm that recursively updates the inverse of the input correlation matrix to achieve an order of magnitude faster convergence than LMS. Unlike LMS, which uses a stochastic instantaneous gradient, RLS minimizes a weighted least-squares cost function of all past errors.
- Convergence is typically an order of magnitude faster than LMS
- Computational complexity is O(N²) versus O(N) for LMS
- Insensitive to the eigenvalue spread of the input signal
- Ideal for rapidly time-varying PA characteristics where LMS tracking is too slow
Normalized LMS (NLMS)
A variant of LMS that normalizes the step size by the instantaneous power of the input vector. This prevents gradient noise amplification when input signal levels fluctuate, a common scenario in wideband communication signals with high peak-to-average power ratios.
- Step size μ is divided by ||x(n)||² + ε
- Maintains stability across varying signal envelopes
- Adds minimal computational overhead over standard LMS
- The regularization constant ε prevents division by zero during silent periods
Least Squares (Batch LS)
A batch estimation algorithm that computes the optimal coefficient vector in a single step by solving the normal equations. Unlike LMS, which processes samples sequentially, batch LS uses the entire captured data record to minimize the sum of squared residuals.
- Solution: w = (XᴴX)⁻¹Xᴴy using the Moore-Penrose pseudoinverse
- Provides the global minimum for the given data record
- Used for offline model extraction during PA characterization
- Computationally intensive for large datasets due to matrix inversion
Forgetting Factor (λ)
A scalar parameter in recursive estimation that exponentially weights recent data more heavily than past samples. When integrated with LMS-like updates, it enables the model to track slowly time-varying PA characteristics caused by thermal drift and aging.
- Typical range: 0.95 < λ < 0.999
- λ = 1.0 corresponds to infinite memory (stationary assumption)
- Lower λ values provide faster tracking but noisier estimates
- Essential for long-term operational stability in deployed DPD systems

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