# 自适应滤波器

自适应滤波器是一种数字滤波器，其系数由某种算法随时间自动调整，该算法通过最小化某个误差准则来实现这一点，因此在最佳滤波器响应事先未知或工作环境发生变化时，滤波器可以执行噪声消除、回声消除、系统辨识、信道均衡和预测。<sup>[1](https://course.ece.cmu.edu/~ece491/lectures/L27/AdaptiveFilteringChap_ADSP.pdf)</sup> 每个自适应滤波器都有两个组成部分：一个由其系数向量定义的数字滤波器，以及一个根据期望信号 \( d(n) \) 与滤波器输出 \( y(n) \) 之间的误差 \( e(n) = d(n) - y(n) \) 来更新这些系数的自适应算法。<sup>[2](https://www.egr.unlv.edu/~b1morris/ee482/slides/06_slides_adaptive.pdf)</sup> 已发表的应用涵盖噪声与回声消除、信道均衡、主动噪声控制、自适应阵列、生物医学信号分析、自适应预测和系统辨识。<sup>[3](https://sensip.engineering.asu.edu/wp-content/uploads/sites/68/2020/04/IEEE-IISA-2016-Adaptive-Survey-Explore-compliant-192-spanias-PID4373685.pdf)</sup>

| 关键事实 | 详情 |
| --- | --- |
| 结构 | 数字滤波器加上由 \( e(n) = d(n) - y(n) \) 驱动的自适应算法 <sup>[2](https://www.egr.unlv.edu/~b1morris/ee482/slides/06_slides_adaptive.pdf)</sup> |
| 应用类别 | 系统辨识、预测、噪声消除、逆建模（均衡）<sup>[2](https://www.egr.unlv.edu/~b1morris/ee482/slides/06_slides_adaptive.pdf)</sup> |
| LMS 更新 | \( w[n+1] = w[n] + \mu \cdot e[n] \cdot x[n] \)，其中因子 2 被吸收进 \( \mu \) 的定义中，因此同一更新在别处写作 \( w_{k+1}(i) = w_k(i) + 2\mu \cdot e_k \cdot x_{k-i} \)；一种 \( O(2N) \) 算法，成本约为固定滤波器的两倍 <sup>[4](https://www.commsp.ee.ic.ac.uk/~mandic/SE_ASP_LN/ASP_MI_Lecture_5_Adaptive_Filters_2017.pdf)</sup> |
| LMS 稳定性 | 收敛要求 \( 0 < \mu < 2/\lambda_{\max} \)，其中 \( \lambda_{\max} \) 是输入自相关矩阵的最大特征值 <sup>[5](https://www.mathworks.com/help/dsp/ug/compare-rls-and-lms-adaptive-filter-algorithms.html)</sup> |
| 失调 | \( M \approx \tfrac{1}{2}\mu\,\mathrm{tr}\{R\} \)，与步长、滤波器长度和输入功率成正比 <sup>[4](https://www.commsp.ee.ic.ac.uk/~mandic/SE_ASP_LN/ASP_MI_Lecture_5_Adaptive_Filters_2017.pdf)</sup> |
| NLMS | 归一化步长；因其复杂度适中且数值稳定，是声学回声消除的主力算法 <sup>[6](https://link.springer.com/article/10.1186/s13634-015-0283-1)</sup> |
| RLS | 收敛速度比 LMS 更快、稳态误差更低，但计算成本显著更高；可表述为卡尔曼滤波器的特例 <sup>[5](https://www.mathworks.com/help/dsp/ug/compare-rls-and-lms-adaptive-filter-algorithms.html)</sup><sup> • </sup><sup>[3](https://sensip.engineering.asu.edu/wp-content/uploads/sites/68/2020/04/IEEE-IISA-2016-Adaptive-Survey-Explore-compliant-192-spanias-PID4373685.pdf)</sup> |

## 工作原理

自适应环路最小化均方误差 \( \xi^2 = E[e_k^2] = E[d_k^2] + W^{\mathrm T} R W - 2 P^{\mathrm T} W \)，其中 \( R = E[X_k \cdot X_k^{\mathrm T}] \) 是输入自相关矩阵，\( P = E[d_k \cdot X_k] \) 是互相关向量。<sup>[1](https://course.ece.cmu.edu/~ece491/lectures/L27/AdaptiveFilteringChap_ADSP.pdf)</sup> 由于该代价函数关于权重是二次的，将其梯度置零即得维纳–霍普夫方程 \( W_{\mathrm{opt}} = R_{XX}^{-1} R_{yX} \)，这就是在信号统计特性已知时固定最优滤波器所实现的[维纳滤波器](https://www.edgepedia.org/zh/wiener-filter)。<sup>[7](https://www.staff.ncl.ac.uk/oliver.hinton/eee305/Chapter7.pdf)</sup> 自适应滤波器并不知道 \( R \) 和 \( P \)；它用瞬时估计代替真实梯度，逐样本执行最陡下降。<sup>[8](https://isl.stanford.edu/~widrow/papers/j1975thecomplex.pdf)</sup>

LMS 算法就是由此得到的随机梯度方法：随着迭代进行，权重向量围绕维纳解做随机游走，而非精确收敛到该解上；与精确最陡下降不同，它无需预先知道环境的统计特性。<sup>[9](https://users.ece.utexas.edu/~vtelang/ece351m/ReadingAssignments/LMShaykin.pdf)</sup> 步长 \( \mu \) 同时控制速度和残余误差：其倒数充当记忆跨度，因此较小的 \( \mu \) 对更多数据做平均，收敛更慢。<sup>[9](https://users.ece.utexas.edu/~vtelang/ece351m/ReadingAssignments/LMShaykin.pdf)</sup> 收敛时间由最小特征值决定，大致为 \( \tau \cong 1/(\mu \cdot \lambda_{\min}) \)；当 \( R \) 的特征值比 \( \lambda_{\min}/\lambda_{\max} \) 远小于 1 时，收敛缓慢且跟踪性能差。<sup>[2](https://www.egr.unlv.edu/~b1morris/ee482/slides/06_slides_adaptive.pdf)</sup><sup> • </sup><sup>[10](https://ocw.mit.edu/courses/2-161-signal-processing-continuous-and-discrete-fall-2008/d500ebd932a80d4417a1ba42fe7f5429_adaptivels.pdf)</sup>

## 如何实现

每处理一个样本，实践者都运行同一个循环：将参考输入移入滤波器，计算输出 \( y(n) \)，求出期望信号与输出之间的误差，并更新系数。对于 \( N \) 抽头 FIR 滤波器，LMS 更新为 \( w_{k+1}(i) = w_k(i) + 2\mu \cdot e_k \cdot x_{k-i} \)，其中 \( i = 0, \ldots, N-1 \)。<sup>[7](https://www.staff.ncl.ac.uk/oliver.hinton/eee305/Chapter7.pdf)</sup> LMS 每次更新约需 \( 2N \) 次运算，相比之下快速卡尔曼 RLS 需 \( 10N+1 \) 次，基于 FFT 的分块 LMS 需 \( 10\log(N)+8 \) 次。<sup>[11](http://udrc.eng.ed.ac.uk/sites/udrc.eng.ed.ac.uk/files/publications/optimal_adaptive_filtering-muney-1_2.pdf)</sup>

**归一化与投影方法。** NLMS 将步长除以滤波器记忆中的输入功率，得到更新式 \( \hat{h}(n) = \hat{h}(n-1) + \alpha\, x(n) \cdot e(n) / (x^{\mathrm T}(n) \cdot x(n) + \delta) \)，其中归一化步长 \( 0 < \alpha < 2 \)，正则化参数 \( \delta \) 取决于系统信噪比。<sup>[6](https://link.springer.com/article/10.1186/s13634-015-0283-1)</sup> [仿射投影算法](https://www.edgepedia.org/zh/affine-projection-algorithm)是 NLMS 的一种变体，以额外的计算成本换取更快的收敛；它由尾关和彦（Kazuhiko Ozeki）和梅田哲夫（Tetsuo Umeda）于 1984 年提出。<sup>[12](https://doi.org/10.1002/ecja.4400670503)</sup><sup> • </sup><sup>[13](https://www.ijert.org/a-survey-on-the-different-adaptive-algorithms-used-in-adaptive-filters)</sup>

**RLS。** 递归最小二乘最小化总加权平方误差 \( C(w_n) = \sum_{i=0}^{n} \lambda^{n-i} e^2(i) \)，其中遗忘因子 \( \lambda \in (0,1] \) 降低旧数据的权重。<sup>[5](https://www.mathworks.com/help/dsp/ug/compare-rls-and-lms-adaptive-filter-algorithms.html)</sup> 当输入相关时，RLS 比 LMS 收敛更快，因为它同时迭代估计 \( R^{-1} \) 和梯度，并且在自适应滤波中接近卡尔曼滤波器的性能；[卡尔曼滤波](https://www.edgepedia.org/zh/kalman-filter)器本身通过一个适用于平稳和非平稳统计特性的递归协方差方程来求解线性估计与预测问题。<sup>[1](https://course.ece.cmu.edu/~ece491/lectures/L27/AdaptiveFilteringChap_ADSP.pdf)</sup><sup> • </sup><sup>[5](https://www.mathworks.com/help/dsp/ug/compare-rls-and-lms-adaptive-filter-algorithms.html)</sup><sup> • </sup><sup>[14](https://doi.org/10.1115/1.3662552)</sup>

## 起源

LMS 算法由 B. 维德罗（B. Widrow）和 M. E. 霍夫（M. E. Hoff）在 1960 年的论文《自适应开关电路》（"Adaptive Switching Circuits"）中提出。<sup>[15](https://doi.org/10.21236/ad0241531)</sup> R. E. 卡尔曼（R. E. Kalman）1960 年发表在《基础工程杂志》（Journal of Basic Engineering）上的论文《线性滤波与预测问题的新方法》（"A New Approach to Linear Filtering and Prediction Problems"）用状态转移方法重新表述了经典滤波与预测问题。<sup>[14](https://doi.org/10.1115/1.3662552)</sup> 1967 年，B. 维德罗及其同事在《IEEE 会刊》（Proceedings of the IEEE）上发表了《自适应天线系统》（"Adaptive antenna systems"）。<sup>[16](https://doi.org/10.1109/proc.1967.6092)</sup> 20 世纪 60 和 70 年代自适应均衡器和自适应回声消除器进入电信实践后，LMS 的使用范围得以扩展。<sup>[17](https://isl.stanford.edu/~widrow/papers/j2005thinkingabout.pdf)</sup>

## 变体

有名称的 LMS 变体包括归一化 LMS、泄漏 LMS、带死区的 LMS、符号–符号 LMS 和中值 LMS；滤波-x LMS 用于控制应用和主动噪声控制。<sup>[3](https://sensip.engineering.asu.edu/wp-content/uploads/sites/68/2020/04/IEEE-IISA-2016-Adaptive-Survey-Explore-compliant-192-spanias-PID4373685.pdf)</sup> 诸如 PNLMS 之类的比例算法按照估计冲激响应幅度的比例调整每个抽头的增益，对回声路径等稀疏响应给出更快的初始收敛，但总体收敛比 NLMS 慢。<sup>[13](https://www.ijert.org/a-survey-on-the-different-adaptive-algorithms-used-in-adaptive-filters)</sup> 变步长和变正则化 NLMS 方案随时间调整其参数，以兼顾快速收敛与低失调。<sup>[6](https://link.springer.com/article/10.1186/s13634-015-0283-1)</sup> 核自适应滤波器将这些更新扩展到非线性模型，包括核 LMS、核仿射投影算法、量化 QKLMS，以及作为核岭回归递归解的核 RLS。<sup>[18](https://gtas.unican.es/files/pub/chapter9_adaptive_kernel_learning.pdf)</sup>

## 应用

声学回声消除是一个系统辨识问题：自适应滤波器对扬声器与麦克风之间未知的回声路径建模，其输出副本从麦克风信号中减去；NLMS 是主力算法，而仿射投影算法的快速版本是数百万个运行在电回声消除设备中的副本的基础。<sup>[6](https://link.springer.com/article/10.1186/s13634-015-0283-1)</sup><sup> • </sup><sup>[19](https://link.springer.com/article/10.1186/s13634-015-0289-8)</sup> 在噪声消除中，参考麦克风提供待消除的噪声；早期应用是佩戴氧气面罩的战斗机飞行员的语音通信，驾驶舱参考麦克风采集环境噪声而不含飞行员语音。<sup>[1](https://course.ece.cmu.edu/~ece491/lectures/L27/AdaptiveFilteringChap_ADSP.pdf)</sup> 回声消除器还匹配电话混合线圈的反射路径，移动接收机使用自适应均衡来对抗多径色散，否则会破坏二进制检测。<sup>[7](https://www.staff.ncl.ac.uk/oliver.hinton/eee305/Chapter7.pdf)</sup> 与未知系统在相同宽带输入下并联的自适应 LMS 滤波器执行实时系统辨识并跟踪缓慢变化的参数。<sup>[10](https://ocw.mit.edu/courses/2-161-signal-processing-continuous-and-discrete-fall-2008/d500ebd932a80d4417a1ba42fe7f5429_adaptivels.pdf)</sup>

## 局限与替代方案

**输入调理。** 当观测高度相关时，LMS 收敛变慢，因为其轨迹遵循最陡下降，而在特征值散布大的细长性能曲面上，最陡下降所循的路径是曲折的。<sup>[1](https://course.ece.cmu.edu/~ece491/lectures/L27/AdaptiveFilteringChap_ADSP.pdf)</sup> 在噪声消除中，目标信号不得泄漏到参考通道，且必须与噪声统计独立。<sup>[1](https://course.ece.cmu.edu/~ece491/lectures/L27/AdaptiveFilteringChap_ADSP.pdf)</sup>

**发散。** LMS 的 \( \ell_2 \) 稳定性界 \( \mu_k < 2/\|u_k\|_2^2 \) 是紧的：对于更大的步长可以保证发散。<sup>[19](https://link.springer.com/article/10.1186/s13634-015-0289-8)</sup> 当输出误差传递函数不满足严格正实条件 \( \mathrm{Re}\{F(e^{-j\Omega})\} > 0 \)（\( -\pi \le \Omega \le \pi \)）时，自适应 IIR 滤波器对所有非零步长都可能发散。<sup>[19](https://link.springer.com/article/10.1186/s13634-015-0289-8)</sup> 其他算法，包括带延迟误差的流水线 LMS、回声消除中使用的伪仿射投影算法以及 PNLMS，也可能根据输入信号变得不稳定或表现出发散行为。<sup>[19](https://link.springer.com/article/10.1186/s13634-015-0289-8)</sup>

**LMS 与 RLS 对比。** 在扰动能量（鲁棒性）框架中，LMS 最小化从扰动到误差的最坏情况增益，而 RLS 以更高成本提供更快的收敛和更小的稳态误差；LMS 保持线性复杂度和鲁棒性，在随机游走跟踪模型中，滤波器性能与跟踪能力之间存在已知的权衡。<sup>[5](https://www.mathworks.com/help/dsp/ug/compare-rls-and-lms-adaptive-filter-algorithms.html)</sup><sup> • </sup><sup>[20](https://dsp-book.narod.ru/DSPMW/20.PDF)</sup><sup> • </sup><sup>[21](https://ar5iv.labs.arxiv.org/html/2112.12245)</sup> 滤波器的组合可以缓解这些权衡：两个 LMS 滤波器（\( \mu_1 = 0.01 \) 和 \( \mu_2 = 0.001 \)）的凸组合在测试的最优步长范围内达到可能的最佳性能，将 RLS 与 LMS 组合可在格型 RLS 实现基础上以约 10% 的额外成本改善跟踪。<sup>[21](https://ar5iv.labs.arxiv.org/html/2112.12245)</sup> 相对于固定替代方案，大多数自适应算法可视为维纳滤波器的近似，维纳滤波器仍是理解它们的核心。<sup>[22](https://users.ics.forth.gr/tsakalid/UVEG09/Book/Haykin-AFT%283rd.Ed.%29_Introduction.pdf)</sup>

## References

1. [Introduction to Adaptive Filtering (CMU 18-491/691 course chapter)](https://course.ece.cmu.edu/~ece491/lectures/L27/AdaptiveFilteringChap_ADSP.pdf)
2. [EE482/682 DSP Applications, Ch6 Adaptive Filtering (UNLV)](https://www.egr.unlv.edu/~b1morris/ee482/slides/06_slides_adaptive.pdf)
3. [Tutorial survey of adaptive signal processing methods and applications (IEEE IISA 2016, Spanias et al.)](https://sensip.engineering.asu.edu/wp-content/uploads/sites/68/2020/04/IEEE-IISA-2016-Adaptive-Survey-Explore-compliant-192-spanias-PID4373685.pdf)
4. [Adaptive Signal Processing & Machine Intelligence, Lecture 5: Linear Adaptive Filters and Applications (D. P. Mandic, Imperial College London)](https://www.commsp.ee.ic.ac.uk/~mandic/SE_ASP_LN/ASP_MI_Lecture_5_Adaptive_Filters_2017.pdf)
5. [Compare RLS and LMS Adaptive Filter Algorithms (MathWorks official documentation)](https://www.mathworks.com/help/dsp/ug/compare-rls-and-lms-adaptive-filter-algorithms.html)
6. [An overview on optimized NLMS algorithms for acoustic echo cancellation (EURASIP Journal on Advances in Signal Processing, 2015)](https://link.springer.com/article/10.1186/s13634-015-0283-1)
7. [Digital Signal Processing Chapter 7: Adaptive Filtering (Newcastle University)](https://www.staff.ncl.ac.uk/oliver.hinton/eee305/Chapter7.pdf)
8. [The Complex LMS Algorithm (Widrow, McCool, Ball, Proceedings of the IEEE, April 1975)](https://isl.stanford.edu/~widrow/papers/j1975thecomplex.pdf)
9. [The Least-Mean-Square Algorithm (chapter from Haykin)](https://users.ece.utexas.edu/~vtelang/ece351m/ReadingAssignments/LMShaykin.pdf)
10. [2.161 Signal Processing: Adaptive FIR Filters (MIT OCW lecture notes)](https://ocw.mit.edu/courses/2-161-signal-processing-continuous-and-discrete-fall-2008/d500ebd932a80d4417a1ba42fe7f5429_adaptivels.pdf)
11. [Optimal and Adaptive Filtering tutorial (University of Edinburgh / UDRC)](http://udrc.eng.ed.ac.uk/sites/udrc.eng.ed.ac.uk/files/publications/optimal_adaptive_filtering-muney-1_2.pdf)
12. [Kazuhiko Ozeki, Tetsuo Umeda (1984). An adaptive filtering algorithm using an orthogonal projection to an affine subspace and its properties. Electronics and Communications in Japan (Part I Communications).](https://doi.org/10.1002/ecja.4400670503)
13. [A Survey on the Different Adaptive Algorithms Used In Adaptive Filters (IJERT)](https://www.ijert.org/a-survey-on-the-different-adaptive-algorithms-used-in-adaptive-filters)
14. [R. E. Kalman (1960). A New Approach to Linear Filtering and Prediction Problems. Journal of Basic Engineering.](https://doi.org/10.1115/1.3662552)
15. [B. WIDROW, M. E. HOFF (1960). ADAPTIVE SWITCHING CIRCUITS. .](https://doi.org/10.21236/ad0241531)
16. [B. Widrow and colleagues (1967). Adaptive antenna systems. Proceedings of the IEEE.](https://doi.org/10.1109/proc.1967.6092)
17. [Thinking about thinking: the discovery of the LMS algorithm (IEEE Signal Processing Magazine, January 2005)](https://isl.stanford.edu/~widrow/papers/j2005thinkingabout.pdf)
18. [Adaptive Kernel Learning (book chapter on kernel adaptive filtering)](https://gtas.unican.es/files/pub/chapter9_adaptive_kernel_learning.pdf)
19. [Adaptive filters: stable but divergent (Journal on Advances in Signal Processing, Springer Nature)](https://link.springer.com/article/10.1186/s13634-015-0289-8)
20. [Robustness Issues in Adaptive Filtering (Sayed & Kailath-related chapter, CRC DSP Handbook)](https://dsp-book.narod.ru/DSPMW/20.PDF)
21. [Combinations of Adaptive Filters (arXiv survey/tutorial, 2021)](https://ar5iv.labs.arxiv.org/html/2112.12245)
22. [Haykin, Adaptive Filter Theory (3rd ed.), front matter/contents](https://users.ics.forth.gr/tsakalid/UVEG09/Book/Haykin-AFT%283rd.Ed.%29_Introduction.pdf)

---
*Initially written Sep 29, 2026 · Reviewed: Sep 30, 2026 · Edited: Sep 30, 2026 · Last review: Sep 30, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Algorithms and computational methods › Numerical, string, and geometric algorithms

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/adaptive-filter

English original: https://www.edgepedia.org/adaptive-filter
