简明解释大语言模型:英语精读讲义

3Blue1Brown

学习难度
1,244 词 179 词/分

视频简介:本视频用逐步可视化的方式说明聊天机器人如何反复预测下一个词,语言模型如何通过海量文本和参数调整完成训练,以及 Transformer 如何借助并行处理与 attention 形成上下文相关的表示并生成流畅文字。 主要英语知识点: 1. happen across——短语动词,表示并非刻意寻找却偶然发现或遇到某物,可用于描述意外看到资料、地点或机会。 2. well over——数量搭配,表示明显超过给定门槛,比单独使用 over 更强调超出的幅度,适合数据、时间和估算场景。 3. rather than——对比结构,把偏好的选择和被舍弃的替代项放在一起;使用时让两侧语法形式保持平行,能更清楚地表达取舍。

本篇讲解

Imagine you happen across a short movie script that describes a scene between a person and their AI assistant. 短語動詞

0:01

想象一下,你偶然发现了一个简短的电影剧本,里面描述了一个人和他们的AI助手之间的场景。

短語動詞

happen across:偶然发现某物

happen across 表示没有事先计划或刻意寻找,却偶然发现某物或遇见某人。这里用它引出一个设想:说话人偶然发现了一份电影短剧本。 结构是 happen across + 名词短语,例如 happen across a script、a photo 或 an old friend。过去式是 happened across。

练习

哪一个句子中的 happen across 表示“偶然发现”?

  1. A box of letters happened across Nora while she was cleaning.
  2. While cleaning the attic, Nora happened across a box of old letters.
  3. Nora happened across the attic to put away a box.
查看答案

While cleaning the attic, Nora happened across a box of old letters.

The script has what the person asks the AI,

0:07

剧本里有这个人问AI的问题,

but the AI's response has been torn off. 短語動詞

0:10

但AI的回答部分被撕掉了。

短語動詞

has been torn off:强调结果的被动形式

在 has been torn off 中,torn 是 tear 的过去分词,off 与 tear 组成短语动词 tear off,表示通过撕扯使一部分从更大的整体上脱离。 has been + 过去分词是现在完成时的被动语态。它强调现在的结果——回复部分已经缺失——而不说明是谁把它撕掉的。

练习

用 tear off 的正确形式完成句子:The bottom half of the note is missing because it has been ____.

查看答案

torn off

Suppose you also have this powerful magical machine

0:13

假设你还有一台强大的神奇机器,

that can take any text and provide a sensible prediction

0:16

它可以接收任何文本并提供合理的预测,

of what word comes next.

0:19

猜出下一个词是什么。

You could then finish the script by feeding in what you have to the machine, 短語動詞

0:21

你可以把你手头上的内容输入到这台机器中来完成剧本,

短語動詞

feeding in:把信息输入系统

在这句话中,feeding in 表示把未完成的脚本作为输入交给计算机系统处理。这里的 feed 是比喻用法,与食物无关。 这个短语动词可以拆开。在 feeding in what you have 中,较长的宾语 what you have 放在 in 后面。宾语是代词时,要放在动词和小品词之间:feed it in。

练习

用 feed in 的正确形式完成句子:Before the program can sort the cards, ____ the card numbers one at a time.

查看答案

feed in

seeing what it would predict to start the AI's answer,

0:24

看看它会预测出什么词作为AI回答的开头,

and then repeating this over and over 短語搭配

0:28

然后一遍又一遍地重复这个过程,

短語搭配

over and over:把同一件事重复很多次

Over and over 表示很多次,也就是同一个动作或事件不断重复。这里说的是重复整个过程,而不是某个东西位于另一个东西上方。 这个短语常常带有坚持、厌倦或烦躁的感觉,但具体语气要根据上下文判断。

练习

在句子“Nina read the message over and over,”中,over and over 是什么意思?

  1. 很多次
  2. 最后一次
  3. 从上到下
查看答案

很多次

with a growing script completing the dialogue.

0:30

随着剧本不断变长,最终完成整个对话。

When you interact with a chatbot,

0:33

当你与聊天机器人互动时,

this is exactly what's happening.

0:35

发生的情况正是如此。

A large language model is a sophisticated mathematical function

0:37

大语言模型是一个复杂的数学函数,

that predicts what word comes next for any piece of text.

0:40

用于为任何文本片段预测下一个出现的词。

Instead of predicting one word with certainty, though,

0:44

然而,它并不是绝对确定地预测某一个词,

what it does is assign a probability 語法

0:47

它所做的是分配一个概率

語法

what it does is assign:说明实际作用

what it does is + 动词原形这个框架用来指出某个事物执行的动作。这里,what it does 指这个系统的运行方式,is assign 说明该动作是“分配”;它给候选项分配概率,而不是直接确定地选出一个。 需要说明某个工具、机制或职责时,也可以使用同一框架。is 后面的动词保持原形,所以这里用 assign 是正确的。

练习

哪句话正确使用了这个框架来说明系统的功能?

  1. What the scanner does is read the code.
  2. What the scanner does is reads the code.
  3. What the scanner does to read the code.
查看答案

What the scanner does is read the code.

to all possible next words.

0:49

给所有可能的下一个词。

To build a chatbot,

0:51

要构建一个聊天机器人,

what you do is lay out some text 短語動詞

0:53

你需要做的是列出一些文本,

短語動詞

lay out:有条理地呈现文本

在 what you do is lay out some text 中,lay out 表示把文字按清晰的顺序或格式整理并呈现出来。some text 是被整理的内容;这个短语强调让信息更容易看懂或跟上,而不是简单地把一个物体放下。 这里的 lay out 是及物短语动词,作用于 text。呈现说明、计划、理由或论点时,只要重点是有条理地安排内容,也可以使用这个含义。

练习

