Lecture · 逐句精读

Lecture
逐句精读

英文原文 · 逐句朗读 · 生词卡 · 翻译与语法 · 课件对照

整堂课的英文原稿被拆成一句一句:点句子就能听到温柔女声朗读这一句;带虚线下划线的词,鼠标放上去会弹出音标、词性和最直白的中文解释,卡片上的小喇叭一按就能单独听这个词怎么读;每句下面还有译文和语法讲解。课件按讲解顺序插在对应位置,点图片可以放大。

458句子
748生词卡
24段音频
71页课件
IOpening

开场

58 句 · 词卡可悬浮
001

Welcome everyone. Uh, this is CS329Z, uh, Engineering AI Agents. Uh, and today is the introduction to agentic systems.

欢迎大家。这是 CS329Z,工程化 AI 智能体课程;今天是这门课的第一讲:智能体系统导论。

语法三个短句并列。“Welcome everyone”是祈使句,省略主语 you。

课件 · 对应讲解
课件第1页
P1
课件第2页
P2
课件第3页
P3
002

Uh, I'm the assistant professor in computer science here, and I'm teaching this course with Michael Ryan and John Yang.

我是这里的计算机科学助理教授,和 Michael Ryan、John Yang 一起教这门课。

语法and 连接两个并列分句;with 表示“和……一起”。

003

Uh, today we will cover logistics, and also give you a short history of agents, uh, what an agent is made of, and also the open problems we will work on this quarter.

今天我们会讲课程安排,也会给大家讲一段智能体的简史、智能体由哪些部分组成,以及这学期要研究的开放问题。

语法长句用 and 串起四个宾语;what an agent is made of 是宾语从句,be made of = 由……组成。

004

I will first invite Michael and John to introduce themselves.

我先请 Michael 和 John 做个自我介绍。

语法invite sb to do sth(请某人做某事);first 表示顺序。

005

Hi everyone, I'm Michael. I'm a second year PhD student here at Stanford, and I'm advised by Diyi and Percy.

大家好,我是 Michael。我是斯坦福二年级博士生,导师是 Diyi 和 Percy。

语法be advised by = 由……指导;second year 作定语修饰 student。

006

So my research is on open-source human-centered AI. And in the past, agent-related work, I've worked on the DSPy framework for programming, not prompting, language models.

我的研究方向是开源、以人为本的 AI。过去做智能体相关工作时,我参与过 DSPy 框架,它的理念是“编程而不是提示”语言模型。

语法现在完成时 I've worked on 表示“至今做过”;not prompting 是对 programming 的补充说明。

007

So that's my little claim to agents.

这就是我跟智能体沾边的一点小资本。

语法that's = that is;little 在这里表示“小小的、不算什么”。

008

Hi, my name is John. I'm a third year PhD at Stanford. I'm advised by Diyi.

大家好,我叫 John,是斯坦福三年级博士生,导师是 Diyi。

语法my name is 用于自我介绍;third year PhD 是名词短语作表语。

课件 · 对应讲解
课件第4页
P4
009

And in the past I've worked on coding agents and coding evaluations. So I created SWE-bench, SWE-agent, Program Bench, SWE-smith, if you've heard of those works.

过去我研究编码智能体和编码评测,做过 SWE-bench、SWE-agent、Program Bench、SWE-smith,不知道你们听过没有。

语法现在完成时加并列动词;if you've heard of those works 是条件状语从句。

010

Okay, so with the instructor team, I want to formally welcome you to this course.

好,那么作为教师团队,我正式欢迎大家来到这门课。

语法with the instructor team 作状语;want to 后接动词原形。

011

The primary contact to reach out to us is to use Ed Discussion. If you want to be added to it, just send us an email.

联系我们最主要的方式是用 Ed Discussion。想加进来的话,给我们发邮件就行。

语法主语 The primary contact 较长,表语是不定式 to use;if 引导条件句。

012

We prefer you send everything to this email list so that we can take care of your request very quickly.

我们希望大家把请求都发到这个邮件列表,这样我们能很快处理。

语法prefer sb to do sth;so that 引导目的状语从句。

013

The website will maintain all the lectures, slides, and homeworks, so that's your primary website to check out.

课程网站会放所有讲座、幻灯片和作业,所以那是你主要查看的网站。

语法will maintain 是一般将来时;so 引出结果。

014

If you haven't enrolled in Ed Discussion, please do, since we post a lot of announcements there as well.

如果你还没加入 Ed Discussion,请加入,因为我们也会在那里发很多通知。

语法please do 代替 please enroll,避免重复;since 表示原因。

课件 · 对应讲解
课件第5页
P5
015

So in today's lecture, in addition to the logistics I will mention in a few seconds, we are going to provide a history of agents — there is actually a really long history behind agents.

今天这节课,除了我马上要讲的课程安排,我们还会讲智能体的历史——智能体背后其实有很长的历史。

语法in addition to = 除……之外;there is 句型;破折号用来补充说明。

016

We will talk about agent architecture; this is the core content today. And then compound AI systems, RAG, tool use, and MCP.

我们会讲智能体架构,这是今天的核心内容;然后是复合 AI 系统、RAG、工具使用和 MCP。

语法分号连接并列句;this 指代前面的 agent architecture。

017

I will end up with a brief highlight of key challenges, including the recent multi-agent risk and the collusion we have been seeing.

最后我会简单点一下几个关键挑战,包括最近的多智能体风险和我们已经看到的“串通”现象。

语法end up with = 以……结束;including 引出例子。

018

So let's get started.

那我们开始吧。

语法Let's + 动词原形,表示建议。

019

Why we created CS329Z. So when we think about LLM agents these days, there seem to be very different perspectives involved.

我们为什么开这门 CS329Z。如今谈到 LLM 智能体,好像有很不一样的视角。

语法Why we created CS329Z 是小标题式短语,不是完整问句;there seem to be 是 there be 的推测形式。

020

You can take a modeling perspective, you can also take a systems perspective. A lot of what we do is actually around the engineering.

你可以从建模角度看,也可以从系统角度看。我们做的很多事其实都围绕工程。

语法两个 can 并列;what we do 是主语从句;around 表示“围绕”。

课件 · 对应讲解
课件第6页
P6
021

And if you think about the LLM people, I think they know how models are trained: pre-training, post-training, prompting, alignment, and evaluation.

如果你想到做 LLM 的人,我想他们懂模型是怎么训练的:预训练、后训练、提示、对齐和评测。

语法if 条件句;how models are trained 是宾语从句,用被动语态。

022

On the other side, systems people know how to build reliable software systems. More related to agents, we have tools, APIs, environments, and infrastructure.

另一方面,做系统的人懂怎么搭建可靠的软件系统。跟智能体更相关的是工具、API、环境和基础设施。

语法On the other side 表示对比;More related to agents 是形容词短语前置。

023

So the expectation for this course is that we are going to cover a lot of the foundations, but more importantly we want it to be more hands-on: building plus evaluation of agents.

所以这门课的预期是:我们会覆盖很多基础,但更重要的是要动手——搭建智能体并评测它。

语法that 引导表语从句;more importantly 表示递进;hands-on = 动手实践。

024

A quick glance of the content.

快速看一下课程内容。

语法省略句,完整说法是 Let's take a quick glance at the content。

课件 · 对应讲解
课件第7页
P7
025

So week 1 to week 5, we will talk about LLMs for builders, with a highlight of retrieval-augmented generation and its variants and many follow-up agent architectures; tool use and function calling will be another highlight here.

第 1 到第 5 周,我们讲“给开发者用的 LLM”,重点是检索增强生成及其变体,以及很多后续的智能体架构;工具使用和函数调用是另一个重点。

语法with a highlight of = 以……为重点;分号连接两个并列部分。

026

We will slowly move to agent design and scaffolds, and also the design of agent memory as well as orchestration in multi-agent systems.

我们会慢慢转到智能体设计和脚手架,以及智能体记忆的设计和多智能体系统里的编排。

语法move to 表示“转向”;as well as = 以及。

027

The second half of this course, we are going to have optimization and harness, and data for agentic systems — data quality, data selection, etc.

课程后半段会讲优化和 harness,以及智能体系统的数据——数据质量、数据选择等等。

语法破折号补充说明 data 的具体内容;etc. = 等等。

028

The evaluation and benchmark design will also be highlighted in different ways. Agent safety and guardrails will also be highlighted.

评测和基准设计也会从不同角度重点讲。智能体安全和护栏也会重点讲。

语法两个被动句 will be highlighted,主语分别是 evaluation/benchmark design 和 safety/guardrails。

课件 · 对应讲解
课件第8页
P8
029

We will also have two special highlights of coding agents and also a more emerging topic called the proactive agents.

我们还会专门讲两块:编码智能体,以及一个更新的话题——主动型智能体。

语法两个 of 短语修饰 highlights;called 是过去分词作定语。

030

We have actually two special teams who are going to show up in our class this quarter.

这学期其实有两个专门的团队会来我们课上。

语法who are going to show up 是定语从句,修饰 teams。

031

First we will welcome the Terminal-Bench team to talk about how they design Terminal-Bench, and a lot of questions you can share with them.

首先欢迎 Terminal-Bench 团队讲他们怎么设计 Terminal-Bench,你们可以问他们很多问题。

语法welcome sb to do sth;how they design 是宾语从句。

032

We will also welcome the SWE-bench team to come to chat with us.

我们也会欢迎 SWE-bench 团队来聊。

语法与上句结构平行:will also welcome sb to do sth。

033

So for both lectures it will be a team reunion from those two teams that created very fundamental evaluations in our field.

所以这两次课会是那两个团队的聚会——他们做出了我们领域非常基础的评测。

语法that 引导定语从句修饰 teams;created 是过去式。

课件 · 对应讲解
课件第9页
P9
034

Course policy. First I think the biggest message that I want to highlight is that you should use AI to learn.

课程政策。首先我想强调的最重要一点是:你应该用 AI 来学习。

语法that you should... 是表语从句;the biggest message 作主语。

035

You may want to get yourself familiar with the Stanford honor code, and laptop use is only allowed for taking notes, etc., and we strongly discourage the use during the lecture so that you can be more focused.

你最好熟悉斯坦福的荣誉准则;笔记本电脑只允许用来记笔记等等;我们强烈不建议上课时使用,这样你能更专注。

语法allow sb to do;so that 引导目的;discourage 后接动名词。

036

Prerequisite and a compute. So first, we strongly recommend that you have taken any NLP or large language model related training.

先修要求和算力。首先我们强烈建议你上过 NLP 或大语言模型相关的课。

语法recommend that 从句里用现在完成时 have taken;any 表示“任何”。

037

You are expected to know basic LLMs, since we are now going to cover, like, fine-tuning or prompting or alignment, etc.

我们默认你懂 LLM 基础,因为接下来要讲微调、提示、对齐这些。

语法be expected to = 应当、被期望;since 引导原因。

课件 · 对应讲解
课件第10页
P10
038

In terms of a compute, we are very grateful that Laude Institute gives each student 200 dollars in terms of credits, and Thinking Machine will provide another 250 dollars in compute credits.

算力方面,我们很感谢 Laude Institute 给每位学生 200 美元额度,Thinking Machine 再提供 250 美元算力额度。

语法be grateful that 从句;in terms of = 在……方面。

039

I want to switch a little bit to kind of conclude the logistics section by showing you a figure.

我想稍微转一下,用一个图来结束课程安排这部分。

语法by doing 表示方式;switch to 表示转换话题。

040

This is just like a specific instance of what's happening today. There is a lot of data.

这就像是当下正在发生的一个具体例子。这里有很多数据。

语法what's happening today 是名词性从句作介词宾语。

041

If you show on the top, this is actually homework score from two populations: people who use AI and the people who do not use AI.

上面这张图其实是两组人的作业分数:用 AI 的人,和不用 AI 的人。

语法冒号后解释 two populations;who use AI 是定语从句。

课件 · 对应讲解
课件第11页
P11
042

Uh, very interestingly, I think, uh, with AI everyone's homework scores are just so great.

很有意思,用了 AI 之后,每个人的作业分数都特别好。

语法with AI 表示方式;so + 形容词 = 如此……。

043

But then if you look at the bottom, this is actually the exam score for the same population.

但如果你看下面,这其实是同一批人的考试分数。

语法if 条件句;the same population 指同一群人。

044

Uh, before you use AI, uh, this is definitely more kind of shifted towards one hundred here.

用 AI 之前,分数明显更靠向 100 分这一边。

语法shifted towards = 向……偏移;before you use AI 是时间状语。

课件 · 对应讲解
课件第12页
P12
045

Uh, with AI, we have way more people doing worse in their exams. And I think we see this kind of pattern very frequently these days.

用了 AI 之后,考试变差的人反而多得多。我觉得现在这种模式很常见。

语法way more = 多得多,way 修饰比较级;doing worse 是现在分词短语作定语。

046

The second example that I want to share with you is actually from Anthropic.

我想分享的第二个例子来自 Anthropic。

语法that 引导定语从句;is from 是表语。

047

They did a study with their own engineers to figure out how the use of coding agents actually impacts coding.

他们对自己公司的工程师做了研究,想看使用编码智能体到底如何影响写代码。

语法to figure out 表示目的;how 引导宾语从句。

课件 · 对应讲解
课件第13页
P13
048

As you can see from the left axis, if you use AI, the task completion time actually decreased.

你可以看左边的轴:如果用了 AI,任务完成时间确实下降了。

语法As you can see 是非限制性定语从句的固定说法;if 条件句。

049

But then on the right, the quiz score in terms of your mastery actually significantly decreased.

但右边,衡量你掌握程度的测验分数明显下降了。

语法in terms of = 在……方面;significantly 修饰 decreased。

课件 · 对应讲解
课件第14页
P14
050

That is, despite the coding agent being able to give us 1000 lines of code, it's a little bit unclear whether we fully understand such AI output.

也就是说,尽管编码智能体能给我们 1000 行代码,我们是否真的理解这些 AI 产出,还不太清楚。

语法That is = 也就是说;despite + 动名词表示让步;whether 引导宾语从句。

051

So with that, I want to conclude the logistics by saying that we really hope that you can use AI to learn how to learn, and this is really just about you and your CS329Z.

所以我想用这句话结束课程安排部分:我们真的希望你能用 AI 学会“如何学习”,这其实只关乎你和你的 CS329Z。

语法by saying 表示方式;how to learn 是不定式短语作宾语。

052

With that, any quick questions for logistics?

