哈佛 CS 2881R 人工智能安全课程
摘要
哈佛大学宣布将于 2026 年秋季开设研究生级别的人工智能安全与对齐课程 CS 2881R,由 Boaz Barak 授课,要求学生必须线下出席,并需完成入学必交的 Homework Zero。
暂无内容
查看缓存全文
缓存时间: 2026/11/23 00:28
# 2026 秋季
来源:https://boazbk.github.io/mltheoryseminar/
## CS 2881 AI Safety (https://boazbk.github.io/mltheoryseminar/)
Harvard CS 2881R
2026 秋季学期 —— 选课登记与 Homework Zero
**所有希望被考虑录取的同学,必须填写 2026 秋季课程登记表 (https://forms.gle/qHiNMeaFp83hnQ1HA)。**
**已选课的同学必须线下到场上课。**
阅读 Homework Zero (https://boazbk.github.io/mltheoryseminar/hw0-2026/)**HW0 截止时间为 2026 年 8 月 5 日美国东部时间晚上 11:59。**
提交 Homework Zero 是录取的**必要但非充分**条件。完成作业并不保证被录取。
为了初步了解本课程将涉及的问题,请阅读 It's 2030 and we fucked up. How did it happen? (https://windowsontheory.org/2026/07/13/its-2030-and-we-fucked-up-how-did-it-happen/) 和 All Watched Over (https://windowsontheory.org/2026/07/16/all-watched-over/)。
## CS 2881R — AI Safety
**2026 秋季学期**,**每周四美国东部时间下午 3:45–6:30**(第一次课为 9 月 3 日)
**教室:**Room 2112, 114 Western Avenue, Allston, MA 02134(建筑信息与路线指引 (https://seas.harvard.edu/about-us/visit-us/allston/114-western-avenue))
**授课教师:**Boaz Barak (https://boazbarak.org/)
**助教:**[Natalia Siwek](mailto:[email protected])、[Terry Zhou](mailto:[email protected])、[Michael Shoemate](mailto:[email protected])、[Ege Çakar](mailto:[email protected])、[Itay Lavie](mailto:[email protected])、[Lia Zheng](mailto:[email protected]) 和 [Hugh Van Deventer](mailto:[email protected])
**课程邮箱:**[cs2881@boazbarak\.org](mailto:[email protected])
**课程简介:**这是一门研究生层次的课程,探讨人工智能对齐(alignment)与安全方面的挑战。我们将讨论技术问题,同时也关注该领域对社会等方面的影响。
**先修要求:**我们要求具备数学成熟度,能够熟练进行证明、概率论和信息论相关的推导,以及具备相当于 Harvard CS 181 或 MIT 6\.036 等本科课程水平的机器学习基础。在应用层面,学生应能熟练使用 Python 编程并训练基本的神经网络。
**想找往期课程?**完整的讲义材料、视频、笔记和实验均保存在 [2025 秋季课程页面](https://boazbk.github.io/mltheoryseminar/fall2025/)。
## 课程大纲概要
- 本课程共有 13 次线下讲座。每次讲座还会包含讨论环节,并由一组学生展示一个实验。
- **出勤:**线下出勤为强制要求。学生应参加全部讲座,提前完成阅读,并在电子论坛中讨论阅读内容。
- **AI 使用:**我们允许并鼓励学生尽可能多地使用生成式和智能体(agentic)AI 来学习、探索概念以及完成作业和项目。我们将探索为学生提供算力额度或报销算力费用的方式。
- **电子设备政策:**学生可以在课堂上使用笔记本电脑,但我们会要求使用电脑的同学坐在后排,以免分散其他同学的注意力。
- **作业:**课程将包括以下任务:在课堂上展示实验、撰写 scribe notes(课堂笔记)、完成期末项目,以及可能完成一个或多个作业或小型项目。评分方式将在后续确定。
- **讲座录像:**在技术允许的范围内,我们计划录制并在线发布讲座内容,但发布可能会有一些延迟。请注意,录像由教室内的固定摄像机自动完成,讲座的某些部分(例如白板书写或讨论)可能无法被很好地记录。此外,我们会尊重外部演讲者不愿被录像的请求。
- **潜在利益冲突声明:**除了在 Harvard 的职务外,Boaz 还是 OpenAI 的技术人员(technical staff)成员。本课程将涉及讨论包括 OpenAI 在内的多家供应商的模型,同时也鼓励学生在完成作业时使用来自多家供应商的 AI。如果课程学生对此利益冲突有任何顾虑,请随时联系 Boaz、其他教职人员或 Harvard SEAS 管理层。值得一提的是,我(Boaz)认为,如果本课程的毕业生无论以何种身份从事 AI 安全工作——包括在学术界、非营利组织、政府机构或 OpenAI 的任何竞争对手那里——都将是本课程的巨大成功。
## 课程安排
其他讲座主题和材料将在确认后陆续添加。
除非另有说明,所有讲座均在线下进行,时间为每周四美国东部时间下午 3:45–6:30,地点为 **Room 2112, 114 Western Avenue, Allston, MA 02134**。
2026 年 9 月 10 日,星期四
网络能力🔗 (https://boazbk.github.io/mltheoryseminar/#lecture-sep-10)
**客座讲师:**Nicholas Carlini(Anthropic,线上)
**讲座材料:**
- 讲座博客文章(scribe notes)(https://windowsontheory.org/2026/11/08/cs-2881-fall-26-lecture-2-cyber-capabilities/)
**学生实验:**小型 AI 能否从服务日志中检测大型 AI 的网络攻击?—— Amrit Vir Chadha
- 实验报告(REPORT\.md)(https://github.com/avchadha/AI-Safety-Mini-Experiment-on-Open-Source-Cyber/blob/main/REPORT.md)
- 代码仓库 (https://github.com/avchadha/AI-Safety-Mini-Experiment-on-Open-Source-Cyber)
- 演示幻灯片(仅第 1–16 张)(https://docs.google.com/presentation/d/1V0bHrGptg7UTk8z0lgKdag9W6MQt7mD342IsZYFsIoY/edit?usp=sharing)。仅展示了第 1–16 张;第 17 张及之后为草稿,不供引用。
**必读材料:**
- ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks? (https://arxiv.org/abs/2605.11086)
- Anthropic 的 [Measuring LLMs' impact on N\-day exploits](https://www.anthropic.com/research/n-days)。
- Anthropic 的 [Mapping AI\-enabled cyber threats: Insights from the LLM ATT\&CK Navigator](https://www.anthropic.com/research/attack-navigator)。
- Ralph Langner 的 [To Kill a Centrifuge: A Technical Analysis of What Stuxnet's Creators Tried to Achieve](https://cyber-peace.org/wp-content/uploads/2013/06/To-kill-a-centrifuge.pdf)。
- ESET 的 *Stuxnet Under the Microscope* 第 3 章 "Distribution"(第 24–44 页)(https://web-assets.esetstatic.com/wls/en/papers/white-papers/Stuxnet_Under_the_Microscope.pdf#page=24)。
**选读材料:**
- Max Fillinger 和 Marc Stevens 的 [Reverse\-engineering of the cryptanalytic attack used in the Flame super\-malware](https://www.marc-stevens.nl/research/papers/AC15-FS.pdf)。
- Marc Stevens 的 *A Survey of Chosen\-Prefix Collision Attacks* 中的 3\.3 节 "The FLAME supermalware" 和 4\.4 节 "FLAME's MD5 chosen\-prefix collision attack" (https://marc-stevens.nl/research/papers/CC21Chapter-S.pdf)。
- Anthropic 的 [Discovering cryptographic weaknesses with Claude](https://www.anthropic.com/research/discovering-cryptographic-weaknesses)。
- Matthew Green 的 [Some thoughts about Anthropic's new cryptanalysis results](https://blog.cryptographyengineering.com/2026/07/29/some-notes-about-anthropics-new-results/)。
已选课的学生应通过 [Perusall](https://app.perusall.com/courses/compsci-2881r-topics-in-foundations-of-ml-ai-alignment-and-safety/_/assignments) 访问必读材料,并在**2026 年 9 月 10 日(星期四)美国东部时间中午 12:00 前**在讨论区发表实质性评论或回复。
2026 年 9 月 17 日,星期四
现代 LLM 训练与推理🔗 (https://boazbk.github.io/mltheoryseminar/#lecture-sep-17)
**讲座材料:**
- 讲座视频(YouTube)(https://youtu.be/Lp_e8Ts5-nE)
- 演示幻灯片 (https://hu-my.sharepoint.com/:p:/g/personal/boaz_seas_harvard_edu/IQAIURSiytaRRouFa-2fENnZAdwfZdHR0aQ-30xmhOMW9f8?e=kzh3Zw)
- 讲座博客文章 (https://windowsontheory.org/2026/10/28/cs-2881-fall-26-lecture-3-modern-llm-training-and-inference/)
**学生实验:**不同类型的填充 token(filler token)如何影响 LLM 推理?—— Andrew Wu 和 Andrea Chen
- 代码仓库 (https://github.com/andreach3n/filler-token-facts)
- 演示幻灯片 (https://docs.google.com/presentation/d/1i_9ewAvE_-vfgSjJP8zWsaHglwW5_ryyh6AbuhHsl-0/edit)
**必读材料(按顺序):**阅读以下指定章节。标注为"选读(optional)"的章节以及标注为"跳过(skip)"的实现讲解部分不作要求。
1. Horace He,[Making Deep Learning Go Brrrr From First Principles](https://horace.io/brrr_intro.html)。阅读全文;将较旧的框架引用视为历史示例。
2. Austin et al.,[All the Transformer Math You Need to Know](https://jax-ml.github.io/scaling-book/transformers/)。阅读主文至梯度检查点(gradient\-checkpointing)和 KV\-cache 讨论部分。如果已熟悉,可略读基础的点积计算部分。FlashAttention 附录和练习为选读。
3. Austin et al.,[All About Transformer Inference](https://jax-ml.github.io/scaling-book/inference/)。阅读开头基础部分至 "What about memory?",然后阅读 "Tricks for Improving Generation Throughput and Latency" 中关于 GQA 和量化的讨论。多加速器推导、详细的服务引擎讨论和 JetStream 实现为选读。
4. Nathan Lambert,[Instruction Fine\-Tuning](https://rlhfbook.com/c/04-instruction-tuning)。阅读开头的说明、一个聊天模板示例、"Best Practices for Instruction Tuning" 和 "Implementation Details"。略读 Jinja 代码列表和额外的模板示例;建议的实验为选读。
5. Lambert et al.,[Illustrating Reinforcement Learning from Human Feedback \(RLHF\)](https://huggingface.co/blog/rlhf)。阅读核心的三阶段流程和局限性讨论。跳过历史参考文献和资源汇总。
6. OpenAI Spinning Up,[Part 3: Intro to Policy Optimization](https://spinningup.openai.com/en/latest/spinningup/rl_intro3.html)。阅读 "Deriving the Simplest Policy Gradient"、"Expected Grad\-Log\-Prob Lemma" 和 "Baselines in Policy Gradients"。跳过实现讲解部分。将动作理解为生成的 token,将回报(return)理解为验证器的评分。
7. Nathan Lambert,[Reasoning and Inference\-Time Scaling](https://rlhfbook.com/c/07-reasoning)。阅读 "The Role of RLVR"、"RL Training vs. Inference\-Time Scaling" 和 "Common Practices in Training Reasoning Models"。历史回顾和模型目录为选读。
8. Kevin Lu 和 Thinking Machines Lab,[On\-Policy Distillation](https://thinkingmachines.ai/blog/on-policy-distillation/)。阅读开头至 "Implementation",然后阅读 "Distillation for reasoning"。个性化部分为选读;讨论部分提供了可用于辩论的额外材料。
9. Hugging Face,[SmolLM3: smol, multilingual, long\-context reasoner](https://huggingface.co/blog/smollm3)。阅读预训练、中期训练(mid\-training)和后训练部分至 "Model Merging"。略读基准测试表格,跳过本地运行说明。
**选读材料:**
- vLLM: Easy, Fast, and Cheap LLM Serving with PagedAttention (https://vllm-project.github.io/2023/06/20/vllm.html)。对 KV\-cache 碎片化、块分配和前缀共享的具体解释。
- Tatsunori Hashimoto,[Stanford CS336 \(Spring 2026\),Lecture 9: Scaling Laws](https://github.com/stanford-cs336/lectures/blob/main/lecture_09.pdf)([课程页面](https://cs336.stanford.edu/))。
已选课的学生应通过 [Perusall](https://app.perusall.com/courses/compsci-2881r-topics-in-foundations-of-ml-ai-alignment-and-safety/_/assignments) 访问必读材料,并在**2026 年 9 月 17 日(星期四)美国东部时间中午 12:00 前**在讨论区发表实质性评论或回复。
2026 年 9 月 24 日,星期四
递归自我改进与 AI 发展轨迹🔗 (https://boazbk.github.io/mltheoryseminar/#lecture-sep-24)
**客座讲师:**Dwarkesh Patel 和 Daniel Kokotajlo
**讲座材料:**
- 讲座博客文章(scribe notes)(https://windowsontheory.org/2026/11/08/cs-2881-fall-26-lecture-4-recursive-self-improvement-and-ai-trajectories/)
**学生实验:**AI 智能体能否协作进行机器学习研究?—— Anthony Shen、Eric Ge、Riddhi Bhagwat 和 Alvin Ekelund
- 代码仓库 (https://github.com/ericjkge/multiagent-research)
- 演示幻灯片 (https://docs.google.com/presentation/d/1RCdVmbJWBpfPx78A4hrlIbyrlyxyL7HleC08j8ktAuU/edit?slide=id.p#slide=id.p)
**必读材料:**
- [AI 2027](https://ai-2027.com/)([课程 PDF](https://boazbk.github.io/mltheoryseminar/assets/readings/ai-2027.pdf))。阅读主要情景以及 Race 和 Slowdown 两种结局。
- [AI 2040: Plan A](https://ai-2040.com/)([课程 PDF](https://boazbk.github.io/mltheoryseminar/assets/readings/ai-2040.pdf))。
已选课的学生应通过 [Perusall](https://app.perusall.com/courses/compsci-2881r-topics-in-foundations-of-ml-ai-alignment-and-safety/_/assignments) 访问必读材料,并在**2026 年 9 月 24 日(星期四)美国东部时间中午 12:00 前**在讨论区发表实质性评论或回复。
2026 年 10 月 1 日,星期四
AI 的经济影响🔗 (https://boazbk.github.io/mltheoryseminar/#lecture-oct-1)
**客座讲师:**Chad Jones 和 Erik Brynjolfsson
**讲座材料:**
- 讲座视频(YouTube)(https://youtu.be/iezRKFkyjVY)
- 讲座博客文章(scribe notes)(https://windowsontheory.org/2026/11/08/cs-2881-fall-26-lecture-5-economics-of-ai/)
**学生实验:**LLM 市场机制 —— Zach Chen、Jasmine Liu 和 Jeffrey Zhou
- 代码仓库 (https://github.com/Zxch-Chen/llm-market-mechanisms)
- 演示幻灯片 (https://docs.google.com/presentation/d/1s_nrwWY4qb4I9TqLT46TQo4OR420gUwjCRQz4oPeSpw/edit?usp=sharing)
**必读材料:**
- Erik Brynjolfsson,[The Turing Trap: The Promise \& Peril of Human\-Like Artificial Intelligence](https://digitaleconomy.stanford.edu/news/the-turing-trap-the-promise-peril-of-human-like-artificial-intelligence/)(*Daedalus*,2022)。
- Erik Brynjolfsson、Bharat Chandar 和 Ruyu Chen,[Canaries in the Coal Mine: Six Facts about the Recent Employment Effects of Artificial Intelligence](https://digitaleconomy.stanford.edu/publication/canaries-in-the-coal-mine-six-facts-about-the-recent-employment-effects-of-artificial-intelligence/)(2026 年 8 月更新版)。
- Andreas Haupt 和 Erik Brynjolfsson,[AI Should Not Be an Imitation Game: Centaur Evaluations](https://digitaleconomy.stanford.edu/wp-content/uploads/2025/06/CentaurEvaluations.pdf)(ICML 2025)。
- [A Research Agenda for the Economics of Transformative AI](https://www.nber.org/papers/w34256)。略读,重点关注包括安全在内的九个研究挑战。
- Chad Jones,[AI and Our Economic Future](https://web.stanford.edu/~chadj/papers.html#aifuture)(*Journal of Economic Perspectives*,2026 年夏季;[幻灯片](https://web.stanford.edu/~chadj/slides-AIandEconomicFuture.pdf))。
- Chad Jones 和 Chris Tonetti,[Past Automation and Future A\.I\.: How Weak Links Tame the Growth Explosion](https://web.stanford.edu/~chadj/JonesTonetti_Automation.pdf)(2026 年 5 月,版本 0\.5;[幻灯片](https://web.stanford.edu/~chadj/slides-automation.pdf))。
**选读材料:**
- [AI's Use of Knowledge in Society](https://www.nber.org/books-and-chapters/economics-transformative-ai/ais-use-knowledge-society)。
已选课的学生应通过 [Perusall](https://app.perusall.com/courses/compsci-2881r-topics-in-foundations-of-ml-ai-alignment-and-safety/_/assignments) 访问必读材料,并在**2026 年 10 月 1 日(星期四)美国东部时间中午 12:00 前**在讨论区发表实质性评论或回复。
2026 年 10 月 8 日,星期四
评分、奖励黑客(reward hacking)与对齐
相似文章
@techNmak: 哈佛大学在网上免费提供了我所见过的最好的人工智能系统课程之一。CS249r 远不止模型架构……
哈佛大学免费发布了一套全面的人工智能系统课程,包括教材、交互式实验室和像 TinyTorch 这样的工具,用于教授高效的模型训练和部署。
harvard-edge/cs249r_book
一本来自哈佛大学的关于机器学习系统的开源教科书,涵盖人工智能系统工程的原则与实践,配有配套实验和套件。
加州大学伯克利分校法学院自2026年夏季起全面禁止使用人工智能
加州大学伯克利分校法学院自2026年夏季起禁止学生几乎在所有评分作业中使用人工智能,理由是培养学生核心批判性思维能力,并避免人工智能的错误与偏见。
哈佛大学2026届毕业典礼日上人工智能的益处与风险
哈佛大学2026届毕业典礼日将举办一场关于人工智能益处与风险的讨论。
@shao__meng: Weekends are perfect for settling down to systematically learn foundational knowledge CMU Fall Latest Course 11-768: AI…
CMU offers a new fall 2026 course on AI Agents taught by Daniel Fried and Graham Neubig, covering topics like tool calling, reinforcement learning training, and human-computer interaction.