某个网站按清晰的顺序呈现说明。哪个短语可以自然地填入句子?The website ____ the instructions in three sections。

  1. lays out
  2. lies down
  3. lays down
查看答案

lays out

that describes an interaction between a user and a hypothetical AI assistant.

0:54

描述用户和假设的AI助手之间的互动。

You add on whatever the user types in 短語動詞

0:59

无论用户输入什么,你都把它加进去

短語動詞

add on:附加额外内容

在这句话中,add on 表示“把额外内容附加或追加到已有内容上”。它说的是扩展现有文本,不是做加法计算。 整个从句 whatever the user types in 是被追加的内容。这个结构也可以用于费用、功能、备注或最后一个步骤等额外项目。

练习

哪个短语动词最适合填入句子?“The basic plan is ready, and you can ___ extra storage later.”

  1. type in
  2. add up
  3. add on
查看答案

add on

短語動詞

types in:用键盘输入文字

在这句话中,types in 表示“通过按键盘上的键输入文字”。它是 type in 的第三人称单数形式,因为主语是 the user。 in 是短语动词的一部分,不是引出地点的介词。整个短语 whatever the user types in 指用户输入的任何文字。

练习

哪个短语最适合填入句子?“To find your order, ___ the tracking number and press Enter.”

  1. add on
  2. type in
  3. sign in
查看答案

type in

as the first part of that interaction,

1:01

作为这种互动的第一部分,

and then you have the model repeatedly predict the next word

1:03

然后让模型反复预测下一个词,

that such a hypothetical AI assistant would say in response,

1:06

也就是这个假设的AI助手会用来作为回答的词,

and that's what's presented to the user.

1:10

这就是展示给用户的内容。

In doing this,

1:13

在执行这个过程中,

the output tends to look a lot more natural 語法

1:13

生成的输出往往看起来自然得多,

語法

tends to:描述通常的倾向

“tends to”后接动词原形,结构是 tend(s) to + 动词。这里的“tends to look”表示在这些条件下,输出通常会显得更自然。 它描述的是一种倾向,不是保证。某事经常发生但可能有例外时,可以使用这个结构。

练习

请用一个表示“通常如此,但并非总是如此”的两个词表达完成句子:On busy mornings, the bus ____ arrive a few minutes late.

查看答案

tends to

if you allow it to select less likely words

1:15

如果你允许它选择那些概率较低的词,

along the way at random. 短語搭配

1:17

在这个过程中随机选择。

短語搭配

along the way:在途中或过程中

“Along the way”是一个副词短语,表示“在旅途中”或“在某个过程进行期间”。在本句中,way 指生成输出的过程,而不是真实的道路。 这个短语常用来指出在过程结束之前,各个阶段发生的事件、发现或变化。

练习

如果要表达“在过程中”,哪个短语最适合完成下面的句子? We changed our plan several times ____, but we still finished the project.

  1. along the way
  2. on the way
  3. by the way
查看答案

along the way

短語搭配

用“at random”表示没有固定模式的选择

at random 表示借助随机性而不是预先计划好的模式来作出选择或决定顺序。这里,它说明某个事物在过程中是如何被选中的。 随机的方法可以是有意采用并经过精心设计的。这个短语表示结果没有事先确定;它并不表示某个人或某个过程很草率。

练习

用表示“通过随机选择的方法”的两个词补全句子:The survey software chose 200 names ____ from the full list.

查看答案

at random

So what this means is even though the model itself is deterministic, 語法

1:20

那么这意味着,尽管模型本身是确定性的,

a given prompt typically gives a different answer each time it's run. 用詞

1:23

同一个提示在每次运行时,通常都会给出不同的答案。

語法

用“even though”表达事实与意外结果的对比

Even though 引导让步从句:它先给出一个事实,而这个事实本来可能让主句的结果显得不太可能。在本句中,模型本身是确定性的被视为事实,但答案仍可能每次运行都不同。 结构是 even though + 从句,主句(也可以是主句 + even though + 从句)。它相当于“尽管有……这个事实”,所以当前情境中的两个情况都被当作真实情况。

练习

说话人知道图书馆很快就要关门,但想表达一个意外结果。选择最合适的连接词:____ the library was about to close, the staff let us finish our project.

  1. Even though
  2. Because
  3. Even if
查看答案

Even though

用詞

a given prompt:given 表示“某一个特定的”

在 a given prompt 中,given 放在 prompt 前面,用来限定名词,意思是概括陈述中“正在考虑的某一个特定提示”。因此,这句话说的是同一个选定提示被多次运行时会发生什么。 这里的 given 并不表示有人“给出”了提示。a given + 单数名词这一结构常用于说明:一个群体中的任意某个具体成员都适用某种情况。

练习

用本课中表示“正在考虑的任意一个特定提示”的短语补全句子:In repeated tests, ____ may produce more than one answer.

查看答案

a given prompt

Models learn how to make these predictions

1:27

模型学会如何做出这些预测

by processing an enormous amount of text,

1:29

是通过处理海量的文本,

typically pulled from the internet.

1:32

这些文本通常来自互联网。

For a standard human to read the amount of text that was used to train GPT-3,

1:34

对于一个普通人来说,要读完用于训练GPT-3的文本量,

for example,

1:38

例如,

if they read non-stop 24/7,

1:39

如果他们24小时不停地阅读,

it would take over 2600 years.

1:42

这需要超过2600年。

Larger models since then train on much, much more.

1:44

从那以后,更大的模型在比这多得多的数据上进行训练。

You can think of training a little bit like tuning the dials on a big machine. 語法

1:48

你可以把训练看作有点像在一台大机器上调表盘。

語法

think of X like Y:建立类比

Think of X like Y 是一个类比框架。think of 引导听者在头脑中想象 X,like 则引出更熟悉的比较对象 Y。这里通过把训练与调节大型机器上的旋钮相比,帮助理解训练。 这个框架只强调两者之间有用的相似点,并不是说 X 和 Y 完全相同。在这一用法中,like 是表示“像、与……相似”的介词,不是表示“喜欢”的动词。