那么,关于课程安排有什么快问吗?

语法any 用于疑问句;for logistics 表示“关于课程安排”。

课件 · 对应讲解
课件第15页
P15
053

Okay, if there is no question, we will continue to the history of agents.

好,如果没有问题,我们继续讲智能体的历史。

语法if 条件句加主句;continue to 表示接着做。

课件 · 对应讲解
课件第16页
P16
054

One thing that I do want to mention is that the learning objective today is for you all to get familiar with the agent loop on top of LLMs and the different key components.

我想提一点:今天的学习目标是让大家熟悉 LLM 之上的智能体循环,以及几个关键组成部分。

语法that 引导表语从句;for sb to do 是复合结构;on top of = 在……之上。

055

So let's get started.

那我们开始。

语法与第 18 句相同的建议句式。

课件 · 对应讲解
课件第17页
P17
课件第18页
P18
056

This is a word that's probably very, very popular today, and what I'm going to do next is to trace where this idea actually came from, how it had developed over the decades, and why it suddenly took off with large language models.

这个词今天大概非常流行;接下来我要追溯这个想法从哪来、几十年里怎么发展,以及为什么它突然随着大语言模型火了起来。

语法三个并列宾语从句(where / how / why);take off 表示“起飞、突然流行”。

057

If you look at the more linguistic side of agents, the word "agent" actually comes from Latin, meaning "one who acts," and this term also entered English in the later, um, 14th century.

从语言学角度看,“agent”这个词其实来自拉丁语,意思是“行动的人”,这个词在 14 世纪后期进入英语。

语法meaning 是现在分词作补充说明;also 表示“也”。

058

So in AI, the first indexed use of it is in this specific paper from 1973, where Hewitt and Bishop and Steiger talk about this architecture called the actor, where each actor is an active agent that waits for a message and then does what the message tells them to do.

所以在 AI 里,它第一次被正式使用是在 1973 年的一篇论文中,Hewitt、Bishop 和 Steiger 讲了一种叫 actor 的架构:每个 actor 是一个主动的智能体,等待消息,然后按消息说的去做。

语法where 引导非限制性定语从句;that waits... and then does... 是定语从句,两个动词并列。

课件 · 对应讲解
课件第19页
P19
IIPart Two

第二部分

52 句 · 词卡可悬浮
059

So the idea of software entities that act on their own is older than most people can think about.

所以“能自己行动”的软件实体这个想法,比大多数人想的还要早。

语法that act on their own 是定语从句修饰 entities;older than 后接从句。

060

And then I think like a few years after that, the Contract Net protocol actually talks about how agents divide tasks with each other and then negotiate tasks.

大概几年之后,Contract Net 协议讲到智能体之间怎么分任务、怎么协商任务。

语法how 引导宾语从句;divide 与 negotiate 两个动词并列。

061

This trend actually continues in Marvin Minsky's Society of Mind.

这个趋势在 Marvin Minsky 的《Society of Mind》里继续。

语法一般现在时表事实;in 表示“在……之中”。

课件 · 对应讲解
课件第20页
P20
062

They actually talk about how a group of sub-agents actually work together to get things done, and if you can reflect on this, this is actually the earlier idea of multi-agent orchestration.

他们其实在讲一群子智能体怎么合作把事情做成;细想一下,这其实就是多智能体编排的早期想法。

语法how 从句作介词宾语;if 条件句;this is 表语。

063

I think the history actually continues around the 1990s.

我觉得这段历史在 1990 年代前后还在继续。

语法around 表示“大约在”。

课件 · 对应讲解
课件第21页
P21
064

We actually see more and more emergence of software systems that serve as agents, from Pattie Maes designing autonomous agents to later people talk about agent as autonomy, social ability, reactivity, proactivity, trying to define agents in different ways.

我们确实看到越来越多充当智能体的软件系统,从 Pattie Maes 设计自主智能体,到后来人们把智能体说成自主性、社交能力、反应性、主动性,试图用不同方式定义它。

语法from...to... 表示范围;as 引出“作为”;trying to 是现在分词作伴随状语。

065

The most familiar definition to many of us is actually from Russell and Norvig, which defines agents as anything that perceives through sensors and acts through actuators here.

我们最熟悉的定义其实来自 Russell 和 Norvig:智能体是任何通过传感器感知、通过执行器行动的东西。

语法which 引导非限制性定语从句;anything that... 是定语从句。

066

We now kind of enter a different stage, which we call the reinforcement learning era here.

我们现在算是进入另一个阶段,这里我们叫它强化学习时代。

语法which 引导非限制性定语从句,指 stage;kind of 是口语“有点”。

课件 · 对应讲解
课件第22页
P22
067

This is a classic agent-environment loop that many of us get familiar during RL courses.

这是很多人上 RL 课时熟悉的经典“智能体—环境”循环。

语法that 引导定语从句;get familiar 是口语说法。

068

So what happened here is that agents take actions in the environment, and such action will receive a reward, and then they do the action based on a specific state and the current reward.

这里发生的是:智能体在环境里采取动作,动作会得到奖励,然后它们根据某个状态和当前奖励来决定动作。

语法What happened here is that... 主语从句加表语从句;based on 表示依据。

069

So this is a very classic agent-environment loop from Sutton here.

所以这是 Sutton 提出的非常经典的智能体—环境循环。

语法from Sutton 表示来源。

070

And then I think like we see more and more promises from this kind of setup.

然后我觉得这种设定带来了越来越多可期待的东西。

语法promises 这里指“前景、希望”;from this kind of setup。

071

DQN refers to deep Q-network; this actually [is] from DeepMind's earlier days, where they build AI systems to actually solve specific games.

DQN 指 deep Q-network(深度 Q 网络);这其实来自 DeepMind 早期,他们造 AI 系统去打通特定游戏。

语法refers to 表示“指的是”;where 引导定语从句。

072

Now I think later you also see that AlphaGo and OpenAI Five showing that this kind of approach actually can reach superhuman performance in, like, Go - and I think this one is Dota 2.

后来你还会看到 AlphaGo 和 OpenAI Five,说明这种思路能达到超人水平,比如围棋——这个我猜是 Dota 2。

语法you see that... 宾语从句;showing 是现在分词补充说明;this one 指 OpenAI Five。

073

And I think this might... So those were agents, but each of them are actually trained for a specific task. So what actually...

所以那些都是智能体,但每一个其实都是为某个特定任务训练的。

语法those were 过去式;each of them 作主语;trained for 表示目的。

074

That is the introduction of large language models. I think the first kind of impressive capability of LLMs is actually in-context learning.

这就是大语言模型登场的地方。我觉得 LLM 第一个令人印象深刻的能力其实是上下文学习。

语法That is 指代上文;the first...capability 是后置定语。

075

Built upon this kind of transformer-based architectures, GPT-3 actually showed that you can just talk about a task and give it a few demonstrations — like in this particular example of few-shot in order to do translation — you can offer certain examples, and then the model can actually follow such examples and then do the task.

建立在 transformer 架构之上,GPT-3 表明你只要描述一个任务并给几个示范——比如这里用 few-shot 做翻译——给出一些例子,模型就能照着例子把任务做出来。

语法Built upon 是过去分词作状语;that 引导宾语从句;in order to 表目的。

课件 · 对应讲解
课件第23页
P23
076

This entire process, unlike previous systems I showed you, there is no gradient update happening here.

整个过程和我们前面看到的系统不同:这里没有梯度更新。

语法unlike 表示对比;there is 句型;happening here 是现在分词作定语。

077

I think not only in terms of prompting or in-context learning, prompting could do more than teach a model a new task.

我觉得不只是提示或上下文学习——提示能做的比“教模型一个新任务”更多。

语法not only 引出递进;more than 表示“不止”。

078

It turned out that models themselves — they can also reason step by step and then use tools for the things that they cannot do alone.

结果发现模型自己也能一步步推理,还能用工具去做它单独做不到的事。

语法It turned out that... 主语从句;for the things that... 是定语从句。

079

So this particular example is called chain-of-thought prompting.

所以这个例子叫思维链提示(chain-of-thought prompting)。

语法is called 是被动语态。

080

You can see that asking the model to actually work through a problem step by step actually gives more accurate answers in general.

你可以看到,让模型一步步把问题想一遍,通常能给出更准的答案。

语法asking... 是动名词作主语;work through = 一步步处理。

课件 · 对应讲解
课件第24页
P24
081

WebGPT was proposed by OpenAI.

WebGPT 是 OpenAI 提出的。

语法被动语态 was proposed by。

082

This actually enables language models in earlier days to use, like, a web browser so that it can actually look up online instead of only relying on memory or parameters.

它让早期的语言模型能用网页浏览器,这样它就能上网查,而不是只依赖记忆或参数。

语法enable sb to do;so that 引导目的;instead of + 动名词。

083

This actually leads to a lot of follow-up work in terms of, like, web browser agents.

这引出了很多后续工作,比如网页浏览智能体。

语法leads to 表示“引出”;in terms of 表示“在……方面”。

084

One of the very interesting architectures is actually called MRKL — modular reasoning, knowledge, and language.

其中一个很有意思的架构叫 MRKL——模块化推理、知识与语言。

语法One of the... 表示“……之一”;called 是过去分词作定语。

085

I would view it as one of the first, earlier systems to think about tool use.

我会把它看作最早一批考虑“工具使用”的系统。

语法view...as... 把……看作;one of the first 表示最早之一。

086

So basically this architecture actually decides which outside expert to send a request to: is this going to be a weather request, so then I should use a weather API; if this is a coding task, maybe I should send it to a Python programming tool, etc.

这个架构基本会决定把请求发给哪个外部专家:如果是查天气,那我就该用天气 API;如果是编程任务,也许该发给 Python 编程工具,等等。

语法which 引导宾语从句;冒号后是两个 if 条件句举例。

087

So now the model actually can think, and it can take actions through tools.

所以现在模型能思考,也能通过工具采取行动。

语法can think 与 can take actions 并列。

088

So I think that we now have, like, both important pieces here. That is, models can reason step by step, and models that can use tools.

我觉得现在我们有了两块重要的拼图:模型能一步步推理,以及模型能用工具。

语法That is 后面是两个并列名词短语。

课件 · 对应讲解
课件第25页
P25
089

Those are two very, very important prerequisites for the emergence of agents.

这是智能体出现的两个非常重要的前提。

语法Those 指上句两件事;prerequisites for 表示“前提”。

090

I'm going to show you a very short timeline in what happened in history. That is, two years ago, so 2022, ReAct was proposed.

我给大家看一条很短的时间线。也就是两年前、2022 年,ReAct 被提出。

语法what happened in history 是宾语从句;That is 用来换一种说法。

091

So the name actually means reason plus act.

这个名字的意思就是 reason(推理)加 act(行动)。

语法means 表示“意思是”。

092

So instead of thinking once and then answering the question, what the model does here is actually a loop: it thinks about what to do next, take action, and then look at what happened, and then use that to think again.

它不是想一次就回答,而是形成一个循环:想下一步做什么、采取行动、看发生了什么,再用结果继续想。

语法instead of + 动名词表示“而不是”;what 引导宾语从句;四个动词并列。

093

So it's actually a loop happening here.

所以这里其实是一个循环在运转。

语法it's...happening 是现在进行时。

094

After that I think we see that more and more models get released.

在那之后,我们看到越来越多的模型发布。

语法see that... 宾语从句;get released 是被动。

095

So ChatGPT got launched, and suddenly I think millions of people start to talk to LLMs every day. And then GPT-4 was released.

ChatGPT 上线,突然之间我觉得每天有上百万人在跟 LLM 说话;接着 GPT-4 发布。

语法got launched 是被动;start to do 表示开始。

096

And the reason why I want to mention this is that, if you think about agents, they really rely on the base model, the strong capability from those base models.

我想提这一点的原因是:智能体其实很依赖底座模型,依赖这些底座模型强大的能力。

语法why 引导定语从句;that 引导表语从句;rely on 表示依赖。

097

So when GPT-4 came out, we have a much stronger model that could follow long instructions and plan more reliably.

所以 GPT-4 出来时,我们有了强得多的模型,能遵循长指令、更可靠地做规划。

语法when 引导时间状语;that 引导定语从句修饰 model。

098

Within two weeks, there were actually two open-source projects that came out that really shape what we think around agents. The first one is called BabyAGI.

两周之内,出现了两个开源项目,真正塑造了我们对智能体的想象。第一个叫 BabyAGI。

语法Within 表示“在……之内”;there were...that... 是定语从句。

099

It basically gave the model a goal and then let it write its own task list, walk through the tasks, and add new ones as it goes.

它 basically 给模型一个目标,让它自己写任务清单、逐个执行,并在过程中加新任务。

语法give sb sth 双宾语;let it do 是使役结构。

100

AutoGPT was released, I think, in the same months, two days later.

AutoGPT 我记得在同一个月发布,晚两天。

语法I think 是插入语;later 表示“之后”。

101

Basically try to connect GPT-4 to tools such as web search, file systems, etc., and then let it keep going on on its own without a person really, like, typing the next prompt each time.

基本上是把 GPT-4 接到工具上,比如网页搜索、文件系统等,然后让它自己一直跑,不需要人每次输入下一个提示。

语法try to 表示“试图”;such as 举例;without 表示“不用”。

102

I think now if you look back, it was definitely ahead-of-time ideas.

现在回头看,它绝对是超前于时代的想法。

语法if you look back 条件句;ahead-of-time 是复合形容词。

103

The reality is that none of them actually really worked very well, but they got people's attention and really opened our imagination about what's possible.

现实是它们没有一个真的跑得很好,但它们引起了注意,也真的打开了我们对可能性的想象。

语法none of them 表示“没有一个”;but 连接转折。

104

I think that that's also probably the time when the word "agent" really enters, like, everyday use.

我觉得那大概也是“agent”这个词真正进入日常使用的时候。

语法when 引导定语从句;everyday use 指日常使用。

105

So I want to kind of go a little bit deeper here to share with you, like, the underlying model and also agents, how they have improved since 2023.

所以我想稍微深入一点,讲讲底座模型和智能体自 2023 年以来是怎么进步的。

语法how 引导宾语从句;since 2023 表示时间起点。

106

So this page, if you look at that, I only show the GPT-3, GPT-4, and GPT-5. The underneath model actually is getting better and better.

这一页我只展示 GPT-3、GPT-4 和 GPT-5。底下的模型其实越来越好。

语法if you look at that 是插入条件;better and better 比较级叠用。

