# 词错误率

**词错误率（Word error rate, WER）** 是评估自动语音识别（automatic speech recognition, ASR）系统的一项指标，它统计系统相对于参考转写文本所做的替换、删除和插入，并以这些错误占参考文本词数的比例表示。它是 ASR 准确率事实上的标准度量，源自按词级而非音素级计算的[莱文斯坦距离](https://www.edgepedia.org/zh/levenshtein-distance)（Levenshtein distance）。<sup>[1](https://github.com/huggingface/evaluate/blob/main/metrics/wer/README.md)</sup><sup> • </sup><sup>[2](https://huggingface.co/learn/audio-course/en/chapter5/evaluation)</sup>

| 关键事实 | 详情 |
|---|---|
| 公式 | \( \mathrm{WER} = (S + D + I) / N \)，其中 S 为替换数，D 为删除数，I 为插入数，N 为参考词数（N = S + D + C，C 为正确词数）<sup>[1](https://github.com/huggingface/evaluate/blob/main/metrics/wer/README.md)</sup> |
| 解读 | 每个参考词的平均错误数；越低越好，0 为满分<sup>[1](https://github.com/huggingface/evaluate/blob/main/metrics/wer/README.md)</sup> |
| 对齐 | 在计数错误之前，先用动态字符串对齐将识别词序列与参考文本对齐<sup>[1](https://github.com/huggingface/evaluate/blob/main/metrics/wer/README.md)</sup> |
| 标准工具 | NIST 的 SCLITE 是 SCTK 评分工具包的一部分，它在对齐识别结果与参考转写文本后，根据替换、删除和插入计数计算 WER<sup>[3](https://github.com/usnistgov/SCTK/blob/master/doc/sclite.htm)</sup> |
| 人类基准 | NIST 的系列评测将人类转写错误范围定在 2% 到 4% WER 之间<sup>[4](https://www.nist.gov/document/03datascienceevaluationseries-2pdf)</sup> |
| 典型值 | LibriSpeech 的结果通常报告在 1.8–3.3 区间，而 TIMIT 的结果落在 8.3–20.4 区间<sup>[1](https://github.com/huggingface/evaluate/blob/main/metrics/wer/README.md)</sup> |
| 已知局限 | WER 将每一处词汇偏差视为同等代价，不论它是否改变含义，这促使了 SemDist 和 BERTScore 等语义指标的出现<sup>[5](https://arxiv.org/abs/2609.21663)</sup> |

## 定义与计算

测量 ASR 性能之所以复杂，是因为识别词序列的长度可能与参考文本不同。WER 的处理方式是：先用动态字符串对齐将识别结果与参考文本对齐，然后统计三类错误：替换（参考文本中的一个词被替换为另一个词）、删除（说了但被遗漏的词）和插入（未说但被报告的词）。<sup>[1](https://github.com/huggingface/evaluate/blob/main/metrics/wer/README.md)</sup><sup> • </sup><sup>[6](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=150472)</sup>

于是错误率为

\[ \mathrm{WER} = \frac{S + D + I}{N} = \frac{S + D + I}{S + D + C} \]

其中 C 为正确词数，N 为参考文本中的词数。<sup>[1](https://github.com/huggingface/evaluate/blob/main/metrics/wer/README.md)</sup><sup> • </sup><sup>[7](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=934557)</sup> 该值表示每个参考词的平均错误数。由于插入计入分子但不计入参考长度，当系统大量凭空生成时，WER 可能超过 100%；在一项低资源基准中，英伟达（NVIDIA）的 Canary-1b-v2 得分为 111.64% WER。<sup>[8](https://aclanthology.org/2026.africanlp-main.pdf)</sup>

一个配套指标——词准确率（word accuracy, WAcc）——偶尔会被引用，但语音文献更偏好错误率指标，因为它们与分析中使用的错误类型标注相匹配。<sup>[2](https://huggingface.co/learn/audio-course/en/chapter5/evaluation)</sup> 转写文本在评分前通常要经过预处理，替换特定字符，以消除大小写、标点和不同拼写等非语义差异。<sup>[9](https://doi.org/10.21437/Interspeech.2024-32)</sup>

## 机构评分与历史

美国国家标准与技术研究院（National Institute of Standards and Technology, NIST）通过其系列评测，将 WER 确立为大词汇量语音识别的基准度量。NIST 的 SCLITE 程序是 SCTK 评分工具包的一部分，它通过对齐过程将识别文本与参考文本进行比较，并收集替换、删除和插入统计；它还支持加权词评分，其中各个词带有不同权重。<sup>[3](https://github.com/usnistgov/SCTK/blob/master/doc/sclite.htm)</sup> NIST 的 ROVER 系统组合工具同样报告组合系统输出的词错误率。<sup>[10](https://github.com/usnistgov/SCTK/blob/master/doc/rover/rover.htm)</sup>

NIST 的基准历史以对数刻度绘制了 1988 年以来的 WER，并用一条醒目的色带标出 2% 到 4% 的人类转写错误范围。<sup>[4](https://www.nist.gov/document/03datascienceevaluationseries-2pdf)</sup> 2016 年，微软（Microsoft）的一个系统测量了 NIST 2000 Switchboard 测试集上的人类错误率，并报告达到人类水平，在两个标准测试条件下的自动错误率分别为 5.8% 和 11.0%。<sup>[11](https://arxiv.org/abs/1610.05256)</sup> 后来对同一基准的分析表明，修正参考转写文本并偏离官方评分方法，会大幅降低测得的 WER：在更细致的方案下，商业系统的 WER 低于 5%，研究纪录则降至 2.3%。<sup>[12](https://arxiv.org/abs/2206.06192)</sup>

## WER 能捕捉什么、不能捕捉什么

WER 将每一处相对于参考文本的词汇偏差都视为同等代价，不论它是否改变含义。<sup>[5](https://arxiv.org/abs/2609.21663)</sup> 因此，一份转写文本可能得分很好，却破坏了重要的内容；也可能得分很差，却保留了这些内容。在临床 ASR 评估中，一项范围综述发现，词错误指标——尤其是 WER——主导了该领域，并使跨研究比较成为可能，但它们在捕捉临床意义方面存在已知局限。<sup>[13](https://pmc.ncbi.nlm.nih.gov/articles/PMC13205700/)</sup> 对构音障碍语音的研究同样保留 WER，以便与既往基准比较，同时指出它可能无法反映对用户真正重要的内容。<sup>[14](https://onlinelibrary.wiley.com/doi/10.1155/int/6065038)</sup>

有几类互补指标可以弥补这些缺口：

- **字符错误率（character error rate, CER）** 在字符级应用同样的编辑距离计算。一项覆盖马拉雅拉姆语（Malayalam）、英语和阿拉伯语（Arabic）的人工评估发现，即使在英语中，CER 与人类判断的相关性也比 WER 更紧密，并主张将 CER 作为多语言 ASR 评估的主要指标，尤其是对形态复杂的语言或没有清晰词边界的语言。<sup>[15](https://aclanthology.org/2025.findings-naacl.277/)</sup>
- **语义指标**，如语义距离（Semantic Distance, SemDist）和 [BERTScore](https://www.edgepedia.org/zh/bertscore)，衡量转写文本是否与原始话语处于相同的意义区域，而不是统计不匹配的词元。在一个被追踪的示例中，一个表层指标记录为轻微错误，而一个语义指标记录为内容被破坏，因为转写形式在该语言中并不是一个有效词。<sup>[16](https://doi.org/10.1007/s00146-026-03073-y)</sup> 对构音障碍语音的分析发现，WER 对域偏移高度敏感，而语义指标与下游任务表现的相关性更紧密。<sup>[17](https://doi.org/10.1109/ICASSP55912.2026.11463344)</sup>
- **混合指标**，如 HEVAL，将针对非关键词的传统编辑距离评分与针对 ASR 输出的基于嵌入的语义距离结合起来。<sup>[18](https://ieeexplore.ieee.org/abstract/document/10389717)</sup>

指标的选择还取决于应用场景。

## 解读 WER 数值

WER 数值高度依赖数据集的内容和质量，因此同一个模型在不同测试集上可能显示非常不同的数字。<sup>[1](https://github.com/huggingface/evaluate/blob/main/metrics/wer/README.md)</sup> 面向资源丰富语言的生产级 ASR 通常达到 5–15% 的 WER，而一项班巴拉语（Bambara）ASR 基准发现排名最高的模型 WER 为 47.50%，表明近一半的词被错误转写。<sup>[8](https://aclanthology.org/2026.africanlp-main.pdf)</sup> 在临床环境中，对数字记录助手产品的评估在早期工作中报告了 35% 到 65% 的 WER，而[谷歌大脑](https://www.edgepedia.org/zh/google-brain)（Google Brain）团队的研究表明，临床对话达到 18% WER 应当是可以实现的。<sup>[19](https://pmc.ncbi.nlm.nih.gov/articles/PMC10148344/)</sup><sup> • </sup><sup>[20](https://pmc.ncbi.nlm.nih.gov/articles/PMC6371385/)</sup>

由于 WER 是测试集上的全局平均值，它提供了一个便于系统比较和基准测试的单一汇总统计量，但它可能掩盖错误聚集的位置。分段级变体在语义段边界处对齐转写文本，从而可以单独评估高重要性片段中的错误，例如医疗转写中的药物名称和剂量，或法律转写中的案件编号。<sup>[21](https://www.mdpi.com/2073-431X/15/10/691)</sup> 研究人员还提出了与系统无关的 WER 估计方法，它无需访问参考文本或特定系统，就能预测一份转写文本将获得的 WER；在域外的 Switchboard 和 CALLHOME 数据上，这样的模型在均方根误差上相对基线估计器改善了 17.58%，在皮尔逊相关系数上改善了 18.21%。<sup>[22](https://arxiv.org/abs/2404.16743)</sup>

## References

1. [Word Error Rate metric card, Hugging Face Evaluate](https://github.com/huggingface/evaluate/blob/main/metrics/wer/README.md)
2. [Evaluation metrics for ASR, Hugging Face Audio Course](https://huggingface.co/learn/audio-course/en/chapter5/evaluation)
3. [NIST SCLITE Scoring Package documentation, SCTK](https://github.com/usnistgov/SCTK/blob/master/doc/sclite.htm)
4. [Evaluation for ASR at NIST-IAD, NIST](https://www.nist.gov/document/03datascienceevaluationseries-2pdf)
5. [Rethinking Human-Aligned Evaluation: An Analysis of Semantic Metrics Beyond WER, arXiv](https://arxiv.org/abs/2609.21663)
6. [The word error rate metric for automatic speech recognition, NIST](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=150472)
7. [OpenASR21 Challenge scoring, NIST](https://tsapps.nist.gov/publication/get_pdf.cfm?pub_id=934557)
8. [Proceedings of the 7th Workshop on African Natural Language Processing (AfricaNLP 2026)](https://aclanthology.org/2026.africanlp-main.pdf)
9. [Beyond Levenshtein: Leveraging Multiple Algorithms for Robust Word Error Rate Computations, Interspeech 2024](https://doi.org/10.21437/Interspeech.2024-32)
10. [ROVER documentation, NIST SCTK](https://github.com/usnistgov/SCTK/blob/master/doc/rover/rover.htm)
11. [Achieving Human Parity in Conversational Speech Recognition, arXiv](https://arxiv.org/abs/1610.05256)
12. [Toward Zero Oracle Word Error Rate on the Switchboard Benchmark, arXiv](https://arxiv.org/abs/2206.06192)
13. [Automatic Speech Recognition in Healthcare in the Post-LLM Era: A Scoping Review, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC13205700/)
14. [Benchmarking Commercial Speech Recognition and Multimodal LLMs on Dysarthric Speech, International Journal of Intelligent Systems](https://onlinelibrary.wiley.com/doi/10.1155/int/6065038)
15. [Advocating Character Error Rate for Multilingual ASR Evaluation, Findings of NAACL 2025](https://aclanthology.org/2025.findings-naacl.277/)
16. [When AI fails to listen: convergent failure patterns across speech impairments and low-resource speech in ASR, AI & SOCIETY](https://doi.org/10.1007/s00146-026-03073-y)
17. [Towards Robust Dysarthric Speech Recognition: LLM-Agent Post-ASR Correction Beyond WER, ICASSP](https://doi.org/10.1109/ICASSP55912.2026.11463344)
18. [HEVAL: A New Hybrid Evaluation Metric for Automatic Speech Recognition Tasks, IEEE](https://ieeexplore.ieee.org/abstract/document/10389717)
19. [Automatic speech recognition performance for digital scribes, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC10148344/)
20. [A systematic comparison of contemporary automatic speech recognition engines for conversational clinical speech, PMC](https://pmc.ncbi.nlm.nih.gov/articles/PMC6371385/)
21. [Semantic Segment Alignment and Granular ASR Performance Evaluation with Segment- and Word-Level WER, MDPI Computers](https://www.mdpi.com/2073-431X/15/10/691)
22. [Automatic Speech Recognition System-Independent Word Error Rate Estimation, arXiv](https://arxiv.org/abs/2404.16743)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › 语言与视觉人工智能 › 自然语言处理

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/word-error-rate

English original: https://www.edgepedia.org/word-error-rate