练习

用缺少的两个部分补全类比框架:You can ____ a budget ____ a plan for where your money will go.

查看答案

think of · like

The way that a language model behaves

1:52

语言模型的表现方式

is entirely determined by these many different continuous values,

1:53

完全由这许多不同的连续数值决定,

usually called parameters or weights.

1:58

这些数值通常被称为参数或权重。

Changing those parameters will change the probabilities

2:01

改变这些参数将改变概率,

that the model gives for the next word on a given input.

2:04

即模型在给定输入下为下一个词提供的概率。

What puts the large in large language model 習語

2:07

大语言模型之所以能被称为“大”,

is how they can have hundreds of billions of these parameters.

2:10

是因为它们可以拥有数千亿个这样的参数。

習語

是什么让大型语言模型中的“大型”名副其实

what puts X in Y 这个句式表示“某个特征让 Y 真正具备 X 这一特点”。在这里,巨大的参数数量说明了为什么大型语言模型配得上 large 这个词。 puts 不是指把东西真的放进去。说话人重复使用 large,把技术名称变成一个小小的文字游戏:第一个 large 是正在解释的属性,第二个 large 是 large language model 这个名称的一部分。

练习

下面哪句话使用 what puts X in Y 来说明某个称呼为什么名副其实?

  1. Fast service means answering customers quickly.
  2. Our five-minute response time is what puts the fast in fast service.
  3. We put the express package in the delivery truck.
查看答案

Our five-minute response time is what puts the fast in fast service.

No human ever deliberately sets those parameters.

2:15

从来没有人类刻意去设定这些参数。

Instead, they begin at random,

2:18

相反,它们从随机值开始,

meaning the model just outputs gibberish,

2:20

这意味着模型一开始只会输出胡言乱语,

but they're repeatedly refined based on many example pieces of text.

2:22

但它们会根据许多文本文本示例被反复微调。

One of these training examples could be just a handful of words, 短語搭配

2:27

这些训练示例之一可能只有几个词,

短語搭配

a handful of 表示“少量几个”

a handful of 放在复数可数名词前,表示“少量几个”。在这句话中,训练样本可能只包含几个词。 这个数量是大概的,并不是固定数字。虽然 handful 原本与一只手能抓住的量有关,但这里使用的是比喻义。

练习

用本课中表示“数量很少且不精确”的表达完成句子:The tiny workshop has only ____ employees, so everyone knows each other.

查看答案

a handful of

or it could be thousands,

2:30

或者也可能有成千上万个词,

but in either case,

2:31

但无论是哪种情况,

the way this works is to pass in all but the last word from that example 語法

2:32

它的工作原理都是将除了该示例最后一个词之外的所有内容输入

語法

all but + 名词短语:除指定对象外全部

在本句中,all but the last word 表示“除最后一个词以外的所有词”。这个表达先涵盖整个群体,再排除 but 后面点明的人或事物。 这里,最后一个词被留下,其余更早的词都会被传入。可迁移结构 all but + 名词短语表示“除……以外全部”,而不是“几乎”。

练习

在句子 “The team finished all but the last task,” 中,哪个意思正确?

  1. 团队差一点完成最后一项任务。
  2. 团队完成了除最后一项以外的所有任务。
  3. 团队只完成了最后一项任务。
查看答案

团队完成了除最后一项以外的所有任务。

into the model and compare the prediction

2:36

到模型中,并比较模型的预测结果

that it makes with the true last word from the example.

2:39

与示例中真实的最后一个词。

An algorithm called backpropagation is used to tweak all of the parameters

2:43

一种被称为反向传播的算法被用来调整所有的参数,

in such a way that it makes the model 語法

2:48

其调整的方式是使模型

a little more likely to choose the true last word

2:49

稍微更有可能选择真实的最后一个词,

and a little less likely to choose all the others.

2:52

而稍微减少选择所有其他词的可能性。

語法

in such a way that:连接方法与其结果

in such a way that 把一个动作或方法与它产生的结果连接起来。这个短语前面的部分说明做了什么;that 引导的从句说明按这种方式做之后会发生什么。 这里,参数经过调整,使模型更有可能选择真正的最后一个词,也更不可能选择其他词。可迁移结构是 do something in such a way that + 结果从句。

练习

用强调动作方式如何产生结果的五词表达补全句子:He labeled the boxes ____ anyone could find the right one quickly.

查看答案

in such a way that

When you do this for many, many trillions of examples,

2:56

当你对成千上万亿个示例执行此操作时,

not only does the model start to give more accurate predictions on the training data, 語法

2:59

模型不仅开始在训练数据上给出更准确的预测,

but it also starts to make more reasonable predictions

3:03

而且它也开始做出更合理的预测,

on text that it's never seen before.

3:06

针对它以前从未见过的文本。

語法

句首 not only ... but it also 结构

not only ... but it also ... 连接两个并列结果,并强调两者都成立。在本句中,第一个结果是模型对训练数据的预测更准确,第二个结果则进一步说明模型也能对从未见过的文本做出更合理的预测。 当 not only 位于第一个分句的开头时,要使用主语和助动词倒装:does 放在 the model 前面,start 保持动词原形。but 后的分句使用正常语序:but it also starts ...。

练习

补全这组强调结构:____ did the update reduce errors, ____ made the app faster.

查看答案

Not only · but it also

Given the huge number of parameters

3:09

考虑到庞大的参数数量

and the enormous amount of training data,

3:11

和海量的训练数据,

the scale of computation involved in training a large language model

3:13

训练一个大语言模型所涉及的计算规模

is mind-boggling. 用詞

3:17

是令人难以置信的。

用詞