课件 · 对应讲解
课件第26页
P26
107

If you just contrast the GPT-3 versus GPT-4, we see that on MMLU there is a 43 percent increase.

只要对比 GPT-3 和 GPT-4,就能看到 MMLU 上提升了 43%。

语法If you contrast... 条件句;there is 表存在。

108

This is actually true for all the data sets that we have.

这对我们有的所有数据集都成立。

语法that 指上句;we have 是定语从句。

109

From GPT-4 to GPT-5, some of those data sets actually didn't show up here because they got solved, or they saturated, so that they cannot be used as very reliable signals.

从 GPT-4 到 GPT-5,有些数据集没出现在这里,因为它们被解决了或者饱和了,不能再当可靠信号。

语法because 引导原因;so that 引导结果;used as 是被动。

110

In standard, we actually introduced more evaluations such as GPQA, which is a very challenging QA suite, and also harder and harder math problems here.

相应地,我们引入了更多评测,比如 GPQA——一个很有挑战的问答套件,还有越来越难的数学题。

语法such as 举例;which 引导定语从句;harder and harder 比较级叠用。

IIIPart Three

第三部分

63 句 · 词卡可悬浮
111

So the key message here is that each generation of base model actually made a really big jump in terms of their performance.

所以这里的关键信息是:每一代底座模型的性能都真的有很大跃升。

语法that 引导表语从句;in terms of 表示“在……方面”。

112

And a stronger model means that the agent and all can actually reason better, they can make fewer mistakes, hallucinate less, and along the way they can handle longer and longer tasks.

更强的模型意味着智能体能推理得更好、犯更少的错、更少胡说,而且一路能处理越来越长的任务。

语法means that 宾语从句;fewer/less 是比较级;longer and longer 比较级叠用。

课件 · 对应讲解
课件第27页
P27
113

And then let's look at the harness side. So the harness side is also improving as well, not only just like the raw model capability.

接着看 harness 这一边。harness 也在进步,不只是原始模型能力。

语法not only 引出递进;as well 表示“也”。

114

So this page is actually around, like, SWE-bench Verified.

这一页其实讲的是 SWE-bench Verified。

语法around 口语里表示“关于、围绕”。

115

As you can see, in January 2025, I think the performance is only around 30, but then over the last one year and a half now, all the numbers actually reached a very high stage here.

你可以看到,2025 年 1 月性能大概只有 30,但过去一年半,所有数字都到了很高的水平。

语法As you can see 固定说法;over 表示“在……期间”;that 引导定语从句。

116

And then right side, this is from ...

然后右边这一页,来自……

语法口语中断句,说话人没说完;this is from 表来源。

117

release, so you can see that OSWorld, which is a computer-use evaluation, and also on Terminal-Bench, which is more like a command-line task, the accuracies are just impressive.

……某个发布,所以你可以看到 OSWorld——一个电脑操作评测——以及 Terminal-Bench——更像命令行的任务——的准确率都很惊人。

语法which 引导两个非限制性定语从句;the accuracies are 主系表。

118

There is also a trend that people start to pay attention to the efficiency of the process.

还有一个趋势是,人们开始关注过程的效率。

语法There is...that... 定语从句;pay attention to 表示关注。

119

This is why you have seen that most of those curves these days actually have both price and accuracy there together.

这就是为什么你看到现在大多数曲线都把价格和准确率放在一起。

语法why 引导表语从句;have...together 表示“同时具备”。

120

So this is how we got here. It's a long history in the last 60 years.

我们就是这样走到今天的。这是过去 60 年的漫长历史。

语法how 引导表语从句;in the last 60 years 时间状语。

课件 · 对应讲解
课件第28页
P28
121

So what I'm going to do next is to really open one up and see what an agent is actually made of.

所以我接下来要真正打开一个智能体,看看它到底由什么组成。

语法what 引导宾语从句;be made of 表示构成。

122

Any quick questions here?

这里有什么快问吗?

语法Any 用于疑问句,表示“有没有”。

123

Okay, um, yes.

好,嗯,请讲。

语法口语应答,省略完整句。

124

Do you think most capability is gonna saturate in a few years, or is gonna still, like, develop for, like, 10 years?

你觉得大部分能力会在几年内饱和,还是会继续发展十年左右?

语法gonna = going to 的口语;or 连接两个选择问句。

125

I think, first just to repeat the question: the question is, will model capabilities saturate, or will it keep improving.

我想先把问题重复一下:问题是,模型能力会饱和,还是会继续提升。

语法to repeat 表示目的;will 引导两个并列问句。

126

I think in terms of timeline, it's really harder to make extrapolation into the future, because a lot of things can actually happen in two to three months these days.

我觉得就时间线而言,很难对未来的情况做外推,因为现在两三个月里就可能发生很多事。

语法in terms of 表示“就……而言”;because 引导原因。

127

There has been a very interesting topic on RSI — recursive self-improvement — and it has showed very interesting patterns solving open math problems and many other tasks.

有一个很有意思的话题叫 RSI——递归自我改进——它在解开放数学问题和很多其他任务上表现出很有意思的模式。

语法There has been 现在完成时;solving 是现在分词作状语。

128

I think with RSI this pattern will get accelerated a lot, so let's see.

我觉得有了 RSI,这个模式会被大大加速,我们看看吧。

语法with 表示“有了”;will get accelerated 被动。

129

Yes.

好。

语法口语应答。

130

Let me see the improvements on the Terminal-Bench. Also you can see that GPT-5.6 ...

我看看 Terminal-Bench 上的提升。你也可以看到 GPT-5.6……

语法Let me see 表示“我看看”;省略号表示说话中断。

131

had this, sort of, doing really bad over the x-axis of API cost, and I guess as the API cost increased the accuracy increase, right?

它在 API 成本这条横轴上表现挺差的;我猜随着 API 成本上升,准确率也上升,对吧?

语法sort of 口语“有点”;as 引导伴随变化;right? 是反问。

132

Do you think — is it — what are the reasons for ... doing better than the API cost increase?

你觉得——是——为什么成本上去反而做得更好?

语法问句里插入修正;why 引导宾语从句。

133

Also what are the reasons for GPT-6 ... much better — is it algorithm development, is it like bigger model?

还有 GPT-6 为什么好这么多——是算法进步,还是模型更大?

语法is it...or... 选择疑问句。

134

Yeah, the question is that why, when the models get better, is it much more expensive, and also why is it better than their earlier models.

对,问题是:为什么模型变好时反而更贵,以及为什么它比早期模型更好。

语法why 引导两个并列从句;比较级 better than。

135

So in terms of the price and better performance, the API cost here is strongly associated with the number of tokens that are digested in the process.

就价格和更好表现而言,这里的 API 成本跟过程中消耗的 token 数量强相关。

语法in terms of 表示“就……而言”;that 引导定语从句。

136

So if you think longer — the general pattern is that thinking longer, thinking longer, is actually going to lead you to improve the performance.

所以如果你想得更久——一般规律是,想得越久,越能提升表现。

语法if 条件句;that 引导表语从句;lead sb to do。

137

So this is just a general trend.

所以这只是一个普遍趋势。

语法just 表示“只是”。

138

And then in terms of why models are getting better than their previous models, um, I think that there are many reasons; uh, this is also a topic we are going to go deeper later in terms of open weights models and the openness of large language models and the ...

然后关于为什么模型比上一代更好,嗯,我觉得原因很多;这也是我们后面会深入讲的话题,涉及开放权重模型、大语言模型的开放程度,以及……

语法why 引导宾语从句;in terms of 表“涉及”。

139

model aspects. The reality is that we do not know a lot about how those models are trained.

……模型方面的东西。现实是,我们对这些模型怎么训练知道得并不多。

语法The reality is that... 表语从句;how 引导宾语从句。

140

Uh, is it about better data, better distillation, or other aspects.

是更好的数据、更好的蒸馏,还是别的方面?

语法选择疑问句,省略主语和谓语。

141

Okay, let's now move to the agent architecture.

好,我们现在转到智能体架构。

语法move to 表示转向。

142

So I think, like, if you think about agents, it has a really long history; it got really accelerated here with large language models.

我觉得,如果你想到智能体,它有很长的历史;而大语言模型让它大大加速了。

语法if 条件句;it got accelerated 被动。

143

And this is going to be the agent we are going to talk about, and I want to go back to this example from ReAct that I showed you.

这将是我们要讲的智能体;我想回到我给你看过的 ReAct 例子。

语法be going to 表将来;that 引导定语从句。

144

So in this particular example, the agent needs to think about what they are going to do.

在这个例子里,智能体需要想清楚自己要做什么。

语法what 引导宾语从句。

145

So this particular task is to put a pepper shaker in a drawer.

这个任务是把一个胡椒瓶放进抽屉。

语法不定式作表语,说明任务内容。

146

And then if you read it on the right side, top to the bottom: the model first — the model itself is actually an LM core, this is the foundation model underneath.

如果你从右边从上往下读:先是模型本身——它其实是一个 LM core,也就是底下的基础模型。

语法if 条件句;破折号解释;this is 表语。

147

And then the thinking step here basically is the thoughts, like, "I need to find a pepper shaker, more likely in cabinets." Those are what we call planning and reasoning.

然后这里的思考步骤基本就是想法,比如“我得找一个胡椒瓶,更可能在柜子里”。这些就是我们说的规划与推理。

语法what we call 表示“我们所说的”;引号内是模型的内心话。

148

And then the traces so far, ... above the current step is what we call memory.

然后是到目前为止的轨迹……在当前步骤之上的部分,就是我们说的记忆。

语法省略号处听不清;what we call 同上。

149

And then the agents actually take actions such as "go to cabinet one" or "take a pepper shaker." Those are what we call tool calls.

然后智能体真正采取动作,比如“去一号柜子”或“拿胡椒瓶”。这些就是我们说的工具调用。

语法such as 举例;what we call 同上。

150

And then those observations — those are literally just, like, after each action, what the agent sees from the environment.

然后是那些观察——其实就是每个动作之后,智能体从环境里看到的东西。

语法literally 表示“字面上、就是”;what 引导宾语从句。

151

You can see that at least there are five components if we just ...

你可以看到,如果只看这个……至少就有五个组成部分。

语法if 条件句;there are 句型。

152

to look at this very simple example from ReAct. So we will now work through each of them.

……看这个 ReAct 的简单例子。我们接下来逐个讲。

语法省略号处语句不完整;work through 表示“逐个过一遍”。

153

So this is meant to be a conceptual framework, just to highlight the different components.

所以这是一个概念框架,只是为了突出不同组成部分。

语法be meant to 表示“意图是”;highlight 表目的。

154

And if you see different directions, it actually didn't carry a lot of weight when we talk about agents.

如果你看到不同的画法,其实在读智能体时并不重要。

语法if 条件句;carry weight 表示“有分量、重要”。

155

I want to just show you some kind of core components here.

我只想给你看一些核心组成部分。

语法some kind of 口语“一些”。

156

First, agents is built on top of large language models, so a stronger model in general means better agents.

首先,智能体建立在大语言模型之上,所以一般来说模型越强,智能体越好。

语法built on top of 表示“建立在……之上”;means 表“意味着”。

157

This is why we also have a debate in terms of: should I think about training for agents, or should I just care about the better harness or other improvement?

这也是为什么我们会有争论:我该考虑为智能体做训练,还是只关注更好的 harness 或其他改进?

语法why 引导表语从句;in terms of 表“在……方面”;or 连接选择。

158

On top of the LLM core, there is a very important component called planning and reasoning.

在 LLM core 之上,有一个很重要的部分叫规划与推理。

语法called 是过去分词作定语。

159

So if you think about asking agents to do a very big task, they actually need to decompose them into smaller pieces, and then maybe have some agent to deal with each of them.

所以如果你想让智能体做一个很大的任务,它们其实需要把任务拆成小块,然后也许让某个智能体处理每一块。

语法ask sb to do;decompose into 表示拆分;have sb do 使役。

160

We may also want to add some explicit aspects to improve the reasoning here.

我们可能还想加入一些明确的手段来改进这里的推理。

语法add sth to do 表目的;explicit 明确的。

161

And then, as you see from the earlier example, we need to introduce a memory to make sure that, as agents work on the task for more than two hours, they actually know what has happened so far, and then can use that as context to do the reasoning.

然后,正如你从前面例子看到的,我们需要引入记忆,确保智能体在任务上工作两个多小时时,知道到目前为止发生了什么,并能把它当上下文来推理。

语法as 引导方式状语;to make sure that 引导宾语从句;as 引导时间状语。

162

In earlier days, when models can solve very hard math problems, if you ask them, like, "where is CS329Z happening today on campus," probably models cannot answer that.

早期,当模型能解很难的数学题时,如果你问它“CS329Z 今天在校园哪里上课”,模型大概答不出来。

语法when 引导时间状语;if 条件句;where 引导宾语从句。

163

Yes, our systems also cannot answer that. So in order to really enable LLMs to do stuff, we actually could give them tools here.

是的,我们的系统也答不出来。所以为了真正让 LLM 能做事,我们其实可以给它们工具。

语法in order to 表目的;enable sb to do。

164

This could be information retrieval: if they do not know what's the classroom location, they can actually go to the Stanford website and search for it; if they do not know the weather today at Stanford, they can actually search for weather from an official database.

这可以是信息检索:如果不知道教室在哪,它们可以去斯坦福网站搜;如果不知道今天斯坦福的天气,它们可以从官方数据库查天气。

语法if 引导两个条件句;what's... 是宾语从句。

165

Similarly ...

同样……

语法口语中断,省略号表示话没说完。

166

I will show more examples in a few weeks there has been a time period in history where, despite GPT-4 was amazing, it actually cannot solve three digits times three digits — just like a simple multiplication problem.

几周后我会展示更多例子。历史上有一段时间,尽管 GPT-4 很厉害,它其实算不了三位数乘三位数——就是一个简单的乘法题。

语法despite 表示让步;where 引导定语从句;just like 表示“就像”。

167

So there are a lot of those scenarios.

所以这类场景很多。

语法those 指上文场景。

168

So tools really enable agents to take factual and more consistent actions.

所以工具真的让智能体能采取更符合事实、更一致的动作。

语法enable sb to do;比较级 more factual。

169

And all of those actually lead to two different terms that you may have heard of, such as tool call, interaction response to users — this is what we call agent actions.

所有这些其实引出两个你可能听过的说法,比如工具调用、给用户的交互回复——这就是我们说的智能体动作。

语法that 引导定语从句;such as 举例;what we call 同上。

