# Claude 2

**Claude 2** 是 [Anthropic](https://www.edgepedia.org/zh/anthropic) 于 2023 年 7 月 11 日发布的大型语言模型聊天机器人与应用程序编程接口模型，接替其首个商用模型 Claude 1.3。它提供 10 万 token 的上下文窗口，编程与数学表现有所提升，安全行为也强于前代，并以 Anthropic 于 2022 年底提出的宪法式 AI 技术训练而成。<sup>[1](https://www.anthropic.com/news/claude-2)</sup><sup> • </sup><sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup> 该系列于 2023 年 11 月 21 日更新为 Claude 2.1，并于 2025 年 7 月 21 日从 API 中退役。<sup>[3](https://www.anthropic.com/news/claude-2-1)</sup><sup> • </sup><sup>[4](https://docs.anthropic.com/en/docs/about-claude/model-deprecations)</sup>

| 关键事实 | 详情 |
|---|---|
| 发布 | 2023 年 7 月 11 日由 Anthropic 发布；测试版聊天面向美国和英国开放，企业可通过 API 访问，价格与 Claude 1.3 相同<sup>[1](https://www.anthropic.com/news/claude-2)</sup><sup> • </sup><sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup> |
| 上下文窗口 | 10 万 token，约 7.5 万词，可分析《了不起的盖茨比》篇幅的文档；每次响应最多生成约 3,125 词<sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup> |
| 发布时基准测试 | 律师资格考试选择题 76.5%（Claude 1.3 为 73.0%）；Codex HumanEval 71.2%（原为 56.0%）；GSM8k 小学数学 88.0%（原为 85.2%）<sup>[1](https://www.anthropic.com/news/claude-2)</sup> |
| 训练数据 | 网站、授权数据集与用户自愿提供的数据的混合，截至 2023 年初，约 10% 为非英语<sup>[5](https://www-cdn.anthropic.com/files/4zrzovbb/website/5c49cc247484cecf107c699baf29250302e5da70.pdf)</sup> |
| 对齐方法 | 宪法式 AI：一套书面原则引导模型批判和修改自身输出，并在强化学习过程中选择更优回应<sup>[6](https://www.anthropic.com/news/claudes-constitution)</sup> |
| Claude 2.1 更新 | 2023 年 11 月 21 日：20 万 token 上下文窗口，据报虚假陈述较 Claude 2.0 减少一半，系统提示，以及测试版工具使用<sup>[3](https://www.anthropic.com/news/claude-2-1)</sup> |
| 退役 | 2025 年 1 月 21 日宣布 Claude 2、Claude 2.1 与 Claude Sonnet 3 退役；`claude-2.0` 于 2025 年 7 月 21 日退役<sup>[4](https://docs.anthropic.com/en/docs/about-claude/model-deprecations)</sup> |

## 发布时的能力

Anthropic 发布 Claude 2 时，强调其在编程、数学和推理方面的提升。在律师资格考试选择题部分，它得分 76.5%，高于 Claude 1.3 的 73.0%，并能通过美国医师执照考试的选择题部分。与申请研究生的学生相比，该模型在 GRE 阅读与写作上得分超过第 90 百分位，在数量推理上与申请者中位数相当。<sup>[1](https://www.anthropic.com/news/claude-2)</sup> 在 Python 编程测试 Codex HumanEval 上，得分从 56.0% 升至 71.2%；在小学数学题集 GSM8k 上，从 85.2% 升至 88.0%。<sup>[1](https://www.anthropic.com/news/claude-2)</sup> 该模型在生成格式正确的 JSON、XML、YAML 和 Markdown 输出方面也有所改进。<sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup>

此次发布的核心特征是长上下文窗口。Anthropic 已于 2023 年 5 月将 Claude 的上下文从 9,000 token 扩展至 10 万 token，约合 7.5 万词，Claude 2 出厂即搭载同一窗口。<sup>[7](https://www.anthropic.com/news/100k-context-windows)</sup><sup> • </sup><sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup> Anthropic 将其定位为整文档处理：总结财务报表或研究论文、分析年报中的风险、阅读数百页开发者文档，以及针对整个代码库进行原型开发。发布时，Claude 2 可在提示中分析约 7.5 万词，并一次生成约 3,125 词输出。<sup>[7](https://www.anthropic.com/news/100k-context-windows)</sup><sup> • </sup><sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup> Anthropic 表示，其架构在技术上支持 20 万 token 窗口，但发布时并未提供；这一变化直到 Claude 2.1 才出现。<sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup><sup> • </sup><sup>[3](https://www.anthropic.com/news/claude-2-1)</sup>

在架构上，该模型是延续而非全新创造。Anthropic 市场推广负责人桑迪·班纳吉（Sandy Banerjee）对 [TechCrunch](https://www.edgepedia.org/zh/techcrunch) 称，Claude 2 是 Claude 1.3 的调整版本，是约两年迭代开发的产物，训练数据比前代更新。与 GPT-4 不同，Claude 2 无法搜索网络。<sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup>

## 训练与对齐

Claude 2 先在大规模文本语料上训练预测下一个词，再用两种技术调优。第一种是基于人类反馈的强化学习，由人类对模型回答的有用性和安全性打分。第二种是 Anthropic 开发、并使 Claude 2 区别于 GPT-4 及大多数竞争对手的宪法式 AI：模型使用一套书面原则批判和修改自身回应，第二阶段训练则利用基于这些原则的 AI 生成反馈，选择更无害的输出。<sup>[8](https://time.com/6295523/claude-2-anthropic-chatgpt/)</sup><sup> • </sup><sup>[6](https://www.anthropic.com/news/claudes-constitution)</sup>

Anthropic 于 2023 年 5 月公布了宪法本身。它借鉴了《联合国世界人权宣言》、信任与安全实践、受苹果服务条款启发的原则、DeepMind 的 Sparrow 规则、明确纳入非西方视角的努力，以及 Anthropic 在研究中发现有效的原则。Anthropic 报告称，宪法式 AI 训练产出的模型对对抗性输入回应更恰当，同时保持有用性，且无需无害性方面的人类数据，并使系统价值观更易审查和调整。<sup>[6](https://www.anthropic.com/news/claudes-constitution)</sup>

Anthropic 报告称，在其内部红队测试评估中，Claude 2 给出无害回应的表现是 Claude 1.3 的 2 倍；该评估用自动化测试和人工检查，在一大批有代表性的有害提示上为模型打分。独立报道指出，该指标定义不明确，且在随附白皮书中，部分无害性提升来自模型拒绝回答有争议的问题，而非更好地回答它们。<sup>[1](https://www.anthropic.com/news/claude-2)</sup><sup> • </sup><sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup>

## 长上下文的实际表现

大上下文窗口是 Claude 2 最独特的卖点，独立测试发现了真实优势，也发现了真实局限。2023 年 10 月的一项比较，将 Claude 2 与使用 GPT-3.5-turbo 加 OpenAI 嵌入的检索增强方案对比，发现 Claude 2 阅读全文时，在 5 万 token 文档问题上达到 82% 准确率，10 万 token 时为 71%，而分块检索方法分别为 68% 和 65%；全文上下文方法每次查询成本 0.55 至 1.10 美元，检索方法为 0.02 至 0.05 美元。随着文档接近窗口上限，准确率下降，因此读全部内容的收益既有代价，在接近 10 万 token 时可靠性也在降低。<sup>[9](https://dataku.ai/blog/claude-2-long-documents-data)</sup>

Anthropic 自己的长上下文提示工作承认了召回问题，并发表了关于改进模型查找和使用长输入中部信息能力的技术的案例研究。<sup>[10](https://www.anthropic.com/news/prompting-long-context)</sup>

## 与 GPT-4 的比较

Claude 2 的发布被广泛解读为对 OpenAI 的挑战，TIME 结论认为该模型已与 GPT-3.5 和 GPT-4 处于同一水平，同时指出在编程以外的标准基准上，相对 Claude 1.3 的提升有限。<sup>[8](https://=time.com/6295523/claude-2-anthropic-chatgpt/)</sup>

正面对比的基准数据有利于 GPT-4。在广泛知识测试 MMLU 上，Claude 2 得分 78.5%，GPT-4 为 86.4%。<sup>[11](https://www.prompthackers.co/compare/gpt-4/claude-2)</sup> 在肾脏病学家使用肾脏病学教科书 71 道选择题进行的领域特定比较中，Claude 2 正确回答 54.4%，GPT-4 达到 73.3%，开源模型远低于两者。<sup>[12](https://arxiv.org/abs/2308.04709)</sup> Claude 2 的竞争优势在于上下文长度——10 万 token，而 GPT-4 发布时为 8,192——以及价格：API 每生成 1,000 词约 0.0465 美元，与 Claude 1.3 持平，第三方比较称其比 GPT-4 最长上下文变体便宜数倍。<sup>[11](https://www.prompthackers.co/compare/gpt-4/claude-2)</sup><sup> • </sup><sup>[2](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)</sup>

## Claude 2.1

Anthropic 于 2023 年 11 月 21 日通过 API 发布 Claude 2.1，并驱动 claude.ai。其主打能力是 20 万 token 上下文窗口，约 15 万词或 500 多页，Anthropic 称其为行业首创。公司报告称，在一组精选事实问题上，虚假陈述较 Claude 2.0 减少一半；在长而复杂的文档上，错误答案减少 30%；错误断定文档支持某一主张的比率降至原来的四分之一至三分之一。Claude 2.1 还引入了系统提示，让开发者可为对话固定模型角色和指令，以及测试版工具使用功能，让模型调用开发者定义的函数和 API。20 万 token 窗口在聊天界面中仅限 Claude Pro 订阅者使用。<sup>[3](https://www.anthropic.com/news/claude-2-1)</sup>

2023 年 11 月 21 日发布当天，第三方进行的大海捞针式评估测试了 Claude 2.1 从其 20 万 token 窗口中检索植入句子的能力，该测试迅速成为长上下文模型的社区基准。<sup>[13](https://montanaresearch.org/blog/needle-in-a-haystack-one-engineers-chart/)</sup>

## 使用与退役

发布时，Anthropic 提及数千家企业客户和合作伙伴。生成式 AI 内容平台 Jasper 使用 Claude 2 进行长篇低延迟写作；[Sourcegraph](https://www.edgepedia.org/zh/sourcegraph) 在其 Cody 编程助手中使用了该模型改进的推理和 10 万 token 上下文窗口；Anthropic 还通过 DuckDuckGo 的 DuckAssist、Quora 的 Poe、Notion AI 以及 2023 年底起的 [Amazon Bedrock](https://www.edgepedia.org/zh/amazon-bedrock) 提供该模型。<sup>[1](https://www.anthropic.com/news/claude-2)</sup><sup> • </sup><sup>[14](https://www.anthropic.com/news/claude-2-amazon-bedrock?trk=public_post_comment-text)</sup>

Anthropic 在更安全、更有能力的模型发布时退役旧模型，遵循从活跃到遗留、弃用、退役的生命周期。2025 年 1 月 21 日，它通知使用 Claude 2、Claude 2.1 和 Claude Sonnet 3 的开发者，这些模型即将退役，API 模型 `claude-2.0` 于 2025 年 7 月 21 日退役，Claude Opus 被列为推荐替代品。<sup>[4](https://docs.anthropic.com/en/docs/about-claude/model-deprecations)</sup> Anthropic 另承诺在公司存续期间至少保留公开发布模型的权重。<sup>[15](https://www.anthropic.com/research/deprecation-commitments?_bhlid=5ba11efa0de17385bc9706e040d0665706502c1f)</sup> Claude 2 在产品线中于 2024 年由 [Claude 3](https://www.edgepedia.org/zh/claude-3) 及后续系列接替，如今主要作为首次将 10 万 token 以上的上下文窗口投入商用的那一代模型的历史参照点。

## References

1. [Claude 2 \ Anthropic, announcement of July 11, 2023](https://www.anthropic.com/news/claude-2)
2. [Anthropic releases Claude 2, its second-gen AI chatbot \ TechCrunch, Kyle Wiggers, July 11, 2023](https://techcrunch.com/2023/07/11/anthropic-releases-claude-2-the-second-generation-of-its-ai-chatbot/)
3. [Introducing Claude 2.1 \ Anthropic, November 21, 2023](https://www.anthropic.com/news/claude-2-1)
4. [Model deprecations \ Claude Platform Docs](https://docs.anthropic.com/en/docs/about-claude/model-deprecations)
5. [Model Card and Evaluations for Claude Models \ Anthropic, July 2023](https://www-cdn.anthropic.com/files/4zrzovbb/website/5c49cc247484cecf107c699baf29250302e5da70.pdf)
6. [Claude's constitution \ Anthropic, May 9, 2023](https://www.anthropic.com/news/claudes-constitution)
7. [Introducing 100K context windows \ Anthropic, May 11, 2023](https://www.anthropic.com/news/100k-context-windows)
8. [What to Know About Claude 2, Anthropic's Rival to ChatGPT \ TIME, Will Henshall, July 18, 2023](https://time.com/6295523/claude-2-anthropic-chatgpt/)
9. [Claude 2 is surprisingly good at long documents. Here's my data. \ dataku, October 2, 2023](https://dataku.ai/blog/claude-2-long-documents-data)
10. [Prompting Claude's long context window \ Anthropic](https://www.anthropic.com/news/prompting-long-context)
11. [Compare GPT-4 vs Claude 2 \ PromptHackers](https://www.prompthackers.co/compare/gpt-4/claude-2)
12. [A Comparative Study of Open-Source Large Language Models, GPT-4 and Claude 2: Multiple-Choice Test Taking in Nephrology \ arXiv:2308.04709](https://arxiv.org/abs/2308.04709)
13. [The needle in a haystack test: one engineer's chart becomes an industry benchmark \ Montana Research Foundation](https://montanaresearch.org/blog/needle-in-a-haystack-one-engineers-chart/)
14. [Claude 2 on Amazon Bedrock \ Anthropic](https://www.anthropic.com/news/claude-2-amazon-bedrock?trk=public_post_comment-text)
15. [Commitments on model deprecation and preservation \ Anthropic](https://www.anthropic.com/research/deprecation-commitments?_bhlid=5ba11efa0de17385bc9706e040d0665706502c1f)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › Model families and named models › Large language model families › Proprietary model families

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/claude-2

English original: https://www.edgepedia.org/claude-2