语气强烈的形容词 mind-boggling

mind-boggling 表示某事物惊人、庞大或复杂到让人难以想象。这里用它形容计算量大得惊人。 这个词表达的是强烈的震撼感,而不只是一般意义上的困难。它常用来描述让人惊叹的数字、规模、复杂程度、速度或成就。

练习

一份报告称,某系统一天处理了 400 万亿条记录。哪个句子最能表达对这一规模的惊叹?

  1. The number of records is difficult.
  2. The number of records is confusing.
  3. The number of records is mind-boggling.
查看答案

The number of records is mind-boggling.

To illustrate, 表達脈絡

3:19

为了说明这一点,

imagine that you could perform 1 billion additions and multiplications

3:20

想象一下,如果你能每秒执行10亿次加法和乘法

every single second.

3:24

运算。

表達脈絡

用“To illustrate,”引出例子

To illustrate 是一个语篇标记,用来把听者从概括或抽象的观点带到具体例子、计算或设想情境。本句中,它引出以 imagine 开始的思想实验。 这里的 illustrate 表示“通过举例把观点说明白”,不一定指画图。To illustrate 作为句首标记时,后面通常加逗号。

练习

为第二句选择最合适的开头:“Many small daily choices can save energy. _____ turning off one unused light each evening reduces waste.”

  1. To illustrate,
  2. As a result,
  3. In contrast,
查看答案

To illustrate,

How long do you think that it would take

3:25

你认为需要多长时间,

for you to do all of the operations

3:27

才能完成所有的运算,

involved in training the largest language models?

3:30

也就是训练最大语言模型涉及的运算?

Do you think it would take a year?

3:33

你觉得需要一年吗?

Maybe something like 10,000 years?

3:35

也许是1万年左右?

The answer is actually much more than that.

3:38

答案其实远不止于此。

It's well over 100 million years. 短語搭配

3:41

这需要远超过1亿年的时间。

短語搭配

well over:明显超过某个数字

Well over 表示“明显超过”某个数字、数量、限度或时长。本句用它强调估算结果超过1亿年,而且超出的幅度很大但没有说明具体数值,并不是只多一点。 这里的 well 是程度副词,修饰 over。这个结构常与数量和限度搭配:well over 50 people、well over budget 和 well over an hour。

练习

语境:最终账单为240万美元,远高于100万美元的原估算。选择最能补全句子并强调大幅超出的短语:“The final bill was _____ $1 million.”

  1. almost
  2. just over
  3. well over
查看答案

well over

This is only part of the story, though. 習語

3:45

然而,这只是故事的一部分。

習語

only part of the story:解释还不完整

“Only part of the story”表示刚才所说的内容是正确的,但并不完整。这里的 story 指“完整的情况或解释”,而不是虚构的故事。 这个表达会限制前面的结论,并提示接下来还有另一个重要因素。

练习

请补全这个固定表达,表示这项估算并不是完整情况:The repair cost is ____; we also need to consider how long the work will take.

查看答案

only part of the story

This whole process is called pretraining.

3:47

这整个过程被称为预训练。

The goal of autocompleting a random passage of text from the internet

3:49

从互联网上自动补全一段随机文本的目标,

is very different from the goal of being a good AI assistant.

3:53

与成为一个优秀的AI助手的目标截然不同。

To address this, 表達脈絡

3:56

为了解决这个问题,

chatbots undergo another type of training, 短語搭配

3:57

聊天机器人经历了另一种类型的训练,

just as important, called reinforcement learning with human feedback.

4:00

同样重要,这被称为基于人类反馈的强化学习。

表達脈絡

To address this:从问题转向应对措施

“To address this”放在句首,用来说明后续行动的目的:这个行动是为了处理刚刚提到的问题。this 回指的就是这个问题。 这个句首结构按照“问题 → 应对措施”来组织信息,让听者明白为什么要引出下一步。这里的 address 是动词,表示“处理、应对”,不是表示地点的名词,也不是“向听众发表讲话”的动词。

练习

请用目标动词补全“问题—应对措施”的连接:The waiting list was too long. To ____ this, the clinic added evening appointments.

查看答案

address

短語搭配

undergo another type of training:接受另一种训练

在本句中,undergo another type of training 表示“经历或接受一个额外的训练过程”。聊天机器人是接受训练的一方,而不是主持训练的一方。 undergo 是较正式的动词,常用于主语受到某个计划性过程影响的情况,例如训练、测试、治疗或变化。结构是 undergo + 名词短语,如 undergo training、undergo testing 或 undergo major changes。

练习

请用表示“经历训练过程”的正式动词补全句子:Before working alone, every technician must ____ safety training.

查看答案

undergo

Workers flag unhelpful or problematic predictions, 用詞

4:04

工作人员标记出无益或有问题的预测,

and their corrections further change the model's parameters,

4:07

他们的修正会进一步改变模型的参数,

making them more likely to give predictions

4:11

使它们更有可能给出预测,

that users prefer.

4:13

也就是用户更偏好的预测。

用詞

flag 作动词:标记以供审核

这里的 flag 表示“把某个内容标为需要关注、审核或处理”。工作人员指出可能无帮助或有问题的预测,以便之后进行检查和修正。 flag 用作工作流程中的动词时,通常直接接宾语,如 flag a comment、flag a transaction 或 flag an error。这个宾语就是需要特别关注的项目。

练习

在内容审核流程中,"flag this comment" 最可能是什么意思?

  1. 标记这条评论,以便关注或审核。
  2. 立即删除这条评论。
  3. 只是把这条评论归入一个普通类别。
查看答案

标记这条评论,以便关注或审核。

Looking back at the pretraining, though, 表達脈絡

4:15

不过,回顾预训练,

this staggering amount of computation

4:17

这种惊人的计算量

is only made possible by using special computer chips 語法