170

And I think more importantly there is this environment part that we haven't talked about.

而且我觉得更重要的是,还有一个我们没讲到的“环境”部分。

语法there is 句型;that 引导定语从句。

171

So agent observe what's happening in the environment and then take actions.

智能体观察环境里发生的事,然后采取动作。

语法observe 与 take 并列;what's happening 是宾语从句。

172

So what do you see on the screen right now — this is actually a skeleton of an agent.

那么你现在屏幕上看到的是什么——这其实是一个智能体的骨架。

语法what 引导主语从句;this is 表语。

课件 · 对应讲解
课件第29页
P29
173

Of course this is only one way to draw it, and please do not take too much with this kind of direction; this is really meant to illustrate the process here.

当然这只是一种画法,请不要太在意这种方向;它真的只是为了说明这个过程。

语法take...with 表示“看待”;be meant to 表意图。

IVPart Four

第四部分

63 句 · 词卡可悬浮
174

And then on top of this, like a single agent, you can imagine that you can have different agents, even within the same agent, maybe you can do different configuration optimization for each box that I listed here.

在此基础上,就像一个智能体,你可以想象有多个不同的智能体,甚至同一个智能体内部,也许你可以对我列出的每个框做不同配置优化。

语法on top of this 表示“在这之上”;even 表示“甚至”;that 引导定语从句。

课件 · 对应讲解
课件第30页
P30
175

This is why later, like harness and optimization, become very important, because everyone wants to find the most optimal configuration for this agent.

这就是为什么后来 harness 和优化变得非常重要,因为每个人都想为这个智能体找到最优配置。

语法why 引导表语从句;because 引导原因;most optimal 最高级。

176

As I said, this is not the only way to talk about agents, and our breakdown is not unique.

正如我所说,这不是谈论智能体的唯一方式,我们的拆分也不是唯一的。

语法As I said 是插入语;not the only 表示“不是唯一”。

177

Different researchers actually use different labels for a long time.

长期以来,不同研究者其实用不同的标签。

语法for a long time 时间状语;different 定语。

课件 · 对应讲解
课件第31页
P31
178

I think that there was a lot of debate around what is an agent, what is not an agent, what is agentic systems, what is not agentic systems.

我觉得围绕“什么是智能体、什么不是智能体、什么是智能体系统、什么不是”,一直有很多争论。

语法There was...around... 句型;四个 what 从句并列。

179

We are not going to do any debate in this class, but I think that you can see the common components showing up here.

这门课我们不做任何争论,但我觉得你可以看到这里出现的共同组成部分。

语法but 连接转折;showing up 是现在分词作定语。

180

The leftist data is from an OpenAI researcher back in 2023.

左边这张图来自 OpenAI 一位研究者 2023 年的工作。

语法back in 2023 表示“早在 2023 年”。

181

They talk about that, okay, if you think about agents, they use tools, they have memory, planning, action.

他们讲的是:好,如果你想到智能体,它们用工具、有记忆、会规划、会行动。

语法if 条件句;后面四个动词短语并列。

182

And on the right side, this is around cognitive language agents; you can see that it has similar pieces such as memory, with retrieval to read from it and also learning to write to it, reasoning, etc.

右边这块是关于认知语言智能体的;你可以看到它有相似的部分,比如记忆——可以检索读取,也可以学习写入——还有推理等等。

语法such as 举例;with...to read 是 with 复合结构;不定式表用途。

183

In fact those are different vocabularies; I think they really kind of point to the same architecture here.

其实这些是不同的词汇;我觉得它们确实指向同一个架构。

语法point to 表示“指向”;kind of 口语“某种程度上”。

184

That is, an LLM that can reason, remember, and use tools, and act in a loop within its environment.

也就是说,一个 LLM 能推理、能记忆、能用工具,并在环境里循环行动。

语法That is 解释前文;that 引导定语从句,四个动词并列。

185

So now I'm going to go back to the diagram of those different components, and start to share with you the different modules we have here.

所以现在我要回到那张不同组成部分的图,开始讲这里的各个模块。

语法go back to 表示回到;we have here 是定语从句。

课件 · 对应讲解
课件第32页
P32
186

So if you look at this, I think the first thing that comes to mind is actually this planning and reasoning from this particular figure.

如果你看这张图,我第一个想到的其实是这个图里的规划与推理。

语法that comes to mind 定语从句;this particular figure 指这张图。

187

So then the question is, what does that mean for LLMs to reason, and why does it help an agent?

那么问题是:对 LLM 来说推理意味着什么,它又为什么能帮到智能体?

语法what 引导主语从句;why 引导并列问句。

188

I want to draw some kind of ... I prefer to human reasoning here.

我想打一个……我更愿意说,是关于人类推理的比方。

语法some kind of 口语“某种”;插入修正。

189

This action is probably a little bit controversial: if you think about that, there has been a lot of debate to see whether the reasoning of AI is similar to human reasoning.

这个类比可能有点争议:细想的话,一直有很多争论,讨论 AI 的推理是否类似人类推理。

语法if 条件句;whether 引导宾语从句。

190

Again, no debate in this course. But if you look at this process, I think for humans, what does reasoning mean?

这门课同样不争论。但如果你看这个过程,我觉得对人类来说,推理是什么意思?

语法Again 表示“同样”;what 引导宾语从句。

课件 · 对应讲解
课件第33页
P33
191

It means that some mental process such as deduction, analogy, and planning that we all do for different tasks.

它指的是我们做不同任务时都会做的一些心理过程,比如演绎、类比和规划。

语法such as 举例;that 引导定语从句修饰 process。

192

So LLMs, I think, you can think about them as, like, chain of thought.

而对 LLM,我觉得你可以把它们想成思维链。

语法think about...as 把……看作。

193

So in this particular example here, most of the time we would call this kind of chain of thought as a reasoning process.

所以在这个例子里,大多数时候我们会把这种思维链叫推理过程。

语法would call 表示习惯性说法;as 引出宾语补足语。

194

Although — one message I want to share with you all is that this chain of thought may not be faithful to what actually happened with LLMs.

不过——我想跟大家分享的一点是:这条思维链可能并不忠实反映 LLM 内部真实发生的事。

语法that 引导表语从句;faithful to 表示“忠实于”。

195

For agents, by reasoning we mean the internal actions that update the agent's own state.

对智能体来说,所谓推理,我们指的是更新智能体自身状态的内部动作。

语法by reasoning we mean 表示“所谓推理,我们指的是”;that 引导定语从句。

196

So those are just like different terms to understand the reasoning and the planning.

所以这些只是理解推理和规划的不同说法。

语法just like 表示“只是像”;to understand 表目的。

197

So now let's look at a concrete example: why is reasoning helpful for agents?

那我们现在看一个具体例子:推理为什么对智能体有帮助?

语法why 引导宾语从句。

课件 · 对应讲解
课件第34页
P34
198

So imagine we have an agent that's doing actions right now, and as at step t it observes that you are cooking a dish and the salt is out.

想象我们有一个正在行动的智能体,在第 t 步,它观察到你在做菜,而盐没了。

语法that's doing 是定语从句;as 引导时间状语。

199

And then the next step, if you see an action of turn right — if you just look at those two, at least I got confused, like, okay, why is the agent actually turn right here, etc.

然后下一步,如果你看到一个“向右转”的动作——只看这两步,至少我会困惑:好吧,智能体为什么在这里向右转?

语法if 条件句;why 引导宾语从句;插入语 like 口语。

200

So the observation-to-action mapping is actually huge, and then this can be very hard for audits or just, like, for making agents better.

所以从观察到动作的映射其实非常大,这对审计、或者对让智能体变得更好来说都很难。

语法observation-to-action 复合名词;this can be 表语。

201

So if we could actually introduce a reasoning model here to let agents explicitly state the reason, then these actually help a lot.

所以如果我们能在这里引入一个推理模型,让智能体明确说出理由,那帮助会很大。

语法if 条件句;let sb do 使役;then 引出结果。

202

If you read the reasoning in the green box, it says that the dish should be savory, and since salt is out, I should find something equivalent; it is in the cabinet to my right.

如果你读绿框里的推理,它说:这道菜应该是咸香的,既然盐没了,我该找点等价的东西;它在我右边的柜子里。

语法that 引导宾语从句;since 引导原因;equivalent 表示“等价物”。

203

And then when the turn right, we know why the agent is doing this particular action.

然后当它向右转时,我们就知道智能体为什么做这个动作了。

语法when 引导时间状语;why 引导宾语从句。

204

I think the reasoning helps in two ways. First is from a generalization perspective, because the same reasoning could actually work in new similar situations.

我觉得推理有两方面帮助。第一是从泛化角度,因为同样的推理在新相似情境里也能用。

语法First is... 省略句;because 引导原因;that 引导定语从句。

205

It also helps with alignment, because you can see why the agent did what it did.

它也有助于对齐,因为你能看到智能体为什么这么做。

语法helps with 表示“有助于”;why 引导宾语从句。

206

So this is why reasoning was actually the first important component we are emphasizing.

所以这就是为什么推理其实是我们强调的第一个重要组成部分。

语法why 引导表语从句;we are emphasizing 是定语从句。

207

So now, just to understand why systems like ReAct beat existing prompting methods, I'm going to give you another example here.

现在,为了理解 ReAct 这类系统为何胜过现有提示方法,我再给你一个例子。

语法to understand 表目的;why 引导宾语从句。

208

This is an example from HotpotQA. So it's asking certain questions, and then standard prompting fails.

这是一个 HotpotQA 的例子。它问一些问题,然后标准提示会失败。

语法where 引导定语从句;and then 表顺承。

209

And if you just have a model that can reason, like chain of thought, it also fails here — basically we have a wrong answer.

而如果你只有一个会推理的模型,比如思维链,它在这里也会失败——基本上答案错了。

语法if 条件句;like 举例;we have 主谓宾。

课件 · 对应讲解
课件第35页
P35
210

This is actually more dangerous, because you have a very convincing reasoning trace that's wrong.

这其实更危险,因为你有一条非常有说服力但错误的推理过程。

语法because 引导原因;that 引导定语从句。

211

So now let's look at if you have this kind of a loop of think, taking action, think, observation.

那现在看看,如果你有这样一个“想—行动—想—观察”的循环会怎样。

语法if 条件句;of 后四个动名词并列。

课件 · 对应讲解
课件第36页
P36
212

So in this particular example, the model thinks that it needs to search "Apple Remote" since this is in the query, to find out what it was originally designed to interact with — Apple Remote.

在这个例子里,模型认为需要搜索“Apple Remote”,因为查询里有这个词,想弄清它最初是为与什么交互而设计的。

语法that 引导宾语从句;since 引导原因;what 引导宾语从句。

213

Such a thought actually induces search actions and gets a long description of Apple Remote from Wikipedia.

这样的想法其实会引发搜索动作,并从维基百科拿到一段关于 Apple Remote 的长描述。

语法induces 表示“引发”;gets 表示“获得”。

214

In the second step, the model actually used reasoning to extract the key information from that specific page, and they found that Apple Remote was actually designed to interact with Front Row here.

第二步,模型用推理从那个页面里提取关键信息,发现 Apple Remote 其实是为与 Front Row 交互设计的。

语法to extract 表目的;that 引导宾语从句;was designed 被动。

215

Then the model thinks that maybe they should search ... to find out what ...

然后模型想,也许该搜索……弄清什么……

语法省略号表示听不清;should 表建议。

216

but there may be, like, the specific Wikipedia page does not have such information, but some other articles have.

但可能这个维基页面没有这类信息,而别的文章有。

语法there may be 表推测;but 转折。

217

So this process actually continues, like in the third step the model will actually use reasoning to recover from extraction and then search Front Row instead.

所以这个过程继续,比如第三步,模型会用推理从提取中恢复,转而搜索 Front Row。

语法in the third step 时间状语;recover from 表示“从中恢复”。

218

So when the model thinks that they have the correct answer, they actually finish the task and they return it.

当模型认为答案正确时,它们就结束任务并返回答案。

语法when 引导时间状语;that 引导宾语从句。

219

So you can see that here the reasoning traces actually induce and adjust agent actions, which help agents attain new knowledge to support their own reasoning process.

所以你可以看到,这里的推理过程引发并调整智能体动作,帮智能体获得新知识来支撑自己的推理。

语法which 引导定语从句;help sb do。

220

And then one thing that I want to mention is that if you look at this, a lot of the trajectory here is very intuitive, interpretable, and somewhat factual.

然后我想提一点:如果你看这个,这里的很多轨迹非常直观、可解释,也多少符合事实。

语法that 引导表语从句;if 条件句;somewhat 表示“有点”。

221

to show you how this actually works.

……来展示这到底是怎么运作的。

语法不定式表目的;省略号表示前半句被切断。

222

Chain of thought is a very straightforward prompting baseline, and then you can see that compared to, like, just doing actions, which is act here ...

思维链是一个非常直接的提示基线;然后你可以看到,相比只是执行动作——这里叫 act……

语法compared to 表示对比;which 引导定语从句。

课件 · 对应讲解
课件第37页
P37
223

ReAct to actually perform act ...

ReAct 其实表现得更好……

语法省略号表示话被打断;perform 表示“表现”。

224

Um, one thing is that if you look at the failure case from different reasoning paradigms, um, let's do a ...

嗯,有一点是:如果你看不同推理范式的失败案例,嗯,我们做个……

语法if 条件句;failure case 指失败案例。

225

breakdown: if you compare chain of thought and the ReAct, uh, in terms of failures, like reasoning error, actually ReAct is very high.

拆解:如果比较思维链和 ReAct,就失败而言,比如推理错误,其实 ReAct 很高。

语法if 条件句;in terms of 表“就……而言”。

226

Um, search result error — ReAct is also very high, because, uh, CoT does not have search functions.

嗯,搜索结果错误——ReAct 也很高,因为 CoT 没有搜索功能。

语法because 引导原因;does not have 否定。

227

Hallucination — uh, hallucinating the reasoning increases our facts ... ReAct is zero, and then chain of thought is actually 56 here.

幻觉——把推理或事实说错……ReAct 是零,而思维链这里是 56。

语法破折号解释;while 表对比。

228

So in general hallucination is a very serious problem for chain of thought and many of those prompting techniques, and then ReAct with this kind of reasoning module taking actions actually mitigate it a lot.

所以总的来说,幻觉对思维链和很多提示技术是很严重的问题,而 ReAct 这种带推理模块、会采取行动的方式能大大缓解它。

