A cost function is a scalar-valued mathematical expression that quantifies the discrepancy between the ideal linear signal and the actual nonlinear power amplifier output during DPD training. It maps the error vector—the difference between the desired predistorter input and the observed PA output—to a single real number that the coefficient estimation algorithm seeks to minimize.
Glossary
Cost Function

What is Cost Function?
The cost function is the mathematical objective minimized during digital predistortion training, quantifying the error between the desired linear output and the actual power amplifier output.
Common formulations include the mean squared error (MSE) between the reference and linearized signals, often expressed as Normalized Mean Squared Error (NMSE). The choice of cost function directly impacts convergence rate and steady-state misadjustment, with alternatives like weighted least squares or regularized objectives incorporating Tikhonov regularization to stabilize ill-conditioned inverse problems.
Key Properties of DPD Cost Functions
The mathematical objective functions minimized during digital predistortion training, defining how the error between the desired linear output and actual PA output is quantified and penalized.
Mean Squared Error (MSE)
The fundamental cost function in DPD training that computes the average squared difference between the desired input signal and the actual PA output.
Key characteristics:
- Penalizes large errors quadratically, making it sensitive to outliers and peak distortion
- Provides a convex optimization surface for linear-in-parameters models like memory polynomials
- Directly relates to Normalized MSE (NMSE) , the standard DPD performance metric
Example: For a 100 MHz 5G NR signal, minimizing MSE typically achieves NMSE values below -40 dB after convergence.
Weighted Error Criteria
Cost functions that apply frequency-dependent weighting to prioritize linearization accuracy in specific spectral regions.
Common weighting strategies:
- In-band emphasis: Higher weights on in-band frequencies to minimize EVM degradation
- Out-of-band emphasis: Higher weights on adjacent channels to meet stringent ACPR specifications
- Frequency-domain weighting: Apply FFT to error signal and weight bins according to spectral mask requirements
Application: Critical for 5G NR systems where 3GPP specifies different ACLR limits for adjacent and alternate channels, requiring targeted optimization.
Regularized Cost Functions
Augmented objective functions that add penalty terms to prevent overfitting and improve numerical stability during coefficient estimation.
Regularization types:
- L2 (Ridge): Adds λ||w||² to penalize large coefficient magnitudes, preventing coefficient drift
- L1 (Lasso): Adds λ||w||₁ to promote sparsity, useful for reducing LUT entries
- Elastic Net: Combines L1 and L2 penalties for both sparsity and stability
Practical impact: Without regularization, DPD coefficients can drift by 3-5 dB in NMSE performance over temperature cycles of -40°C to +85°C.
Stochastic Gradient Descent (SGD) Loss
An iterative optimization approach that updates DPD coefficients using instantaneous gradient estimates rather than batch processing.
Algorithm characteristics:
- Update rule: w(n+1) = w(n) - μ∇J(w(n)) where μ is the learning rate
- Converges to Wiener solution for MSE cost functions when μ is properly chosen
- Trade-off between convergence rate (larger μ) and misadjustment (steady-state error)
Implementation: LMS algorithm is the most common SGD variant in DPD, requiring only O(N) operations per sample versus O(N³) for LS solutions.
Peak-Aware Loss Functions
Cost functions designed to specifically penalize distortion at high signal amplitudes where PA compression is most severe.
Advanced formulations:
- Huber loss: Quadratic for small errors, linear for large errors—robust to outliers
- Log-cosh loss: Smooth approximation of absolute error, less sensitive to measurement noise
- Custom weighting: Apply amplitude-dependent weights emphasizing the PAPR region (top 1% of samples)
Benefit: Reduces peak EVM by 2-3 dB compared to uniform MSE minimization, critical for high-order QAM constellations (256-QAM, 1024-QAM).
Common Cost Functions in DPD
Comparison of mathematical objective functions minimized during digital predistorter coefficient estimation, including their formulations, convergence properties, and typical applications.
| Cost Function | Formulation | Convergence Speed | Robustness to Noise | Typical Application |
|---|---|---|---|---|
Mean Squared Error (MSE) | J = E[|y(n) - ŷ(n)|²] | Moderate | High | General DPD training with Gaussian noise assumptions |
Normalized Mean Squared Error (NMSE) | J = E[|y(n) - ŷ(n)|²] / E[|y(n)|²] | Moderate | High | Performance evaluation and model validation |
Least Squares (LS) | J = ||y - Xw||² | Fast (batch) | Moderate | Offline coefficient extraction in ILA architectures |
Weighted Least Squares (WLS) | J = (y - Xw)ᵀW(y - Xw) | Fast (batch) | High | Emphasizing high-power regions for ACLR reduction |
Regularized Least Squares (Ridge) | J = ||y - Xw||² + λ||w||² | Fast (batch) | Very High | Ill-conditioned problems with high condition number matrices |
Instantaneous Squared Error | J = |e(n)|² = |y(n) - ŷ(n)|² | Slow | Low | Sample-by-sample LMS adaptive updates |
Exponentially Weighted RLS | J = Σ λⁿ⁻ᵏ|e(k)|² | Very Fast | High | Tracking time-varying PA characteristics in closed-loop DPD |
Log-Cosh Loss | J = Σ log(cosh(y(n) - ŷ(n))) | Moderate | Very High | Robust DPD training with impulsive noise or outliers |
Frequently Asked Questions
Clear answers to common questions about the mathematical objective functions that drive digital predistortion training and coefficient optimization.
A cost function in digital predistortion is a mathematical objective function that quantifies the error between the desired linear output and the actual power amplifier output, which the DPD training algorithm minimizes to find optimal predistorter coefficients. The most common form is the mean squared error (MSE) between the ideal input signal and the observed PA output, often expressed as J(w) = E[|y_desired(n) - y_actual(n)|²] where w represents the predistorter coefficients. This scalar value provides a single metric that the optimization algorithm—whether Least Mean Squares (LMS), Recursive Least Squares (RLS), or stochastic gradient descent—uses to iteratively adjust parameters. The choice of cost function directly impacts convergence behavior, steady-state error, and the predistorter's ability to suppress spectral regrowth while maintaining in-band signal quality.
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
The cost function quantifies the error between the desired linear output and the actual PA output. Understanding these related concepts is essential for selecting and optimizing the objective function during DPD training.
Mean Squared Error (MSE)
The most common cost function in DPD training, defined as the average of the squared differences between the desired signal (x(n)) and the PA output (y(n)).
- Formula: (J = \frac{1}{N} \sum_{n=1}^{N} |x(n) - y(n)|^2)
- Properties: Convex, differentiable, and heavily penalizes large errors due to squaring
- Use case: Default choice for offline coefficient estimation using least squares or gradient descent
- Limitation: Sensitive to outliers in the training data, which can bias the predistorter model
Normalized Mean Squared Error (NMSE)
A normalized variant of MSE that expresses the linearization error relative to the input signal power, enabling fair comparison across different signal levels and test conditions.
- Formula: (\text{NMSE} = 10 \log_{10} \left( \frac{\sum |x(n) - y(n)|^2}{\sum |x(n)|^2} \right)) dB
- Typical targets: -35 dB to -45 dB for high-quality linearization
- Advantage: Provides a scale-invariant metric that is independent of absolute signal amplitude
- Industry standard: Widely reported in academic literature and DPD benchmark comparisons
Weighted Least Squares (WLS)
An extension of the least squares cost function that assigns different importance weights to different signal regions, prioritizing linearization accuracy where it matters most.
- High-power weighting: Emphasizes accuracy near PA compression where nonlinearity is strongest
- Spectral weighting: Applies frequency-domain weights to suppress spectral regrowth in specific adjacent channels
- Implementation: (J = \sum w_n |x(n) - y(n)|^2) where (w_n) is the sample weight
- Benefit: Allows engineers to trade off in-band EVM against out-of-band ACPR performance
Regularization Penalty
An additional term added to the cost function to prevent overfitting and improve numerical stability during coefficient estimation.
- Tikhonov (L2) regularization: (J = \text{MSE} + \lambda |\mathbf{w}|^2_2), penalizes large coefficient magnitudes
- Lasso (L1) regularization: (J = \text{MSE} + \lambda |\mathbf{w}|_1), promotes sparse predistorter models
- Role: Controls the condition number of the estimation matrix, preventing ill-conditioned solutions
- Parameter (\lambda): The regularization hyperparameter balancing model fit against model complexity
Adjacent Channel Error Ratio
A frequency-domain cost function that directly minimizes spectral regrowth by penalizing error power in adjacent channels rather than across the entire bandwidth.
- Motivation: Standard MSE optimizes in-band error but does not explicitly target ACPR compliance
- Formulation: (J = \sum_{k \in \text{adj}} |E(f_k)|^2) where (E(f)) is the error spectrum
- Application: Used when strict regulatory spectral masks must be met
- Trade-off: May increase in-band EVM while improving out-of-band suppression
Stochastic Gradient Descent (SGD)
The iterative optimization algorithm that minimizes the cost function by updating predistorter coefficients in the direction of the negative gradient, computed on small batches of samples.
- Update rule: (\mathbf{w}_{k+1} = \mathbf{w}_k - \mu \nabla J(\mathbf{w}_k))
- Learning rate (\mu): Controls step size; too large causes instability, too small slows convergence rate
- Online variant: Enables sample-by-sample update for real-time adaptive DPD
- Relationship to LMS: The Least Mean Squares algorithm is a special case of SGD applied to the MSE cost function

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