4:19

只有通过使用特殊的计算机芯片才能实现,

that are optimized for running many, many operations in parallel, 短語搭配

4:22

这些芯片针对并行运行许多操作进行了优化,

短語搭配

optimized for running:be optimized for + -ing 形式

be optimized for + 名词或 -ing 形式表示“经过设计或调整,以便高效处理某项任务”。这里指这些芯片特别适合同时运行大量运算。 在 optimized for running 中,for 是介词,running 是说明任务的 -ing 形式。这个结构不是 for + 不定式。

练习

用 optimize 和 render 的正确形式完成句子:This graphics card is ____ complex visual effects in real time.

查看答案

optimized for rendering

known as GPUs.

4:26

它们被称为GPU。

表達脈絡

Looking back at:回到前面的话题

Looking back at the pretraining 表明,说话人在谈过别的内容后,正在回到先前提到的主题——预训练。这里的 looking back 不是回忆个人的人生经历。 放在句首时,Looking back at + 名词短语可以组织较长的讲解:它先告诉听者接下来要重新审视前面哪个主题,然后说话人再补充新的观察。

练习

在这句话中,Looking back at the pretraining 向听者传达了什么?

  1. 它回到前面提到的预训练话题,以补充新的观点。
  2. 它把预训练作为一个全新的话题引入。
  3. 它描述某人真的转过身去看训练。
查看答案

它回到前面提到的预训练话题,以补充新的观点。

語法

made possible by:指出促成结果的因素

在 is only made possible by using special computer chips 中,被动结构 be made possible by + 名词或 -ing 短语用来指出是什么让某个结果得以实现。它不是在描述普通的制作或制造动作。 这里,this staggering amount of computation 是结果,using special computer chips 是促成结果的因素。only 加强了说法:说话人认为该结果依赖这一因素。

练习

用本课中表示“由……促成”的三个英语单词补全句子:The rapid rescue was ____ the new warning system.

查看答案

made possible by

However,

4:28

然而,

not all language models can be easily parallelized.

4:28

并不是所有的语言模型都能轻易地并行化。

Prior to 2017, 用詞

4:32

在2017年之前,

most language models would process text one word at a time. 短語搭配

4:33

大多数语言模型每次只能处理文本中的一个词。

用詞

Prior to + 名词或时间表达

Prior to 表示“在……之前”,把某件事放在指定时间或事件之前。这里的 Prior to 2017 为有关大多数语言模型如何处理文本的说明设定了一个正式的时间界线。 在这个固定短语中,to 是介词。后面可以接日期、名词短语或 -ing 形式,但不能接动词原形。

练习

哪一个句子正确使用 prior to 构成正式的时间表达?

  1. Prior to inspect the equipment, switch off the power.
  2. Prior the inspection, all equipment must be switched off.
  3. Prior to the inspection, all equipment must be switched off.
查看答案

Prior to the inspection, all equipment must be switched off.

短語搭配

one word at a time:每次一个词

number + 可数单位 + at a time 这一结构表示每一步或每一轮只处理指定数量的单位。这里的单位是 one word,所以模型是按顺序处理文本,而不是把整段文本一起处理。 数字和单位都可以替换,例如 one question at a time 和 two files at a time。这个结构常强调每一步可处理数量的实际限制。

练习

哪句话明确表示程序在每一步只处理一个请求?

  1. The program handles one request at a time.
  2. At one time, the program handled one request.
  3. The program handles every request at once.
查看答案

The program handles one request at a time.

But then,

4:37

但后来,

a team of researchers at Google

4:37

谷歌的一组研究人员

introduced a new model known as the Transformer.

4:39

推出了一种被称为Transformer的新模型。

Transformers don't read text from the start to the finish.

4:43

Transformer不会从头到尾阅读文本。

They soak it all in at once, 短語動詞

4:46

它们一次性吸收全部文本,

短語動詞

soak it all in:充分吸收并感受这一切

Soak it all in 是比喻用法,表示接收并充分吸收信息、感受、氛围或经历。在本句中,主语把整段文本作为一个整体接收进来,并不是把什么东西放进液体里浸泡。 在常见结构 soak it in 和 soak it all in 中,代词 it 放在 soak 和 in 之间。All 增加了完整、全部的意思。

练习

哪句话自然地使用 soak it all in 来表示停下来充分感受一段经历?

  1. After reaching the summit, Lena ignored the view and left immediately.
  2. After reaching the summit, Lena stood quietly and soaked it all in.
  3. After reaching the summit, Lena poured water over her map.
查看答案

After reaching the summit, Lena stood quietly and soaked it all in.

in parallel.

4:48

以并行的方式。

The very first step inside a Transformer,

4:49

在Transformer内部的第一步,

and most other language models for that matter, 表達脈絡

4:52

其实对于大多数其他语言模型也是如此,

is to associate each word with a long list of numbers.

4:54

是将每个词与一长串数字关联起来。

表達脈絡

用“for that matter”扩大判断范围

for that matter 是一个插入性话语标记。这里,说话者在提到 Transformer 后,用它把同一个判断扩展到大多数其他语言模型:这两类模型都采用这个第一步。 它通常放在新补充的相关人物、事物或情况之后。它不是在询问某件 matter,而是大致表示“这个相关情况也是如此”。

练习

在句子“The museum is free for children, and for students for that matter,”中,for that matter 起什么作用?

  1. 它把学生补充为同样符合该判断的另一个群体。
  2. 它纠正原来的说法,表示儿童必须付费。
  3. 它表示博物馆正在讨论某件具体的事情。
查看答案

它把学生补充为同样符合该判断的另一个群体。

The reason for this is that the training process only works with continuous values, 語法

4:57

原因是训练过程只处理连续数值,

語法

The reason for this is that ... 句型