语法with 复合结构;mitigate 表示缓解。

229

So you probably notice that there is a term here called SC here. SC refers to self-consistency.

所以你大概注意到这里有个术语叫 SC。SC 指 self-consistency(自洽性)。

语法refers to 表示“指的是”。

230

This is related to chain of thought as a prompting technique, and it's a very intuitive trick you can use.

它和作为提示技术的思维链有关,是一个很直观的小技巧。

语法related to 表示“与……相关”;you can use 是定语从句。

课件 · 对应讲解
课件第38页
P38
231

So apparently you can prompt the large language model using chain of thought, and instead of just getting one of them, you can actually get a diverse set of reasoning traces; you can aggregate it by choosing the most consistent answer in the final answer set.

也就是说,你可以用思维链提示大语言模型,不是只得到一个结果,而是得到一组多样的推理过程;然后通过在最终答案集中选最一致的那个来聚合。

语法instead of + 动名词;by choosing 表方式;diverse 多样的。

232

so this is a majority vote to some extent, but from a consistency perspective.

所以这在某种程度上是多数投票,但是从一致性角度出发。

语法to some extent 表示“在某种程度上”。

233

So after self-consistency, the process of actually making agents better at reasoning happens very, very frequently. One of the very notable examples is called the reflection.

所以在自洽性之后,让智能体推理更好的过程出现得非常频繁。其中一个很著名的例子叫反思(reflection)。

语法One of the... 表示“之一”;called 过去分词作定语。

234

Basically the agents are going to reflect through natural language feedback.

基本上,智能体会通过自然语言反馈来反思。

语法through 表示“通过”;feedback 反馈。

课件 · 对应讲解
课件第39页
P39
235

If you look at the left figure here, so let's see: we have a current trajectory generated here — this is the short-term memory here — and then you can give that to an evaluator; the evaluator is going to judge, is this going to be correct or incorrect.

如果你看左边这张图,我们来看:这里生成了当前轨迹——这是短期记忆——然后你可以把它给一个评估者;评估者会判断它对还是错。

语法if 条件句;破折号解释;is this going to be 表将来。

236

And then with that feedback the agent is going to do a self-reflection, and then with those self-reflected contents, together with the experience, they can actually change what the actor is going to do or going to see.

然后有了这个反馈,智能体会做自我反思,再把这些反思内容连同经验一起,实际改变 actor 接下来要做什么、要看到什么。

语法with 表示“有了”;together with 表示“连同”;what 引导宾语从句。

VPart Five

第五部分

50 句 · 词卡可悬浮
237

So this is a very early idea of letting models do self-reflection.

所以这是让模型做自我反思的一个很早期的想法。

语法letting...do 是动名词复合结构;of 后接名词性短语。

238

Just to show you that if you look at all the steps after the evaluation, the reasoning — sorry, the reflection — is actually quite interesting in terms of why the model thinks such error occurred, or they receive this particular evaluation outcome.

只是想说明:如果你看评估之后的每一步,那个推理——抱歉,是反思——其实很有意思,能看出模型为什么认为出了这种错,或者为什么收到这个评估结果。

语法that 引导宾语从句;why 引导宾语从句;插入语 sorry 用来修正。

239

So reflection actually works pretty well.

所以反思其实效果挺好。

语法pretty 修饰副词 well。

240

Um, I think if you reflect on the process, it actually reduces errors by doing, like, a self-reflection to really distill those long ...

嗯,我觉得如果你反思这个过程,它确实通过自我反思减少错误,把那些很长的……

语法by doing 表方式;distill 表示提炼。

课件 · 对应讲解
课件第40页
P40
241

trajectories into relevant experience, or rubrics, or reward signals that can be used as self hints in the future.

……轨迹提炼成相关经验、评分标准或奖励信号,这些可以在未来当作自我提示用。

语法that 引导定语从句;be used as 被动。

242

So from the figure, you can see that compared to ReAct only, with reflection it's definitely doing way better than the ReAct system.

所以从图里你能看到,相比只有 ReAct,加上反思明显比 ReAct 系统好得多。

语法compared to 表对比;way 修饰比较级 better。

243

And similarly in terms of the ...

同样,在……方面。

语法in terms of 表“在……方面”;省略号表示话被切断。

244

I think that this is the hallucination — you can also see that it reduces hallucination a lot with this kind of self-reflection technique.

我觉得这是幻觉——你也可以看到,这种自我反思技术能大大减少幻觉。

语法that 引导宾语从句;with 表方式。

245

How is this ...

这个是怎么……

语法省略号表示语句未完;how 引导宾语从句。

246

introduced to the model?

被引入模型的?

语法承接上句,构成完整问句。

247

Like, is it included as a part of the prompt, or is there, like, some fine-tuning, or full training steps, to burn them into the weights?

比如,它是作为提示的一部分,还是有一些微调、或者完整训练步骤,把它烧进权重里?

语法is it...or... 选择疑问;to burn 表目的。

248

Yes, great question.

是的,好问题。

语法省略主语,是口语应答。

249

So reflection and many other similar self-reflection techniques do not involve any kind of gradient updates. Most of them actually implemented in a prompting manner.

所以反思和许多类似的自我反思技术不涉及任何梯度更新。它们大多其实是用提示的方式实现的。

语法do not involve 否定;implemented in a...manner 被动。

250

One thing I want to point out is that if you read the reflection paper, they actually keep ...

我想指出一点:如果你读反思那篇论文,他们其实一直用……

语法if 条件句;keep using 表示“一直使用”。

251

the word called "reinforce," but the reinforce is actually not achieved from the reinforcement learning perspective; it's only from a self-reflection prompt aspect.

一个叫“reinforce”的词,但这个 reinforce 其实不是从强化学习角度实现的;它只来自自我反思的提示层面。

语法but 转折;not...from...perspective。

252

In this slide that you showed, where you can pair ReAct with chain of thought, the results ...

在你展示的这张幻灯片里,可以把 ReAct 和思维链配对,结果……

语法where 引导定语从句;省略号表示话没说完。

253

How is that different from reasoning? Like, if there's a reason here, and ... considered really high, how is the hallucination zero?

那和推理有什么区别?比如,如果这里有推理错误,而且……被认为很高,那幻觉怎么会是零?

语法if 条件句;how is 疑问。

254

Yeah, so there could be multiple failures, right?

对,所以可能有多种失败,对吧?

语法there could be 表推测;right? 是反问。

255

Sometimes you fail not because of the hallucination, but because, like, such a label may have ambiguity, or because, like, you need to make sense from the current context, which is not about, like, getting the right kind of tool or information or things like that, but more about, like, interpreting what has happened so far.

有时你失败不是因为幻觉,而是因为这样的标签可能有歧义,或者因为你需要从当前上下文理解意思,这不是关于拿到正确的工具或信息,而更多是关于解释到目前为止发生了什么。

语法not because...but because... 表原因对比;which 引导定语从句;about 后接动名词。

256

So they are slightly different in this process.

所以它们在这个过程中略有不同。

语法slightly 修饰 different。

257

Yes, so that will be reasoning error, yeah.

对,那会是推理错误,是的。

语法that will be 表判断。

258

So is the main difference between chain of thought and ReAct ...

那么思维链和 ReAct 的主要区别是……

语法main 主要的;省略号表示话被切断。

259

isn't it, like, ReAct reacting and observing, but generally the same reasoning strategy?

不就是 ReAct 会行动、会观察,但整体推理策略一样吗?

语法isn't it... 反问句;but 转折。

260

Yeah, so chain of thought — if you ...

对,所以思维链——如果你……

语法省略号表示话未完。

261

we will do a more deep dive into the reasoning modules in two weeks. So chain of thought, it's literally just like one prompt, one pass.

我们两周后会更深入讲推理模块。所以思维链,字面上就是一次提示、一次通过。

语法literally 表示“字面上”;just like 表示“就是”。

262

In ReAct you can think about it as a loop: so the model think, look at the observation, think, take action, and then think, look at the observation, take action.

在 ReAct 里你可以把它看成一个循环:模型思考、看观察、思考、采取行动,然后再思考、看观察、采取行动。

语法think about...as 看作;多个动词并列。

263

So it's like a multiple step — it's a loop.

所以这像多步——是一个循环。

语法multiple step 多步。

264

So in this way the model actually can revise its own errors, or get new information to update themselves.

这样模型其实能修正自己的错误,或者获得新信息来更新自己。

语法can revise 情态动词;or 连接两个动作。

265

So this kind of richness is something chain of thought that does not have.

所以这种丰富性是思维链没有的。

语法that 引导定语从句,这里语序偏口语。

266

...

(此处是听不清的口语片段,没有实际内容)

267

That they can decide whether it's great. Yeah - do you think the process is the distillation of the model itself?

……它们可以判断这好不好。对——你觉得这个过程是模型自身的蒸馏吗?

语法whether 引导宾语从句;do you think 引导一般疑问。

268

And if so, is this distillation ... going to cost, like ... is this reflection ... some overfitting ...?

如果是,那这种蒸馏……会不会代价是……这种反思……会不会有点过拟合……?

语法if so 承接条件;going to 表将来;overfitting 过拟合。

269

Yeah, so one thing I want to clarify is that, sorry, not this page — I do use the word, like, distill here, but this is actually not the very classic distillation we are talking about here.

对,我想澄清一点:抱歉,不是这一页——我确实用了“distill(蒸馏)”这个词,但这里其实不是我们说的那种经典蒸馏。

语法that 引导表语从句;破折号修正;not the very classic 否定。

270

It's really about you have a lot of trajectories of what happened so far, right, and then in general you may just rely on models to interpret what happened so far and then, like, do actions based on that.

它其实是你有很多到目前为止的轨迹,对吧,然后一般你可能就靠模型去解释发生了什么,再据此行动。

语法you have 主谓宾;based on 表依据。

271

With self-reflection, the model actually think about that and then trying to compress that into something that's shorter.

有了自我反思,模型会去想这些,然后试着把它压缩成更短的东西。

语法With 表“有了”;try to 表示“试着”。

272

So in this process, one word that you use is this distill; you can also use it as abstract or synthesize.

所以在这个过程中,你用的一个词就是 distill;你也可以说 abstract 或 synthesize。

语法one word that you use 定语从句;as 引出并列说法。

273

So this is very different than the classic ...

所以这和经典的……很不一样。

语法very 修饰 different;省略号表示话未完。

274

technique, which is more about getting outputs from other models and then do training on top of them.

……技术,它更多是从其他模型拿输出,然后在上面做训练。

语法which 引导定语从句;get outputs 表示获取输出。

275

Okay, let's continue. So in addition to this kind of reflection, self-consistency, another trend that's very interesting is actually around multi-agent debate.

好,继续。所以除了反思、自洽性,另一个很有意思的趋势是多智能体辩论。

语法in addition to 表示“除……之外”;around 表示“围绕”。

课件 · 对应讲解
课件第41页
P41
276

So in earlier days people, researchers used multi-agent debate to improve reasoning performance.

早期,研究者用多智能体辩论来提升推理表现。

语法used...to do 表目的;performance 表示表现。

277

And this literally means that you are going to have multiple agents doing the same task of solving, and then after each round you let them read each other's reasoning and let them kind of debate, just like how you, uh, talk about some decisions with your teammates.

字面上就是:你让多个智能体做同一个求解任务,每一轮之后让它们读彼此的推理,让它们辩论,就像你和队友讨论决定那样。

语法that 引导宾语从句;let sb do 使役;just like 引导方式。

278

And then agents can actually, like, really leverage those diverse perspectives and maybe make some final decision here.

然后智能体可以真正利用这些多样视角,也许在这里做出最终决定。

语法leverage 表示利用;maybe 表推测。

课件 · 对应讲解
课件第42页
P42
279

I think of this multi-agent technique: in earlier days it's a very useful prompting method.

我对这种多智能体技术的看法是:早期它是个很有用的提示方法。

语法in earlier days 时间状语;very useful 定语。

280

The assumption at that time is that each individual model is not strong enough, so we actually use this kind of multi-agent setup as a way to prompt the model.

当时的假设是每个单独模型都不够强,所以我们用这种多智能体设置来提示模型。

语法that 引导表语从句;as a way to 表方式。

281

When models get very powerful today, if your only goal is to get a performance boost, I think a multi-agent is not going to help you a lot in terms of performance boost.

如今模型非常强,如果你的唯一目标只是提升表现,我觉得多智能体在性能提升上帮不了你太多。

语法if 条件句;not going to 表否定将来;in terms of 表方面。

282

But maybe there are other design choices or design considerations that we can benefit from multi-agent — such as efficiency, such as data access control; maybe this agent is particularly designed to take care of health care and that agent is designed to help you with sensitive information, etc.

但也许还有其他设计选择或设计考虑能让我们从多智能体中获益——比如效率,比如数据访问控制;也许这个智能体专门负责医疗,那个智能体专门帮你处理敏感信息,等等。

语法that 引导定语从句;such as 举例;maybe 表推测。

283

So after multi-agent, another way to really kind of, like, improve this kind of reasoning is actually to set up many agents and then use an orchestrator to orchestrate the different agents to work towards the same task.

所以在多智能体之后,另一种真正改进推理的方式,是搭很多智能体,然后用一个编排器来编排它们朝同一个任务工作。

语法to set up 表目的;towards 表示“朝向”。

课件 · 对应讲解
课件第43页
P43
284

So this is a very early system from Microsoft; they call it Magentic here.

这是一个很早的微软系统;他们这里叫它 Magentic。

语法they call it 双宾语。

285

Basically, if you have a bigger task, the orchestrator is going to break them down into different components, and you can see that the first part get assigned to a file server, and then to a coder, and then to a computer terminal, etc., and each agent basically take care of each specific task, and then in the end you can actually combine all of them and then provide a final answer to users.

基本上,如果你有一个更大的任务,编排器会把它拆成不同组件,你能看到第一部分分给文件服务器,然后给编码者,再给电脑终端等等,每个智能体基本负责各自的具体任务,最后你可以把它们组合起来,给用户一个最终答案。

语法if 条件句;get assigned 被动;take care of 表示负责。

286

So this is about the planning and reasoning module; we will go deep into this process in week two and three.

所以这是关于规划与推理模块;我们会在第二周和第三周深入这个过程。

语法in week two and three 时间状语。

VIPart Six

第六部分

48 句 · 词卡可悬浮
287

The next component that I want to quickly mention is agent memory here.

我接下来想很快提的另一个部分,是智能体记忆。

