---
title: "LLM evaluation — LLM 评估"
source: "https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0"
wiki: "systems-analysis.info/int"
article: "LLM_evaluation_—_LLM_评估"
language: "zh"
categories:
  - "Category:Chinese"
  - "Category:Large language models"
  - "Category:LLM benchmarks"
  - "Category:LLM evaluation"
  - "Category:Machine learning"
revision_id: 3619
wiki_created_at: 2026-09-06T23:23:30Z
wiki_modified_at: 2026-09-06T23:23:30Z
downloaded_at: 2026-09-07T22:57:55Z
---

# LLM evaluation — LLM 评估

**大型语言模型（LLM）评估**是人工智能领域的一门学科，旨在提供标准化的方法来衡量语言模型的能力、局限性和风险<sup>[\[1\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-chang2023-1)</sup>。随着LLM被集成到医疗保健和金融等关键领域，对其进行客观评估对于确保安全性、可靠性和公平性变得至关重要<sup>[\[2\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-ccl-survey-2)</sup>。

LLM 评估具有几个基本功能：

- 衡量能力：在标准化任务上客观比较不同模型的性能。
- 跟踪进展：记录成果并识别需要进一步改进的领域。
- 最小化风险：识别潜在的有害输出，如偏见、幻觉和安全问题。
- 为开发者和用户提供信息：提供透明的信息，以帮助选择最适合特定应用的模型。

## 主要方法与方法论

现代 LLM 评估始于综合性基准测试的出现，例如**GLUE**（通用语言理解评估），它为评估通用语言理解能力设定了标准<sup>[\[3\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-wang2018-3)</sup>。随着模型在 GLUE 上的表现开始超越人类水平，更复杂的后续基准被开发出来，如**SuperGLUE**<sup>[\[4\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-understanding-benchmarks-4)</sup>。

随着**MMLU**和**BIG-bench**等多任务基准的引入，评估领域发生了根本性的转变。这些基准测试模型在广泛的知识和推理能力方面的表现，超越了纯粹的语言任务<sup>[\[1\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-chang2023-1)</sup>。

### 关键指标与基准测试

#### 自动化指标

- **困惑度** (Perplexity)：一项基础指标，用于衡量模型预测文本的优劣。困惑度越低，表示模型对其预测的置信度越高。
- **BLEU** 和 **ROUGE**：基于 n-gram 的指标，用于衡量生成文本与参考文本之间的词汇重叠度。BLEU 侧重于准确率，而 ROUGE 侧重于召回率<sup>[\[2\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-ccl-survey-2)</sup>。
- **BERTScore**：一种语义指标，利用 BERT 的嵌入来计算语义相似度。它能够捕捉同义和释义，使其比基于 n-gram 的指标更为准确<sup>[\[5\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-zhang2019-bertscore-5)</sup>。

#### 专业化基准测试

为评估特定能力，已开发出有针对性的基准测试：

- **代码生成**：**HumanEval** 评估模型根据文本描述生成正确代码的能力，通过单元测试来验证其功能性<sup>[\[6\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-chen2021-humaneval-6)</sup>。
- **常识推理**：**HellaSwag** 通过预测日常情景最有可能的结局，来测试模型对物理世界和因果关系的理解<sup>[\[7\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-zellers2019-hellaswag-7)</sup>。
- **学术知识**：**MMLU**（大规模多任务语言理解）涵盖了从初等数学到法律和医学的57个科目，用以检验模型的知识广度<sup>[\[8\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-hendrycks2020-mmlu-8)</sup>。
- **能力边界**：**BIG-bench**（超越模仿游戏）是一个协作项目，汇集了204项任务，旨在揭示模型的涌现能力——即当模型达到关键规模时突然出现的技能<sup>[\[9\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-srivastava2022-bigbench-9)</sup>。

### 安全性与伦理评估

- **偏见**：为评估社会和人口偏见，使用诸如 **BBQ**（问答偏见基准）和 **BOLD**（开放式语言生成偏见数据集）等数据集。
- **毒性**：像 **RealToxicityPrompts** 这样的基准测试提供可能引发模型生成有毒内容的提示，以评估其鲁棒性。
- **鲁棒性**：通过对抗性攻击进行评估。**PromptRobust** 框架提供了一套全面的提示，用于在字符、单词和句子层面测试模型的鲁棒性。

### 现代标准与框架

- **HELM** (Holistic Evaluation of Language Models)：斯坦福大学的一项倡议，提出了一种“整体”评估方法。HELM 从多个维度评估模型：准确性、鲁棒性、公平性、偏见、毒性和效率<sup>[\[10\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-bommasani2022-helm-10)</sup>。
- **ISO/IEC 42001:2023**：首个关于人工智能管理体系的国际标准，为 AI 的全生命周期管理设定了要求。
- **欧盟法规 2024/1689 (EU AI Act)**：首个全面的人工智能法规，要求对具有系统性风险的通用模型进行标准化评估。
- **NIST AI 风险管理框架 1.0**：由美国国家标准与技术研究院制定的自愿性框架，旨在帮助开发和部署可信赖的人工智能。

## 现有方法的挑战与局限

- **基准饱和**：许多模型在流行的基准测试上达到了近乎完美的表现，这导致了“刷榜”现象，即模型被优化以适应特定测试，而非提升通用能力。
- **数据污染**：一个关键问题，指基准测试的测试数据被无意中包含在训练集中，导致评估结果虚高且不公平。
- **与人类判断的相关性低**：自动化指标（如 BLEU 和 ROUGE）通常与人类对质量的判断相关性较差，尤其是在创造性和开放式任务中。

## 当前研究与趋势

- **LLM-as-a-Judge 范式**：使用强大的 LLM（如 GPT-4）作为“裁判”来评估其他模型的回答。这种方法为昂贵的人工评估提供了一种可扩展的替代方案。
- **动态与自适应评估**：诸如 **LMArena** 之类的平台引入了基于 Elo 评级的众包系统，通过与用户的实时互动来对模型进行真实评估。
- **混合方法**：将自动化指标、人类判断和 LLM 评估相结合，以获得对模型性能更全面、更可靠的评估。

LLM 评估领域在不断发展，致力于创建多维度、标准化和可复现的框架，这些框架不仅考虑准确性，还涵盖了 AI 技术应用的社会和伦理方面<sup>[\[1\]](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_note-chang2023-1)</sup>。

## 外部链接

- <a href="https://crfm.stanford.edu/helm/" class="external text" rel="nofollow">Stanford HELM</a> — Holistic Evaluation of Language Models 项目官网。
- <a href="https://lmsys.org/blog/2023-05-03-arena/" class="external text" rel="nofollow">Chatbot Arena</a> — 一个基于人类偏好对聊天机器人进行比较评估的平台。

## 参考文献

- Wang, A. et al. (2018). *GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding*. <a href="https://arxiv.org/abs/1804.07461" class="external text" rel="nofollow">arXiv:1804.07461</a>.
- Zhang, T. et al. (2019). *BERTScore: Evaluating Text Generation with BERT*. <a href="https://arxiv.org/abs/1904.09675" class="external text" rel="nofollow">arXiv:1904.09675</a>.
- Wang, A. et al. (2019). *SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systems*. <a href="https://arxiv.org/abs/1905.00537" class="external text" rel="nofollow">arXiv:1905.00537</a>.
- Zellers, R. et al. (2019). *HellaSwag: Can a Machine Really Finish Your Sentence?*. <a href="https://arxiv.org/abs/1905.07830" class="external text" rel="nofollow">arXiv:1905.07830</a>.
- Hendrycks, D. et al. (2020). *Measuring Massive Multitask Language Understanding*. <a href="https://arxiv.org/abs/2009.03300" class="external text" rel="nofollow">arXiv:2009.03300</a>.
- Gehman, S. et al. (2020). *RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Models*. <a href="https://arxiv.org/abs/2009.11462" class="external text" rel="nofollow">arXiv:2009.11462</a>.
- Chen, M. et al. (2021). *Evaluating Large Language Models Trained on Code*. <a href="https://arxiv.org/abs/2107.03374" class="external text" rel="nofollow">arXiv:2107.03374</a>.
- Parrish, A. et al. (2021). *BBQ: A Hand-Built Bias Benchmark for Question Answering*. <a href="https://arxiv.org/abs/2110.08193" class="external text" rel="nofollow">arXiv:2110.08193</a>.
- Dhamala, J. et al. (2021). *BOLD: Dataset and Metrics for Measuring Biases in Open-Ended Language Generation*. <a href="https://arxiv.org/abs/2101.11718" class="external text" rel="nofollow">arXiv:2101.11718</a>.
- Srivastava, A. et al. (2022). *Beyond the Imitation Game: Quantifying and Extrapolating the Capabilities of Language Models*. <a href="https://arxiv.org/abs/2206.04615" class="external text" rel="nofollow">arXiv:2206.04615</a>.
- Bommasani, R. et al. (2022). *Holistic Evaluation of Language Models*. <a href="https://arxiv.org/abs/2211.09110" class="external text" rel="nofollow">arXiv:2211.09110</a>.
- Chang, Y. et al. (2023). *A Survey on Evaluation of Large Language Models*. <a href="https://arxiv.org/abs/2307.03109" class="external text" rel="nofollow">arXiv:2307.03109</a>.
- Zhuang, Y. et al. (2023). *Through the Lens of Core Competency: Survey on Evaluation of Large Language Models*. <a href="https://aclanthology.org/2023.ccl-2.8/" class="external text" rel="nofollow">ACL Anthology:2023.ccl-2.8</a>.
- Zhu, K. et al. (2023). *PromptRobust: Towards Evaluating the Robustness of Large Language Models on Adversarial Prompts*. <a href="https://arxiv.org/abs/2306.04528" class="external text" rel="nofollow">arXiv:2306.04528</a>.

## 注释

1.  <span id="cite_note-chang2023-1">↑ <sup>[1.0](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-chang2023_1-0)</sup> <sup>[1.1](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-chang2023_1-1)</sup> <sup>[1.2](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-chang2023_1-2)</sup> Chang, Y., et al. (2023). «A Survey on Evaluation of Large Language Models». *arXiv*. <a href="https://arxiv.org/abs/2307.03109" class="external autonumber" rel="nofollow">[1]</a></span>
2.  <span id="cite_note-ccl-survey-2">↑ <sup>[2.0](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-ccl-survey_2-0)</sup> <sup>[2.1](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-ccl-survey_2-1)</sup> Zhuang, Y., et al. (2023). «Through the Lens of Core Competency: Survey on Evaluation of Large Language Models». *ACL Anthology*. <a href="https://aclanthology.org/2023.ccl-2.8/" class="external autonumber" rel="nofollow">[2]</a></span>
3.  <span id="cite_note-wang2018-3">[↑](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-wang2018_3-0) Wang, A., et al. (2018). «GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding». *arXiv*.<a href="https://arxiv.org/abs/1804.07461" class="external autonumber" rel="nofollow">[3]</a></span>
4.  <span id="cite_note-understanding-benchmarks-4">[↑](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-understanding-benchmarks_4-0) Kumar, Pradosh. «Understanding Benchmarking in NLP: GLUE, SuperGLUE, HELM, MMLU, and BIG-Bench». *Medium*.</span>
5.  <span id="cite_note-zhang2019-bertscore-5">[↑](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-zhang2019-bertscore_5-0) Zhang, T., et al. (2019). «BERTScore: Evaluating Text Generation with BERT». *arXiv*.</span>
6.  <span id="cite_note-chen2021-humaneval-6">[↑](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-chen2021-humaneval_6-0) Chen, M., et al. (2021). «Evaluating Large Language Models Trained on Code». *arXiv*.</span>
7.  <span id="cite_note-zellers2019-hellaswag-7">[↑](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-zellers2019-hellaswag_7-0) Zellers, R., et al. (2019). «HellaSwag: Can a Machine Really Finish Your Sentence?». *arXiv*.</span>
8.  <span id="cite_note-hendrycks2020-mmlu-8">[↑](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-hendrycks2020-mmlu_8-0) Hendrycks, D., et al. (2020). «Measuring Massive Multitask Language Understanding». *arXiv*.</span>
9.  <span id="cite_note-srivastava2022-bigbench-9">[↑](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-srivastava2022-bigbench_9-0) Srivastava, A., et al. (2022). «Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language models». *arXiv*.</span>
10. <span id="cite_note-bommasani2022-helm-10">[↑](https://systems-analysis.info/int/LLM_evaluation_%E2%80%94_LLM_%E8%AF%84%E4%BC%B0#cite_ref-bommasani2022-helm_10-0) Bommasani, R., et al. (2022). «Holistic Evaluation of Language Models». *arXiv*. <a href="https://arxiv.org/abs/2211.09110" class="external autonumber" rel="nofollow">[4]</a></span>