The reason for this is that 用完整、结构清楚的方式引出原因。The reason for this 指出前面已经提到的结果或情况,后面的 that 从句说明原因。 用 reason for + 名词或代词指出需要解释的事项,再用 be + that 从句引出原因。这里的 this 指把每个词与一串数字关联起来这件事。

练习

请使用本课中引出原因的准确框架完成说明:The file opens quickly after the first use. ____ the app saves a local copy.

查看答案

The reason for this is that

so you have to somehow encode language using numbers,

5:02

所以你必须想办法用数字来编码语言,

and each of these lists of numbers

5:05

而这每一个数字列表

may somehow encode the meaning of the corresponding word.

5:07

可能以某种方式编码了对应词的含义。

What makes Transformers unique 語法

5:10

让Transformer独一无二的是,

is their reliance on a special operation known as attention. 短語搭配

5:12

它们依赖于一种称为注意力机制的特殊操作。

語法

What makes Transformers unique is ...:聚焦结构

What makes Transformers unique is ... 是一个聚焦结构。整个 What makes Transformers unique 从句作主语,意思是“使 Transformer 独特的因素”。它不是直接问句。 is 后面才是答案:their reliance on ...。可迁移的框架是 What makes X + 形容词 + is + 关键原因或特征。它先提出要解释的特点,再给出答案。

练习

用 What makes X adjective is Y 结构补全句子:____ this backpack practical ____ its many pockets.

查看答案

What makes · is

短語搭配

reliance on:名词加固定介词

在 reliance on 中,reliance 是名词,表示“依赖”或“需要某事物提供支持”。在本句中,their reliance on a special operation 表示这个系统依靠那种运算。 在所依赖的人或事物前,这个名词固定搭配介词 on,例如 reliance on technology、reliance on a guide。要保留 on,不能换成 of 或 to。

练习

用 rely 的名词形式及其固定介词补全句子:The hospital's ____ backup generators increased during the storm.

查看答案

reliance on

This operation gives all of these lists of numbers

5:16

这个操作给所有的这些数字列表

a chance to talk to one another 習語

5:19

一个相互交流的机会,

and refine the meanings that they encode

5:21

并根据周围的上下文

based on the context around,

5:23

完善它们所编码的含义,

all done in parallel.

5:25

一切都在并行进行。

習語

作为技术隐喻的 talk to one another

这里的 talk to one another 是拟人化表达:数字列表并不会真的说话。这个短语把这些列表写得像是在交流,让抽象的计算过程更容易想象。 在这个语境中,它表示这些表征通过交换或结合语境信息而相互影响。技术对象被说成会“交谈”“倾听”“知道”或“决定”时,要找出这些人类动作实际代指的过程。

练习

阅读这个句子:The two software modules talk to one another before producing a result. 这里的 talk to one another 最可能是什么意思?

  1. 它们交换信息。
  2. 它们像人一样大声说话。
  3. 它们被列在彼此旁边。
查看答案

它们交换信息。

For example,

5:27

例如,

the numbers encoding the word bank

5:27

编码单词“bank”的数字,

might be changed based on the context surrounding it

5:30

可能会根据它周围的上下文被修改,

to somehow encode the more specific notion of a river bank.

5:32

从而以某种方式编码了“河岸”这一更具体的概念。

Transformers typically also include a second type of operation

5:37

Transformer通常还包括第二种操作,

known as a feed-forward neural network,

5:40

被称为前馈神经网络,

and this gives the model extra capacity

5:43

这给了模型额外的容量

to store more patterns about language learned during training.

5:45

来存储在训练期间学到的关于语言的更多模式。

All of this data repeatedly flows through many different iterations

5:49

所有这些数据反复流经这两种基本操作的

of these two fundamental operations,

5:52

许多不同迭代中,

and as it does so, 表達脈絡

5:55

在这个过程中,

the hope is that each list of numbers

5:56

人们期望每个数字列表

is enriched to encode whatever information might be needed 語法

5:58

都能得到丰富,从而编码任何可能需要的信息,

to make an accurate prediction

6:02

以做出准确的预测,

of what word follows in the passage.

6:03

预测段落中接下来的词是什么。

表達脈絡

用 as it does so 衔接同时发生的动作

As it does so 把接下来的事件与刚才提到的动作衔接起来。这里的 it 指 all of this data,而 does so 代替 flows through many different iterations of these two fundamental operations。 整个短语表示数据流经那些重复操作的同时。它避免重复完整的动词短语,让较长的流程说明顺畅地继续下去。在这个结构中,so 代替前面的动作,并不表示 therefore。

练习

阅读这个句子:The robot scans each shelf. As it does so, it updates the store map. 这里的 As it does so 是什么意思?

  1. 因此,机器人会更新地图
  2. 机器人扫描每个货架的同时
  3. 在另一台机器人扫描完货架之后
查看答案

机器人扫描每个货架的同时

語法

whatever information might be needed:任何可能需要的信息

whatever information 表示“任何最终被证明是所需的信息”,即使事先并不知道具体是哪些信息。从语法上说,whatever 引出自由选择关系结构。 might be needed 是被动结构,并有意保留不确定性。might 表示尚不确定哪些信息会成为必要信息;be needed 表示这些信息是任务所要求的。这里 whatever 不是“无所谓”,might 也不是过去时标记。

练习

在英文句子 ‘The guide includes whatever details might be needed by first-time visitors,’ 中,‘whatever details might be needed’ 是什么意思?

  1. 随机选择的细节,不管是否有用
  2. 只有过去确定需要的细节
  3. 任何最终可能被证明是必要的细节
查看答案

任何最终可能被证明是必要的细节

At the end,

6:06

在最后,

one final function is performed on the last vector in this sequence,

6:07

序列中最后一个向量会执行最后一个函数,

which now has had a chance to be influenced by all the other context 語法

6:11

这个向量现在已经有机会受到来自输入文本的