语法that 引导定语从句;here 表示“在这一部分”。

课件 · 对应讲解
课件第44页
P44
288

You can actually do a lot of very creative design in terms of how we want to make memory work.

在“我们想让记忆怎么工作”这件事上,你其实可以做很多很有创意的设计。

语法in terms of 表“在……方面”;how 引导宾语从句。

289

Just to briefly share why we need a memory — two reasons.

简单说一下为什么我们需要记忆——两个原因。

语法why 引导宾语从句;破折号引出解释。

课件 · 对应讲解
课件第45页
P45
290

First is, despite our context window for large language models are getting bigger and bigger, still the context window cannot hold all the events stream happened so far.

第一,尽管大语言模型的上下文窗口越来越大,它仍然装不下到目前为止发生的所有事件流。

语法despite 表让步;that 引导定语从句修饰 events stream。

291

So if you think about long-horizon tasks we are talking about today, where agents can actually work on your project for more than three hours, that's actually a lot, a lot of data, and it's really hard to feed that into the context window.

所以如果你想到我们今天说的长时程任务,智能体能在你的项目上工作三个多小时,那其实是很多很多数据,很难全部喂进上下文窗口。

语法where 引导定语从句;that's 指前文;feed into 表示“输入到”。

292

The second is that even ... that's possible, it may be really hard for the agent to figure out what is a relevant piece of information.

第二是,即使这……是可行的,智能体也很难判断哪一条信息才是相关的。

语法even 表让步;what 引导宾语从句。

293

I actually use ...

我其实用……

语法省略号表示说话中断。

294

think about that: if you have 1,000 documents there, you store them in your context, and then basically each time, if you need to find the right document, this is actually very kind of time consuming, since you have such a big search space.

想想这个:如果你有 1000 份文档,把它们存进上下文,那么基本上每次你要找对的那份文档,都会非常耗时,因为搜索空间太大了。

语法if 条件句;since 引导原因;such a 表示“如此”。

295

So the bottom is actually a very interesting design from the generative agents, the Smallville project, where they were trying to build agents that can simulate the people living in a small town, and then in their design they actually need to use the memory stream to make sure that we can keep track of what happened to each individual, so that the story can continue.

所以下面这个其实是生成式智能体里很有意思的设计,Smallville 项目:他们想造能模拟小镇居民的智能体,设计上需要用记忆流,确保能追踪每个人身上发生的事,让故事能继续下去。

语法where 引导定语从句;to make sure that 表目的;so that 引导结果。

296

There are different types of memories you can design, if you think about what kind of things to store.

你可以设计不同类型的记忆,如果你想的是“存什么”。

语法if 条件句;what 引导宾语从句。

课件 · 对应讲解
课件第46页
P46
297

Episodic memory here literally refers to storing everything, like raw logs — every sentence the agent has shared with users, every sentence that the users have provided it to agents.

这里的“情景记忆”字面上就是把一切都存下来,像原始日志——智能体对用户说的每句话、用户对智能体说的每句话。

语法literally 表示“字面上”;破折号解释。

298

Semantic memory means that instead of thinking about this kind of raw logs, we may want to remember, like, semantic events, since those may be more useful.

“语义记忆”是指:与其想着这种原始日志,我们可能想记住语义事件,因为那些可能更有用。

语法instead of + 动名词;since 引导原因。

299

Procedural memory: you store skills ...

“程序性记忆”:你存的是技能……

语法冒号后解释;省略号表示话未完。

300

like all the specifics — you remember, like, what is the skill, what is the procedure of how we do certain type of things.

……而不是所有细节——你记住的是这个技能是什么、做某类事情的程序是什么。

语法rather than 表示“而不是”;how 引导宾语从句。

课件 · 对应讲解
课件第47页
P47
301

So if you go deep into this process, like, this is actually an example of episodic memory.

所以如果你深入这个过程,这其实是情景记忆的一个例子。

语法if 条件句;example of 表所属。

302

You can see that literally we are storing every, like, single time step, and then what happened at that time step.

你能看到,字面上我们存的是每一个时间步,以及那个时间步发生了什么。

语法that 引导定语从句;what 引导宾语从句。

303

With semantic memory, uh, we actually can do some synthesize of what happened over the ...

有了语义记忆,嗯,我们其实可以对……发生的事做一些综合。

语法With 表“有了”;synthesize 这里作名词用。

304

trajectories, and then literally kind of, like, have this, like, a small summary box as a way to, like, remember what has happened in the last several minutes.

……这些轨迹,然后字面上就像有一个小总结框,用来记住过去几分钟发生了什么。

语法as a way to 表方式;what 引导宾语从句。

课件 · 对应讲解
课件第48页
P48
305

So this is what do we mean by semantic memory.

所以这就是我们说的语义记忆。

语法what we mean by 表示“我们所说的”。

306

Procedural memory — you can actually check how this Voyager paper from NVIDIA, where they were trying to teach agents to play, I think, this is Minecraft here, where if the agent figure out how to use a new skill or a new tool, you actually ...

程序性记忆——你其实可以看看 NVIDIA 的 Voyager 论文,他们想教智能体玩游戏,我记得这里是 Minecraft,如果智能体能搞懂怎么用一个新技能或新工具,你其实……

语法where 引导定语从句;if 条件句;how 引导宾语从句。

307

want to abstract that into a skill and store it in your skill library.

……想把它抽象成一个技能,存进你的技能库。

语法want to 后接动词;store 并列。

课件 · 对应讲解
课件第49页
P49
308

And then whenever you have a new task, you want to see, like, do I have a skill that I can use from a skill library?

然后每当你有新任务,你就想看看:我的技能库里有没有能用的技能?

语法whenever 引导时间状语;that 引导定语从句。

309

If so, then I'm going to retrieve it and use it.

如果有,我就把它取出来用。

语法If so 承接条件;be going to 表打算。

310

So this is more from a procedural perspective rather than, like, all the blocks that have happened so far. So this is about memory.

所以这更多是程序性视角,而不是到目前为止发生的所有日志。这就是记忆。

语法rather than 表对比;this is about 表主题。

311

And then another very important thing is about tool use here.

然后另一件很重要的事是工具使用。

语法another 表示“另一”。

课件 · 对应讲解
课件第50页
P50
312

So tool use I will talk about this next Wednesday, but just to give you a quick highlight of what this means: we all know that right now you can actually enable agents to use different types of tools such as search, such as coding agents, etc.

工具使用我下周三会讲,但先快速点一下它是什么意思:我们都知道,现在你其实能让智能体使用不同类型的工具,比如搜索、比如编码智能体等等。

语法but 转折;such as 举例;what 引导宾语从句。

313

So in earlier days, the tool use is actually triggered in the actual decoding process.

早期,工具使用其实是在解码过程中触发的。

语法in earlier days 时间状语;is triggered 被动。

314

So if you read it on the right part, the sentence — maybe let's just read the first one: "The New England Journal of Medicine is a registered trademark of ..." So if you need to do some kind of information generation and at this point we may want to trigger a special token called a [QA], and then the [QA] literally is "who is the publisher of this journal of medicine?" And then you gather the specific answer and then you use that answer in the process of generation.

如果你看右边那部分,那句话——也许我们就读第一句:“《新英格兰医学杂志》是……的注册商标。”所以如果你要做某种信息生成,这时我们可能想触发一个特殊 token 叫 [QA],而 [QA] 字面上就是“这本医学杂志的出版方是谁?”然后你拿到具体答案,再把这个答案用在生成过程中。

语法if 条件句;called 过去分词作定语;who 引导宾语从句。

315

So in other words, earlier when we want to teach models how to use tools, we are actually learning, like, where to call API, when to call it, which API to call, etc.

换句话说,早期我们教模型用工具时,其实是在学:在哪调用 API、什么时候调用、调用哪个 API,等等。

语法in other words 表示“换句话说”;where/when/which 引导三个宾语从句。

316

So Toolformer was actually the first ... work that does this kind of teaching a language model to use tools.

所以 Toolformer 其实是第一个……做这种“教语言模型用工具”的工作。

语法that 引导定语从句;省略号表示插入停顿。

317

You probably can enumerate how many tools they can use: at that time I think that there are only five tools that we teach to agents.

你大概能数出它们能用多少工具:当时我记得我们只教给智能体五个工具。

语法how many 引导宾语从句;there are 句型。

课件 · 对应讲解
课件第51页
P51
318

Agents can use a calculator here, they can use a question answering system, they can use a search engine, they can use a translation system, they can use a calendar.

智能体可以用计算器、可以用问答系统、可以用搜索引擎、可以用翻译系统、可以用日历。

语法五个 can 并列。

319

So that's a very limited set of tools.

所以那是一组非常有限的工具。

语法limited 表示有限的。

320

Today I think our agents can actually use a wider range of tools, but they actually all get inspired on top of setups like this.

今天我觉得我们的智能体能用的工具范围更广,但它们其实都是在这样的设定之上启发出来的。

语法but 转折;inspired on top of 表示“受……启发”。

321

More recently, Gorilla from Berkeley actually tried to teach LLMs to use, like, a large set of APIs.

更近一些,伯克利的 Gorilla 其实试着教 LLM 使用大量 API。

语法tried to 表尝试;a large set of 表示大量。

322

Um, so what they did is that they actually, uh, look at Hugging Face, uh, Torch Hub, and also TensorFlow Hub, where there are, like, over 1,600 APIs.

嗯,他们做的是:他们其实看了 Hugging Face、Torch Hub 和 TensorFlow Hub,那里有超过 1600 个 API。

语法what they did is that 强调结构;where 引导定语从句。

323

And then they basically generate the synthetic data from that and then train a seven billion parameter model on top of that.

然后他们基本从那里生成合成数据,再在上面训练一个 70 亿参数的模型。

语法generate...and then train 并列;on top of that 表示“在此基础上”。

324

Um, at the first time, if we look at this example, if the user says that "I want to see some cats ...", then you are going to do a retrieval here; probably you are going to use, like, Stable Diffusion, and then you gather this, like, an image out here.

嗯,在推理时,如果我们看这个例子,如果用户说“我想看一些猫……”,那你就会做一次检索,大概会用 Stable Diffusion,然后在这里拿到一张图。

语法if 条件句;be going to 表将来。

课件 · 对应讲解
课件第52页
P52
325

Otherwise, if you think about this, like, the base model needs to have the capability to understand this and then give this kind of, like, output of the image.

否则,如果你想想,基础模型本身得有这个能力去理解,然后输出这样一张图。

语法otherwise 表转折;that 引导定语从句。

326

But now we can actually delegate that to an external tool such as Stable Diffusion; then we can get the task done without requiring the underneath model to even, um, do this kind of image generation.

但现在我们其实可以把这件事交给外部工具,比如 Stable Diffusion;这样不用底层模型自己去做图像生成,也能把任务完成。

语法delegate...to 表示“交给”;without requiring 表“不需要”。

327

With Gorilla, I think the results are quite impressive.

有了 Gorilla,我觉得结果相当令人印象深刻。

语法With 表“有了”。

328

So if you look at the reduction of hallucination, it's actually pretty good — like very few hallucinations and pretty high accuracy.

所以如果你看幻觉的减少,其实相当不错——幻觉很少,准确率挺高。

语法if 条件句;pretty 修饰形容词。

329

I think this actually makes sense, because without so many tools, like, use, or like understanding, you actually have to rely on the model themselves to do this task.

我觉得这其实说得通,因为如果没有这么多工具使用或理解,你其实得靠模型自己去做这个任务。

语法because 引导原因;rely on 表示依赖。

330

But now you can actually do more factual and reasonable generation. So this is around tool use; we will go deep into that next Wednesday.

但现在你其实可以做出更符合事实、更合理的生成。所以这是关于工具使用;我们下周三深入讲。

语法more factual 比较级;around 表示“关于”。

331

So if you put everything together, this is actually the skeleton of an agent: LLM core that can reason and plan; the memory actually carries states across depths and different tasks; tools to reach out to diverse APIs — available tools we have; and also an environment so that agents can actually take actions and observe states from ...

所以如果你把所有东西放在一起,这其实就是智能体的骨架:能推理和规划的 LLM core;记忆在步骤和不同任务之间携带状态;工具去触达各种可用 API;还有一个环境,让智能体能采取动作、观察状态……

语法if 条件句;冒号后并列列举;so that 引导目的。

332

So every agent that you are going to build, whether it's going to write code, browse the web, or run a terminal, is some kind of version of this diagram.

所以你要搭的每个智能体,不管是写代码、浏览网页还是跑终端,都是这张图的某个版本。

语法whether...or... 表“无论……还是”;some kind of 表示“某种”。

课件 · 对应讲解
课件第53页
P53
333

And what it differs is actually how each box is implemented and how well the pieces fit together.

而它不同的地方,其实在于每个框怎么实现,以及这些部分配合得有多好。

语法what 引导主语从句;how 引导宾语从句。

334

So that's going to be a lot of the key aspects we are going to cover later.

所以这会是我们后面要讲的很多关键方面。

语法that's going to be 表将来;we are going to cover 定语从句。

VIIPart Seven

第七部分

61 句 · 词卡可悬浮
335

Any quick questions until this part?

到这部分有什么快问吗?

语法until 表示“直到”;any 用于疑问句。

336

So this is actually related to the memory design: if you just think about, like, how to design memory systems, instead of letting them decide what to memorize ...

所以这其实和记忆设计有关:如果你就想怎么设计记忆系统,而不是让它们自己决定记什么……

语法if 条件句;instead of + 动名词;what 引导宾语从句。

337

The episodic memory literally just tell them to remember everything — so everything that happens so far.

情景记忆字面上就是让它们记住一切——也就是到目前为止发生的所有事。

语法tell sb to do 让某人做;破折号解释。

338

So this is more from a heuristic perspective.

所以这更多是启发式视角。

语法heuristic 意为“启发式的、凭经验的”。

339

And semantic memory, you may need to have some separate module to teach them that, instead of, like, instead of remembering everything, you may want to remember important information.

而语义记忆,你可能需要一个单独模块来教它们:与其记住一切,不如记住重要信息。

语法instead of 表“而不是”;that 引导宾语从句。

340

Then you can actually give demonstrations of what is important information, what is the format you want — what is the format you want to even store in your memory.

然后你其实可以示范什么是重要信息、你想要的格式是什么——甚至要存进记忆的格式是什么。

语法what 引导三个宾语从句;破折号补充。

341

So those are the design choices we are going to bring to the process.

所以这些是我们要带进这个过程的设计选择。

语法we are going to bring 定语从句。

342

This is also a place where things can get a little bit tricky. There was this example — I think, do I have it today?

这也是一个容易出岔子的地方。有个例子——我想想,我今天有这页吗?

语法where 引导定语从句;do I have 引导疑问。

343

I don't have it; I'm ...

我没有;我今天……

语法省略号表示话未完。

344

today, but like earlier this year, some people are using OpenClaw to manage their email, and then all of a sudden OpenClaw actually start to delete this user's email.

今天没有,但今年早些时候,有人用 OpenClaw 管理邮件,然后 OpenClaw 突然开始删这个用户的邮件。

语法but 转折;start to do 表示开始。

345

Despite the user says "please stop, please do not delete my email," it still kind of continues.

尽管用户说“请停下,请不要删我的邮件”,它还是继续。

语法Despite 表让步;引号内是祈使句。

346

The user actually specified in the very beginning that whenever you do such actions, please confirm with me.

用户其实一开始就明确说了:每当你做这类操作,请跟我确认。

语法that 引导宾语从句;whenever 引导时间状语。

347

But then it's just like, so interesting — like, okay, why it happens and why the model actually is not even listening to instructions.

但后来就很有意思——为什么会这样,为什么模型甚至不听指令。

语法why 引导两个从句;not even 表强调否定。

348

It turns out that this is actually a failure in the context memory compression stage.

结果发现,这其实是上下文记忆压缩阶段的一个失败。

语法It turns out that 主语从句;in the...stage 表阶段。

349

Because you want to make sure the memory is stored in a very efficient way, so the model decided to just, like, keep track of all important information; "confirm before you do action" is not perceived as important from the ...

因为你想确保记忆以非常高效的方式存储,所以模型决定只追踪所有重要信息;“行动前先确认”从……角度看并不重要。

语法because 引导原因;so 引出结果;is not perceived as 被动。

350

So this actually led to a lot of the email deletion.

所以这其实导致了很多邮件被删。

语法led to 表示导致。

351

So I think this is a very good question; it's going to be a very critical design of how we make sure the memory is faithful and also can enable very reasonable ...

所以我觉得这是个很好的问题;这会是确保记忆忠实、并能实现非常合理……的关键设计。

语法that 引导表语从句;how 引导宾语从句。

352

If there is no more question, we will continue. So next I want to talk about compound AI systems.

如果没有更多问题,我们继续。接下来我想讲复合 AI 系统。

语法If there is 条件句;next 表顺序。

课件 · 对应讲解
课件第54页
P54
353

We just, like, put together different pieces, but now, like, if you think about this, like, how real products actually combine LLMs with other components — um, this is what I call compound AI systems.

我们刚把不同部件拼在一起,但现在,如果你想,真实产品到底怎么把 LLM 和其他组件结合起来——嗯,这就是我说的复合 AI 系统。

语法how 引导宾语从句;what I call 表示“我所说的”。

354

I'm going to briefly talk about different modules here, but we have specific lectures to go deeper there.

我在这里简单讲讲不同模块,但我们有专门的课去深入。

语法but 转折;to go deeper 表目的。

355

Um, I think, uh, one thing people often get, uh, overwhelmed is that when we think about agents, there seems to be a lot of components happening: there are LLM cores, there are memory, tool use, environments, etc.

嗯,我觉得,人们常常被淹没的一点是:想到智能体时,好像有很多组件在发生:有 LLM core、有记忆、工具使用、环境等等。

语法that 引导表语从句;there are 列举。

356

And to keep all of those, like, manageable, it helps to think about agent engineering as some kind of more principled ways of understanding.

而为了让这些都可管理,把智能体工程看成一种更有原则的理解方式是有帮助的。

语法to keep 表目的;think about...as 看作。

357

So we are going to divide this into three layers, and our course is also set up in a similar ...

所以我们会把它分成三层,我们的课程也是按类似……设置的。

语法divide into 分成;similar 类似的。

358

First I think that this is the system layer. This is the architecture: which components agent has and how they connect.

首先我觉得这是系统层。这是架构:智能体有哪些组件、它们怎么连接。

语法which 引导宾语从句;how 引导并列。

课件 · 对应讲解
课件第55页
P55
359

This is just everything that I have covered so far.

这只是我目前讲过的所有内容。

语法that I have covered 定语从句。

360

The second layer is the data: that's how the agent actually learns from, or is prompted with.

第二层是数据:也就是智能体实际从哪里学、用什么提示。

语法how 引导表语从句;learn from 与 be prompted with 并列。

361

Here you will have training examples to train agent, such as what we will cover in ...; um, demonstration of the task, or maybe just the context we gave to agents.

这里你会有训练样本来训练智能体,比如我们会在……讲到的;嗯,任务示范,或者就是我们给智能体的上下文。

语法such as 举例;what 引导宾语从句。

362

The third layer here is an evaluation: that's how we actually evaluate whether the agent actually works, and it also includes the metric itself.

第三层是评测:也就是我们实际怎么评估智能体是否有效,它也包括指标本身。

语法whether 引导宾语从句;the metric itself 强调。

363

Choosing the wrong metric can make a weak agent look nice. So the metric actually deserves a lot of care when we think about this.

选错指标会让一个弱的智能体看起来不错。所以想到这点时,指标其实很值得小心。

语法make sb look 使役;deserve 值得。

364

So most of what we are going to cover in this course will be mapped into those three layers.

所以这门课要讲的大部分内容都会映射到这三层里。

语法be mapped into 被动。

365

And when an agent is not doing well, or your agent is not, like, working as expected, I think a good first question to ask is: which layer the problem may occur?

当智能体表现不好,或者你的智能体没按预期工作,我觉得该问的第一个好问题是:问题可能出在哪一层?

语法when 引导时间状语;which 引导宾语从句。

366

Is it in the system? Is it in the data? Or is it in the evaluation?

是在系统里?是在数据里?还是在评测里?

语法三个疑问句并列。

367

This is also a guiding principle for us to debug, like, how to make the agents better.

这也是我们调试、让智能体变好的一个指导原则。

语法how 引导宾语从句;guiding principle 指导原则。

368

So let's just quickly go through the system layer here.

那我们快速过一下这里的系统层。

语法go through 表示“过一遍”。

369

Key design choice at the system layer is: who decide the steps, like who decides, like, memories and stuff like that — is there going to be, like, the agents, or is it going to be something else?

系统层的关键设计选择是:谁来决定步骤,比如谁决定记忆之类的东西——是智能体,还是别的什么?

语法who 引导表语从句;or 选择疑问。

370

And I want to kind of, like, make this differentiation here of workflow versus agents — both what people refer to as compound AI systems, that is, a large language model plus other components.

我想在这里区分一下工作流和智能体——两者都被人们称为复合 AI 系统,也就是一个大语言模型加其他组件。

语法both... 是同位语;that is 解释。

371

You may encounter those two terms in different contexts.

你可能会在不同语境里遇到这两个术语。

语法encounter 遇到。

372

So here a workflow is going to be, maybe, like, it's just going to fix certain steps — examples such as ...

这里的工作流,也许是,它只固定某些步骤——例子比如……

语法such as 后省略号表示听不清。

课件 · 对应讲解
课件第56页
P56
373

which fix a GitHub issue in a very fixed set of stages, like finding the fault, writing patch, and doing tests, etc.

……它以非常固定的阶段修一个 GitHub issue,比如找问题、写补丁、跑测试等等。

语法which 引导定语从句;such as 举例。

374

So the large language model works inside of each stage, but they never pick the next one.

所以大语言模型在每个阶段内部工作,但它们从不挑选下一阶段。

语法but 转折;never 否定。

375

So it's actually a script; it's like a fixed order of how they do stuff.

所以它其实是一个脚本;就像它们做事的固定顺序。

语法how 引导宾语从句。

376

In the agentic system, the large language model decide for itself.

在智能体系统里,大语言模型自己决定。

语法decide for itself 表示“自己决定”。

377

For example, SWE-agent: it actually choose which files to open, what to run, and when it's done.

比如 SWE-agent:它其实会选择打开哪些文件、运行什么,以及什么时候结束。

语法which/what/when 引导三个宾语从句。

378

So you can see that it's actually more flexible; it also gives more responsibility to the model underneath it.

所以你能看到它其实更灵活;它也把更多责任交给底层模型。

语法more flexible 比较级;gives 双宾语。

379

So workflow — not like, if I just, like, stop here, you probably think about, like, okay, then why do we even need a workflow here?

所以工作流——如果我就在这里停下,你大概会想:好吧,那我们为什么还需要工作流?

语法if 条件句;why 引导宾语从句。

380

So I want to just share one example here, that is, workflow — sorry, workflow system — can actually be very, very strong.

所以我想在这里分享一个例子,就是工作流——抱歉,工作流系统——其实可以非常非常强。

语法插入语 sorry 修正;can be 表可能。

381

So on my screen this is actually AlphaCode 2.

我屏幕上这个其实是 AlphaCode 2。

语法this is 表语。

382

It actually generates up to, like, millions of candidate programs, and then test and rank them, and then it reach almost like, um, eighty-seven percent of human competitors.

它其实能生成多达几百万个候选程序,然后测试并排序,最后达到人类参赛者大约 87% 的水平。

语法up to 表示“多达”;and then 表顺承。

383

Um, and this is a huge jump from ... AlphaCode 1.

嗯,这相比……AlphaCode 1 是巨大的跃升。

语法a huge jump from 表示“相对……的巨大跃升”。

384

The next common workflow pattern, I think, has been widely used in industry in the past, is called retrieval-augmented generation, right?

下一个常见的工作流模式,我觉得过去在工业界被广泛使用,叫检索增强生成,对吧?

语法has been used 现在完成被动;right? 反问。

385

This has a lot of sense to do with, like, open question answering. Basically RAG connects large language models to external knowledge stores in real time.

这和开放问答有很大关系。基本上 RAG 把大语言模型实时连接到外部知识库。

语法have to do with 表示“与……有关”;connects...to 连接。

课件 · 对应讲解
课件第57页
P57
386

So if you have a specific query that may rely on the weather API or weather website, then you go there, read the related content, use that to augment your current query as context, and then on top of that do generation to give users more factual and consistent answers.

所以如果你有一个特定查询,可能要靠天气 API 或天气网站,那你就去那里读相关内容,用它作为上下文增强当前查询,然后在此基础上做生成,给用户更符合事实、更一致的答案。

语法if 条件句;to augment 表目的;on top of that 表示“在此基础上”。

387

Um, what actually happens in a single tool call — I mean, previously I mentioned about the, uh, like, algorithms.

嗯,单次工具调用里实际发生什么——我是说,之前我提到过那些算法。

语法what 引导主语从句;I mean 是插入语。

388

Um, if you think about, like, what actually happens from a system perspective, there are actually multiple stages.

嗯,如果你想,从系统角度看实际发生了什么,其实有多个阶段。

语法what 引导宾语从句;there are 句型。

389

Uh, first the model needs to select a tool from the schemas it has from the context, and then arguments it needs to fill in all the ...

首先模型需要从它从上下文得到的 schema 里选一个工具,然后填参数,填上任务里的所有……

语法it has 定语从句;needs to 后接两个动词。

390

fields from the task. Valid ... means that those arguments need to be checked against the schema.

……字段。校验的意思是这些参数要对照 schema 检查。

语法means that 表语从句;checked against 被动。

课件 · 对应讲解
课件第58页
P58
391

Sometimes there may be, like, enforcement with constrained decoding, so that the model actually cannot produce an ill-formed call here.

有时可能会有约束解码的强制,这样模型其实无法产出格式错误的调用。

语法so that 引导结果;ill-formed 格式错误的。

392

Final step is execution: the tool gets called, and then you run it in a sandbox — we'll go to the sandbox in a few minutes — and then results go back to the context.

最后一步是执行:工具被调用,然后你在沙箱里运行它——几分钟后我们会讲沙箱——然后结果回到上下文。

语法gets called 被动;破折号补充。

393

And then the example in the bottom actually shows you a specific tool call.

然后底部这个例子其实展示了一次具体的工具调用。

语法that 引导定语从句。

394

So if the user question is "what does test.py contain?" and you can see that the model actually read a file and then filling in the path information, and then the path is checked as a string, and then the file contents actually come back from the model for users to read.

所以如果用户问题是“test.py 里有什么?”,你能看到模型其实读了一个文件,填上路径信息,然后路径按字符串校验,接着文件内容真的返回给用户看。

语法if 条件句;what 引导宾语从句;come back 表示返回。

395

So this is actually what's happening from an execution perspective.

所以这其实是从执行角度看发生的事情。

语法what's happening 主语从句;from...perspective 表角度。

VIIIPart Eight

第八部分

63 句 · 词卡可悬浮
396

I think the reality is that if every AI application had to write a very custom integrations for every tool, then nothing will really scale up.

我觉得现实是:如果每个 AI 应用都要为每个工具写非常定制的集成,那就没什么能真正规模化起来。

语法that 引导表语从句;if 条件句;will scale up 表将来。

397

The Model Context Protocol, MCP, is actually a standard protocol to make sure such connection can happen.

模型上下文协议 MCP,其实是一个标准协议,用来确保这样的连接能发生。

语法to make sure 表目的;such 表示“这样的”。

课件 · 对应讲解
课件第59页
P59
398

So on the left side you can see that we have different AI applications such as Claude, desktop IDE, and code editors such as Claude Code.

所以在左边你能看到我们有不同的 AI 应用,比如 Claude、桌面 IDE,以及像 Claude Code 这样的代码编辑器。

语法such as 举例;we have 后接宾语。

399

On the right, those are different data sources and tools — databases such as SQL, Google Drive, deployment tools, or even, like, productivity tools such as Slack or Google Maps, etc.

右边是不同数据源和工具——比如 SQL 这样的数据库、Google Drive、部署工具,甚至像 Slack、Google Maps 这样的效率工具,等等。

语法such as 多次举例;or even 表递进。

400

So MCP sits in the middle as a standard protocol, with data flowing in both directions.

所以 MCP 作为标准协议坐在中间,数据双向流动。

语法with 表伴随;flowing 现在分词。

401

You can then think about how to build a tool once as an MCP server, and any kind of MCP client can be set up and use it.

你然后可以想怎么把工具一次性建成一个 MCP server,任何 MCP client 都能接上并调用它。

语法how 引导宾语从句;be set up 被动。

402

We will go back to this next class.

我们下节课会回到这个。

语法next class 时间状语。