from the input text,

6:15

所有其他上下文的影响,

as well as everything the model learned during training,

6:16

以及模型在训练期间学到的所有内容的影响,

to produce a prediction of the next word.

6:19

从而产生对下一个词的预测。

語法

has had a chance to be influenced by:已经有机会受到……的影响

has had 看起来像重复,但两个词的作用不同。has 标记现在完成时,had 则是 have 的过去分词。这表示这个机会存在于一直延伸到当前步骤的时间段内。 a chance to 后面接被动不定式 be influenced by。向量是影响的接受者,上下文和训练信息是影响的来源。这里 chance 表示已有时间或机会让影响发生,并不是说结果靠运气产生。 整个短语表示:截至当前步骤,最后一个向量已经有可能受到这些来源的影响。但这个短语本身并不表示每个来源都肯定改变了向量。

练习

在 ‘The design has had a chance to be influenced by user feedback,’ 中,哪项分析正确?

  1. 设计可能受到影响,而且这个情境被看作一直延伸到现在。
  2. 用户反馈受到设计的影响,而且 has had 表示将来时间。
  3. 设计影响用户反馈,而且整个事件只属于已经结束的过去。
查看答案

设计可能受到影响,而且这个情境被看作一直延伸到现在。

Again,

6:22

同样,

the model's prediction looks like a probability for every possible next word.

6:22

模型的预测看起来像是每个可能的下一个词的概率。

Although researchers design the framework for how each of these steps work, 表達脈絡

6:28

尽管研究人员设计了每个步骤如何运行的框架,

it's important to understand that the specific behavior is an emergent phenomenon 用詞

6:32

但重要的是要理解,具体的行为是一种涌现现象,

用詞

emergent phenomenon:由相互作用产生的行为

Emergent phenomenon 是一个技术名词短语,指许多较小部分相互作用后产生的整体模式或行为,即使没有人直接指定那个准确的整体结果。 在本句中,这种行为来自大量参数在训练过程中的调整方式。因此,emergent 说明的是行为如何产生,而不只是说这种行为是新的。

练习

哪一句中的 emergent phenomenon 表示由许多局部相互作用产生的结果?

  1. A newly announced movie is an emergent phenomenon simply because it is new.
  2. A machine part built exactly from a blueprint is an emergent phenomenon because its shape was specified in advance.
  3. The wave moving through a crowd can be an emergent phenomenon produced by many local reactions.
查看答案

The wave moving through a crowd can be an emergent phenomenon produced by many local reactions.

based on how those hundreds of billions of parameters

6:37

基于那数千亿个参数

are tuned during training.

6:40

在训练期间是如何被调整的。

表達脈絡

Although ... it's important to understand that:先让步,再指出重点

Although 引出让步:它先承认研究人员设计框架这一事实,但不把该事实当作最终结论。随后主句把注意力转向一个限定,即具体行为究竟从何而来。 it's important to understand that 是一个话语路标,提醒听者后面的内容才是用来纠正简单化理解的关键观点。两部分合在一起,组织出这样的信息层次:前一点确实成立,但更要记住后面的限制。

练习

哪一句使用了相同的信息组织方式:先用 Although 承认一个事实,再用 it's important to understand that 标出主要的修正信息?

  1. Because the shortcut saves time, it can also miss rare errors.
  2. The shortcut saves time, and it's important to understand how shortcuts are designed.
  3. Although the shortcut saves time, it's important to understand that it can miss rare errors.
查看答案

Although the shortcut saves time, it's important to understand that it can miss rare errors.

This makes it incredibly challenging to determine 語法

6:42

这使得确定模型为什么会做出它具体的预测

why the model makes the exact predictions that it does.

6:45

变得极其具有挑战性。

語法

makes it incredibly challenging to determine:make it + 形容词 + to-infinitive

在 makes it incredibly challenging to determine 中,make 后接形式宾语 it,再接宾语补足语 incredibly challenging。真正的内容由不定式从句 to determine why... 表达:变得困难的是“确定原因”这件事。 可以用 make it + 形容词 + to-infinitive 表示某个因素改变了做某事的难易度、便利性或可能性。这里的 makes 与单数主语 This 保持一致;it 不指模型或某个预测。

练习

哪句话正确使用了 make it + 形容词 + to-infinitive,并以 it 作形式宾语?

  1. The faded signs make the entrance difficult to find.
  2. The faded signs make difficult to find the entrance.
  3. The faded signs make it difficult to find the entrance.
查看答案

The faded signs make it difficult to find the entrance.

What you can see is that when you use large language model predictions to autocomplete a prompt, 表達脈絡

6:48

你能看到的是,当你使用大语言模型的预测来自动补全提示时,

the words that it generates

6:53

它生成的词

are uncannily fluent, 用詞

6:55

异常流畅,

fascinating,

6:56

令人着迷,

and even useful.

6:58

甚至非常有用。

表達脈絡

What you can see is that:先呈现可以观察到的结果

What you can see is that 把可以观察到的结果放在前面。What 从句充当主语,that 从句说明结果:在本句中,生成的文字非常流畅、引人入胜,而且很有用。 这个框架把证据和解释区分开。see 表示“观察到”或“看出”,不一定指用眼睛看。说话人可以借此对事实作出有依据的总结,而不声称自己知道结果为什么会发生。

练习

你测量到了改善,但还不知道原因。哪句话只报告可以观察到的结果?

  1. This proves that the new filter will remove background noise from every recording.
  2. The reason the recording is clearer is that the new filter removes the background noise.
  3. What you can see is that the new filter reduces the measured background noise.
查看答案

What you can see is that the new filter reduces the measured background noise.

用詞

uncannily fluent:流畅得出奇,甚至略显诡异

这里的 uncannily fluent 指流畅得不同寻常,令人印象深刻,甚至让人觉得有些难以解释。uncannily 不只是加强程度;它还表现出说话人的惊讶,有时带有一丝诡异或令人不安的感觉。 这个短语是在评价生成的文字显得多么像人写的、多么流畅自然。在其他语境中,uncannily + 形容词通常表示“出乎意料地具有某种特征,甚至让人觉得奇怪”,而不只是“非常……”。

练习

在“The chatbot's answer was uncannily fluent”中,uncannily fluent 最能表达什么意思?

  1. 它自然流畅得令人惊讶,并且略显奇怪。
  2. 它只是流畅程度很高,不包含说话人的任何反应。
  3. 它有很多语法错误,但听起来很自信。
查看答案

它自然流畅得令人惊讶,并且略显奇怪。

If you're a new viewer

7:05

如果你是一位新观众,

and you're curious about more details on how Transformers and attention work,

7:06

并且对Transformer和注意力机制的具体工作原理感到好奇,

boy do I have some material for you. 語法

7:10

哇,我正好为你准备了一些资料。

語法

boy do I have...:表示强调的感叹结构

这里的 boy 是感叹词,不是在称呼一名男性。Boy, do I have... 这个结构通过助动词与主语倒装来构成感叹,强调的意思是“我这里真的有资料给你”。 虽然 do 放在 I 前面,但这不是一般疑问句。这个形式会加入兴奋、俏皮的自信或期待感,常暗示说话人有特别好或很多的内容可以分享。

练习

用目标结构补全这个兴奋的感叹句:Boy, ____ a surprise for you!

查看答案

do I have

One option is to jump into a series I made about deep learning 短語動詞

7:12

一个选择是去看我制作的关于深度学习的系列视频,

短語動詞

用“jump into”表示马上开始

这里的“jump into”表示马上开始接触或投入某件事,通常带有积极、迅速开始且不做过多铺垫的感觉。说话人是在建议观众开始观看这个系列,并不是指身体上的跳跃。 常用结构是 jump into + 活动、话题、项目或内容。它把接下来的步骤表达得轻松而直接。

练习

在句子“After a quick introduction, we'll jump into the first activity,”中,“jump into”是什么意思?

  1. 马上开始这项活动
  2. 把这项活动从计划中删除
  3. 身体跳进这项活动里
查看答案

马上开始这项活动

where we visualize and motivate the details of attention 用詞

7:16

在那个系列中,我们将注意力机制的细节可视化,并解释了它的动机,

用詞

技术讲解中的“motivate the details”

在这个技术语境中,“motivate”表示给出理由或直觉,让某个概念或设计选择变得容易理解。因此,“motivate the details”是说明这些细节为什么存在、又是怎样产生的,并不是“激励这些细节”。 这种用法通常回答的是“为什么要这样设计?”,而不只是“有哪些细节?”。它的宾语可以是定义、方法、假设、公式或设计选择。

练习

在技术讲座中,“motivate the choice of this formula”最可能是什么意思?

  1. 鼓励听众记住这个公式
  2. 给出选择这个公式的推理或直觉
  3. 大声读出公式中的每个符号
查看答案

给出选择这个公式的推理或直觉

and all the other steps in a Transformer.

7:19

以及Transformer中的所有其他步骤。

But also, on my second channel,

7:22

另外,在我的第二个频道上,

I just posted a talk that I gave a couple months ago 用詞

7:23

我刚发布了几个月前发表的一场演讲,

用詞

a couple months ago:非正式英语中省略 of

在本句中,a couple months ago 说明说话人是什么时候做那场演讲的:大约在现在之前两个月。a couple 通常表示两个,但在随意口语中也可以作为约数使用。 在非正式美式英语中,a couple 可以直接放在复数时间名词前,所以 a couple months 省略了 of。完整形式 a couple of months 也正确,而且在较谨慎或正式的写作中通常更合适。

练习

用包含 a couple 且省略 of 的非正式美式英语短语完成句子:I joined the chess club ____.

查看答案

a couple months ago

about this topic for the company TNG in Munich.

7:25

是关于这个主题的,当时在慕尼黑的TNG公司讲的。

Sometimes I actually prefer the content that I make as a casual talk

7:29

有时候,我其实更喜欢我作为非正式演讲所制作的内容,

rather than a produced video, 語法

7:32

而不是制作精良的视频,

語法

用 rather than 对比不同选项

Rather than 引出不被偏好的那个选项。这里,它把 a casual talk 和 a produced video 进行对比,因此说话人是在比较两种形式,而不是说明哪件事先发生。 两边使用相互对应的形式时,对比最清楚,例如 a casual talk rather than a produced video,或 talk casually rather than make a produced video。这个结构可以清楚地呈现两个选项之间的选择。

练习

在句子“Nora chose to bike rather than take the bus,”中,rather than 表示什么?

  1. Nora 选择骑自行车,而不选择乘公交车。
  2. Nora 认为两个选项都不可能。
  3. Nora 先骑自行车,之后又乘了公交车。
查看答案

Nora 选择骑自行车,而不选择乘公交车。

but I leave it up to you which one of these feels like the better follow-on. 習語

7:33

但我让你来决定这两者中哪个更适合作为后续内容。

習語

leave it up to you:把决定权交给对方

在本句中,leave it up to you 的意思是“让你来决定”。代词 it 指的是选择哪个后续内容更合适这件事,并不是某个实体物品。 结构 leave + it/某个决定 + up to + 某人,表示把选择权交给这个人。它常用在给出几个选项之后,表明无论对方更喜欢哪一个,说话人都接受。

练习

哪一个句子礼貌地把最终选择权交给了对方?

  1. I’ll leave it up to you which restaurant we choose.
  2. I’ve already chosen the restaurant for us.
  3. I’ll leave you to it while you finish the report.
查看答案

I’ll leave it up to you which restaurant we choose.