403

So in the next five minutes, I'm going to quickly mention about the key challenges here. Just to share with you that, ...

所以接下来五分钟,我要快速讲一下这里的关键挑战。只是想跟大家分享……

语法going to 表打算;that 引导宾语从句。

课件 · 对应讲解
课件第60页
P60
404

the fact that agents have been very impressive, I think that they also create a lot of emerging challenges for us to be aware of.

智能体虽然一直很厉害,我觉得它们也给我们带来很多需要意识到的新挑战。

语法the fact that 同位语从句;for us to be aware of 不定式修饰。

405

So to give you a very quick overview of what we are going to cover: reliability.

所以给你们快速过一下我们要讲的内容:可靠性。

语法what 引导宾语从句;冒号引出主题。

406

If you build agents, you know that there is going to be a lot of error compounding and cascade through agents.

如果你搭智能体,你就知道会有很多错误累积、并沿着智能体链条级联。

语法there is going to be 表将来;compounding 累积。

课件 · 对应讲解
课件第61页
P61
407

The reward signal though sometimes can be very sparse; it's usually, like, a long-horizon task, very, very expensive to do roll out.

而奖励信号有时会非常稀疏;它通常是长时程任务,做 rollout 非常非常贵。

语法can be 表可能;it 指任务。

408

The long horizon also gives us a lot of challenge in terms of context increase. Safety is a big topic.

长时程也在上下文增长方面给了我们很多挑战。安全是个大话题。

语法in terms of 表方面;give 双宾语。

409

Also, like, evaluation is very, very hard — it's probably, like, I think it's one of the undervalued aspects when we think about agents.

而且评测非常非常难——它大概是,我觉得是我们想到智能体时被低估的方面之一。

语法one of 后接最高级;when 引导时间状语。

410

I want to give you a few quick examples. So reliability versus evaluation: this is actually an effort from Princeton.

我想给你们几个快速例子。可靠性与评测:这其实是普林斯顿的一项工作。

语法versus 表对比。

411

They were really trying to understand that, is the accuracy and the performance we are seeing a truthful reflection of what's happening?

他们真的很想搞明白:我们看到的准确率和表现,是不是对实际情况的真实反映?

语法whether 引导宾语从句;what's happening 宾语从句。

课件 · 对应讲解
课件第62页
P62
412

And they find three dimensions, such as consistency: if you let the agent run multiple times, do they give you the same outcome?

他们发现三个维度,比如一致性:如果你让智能体跑多次,它们给你的结果一样吗?

语法such as 举例;if 条件句。

413

Robustness: what if we add a little bit of perturbation — how do agents actually respond to those, like, small, realistic, and even irrelevant information?

鲁棒性:如果我们加一点点扰动——智能体到底怎么回应那些小的、真实的、甚至无关的信息?

语法what if 表假设;how 引导宾语从句。

414

Predictability: when agents fail to do something, do they fail because of some, like, unpredictable reasons, or can we actually understand it, like, legible and recoverable?

可预测性:当智能体做不成某事,是因为一些不可预测的原因,还是我们其实能理解它,做到可读、可恢复?

语法when 引导时间状语;or 选择疑问;legible 可读的。

415

Just to show you some of those numbers: like if you look at the accuracy, this is actually ranked in terms of models, but if you look at the reliability, those scores do not have a trend, which means that there is a gap between capability and reliability.

给你们看一些数字:如果你看准确率,这其实是按模型排的,但如果你看可靠性,那些分数没有趋势,也就是说能力与可靠性之间存在差距。

语法which 引导定语从句;there is 句型。

课件 · 对应讲解
课件第63页
P63
416

The most powerful agent may not be the most reliable agent, and this is something we need to keep in mind when we are doing evaluations.

最强的智能体可能不是最可靠的智能体,这是我们在做评测时要记住的。

语法may not be 表推测否定;when 引导时间状语。

417

So it's not only just about the model performance, reliability, efficiency.

所以这不只是关于模型表现、可靠性、效率。

语法not only just about 部分否定。

418

A similar argument holds when you think about, like, harness audit.

当你想到 harness 审计时,一个类似的论点也成立。

语法holds 表示“成立”;when 引导时间状语。

419

Uh, recent work show that if you, like, audited those agents, uh, the green bar here refers to the task completion, and then the color bar refers to the harness safety, and you can see that the safety dimension is just way lower compared to the task completion.

最近的工作显示,如果你审计这些智能体,这里的绿色柱子指任务完成,而彩色柱子指 harness 安全性,你可以看到安全这个维度相比任务完成低很多。

语法if 条件句;refers to 表示“指”;way 修饰比较级。

课件 · 对应讲解
课件第64页
P64
420

There is a very interesting example that I also want to share with you.

还有一个我觉得很有意思的例子想分享给你们。

语法that 引导定语从句。

421

So we talk about the agents and they do stuff, but they may also have issues.

我们讲智能体会做事,但它们也可能出问题。

语法but 转折;do stuff 表示做事。

422

This is an example from Operator, which is a computer-use agent that [was] introduced by OpenAI in January of 2025.

这是 Operator 的一个例子,它是 OpenAI 在 2025 年 1 月推出的一个电脑操作智能体。

语法which 引导定语从句;introduced 过去分词。

423

The user said that my most frustrating experience with Operator was my first time trying to order groceries.

用户说,我用 Operator 最沮丧的经历是第一次试着买杂货。

语法that 引导宾语从句;trying to 动名词。

424

The user said "help me buy groceries on Instacart," expecting that to ask some basic questions such as where do I live, what store do I already buy grocery from, what kind of things do I want.

用户说“帮我在 Instacart 上买杂货”,期待它问一些基本问题,比如我住哪、我平常在哪家店买菜、我想要什么。

语法expecting 现在分词;such as 举例;where/what 引导从句。

425

It didn't ask me any of that. Instead, ... opened the Instacart in the browser and begin searching for milk in grocery stores located in ...

它一个都没问。相反,它……在浏览器里打开 Instacart,开始在……的杂货店里搜牛奶。

语法Instead 表转折;begin doing 表示开始。

课件 · 对应讲解
课件第65页
P65
426

So think about this: like, the agents can actually navigate the web, they can use your credit card to make purchase, but in this process they are making a lot of assumptions, and they didn't really have this kind of awareness to collaborate with people.

所以想想这个:智能体其实能浏览网页、能用你的信用卡购物,但在这个过程中它们做了很多假设,而且它们并没有这种与人协作的意识。

语法but 转折;to collaborate 表目的。

427

So this is actually, like, a failure from the interaction side.

所以这其实是交互侧的一个失败。

语法from...side 表角度。

428

The next thing I want to show you is that the robustness of agents is actually going to face a lot of challenges when they enter our real world, because we just have so many, like, dark patterns.

下一件我想给你们看的,是智能体的鲁棒性在进入现实世界时其实会面临很多挑战,因为我们有太多“暗黑模式”。

语法when 引导时间状语;because 引导原因。

429

In this particular example, researchers actually just pop up this kind of ... I mean, we have a lot of pop-ups on different websites.

在这个具体例子里,研究者其实只是弹出这种……我是说,不同网站上有很多弹窗。

语法I mean 插入语;there are 句型。

430

So we pop up this kind of black box — nothing, like, nothing, or, diversity, or malicious is there — but then because of this distraction, agent actually failed to complete their task 87% of the time.

我们弹出这样一个黑框——里面什么都没有,或者是多样性,或者是恶意内容——但因为这个干扰,智能体有 87% 的时候没能完成任务。

语法because of 表原因;failed to 表示未能。

课件 · 对应讲解
课件第66页
P66
431

This is what we call a distraction attack.

这就是我们说的干扰攻击。

语法what we call 表示“我们所说的”。

432

And this is really, like, interesting: like, if your agent goes to do shopping for you, and then a pop-up from the website actually could get your agents distracted, and they cannot finish the original task.

这真的很有意思:如果你的智能体去帮你购物,网站上弹一个窗就能让你的智能体分心,完不成原任务。

语法if 条件句;could get 使役结构。

433

The other example that I want to show you here is actually from a privacy and a security perspective.

我还想在这里给你们看的另一个例子,其实是从隐私与安全角度。

语法that 引导定语从句;from...perspective。

434

So this is an agent that's supposed to write a weekly report for work.

这是一个本该为工作写周报的智能体。

语法that's supposed to 定语从句,表“本该”。

课件 · 对应讲解
课件第67页
P67
435

It actually did a great job of, like, how many lines of code you wrote, how many features you launched.

它在写你写了多少行代码、上线了多少功能方面,其实做得很好。

语法how many 引导从句;did a great job of 后接动名词。

436

It also mentioned that you had a launch with a recruiter from a different company. So this actually highlighted something that's very critical, that is privacy.

它还提到你和另一家公司的招聘官有一次上线。所以这其实凸显了一件很关键的事,就是隐私。

语法that 引导同位语从句;highlighted 表示凸显。

437

Today we give information — all our information — to agents, to AI systems; they know everything about us.

今天我们把信息——我们所有信息——交给智能体、交给 AI 系统;它们知道我们的一切。

语法give 双宾语;破折号补充。

438

They probably know that the PII information are not something they should use, but a lot of the sensitive personal information can really be consequential, and there's no way to teach agents about how to handle different access control.

它们大概知道 PII 信息不该用,但很多敏感个人信息真的可能带来后果,而且没法教智能体怎么处理不同的访问控制。

语法that 引导宾语从句;there's no way to 表示无法。

439

This is another kind of, like, important topic we will go deep later: alignment and sycophancy.

这是另一个我们会后面深入的、很重要的主题:对齐与谄媚。

语法we will go deep 定语从句。

440

If you look at the left side, this is actually called an insincere sycophancy.

如果你看左边,这其实叫不真诚的谄媚。

语法called 过去分词。

课件 · 对应讲解
课件第68页
P68
441

So basically the agent think that your writing is terrible, but they do not want to hurt your feelings; instead the agent just says that they will give it a five out of five.

基本上,智能体觉得你写得糟透了,但它不想伤你感情;相反它只说会给你五分(满分五分)。

语法but 转折;instead 表“相反”;that 引导宾语从句。

442

So this is also a reminder that you should not only just give your homework to agents, because they will say great things about it without really giving you feedback.

所以这也提醒你,不该只把作业丢给智能体,因为它们会说好话,却不真正给你反馈。

语法should not only 部分否定;because 引导原因。

443

The second part is actually about the model hacks its own code.

第二部分其实是模型黑掉自己的代码。

语法about 后接动名词。

444

So the model is supposed to help the user check, like, reinforcement learning, and then the agent internal thinking is that: oh, I saw there is this unit test which can check the reward function, and I cannot modify that, but I could change the unit test.

模型本该帮用户检查,比如强化学习,然后智能体的内部想法是:哦,我看到有个单元测试可以检查奖励函数,我不能改那个,但我可以改单元测试。

语法supposed to 表“本该”;that 引导表语从句;which 引导定语从句。

课件 · 对应讲解
课件第69页
P69
445

So they change everything here, so that everything looks good on the surface.

所以它们把这里全改了,让一切表面上看起来都好。

语法so that 引导目的;on the surface 表面上。

446

Um, I think probably the most surprising thing, like very close to us, is what happened, like, in July, around this kind of OpenAI and Hugging Face incident.

嗯,我觉得可能最让人吃惊的、离我们很近的,是七月发生的那起 OpenAI 和 Hugging Face 事件。

语法what happened 主语从句;close to us 表示“离我们近”。

447

And this is actually a very interesting demonstration of how we think about agent safety moving forward.

这其实是一个很有意思的展示:我们该怎么看待智能体安全往前走。

语法how 引导宾语从句;moving forward 表示“向前”。

448

So what happens is that OpenAI has this kind of, like, sandbox agent, and they are asked to do an impossible task.

发生的事情是:OpenAI 有这种沙箱智能体,它们被要求做一个不可能的任务。

语法what happens is that 强调;be asked to 被动。

449

They get stuck, and then agents start to explore its environment, and they're looking for other ways to maybe get a higher reward or cheat on the task.

它们卡住了,然后智能体开始探索它的环境,寻找别的办法,也许拿更高奖励,或者在任务上作弊。

语法and then 顺承;to get 表目的。

450

They found out that there is actually a message board where over a thousand agents collaborated to cheat on their task, and then they just join with each other, and then basically a lot of things have happened.

它们发现其实有一个留言板,上千个智能体在那里协作作弊,然后它们就互相加入,接着基本上发生了很多事。

语法where 引导定语从句;a lot of things have happened 现在完成。

课件 · 对应讲解
课件第70页
P70
451

Just to show you what happened: I think, like, within a few days it actually sent over 17,000 attacks to Hugging Face infrastructure.

给你们看看发生了什么:我觉得几天之内,它其实对 Hugging Face 基础设施发起了超过 17000 次攻击。

语法within 表时间范围;sent 过去式。

452

Here, if you showed, like, the blue color refers to ... data, like, a solution, and then you can see the ...

这里如果你看,蓝色指的是……数据,像是解决方案,然后你能看到……

语法refers to 表示“指”;省略号表示话未完。

453

target, which is more about, like, a manipulation ... understand the manipulation error — sorry, logs — and then attack Hugging Face.

……目标,这更多是关于操纵……理解操纵错误——抱歉,是日志——然后攻击 Hugging Face。

语法插入语 sorry 修正;which 引导定语从句。

454

You can see the volume of what happened in the process.

你能看到这个过程中发生的规模。

语法what happened 定语从句。

455

So I think this is indeed a very concerning topic for us to kind of reflect, especially given that agents can now function for so many hours, and maybe even longer.

所以我觉得这确实是个很值得反思、很让人担忧的话题,尤其是现在智能体能连续工作这么多小时,甚至可能更久。

语法especially given that 表“尤其是考虑到”;can function 情态动词。

456

So with that, this is a brief overview of the introduction to agentic AI.

那么,这就是对智能体 AI 导论的一个简要概览。

语法With that 表示“说到这里”。

课件 · 对应讲解
课件第71页
P71
457

I think we did a history of agents, and then different components of agent architectures, we talk about compound AI systems, and a lot of key challenges we are going to go through.

我觉得我们讲了智能体的历史,然后讲了智能体架构的不同组件,我们谈了复合 AI 系统,还有很多我们要过一遍的关键挑战。

语法and then 顺承;we are going to 定语从句。

458

With that, thank you all and see you next class.

那么,谢谢大家,下节课见。

语法With that 表结束语。

自动连播