特别节目·中文精读

彼得·诺维格:《人工智能:一种现代的方法》

Peter Norvig: Artificial Intelligence: A Modern Approach

经典 AI 教材的作者谈人工智能数十年的方法变迁、搜索与学习,以及技术现实与宣传之间的差距。

官方音频00:00 / --:--
中文精读由 AI 基于原始访谈改写,非官方翻译,可能存在偏差或错误;表述以原音频与官方文稿为准。说明

某个商业累犯预测系统给被告打分,满分十分里拿到六分,意味着大约 60% 的再犯概率。这是设计者公开承诺的目标:不管你是黑人还是白人,同样的分数对应同样的再犯概率。他们做到了。

另一组数字是:这个系统判断出错的概率,对不同种族并不相等。它对黑人做出有害错误判断的几率,是白人的两倍。

两组陈述同时成立。彼得·诺维格(Peter Norvig)在访谈里说得很平静:如果你把这两件事都当成必须同时满足的公平性指标,数学上可以证明,你不可能同时达成。

诺维格是谷歌研究总监,也是《人工智能:一种现代的方法》(Artificial Intelligence: A Modern Approach)的作者之一,合著者是斯图尔特·罗素(Stuart Russell)。这本书 1995 年出第一版,然后 2003 年第二版、2009 年第三版,第四版正在写。很多 AI 研究者书架上都并排摆着红、绿、蓝三本书,包括这次访谈的主持人本人。

公平性的两个目标,只能选一个

把这件事讲清楚,是整场对话里最有信息量的几分钟。累犯预测这类系统,通常被用来辅助判断谁可以假释、谁可以保释。它涉及两类不同的公平性诉求。

第一类叫校准。给定同一个分数,不同族群的人应该有相同的实际结果概率。六分就是 60% 的再犯率,对谁都是 60%。这个目标可以量化验证,那家商业公司也正是朝这个方向优化,并且声称达到了平衡。

第二类叫误差均等。系统总会出错,但出错的代价不该由某一个受保护群体承担。这里的问题是,它对黑人犯错的概率是对白人的两倍。

诺维格强调,这两个目标在数学上被证明无法同时满足,你必须做取舍。这个结论的用处,在于让你知道你没有在追一个幻觉;至于取舍点该落在哪,数学管不了。

你不可能什么都要。但这个分析至少能告诉你,我们没法同时拿到。于是我们可以作为人类,去认真地讨论这个取舍点应该落在哪里。至少我们是在有信息的基础上争论,而不是在要求一件不可能的事。(彼得·诺维格)

这一点值得所有做机器学习系统的人记住。公平性没法用单一指标同时满足所有定义,定义之间本身就冲突。工程师能做的是明确你优化了哪一个,牺牲了哪一个,然后把这个取舍交给公共讨论。

第四版真正改变的地方:效用函数本身

诺维格说,前三版里,作者们默认一个前提:我们教你最大化期望效用,至于效用函数是什么,你告诉我。全书 27 章讲的都是怎么做得更好、优化得更快。

第四版的口径变了。他们开始说,也许优化是容易的部分,难的是搞清楚我的效用函数到底是什么,我到底想要什么。如果面对的是一群智能体、一整个社会,那我们作为整体想要什么。

技术上往前走一步,就撞上哲学。这本书里一直有一章讲哲学,以前讨论的是中文屋这类论证,现在更多是公平、偏见,以及如何聚合不同人的效用。

怎么把人类价值编码进去?诺维格承认没有好答案,只有一些开端。其中一个方向叫逆强化学习(inverse reinforcement learning)。

普通强化学习是:你采取行动,拿到奖励,然后学会该做什么。逆强化学习倒过来:你观察别人采取行动,反推他到底想干什么。如果他做了这个动作,那大概是因为他想要那个结果。

这条路有个明显的问题。很多人会做自我毁灭的选择,会做出各种次优决策。你不想把这些也学进来。要学的是理想行为,被观察者实际做过什么,得先放到一边。这是这个领域自身的难点。

注意力市场里,应用在和你抢东西

访谈里聊到另一类优化问题。愤怒的小鸟这类游戏,到底在优化什么?是让你在短期获得多巴胺快感然后不断回来,还是帮你获得某种长期改善?

诺维格不把这个当成纯粹的 AI 问题。他说,我们建立了这样一个社会和一个基础设施:有一个注意力市场,我们作为一个社会决定了我们喜欢免费的东西,手机上所有应用都得免费。这意味着它们全都在竞争你的注意力,最终靠广告或游戏内购买赚钱。

它们想赢,唯一的办法是击败所有其他应用,也就是把你的注意力抢过来。在这个市场里,它们看起来是在和你作对,没打算和你站在一起。

短期让你开心,长期也帮到你,这两件事本身不冲突。冲突的是当下的激励机制,它站在了更容易的那一边,也就是喂给你多巴胺的那一边。(彼得·诺维格)

他的表述很清楚:矛盾出在激励结构上,跟技术能力没什么关系。这一点在讨论推荐系统时经常被模糊掉,好像算法天生如此,其实算法只是在忠于我们设计出来的那套激励。

这本书几乎没写成

回过头讲这本书的来历。90 年代中期,诺维格还在伯克利,和同事吃午饭时聊起,这个领域在变,市面上的教材有点跟不上,好久没有人出新书了,我们应该写一本。所有人都说,对,这事值得做,然后谁也没动。

后来他去了工业界,进了 Sun Labs,以为自己的学术出版生涯就此结束。一年后在会议上又碰到罗素,他问,那本我们一直说要写的书,你们肯定写了一半了吧。罗素说,我们一直在聊,从来没动手。

于是他提议,那就写吧。诺维格说,他们真正下决心,是因为都觉得这个领域正在两个方向上变化。

第一个方向:从布尔逻辑转向概率。老的 AI 建立在布尔逻辑上,再配一些处理不确定性的小技巧。

第二个方向:从知识工程转向机器学习。以前的做法是,出去采访一位专家,把他知道的东西一条条手工写下来。

如果从头就以这两个新视角组织全书,就能做出一本不一样的书。其他教材还没有完全转过这个弯。

写的过程放在今天看很原始。诺维格搬到了波士顿,罗素在伯克利,两个人靠互联网协作。拨号上网,不能传图片和图表,要用 cat 命令把文件打出来,然后祈祷对面收到了。

他们当年低估了什么

访谈者问了一个直接的问题:当时有没有预见到后面这一二十年,会走向深度学习和大数据?

诺维格的回答很坦诚。他们知道学习重要,但低估了它会有多重要。他们没看见大数据这件事。深度学习当时还没被发明。

他说,其实完全可以一开始就把整本书写成纯粹的机器学习视角,但他们选了另一条路:先讲各种类型的知识表示,再讲各种类型的环境,完全可观察还是部分可观察,确定还是随机。他们沿着这些轴增加复杂度,机器学习那条轴被排到了后面。

这个选择回头看不完美,但它解释了为什么这本书能覆盖整个领域,而不只是覆盖当时最热的方法。专注单一方法的教材,方法一换代就过时了。

第四版里,深度学习的章节交给了伊恩·古德费洛(Ian Goodfellow)。他把整本深度学习专著压缩成了一章。诺维格提到一个细节:他们把旧的神经网络章节交给他,让他随便改,结果古德费洛说,原来那章有一半还是对的。核心内容没变,变的是外面那一圈。

深度学习擅长感知,不擅长推理

诺维格对深度学习位置的判断是:起步于卷积网络,非常靠近感知,后来扩展到动作和一定程度的长程规划,但在表示、推理、单样本学习这些方面还得做得更好。

他反复用“表示”这个词。有些时候你手上根本没有足够的数据,无法从零学起。这时候你需要先有一个关于世界的表示,不管是人编进去的还是告诉它的,然后在这个表示上一步步推理。

老式 AI 的问题跟符号和推理本身无关,出在另外两件事上。

第一,符号是原子的。原子符号适合定义三角形的性质,因为三角形有充分必要条件。但现实世界是 messy 的,没有锐利的边界,动态符号才有。用非黑即白的符号去描述灰色的世界,匹配度很差。

第二,推理是通用的,可以应用在任何地方。这听起来是优点,实际意味着没有任何指引告诉你该在哪里用。于是出现了古希腊那个经典悖论:一堆沙子拿走一粒还是堆,一直拿下去,总有一刻不是堆。逻辑本身不会阻止你把规则重复应用一万次,它没有“够了”这个概念。

诺维格说,他也不知道该给这东西起什么名字,但方向可能是这样的:把“山”这种概念从原子符号换成词嵌入那样更复杂的表示;同时学会什么时候可以反复用某条规则,什么时候不行。在整数上做归纳,无限次没问题;从沙堆里拿沙子,几十次就到头了。策略本身不该是完全中立、随处可用的,它得学会自己被允许使用的范围。

他更愿意换个词,不谈可解释性

神经网络从数据里学出表示,自动把很多东西抹掉了。它为什么在这么多场景里表现惊人,又为什么在某些看起来微不足道的扰动下惨败,人类从外部看不出内省式的答案。这是不是靠更多数据、更好的数据就能解决,还是必须把符号系统请回来?

诺维格的回答是换词:他更愿意谈信任、验证、校验,解释只是达成这些目标的一种工具。

他举了贷款被拒的例子。你在欧洲有 GDPR,法律要求银行必须能给出解释。但解释本身远远不够。我们早就习惯了和人、和机构打交道,它们能给你一个解释,而你完全无法保证这个解释和真实原因有关。银行说,你没拿到贷款是因为抵押物不足。这话可能是真的,也可能是他们不喜欢你的宗教。从这一句解释里,你分辨不出来。这件事跟决策是人做的还是机器做的无关。

所以他要的东西得能来回对话,一句解释撑不住:你给了这个理由,那如果当时是另一种情况呢?我要改什么才能拿到?

第二层是测试。单看自己这一个案子,你没法判断决策依据是抵押物还是肤色。但把所有人的案子放在一起看,模式就出来了。

如果我只盯着自己这一个案例,我什么也看不出来。但如果我看所有案例,我就能检测出一个模式。(彼得·诺维格)

第三层是对抗测试,这一层最能说明问题。图像识别一度被认为接近人类水平,直到对抗样本出现。在图上加一点人类完全看不出的扰动,模型就彻底判断错了。诺维格说,人类当然也有类似的漏洞,比如那条裙子到底是什么颜色,大家谁也说不清。但人类被攻击的方式和机器被攻击的方式完全不同。

猫是空间里一条极细的线

他把问题归到一件事上:我们被低维隐喻骗了。

翻开教材,你会看到一张图,猫在这边,狗在那边,中间有一小块模糊地带分不清。如果你信了这张图,你会觉得,我们基本上搞定了,对抗样本大概就那么几个特例。

真实的几何差得很远。我们面对的是百万维空间,猫是从原点出发延伸到某个疯狂方向的一条极细的线。你往任何方向偏一点,就掉进了无人区,不知道会发生什么。

这个比喻解释了为什么对抗样本属于结构性现象,修修补补解决不了。高维空间里,一条曲线周围几乎全是空白。模型只见过那条线上的点,线外一毫米的地方它没有任何依据,但它照样会给出一个高置信度的答案。

顺带说一句他对人和机器双重标准的观察。你和访谈者素未谋面,坐在一起聊了一个小时,你默认对方不会突然失控,这种信任建立得非常快。而对 AI 系统,我们的默认姿态是怀疑,它必须靠大量工作证明自己配得上一点点信任。

他引用了博物学家马克·莫菲特(Mark Moffett)的说法:人类最了不起的地方是,你走进一家咖啡店,周围全是从未见过的人,你们不会互相残杀。黑猩猩做不到这一点。如果一只黑猩猩遇到不属于自己族群的对象,尤其旁边还有好吃的,事情会很糟。人类学会了共处,虽然我们仍然打仗,仍然做可怕的事,但大体上学会了。

这件事对 AI 同样重要。但诺维格在这里加了一个限定:很多被算作 AI 的问题,主要变量落在通信技术上。我们能建立起这些系统,前提是我们能收集数据、能触达全世界的人。这个变化比算法本身更大。

十六万人报名,完成率是个假指标

诺维格在 Udacity 上开的 AI 入门课,有十六万人注册,是最早一批 MOOC 的成功案例。他从中得到的最大教训,和他进去时的预期相反。

进去的时候他以为挑战在信息:只要我把要教的东西想清楚、讲明白,我的工作就完成了,好事自然会发生。做完课程他发现,信息当然要有,但真正重要的是动机。学生不坚持学下去,内容再好也没用。

关于完成率,他的态度很直接。他本人大概报过五十门课,一门都没学完,但他得到了想要的东西,因为他本来就没打算学完,只是想看看这个主题,或者看看别人怎么讲这门课。

我大概开过五十门不同的课,没一门是学完的。但我从中得到了我想要的,因为我从来没打算学完。(彼得·诺维格)

他也承认,最早这批课吃到了外部动机的红利:这是新东西,能参与其中本身就让人兴奋,学生自带动力。而那些最需要帮助的人,恰恰缺乏这种动力,也看不出坚持下来对自己有什么好处。在线教育真正还没解决的问题就在这里,光靠技术不够,还得有社区,需要把人真的聚在一起,有些环节必须在物理空间发生。

在线和线下的真正区别,不在屏幕

访谈者提了一个观察:自己如果不是被按在教室里,无聊到犯困,也得硬着头皮熬过那些极难的计算机课程,大概学不到今天这么多。

诺维格的拆解很干脆。这里面混着两件事。一件是物理位置,另一件是承诺和归属。你在教室里坚持下来,一半是因为看到旁边所有人都在受同样的苦,另一半是因为你交了学费,父母、同学、整个社会都预期你坚持下去。

这两件事可以分开。你完全可以设想:学费很贵,所有人都知道你在读,然后你在自己房间里,同学在各自的房间里。物理离散,承诺完整。反过来,坐在同一间教室里,心思全在外面的也大有人在。

所以决定成败的变量落在承诺上,跟屏幕没什么关系。当然,课后在教室外面碰到同学随便聊两句,那种非正式交流很重要,既维持动机,也是真正重要的学习发生的地方。等带宽更高、AR/VR 更成熟,这部分也许能远程实现。

至于斯坦福、MIT 会不会全面转向线上,他的判断是不会。这些学校在实体校园上有巨大的投入,财务上和文化上都有惯性。而且有些东西真的没法虚拟化:计算机专业有台电脑有纸笔就能干活,但生物实验室里的设备你家里没有。

学编程不需要十年,也不用先学语法

2001 年诺维格写过一篇流传很广的文章《十年学会编程》(Teach Yourself Programming in Ten Years),是对着市面上那些“21 天精通 XX”的书写的。多年过去,他的看法有调整。

当时他脑子里想的是成为职业软件工程师,那确实是个需要终身学习的行当。但现在有大量场景,编程只是解决问题的手段之一,你不需要达到职业水准。

一个生物学家、物理学家,甚至历史学家,手上有一些数据,想从中问出一个问题。这种情况不需要十年,有很多捷径。

关于教小孩编程,他觉得方向对,但话术该改。代码本身不重要。他不在乎你会不会 JavaScript 的语法,也不在乎你能不能在可视化语言里把积木拼起来。他在乎的是你能不能分析一个问题,想出解法,建立一个模型,跑起来,测试,看结果,判断结果是否合理,然后再提问、再回答。

练的是建模和解决问题,代码只是工具。学会了也不为了拿去写代码,为了拿它去回答自己关心的问题。

他在这里讲了一段自嘲。和年轻同事做项目,同事说有个新包能解决这个问题。诺维格开始读文档,两小时后,同事回来说搞定了:下载、安装、试了几个调用,第一个不行,第二个成了。诺维格还有一堆问题,这东西内部怎么工作的,那个参数什么意思?同事说,管它呢。我不需要理解整个东西,我的问题解决了。这个包很大很复杂,剩下的我不懂,但我拿到了正确答案。

我很难进入那种心态。我想把整个东西搞明白,如果它附了手册,我就该去读。但那不一定是对的做法。我得学着对不确定性和“不知道全部”更自在一点。(彼得·诺维格)

他自己把这条光谱的两端点了名:一端是高德纳(Donald Knuth),你要说任何关于一个问题的话,得先下到机器码和汇编;另一端是他组里二十岁的学生,几小时能解决他可能要花几周的问题,因为他会先去读手册。

从制造到组装

抽象层次一直在往上走。你不需要懂机器学习的内部原理,也能用现成的框架做出很多东西。这让“专家”的定义发生了变化。

诺维格说,我们本来就不该把焦点放在“程序员”这个身份上。技能只是手段,结果才算数。我们建起了这样一个生态,你要做成事,就得自己写代码。他刚入行的时候,库函数里有个开方就差不多了,其他全得从零造。后来生态长起来了,你想要的东西大部分都能下载到。

现在已经不是制造,更多是组装。(彼得·诺维格)

这个转变在招聘上也能看到。谷歌早期面试,问题本质上是在问:这个人离杰夫·迪恩(Jeff Dean)有多近?大多数人差得远,就录取那些差得不那么远的。结果是招进来一批高度同质的优秀程序员。

公司长大以后,这个标准就不对了,不该所有人都一样。于是开始招生物学家进健康方向,招物理学家、机械工程师,招社会科学家和人类学家,不同背景带来不同技能。

至于他本人做代码审查时看什么,答案很具体:看设计的延展性。这个 API 解决了眼下的问题,但它以后要往哪走?还有谁会来调用它?你怎么让别人更容易用?这是设计问题,也是文档问题,但根子在设计上。设计对了,文档好坏人们总能摸索出来;设计错了,文档再好也难用。

他自己作为程序员最大的变化,是不再那么在乎效率的细枝末节。90 年代写书时,他演示怎么实现一个对象系统:每个对象是个哈希表,查方法,这样就行。他特意声明,真正的 Common Lisp 对象系统复杂得多,有各种效率考量,这个只是玩具,实际没人会这么干。结果 Python 基本上就是照他说的做的,对象就是字典,加了点小技巧。

80 年代会慢上一百倍的写法,今天对几乎所有场景都够快。真正该计算的是项目完成的总时间,而这里面绝大部分是程序员的时间。稍微低效一点,但更容易理解和修改,那就是正确的取舍。

半页纸定义一门语言

Lisp 美在哪?诺维格的答案是简洁。半页纸就能把整门语言定义完,你能把它整个装进脑子里。别的语言有一两百条语法规则,你的大脑装不下。

有人会说,那不就太简单了吗,我要做的事那么多。他的回答是:不,我们只给你八条左右的语法规则,剩下的你自己定义。

这就是他说的最强大的那个想法:从我的问题和我的数据出发,造一门为这个问题和这份数据量身定做的语言,然后让 Lisp 去定义它。你同时是这门语言的使用者和设计者,代码和问题之间能贴得更紧。

为什么没普及?他给了两个原因。

一个是社会性的。Lisp 是为单个程序员或小团队设计的,前提是这个程序员品味够好,做语言设计时能做出好选择。做对了很棒,做错了会伤到自己,而且团队里其他人很难看懂。项目人数一多,就撑不住了。而整个行业恰好长过了这个规模。

另一个是括号。流传的玩笑是 Lisp 的全称是“大量烦人的愚蠢括号”(Lots of Irritating Silly Parentheses),他自己的版本是“Lisp 语法纯粹”(Lisp Is Syntactically Pure),你只需要括号和原子。

他讲了一个学生的故事。书写于 90 年代,正文用伪代码,附录配 Lisp,因为那是当时 AI 的语言。有学生抱怨看不懂伪代码和 Lisp 怎么对应。实际上两者符号一一对应,唯一区别就是括号。诺维格由此得出结论:对某些人来说,左括号超过一定数量,大脑就关机了。

于是他决定书里不能只有 Lisp。一门课只有十来周,不能花两周教括号。他需要另一门语言,当时最流行的是 Java,但 Java 太啰嗦,做不到和伪代码一一对应。于是他做了一轮调研,找最像自己伪代码的语言,答案是 Python。

不知道为什么,我设计伪代码的时候,好像隔空抄了 Guido 的作业。那时候我还没听说过 Python。(彼得·诺维格)

他的 GitHub 仓库 pytudes 就是这些谜题和练习的积累,先有 Udacity 那门用 Python 讲问题求解的课,然后一直往下写,纯粹因为好玩。

搜索是博弈,编目录没这么麻烦

2001 到 2005 年,诺维格在谷歌做搜索质量总监,公司规模每年翻倍。那段时间的挑战,本质上是定义什么叫“正确答案”,实现它,保证效率,然后持续测试。

好答案的意思是:用户敲进去几个关键词,返回结果的排序符合他们想要的程度,第一个点击的大概率就是他真正在找的。指标有一堆,有的盯第一次点击,有的盯整页,有的盯前三名。他们还会切分出某类做得不好的查询,专门去修。

早期有个认知转变很关键。一开始他们以为自己是图书馆的卡片目录:书在那儿,我们在旁边,只负责如实反映。后来意识到,每次我们改动,站长们也会跟着改,这是个博弈。你不仅要判断这一步对自己是否有利,还要判断对手的下一步会把局面带到哪里,如果结果更糟,这一步就不该走。

他们也确实改变了网络的形状。早年拉里和谢尔盖有 PageRank 论文,乔恩·克莱因伯格(Jon Kleinberg)有 hubs and authorities 模型:网上有大量“我的狗狗相关链接”这样的导航页,指向那些被链接最多的权威页面。现在没人做导航页了,谷歌把这个功能接管了。

访谈者问他当年有没有预见到互联网会变成今天这样。他说自己预测未来一向不准。80 年代做研究生时用 ARPANET,后来有人提议商业化,搞成互联网,还有位参议员戈尔觉得这主意不错。他当时的想法是:算了吧,你不可能指望商业公司搞懂这种技术,他们永远做不成。有个 .com 域名,但成不了气候。

所以我错了,戈尔是对的。(彼得·诺维格)

人类水平不是终点,甚至算不上目标

关于通用智能,诺维格的第一句话是:人类水平的智能没有单一含义,它是一堆不同的任务和能力。第二句是:它也不该是目标。

他说得很形象:我不会想要一个只能做到人类水平乘法的计算器,那是倒退。很多能力上我们该瞄准远超人类;另一些能力上,人类水平是个合适的门槛;还有一些,既然人类已经能干,就别费劲了。

他关心的是工具是否有用。有些场合,达到人类水平正好是让工具变得有用的那道坎。个人助手就是典型:你希望能像和人说话一样和它对话。而整个行业还没搞清这类产品的正确模型。现在你能问天气,能点歌,再问五六件事就到头了,谈不上任何深度的、有意义的连接。

能不能和人一样,从问天气跨到建立深层连接?他提到了电影《她》(Her)。有人问他,这片子像哪部电影?他的答案是《万世魔星》(Life of Brian),跟科幻完全沾不上边。共同点是,人渴望相信某种不一定是真的东西。

孩子会爱上自己的泰迪熊,而泰迪熊几乎没有任何交互性。那全是我们把自己的感情投射到物件上。我们就是喜欢这么干,所以我们会一直这么干。(彼得·诺维格)

他还补了一个例子:搞自动驾驶的人告诉他,很多人对自己的车投入了很深的感情。门槛真的不高,到狗的水平就够了。

那什么是好的智能测试?象棋、星际争霸,都挺酷。短对话也很重要,但很多测试太容易糊弄,聊天机器人聊着聊着,永远不进入一个必须暴露深度的地方。

至于图灵测试,他认为图灵本人如果活着,大概会说“我没那么当真”。他的解读是:图灵的重点在于“有个测试这件事本身是对的”,至于对话是不是好测试,那在其次。与其让哲学家争论 AI 是否可能,不如设一个测试,让结果来回答。这个测试不必是对话,随着技术演进不断提出更好的测试,才是正路。

真正该担心的,跟终结者没关系

关于存在性风险,他的态度很明确:不担心机器人末日和终结者场景,但担心几件具体的事。

第一是就业。我们能不能反应得足够快。今天已经能看到很多人对收入分配不满,自动化可能加速这类问题。

第二是武器化。强大的技术总可以被当武器用,机器人、无人机都是。而且很多威胁根本不需要 AI。他反问:自主无人机和 CRISPR 技术普及,哪个更糟?很难说。

访谈者问,你总体上乐观吗,技术会缓解这些威胁,还是制造新问题?他的回答很克制:不知道,未来难预测。作为社会我们活过了核弹,但只有活下来的社会才有资格做这场对话,所以这可能只是幸存者偏差。

至于接下来值得做的事,他点了几个方向。

一是对话助手,把常识推理和数据的力量结合起来。

二是编程工具。不只是让现有的框架更好用、让更多人能用,还包括把机器学习用到传统编程本身。

你去谷歌搜索,拼错一个词,它会说“您是不是要找”。能做到这一点,是因为大量其他人犯过同样的错然后改正了。我们也应该能进到代码库和 bug 修复记录里,当我敲下一行代码时,它告诉我:你是不是想写这个?你今天写这行,明天大概会去写这个修复。(彼得·诺维格)

三是让这些能力覆盖到更广的人群。这几件事听起来都不宏大,但每一件都有明确的下一步。

整场对话里,诺维格几乎没有做过任何关于未来的强断言。他反复说不知道,反复把问题从技术层面挪到制度层面:公平性冲突要靠公共讨论定取舍,注意力市场要靠改激励结构,在线教育的瓶颈在动机和社区,AI 的风险主要在就业和武器。这些答案不炫目,但每一句都指向具体可做的事。

补一句他自己的方法论。访谈者问他,作为写教材的人,是不是有一种“把整个领域装进脑子”的冲动。他的回答是承认这种冲动存在,然后承认它不一定是对的做法。这种自觉,可能比任何一个具体结论都更值得学。一个人写了二十多年领域全景教材,最后讲的是:别急着读完整本手册,先把问题答了。

  • 做涉及人的预测系统时,先明确你优化的是校准还是误差均等。这两个目标在数学上无法同时满足,把没选的那个写进文档,别假装两个都做到了。
  • 别只交一句解释,留出对话的入口。贷款、拒信、风控决策,用户真正需要的是“如果我当时是另一种情况会怎样”,事后归因解决不了这个问题。
  • 评估模型时做群体切片测试。单看一个案例看不出偏见,看全部案例才能发现模式,这是可操作的最小动作。
  • 把对抗测试当成必做项。高维空间里模型没见过的区域占绝大多数,它在那些地方照样会给出高置信度答案。
  • 教人编程时,把重点放在建模和验证上。能不能分析问题、建模型、跑起来、判断结果是否合理,比会不会语法重要得多。
  • 算总账,别只算 CPU 时间。写得更慢但更好懂、更好改的代码,在今天的硬件条件下通常是正确取舍。
  • 判断技术影响时,先问主要变量是不是 AI。很多被归到 AI 头上的变化,真正的驱动力是通信能力和数据触达。
  • 做评估时保留对“完成率”这类指标的不信任。用户可能只想看看,不想学完,把他们的真实动机当成设计前提,而不是当成失败。
文稿由本站用语音识别模型(基于官方发布音频)机器转写,可能有识别错误,人名与数字请以音频为准。
[00:00:00] The following is a conversation with Peter Norvig, he's the director of research at Google and the co-author with Stuart Russell of the book Artificial Intelligence, A Modern Approach that educated and inspired a whole generation of researchers, including myself, to get into the field of artificial intelligence. This is the Artificial Intelligence podcast. If you enjoy it, subscribe on YouTube, give it five stars and iTunes support on Patrón or simply connect with me on Twitter. Allex Friedman spelled F.R. Idi Amin. [00:00:32] And now here's my conversation with Peter Norvig. [00:00:54] Most researchers in the aid community, including myself, own all three editions red, green and blue of the artificial intelligence and modern approach. The field defining textbook book made people aware that you wrote with Stuart Russell. How is the book changed and how have you changed in relation to it? From the first edition to the second to the third and now fourth edition as you work on it? [00:01:17] Yeah, so it's been a lot of years, a lot of changes. One of the things changing from the first to maybe the second or third was just the rise of computing power. Right. So I think in the in the first edition we said here's predicate logic. But that only goes so far because pretty soon you have millions of short little pedicured expressions and they couldn't possibly fit in memory. So we're going to use first order logic that's more concise. [00:01:52] And then we quickly realized, oh, predicate logic is pretty nice because there are really Farsad solvers and other things, and look, there's only millions of expressions and that fits easily into memory or maybe even billions fit into memory now. So that was a change of the type of technology we needed just because the hardware expanded even to the second additional resource constraints from Lucene significantly second down. And that was not really to thousands. Second edition. Right. So in ninety five was a first and then two thousand twenty one or so. [00:02:27] And then moving on from there, I think we're, we're starting to see that again with the use and then more specific type of machinery like the DESPUES and you're seeing custom ASICs and so on for deep learning. So we're seeing another advance in terms of the hardware. Then I think another thing that we especially notice this time around is in all three of the first editions, we kind of said, well, we're going to find Aiyaz maximizing expected utility and you tell me your utility function. [00:03:02] And now we've got 27 chapters where the cool techniques for how to optimize that. I think in this edition, we're saying more, you know what, maybe that optimization part is the easy part and the hard part is deciding what is my utility function, what do I want? And if I'm a collection of agents or society, what do we want as a whole? [00:03:25] So you touch that topic in this edition, you get a little bit more into utility. Yeah, that's really interesting. On a technical level, we're almost pushing the philosophical I guess it is philosophical, right? So we've always had a philosophy chapter, which I was glad that we were supporting. [00:03:43] And now it's less kind of the, you know, Chinese room type argument and more of these ethical and societal type issues. So we get into the issues of fairness and bias and and just the issue of aggregating utilities. [00:04:02] So how do you encode human values into a utility function? Is there something that you can do purely through data and a learned way, or is there some systematic? Obviously, there's no good answers yet. There's just beginnings to this, to even opening the. [00:04:19] So there is no one answer. Yes, there are techniques to try to learn that. So we talk about inverse reinforcement learning. Right. So reinforcement learning, you take some actions, you get some rewards and you figure out what actions you should take, an inverse reinforcement learning. You observe somebody taking actions and you figure out well, that this must be what they were trying to do. If they did this action, it must be because they wanted. [00:04:47] Of course, there's restrictions to that, right? So lots of people take actions that are self destructive, whether they're suboptimal in certain ways. So you don't want to learn that. You want to somehow learn the the perfect actions rather than the ones they actually take. So. So that's a challenge for that field. Then another big part of it is just kind of theoretical of saying, what can we accomplish? And so you look at like this this work on the programs to predict recidivism and decide, you know, who should get parole or who should get bail or whatever, and how are you going to evaluate that? [00:05:31] And one of the big issues is fairness across protected classes, protected classes being things like sex and race and so on. And so two things you want is you want to say, well, if I get a score of, say, six out of ten, then I want that to mean the same, whether no matter what race I'm on. Yes, right. So I want to have a 60 percent chance of reoccurring regardless. And the makers of the one of the makers of a commercial program to do that. [00:06:05] That's what we're trying to optimize. And look, we achieve that. We've we've reached that kind of balance. And then on the other side, you also want to say, well, if it makes mistakes, I want that to affect both sides of the protected class equally. And it turns out they don't do that right? So they're they're twice as likely to make a mistake that would harm a black person over a white person. So that seems unfair. [00:06:33] So you'd like to say, well, I want to achieve both those goals. And then it turns out you do the analysis and it's theoretically impossible to achieve those goals. So you have to trade them all one against the other. So that analysis is really helpful to know what you can aim for and how much you can get. You can't have everything, but the analysis certainly can't tell you where should we make that trade off point. [00:06:55] But nevertheless, then we can, as humans deliberate where that trade off should be. At least we now we're arguing in an informed way. [00:07:02] We're not asking for something impossible. We're saying here's where we are and here's what we aim for. And this strategy is better than that strategy. So that's, I would argue, is a really powerful and really important first step. But it's a doable one, sort of removing undesirable degrees of bias in in systems in terms of protected classes. And there's something I listen to your commencement speech or there's some fuzzier things like you mentioned, Angry Birds, you wouldn't do want to create systems that feed the dopamine enjoyment that feed that optimize for you returning to the system, enjoying the moment of playing the game, of getting likes or whatever this kind of thing or some kind of long term improvement. [00:07:51] Right. [00:07:52] Are you even thinking about that, that that's really going to solve Galeria? [00:08:00] I think that's a really important issue to start really thinking about that. I don't think about that as a as an A.I. issue as much. But as you say, you know, the point is we've built this society in this infrastructure where we say we have a marketplace for attention and we've decided as a society that we like things that are free. And so we want all apps on our phone to be free. And that means they're all competing for your attention. [00:08:32] And then eventually they they make some money, some way through ads or in-game sales or whatever. But they can only win by defeating all the other apps, by stealing your attention and. We built a marketplace where it seems like they're working against you rather than working with you. And I'd like to find a way where we can change the playing field. So you feel more like what these things are on my side. Yes, there, let me have some fun in the short term, but they're also helping me in the long term rather than competing against me. [00:09:11] And those aren't conflicting objectives. They're just the incentives, the direct current incentives as we try to figure out this whole new world seem to be on the easier part of that, which is feeding the dopamine rush. Right. [00:09:26] But for me, take a quick step back at the beginning of the artificial intelligence, the modern approach book writing. So here you are in the 90s when you first sat down with Stuart to write the book to cover an entire field, which is one of the only books has successfully done that for. Yeah. And actually in a lot of other computer science fields, you know, it's a it's a it's a huge undertaking. So it must have been quite daunting. [00:09:57] What was that process like? Did you envision that you would be trying to cover the entire field? [00:10:03] Was there systematic approach to it that was more step by step? How how did it feel? So I guess it came about, you know, go to lunch with the other faculty at Berkeley and we'd say, you know, the field is changing. Seems like the current books are a little bit behind. Nobody's come out with a new book recently. We should do that. And everybody said, yeah, yeah, that's a great thing to do, and we never did anything right. [00:10:27] And then I ended up heading off to industry. I went to Sun Labs. So I thought, well, that's the end of my possible academic publishing career. But I get to do it again at a conference like a year later and said, you know, that book we were always talking about, you guys must be half done with it by now. Right? And he said, well, we keep talking. We never do anything. So I said, well, you know, we should do it. [00:10:52] And I think the reason is that we all felt it was a time where the field was changing. And that was in two ways. So, you know, the good old fashioned A.I. was based primarily on boolean logic, and you had a few tricks to deal with uncertainty, and it was based primarily on knowledge engineering that the way you got something done is you went out and you interviewed an expert and you wrote down by hand everything they knew. And we saw in 95 that the field was changing in in two ways, one, we're moving more towards probability rather than boolean logic, and we're moving more towards machine learning rather than knowledge engineering. [00:11:38] And the other books hadn't caught that way if they were still in the more in the in the old school, although certainly they had part of that on the way. But we said if we start now completely taking that point of view, we can have a different kind of book. And we were able to put that together. [00:11:57] And it was literally the process, if you remember. Well, did you start writing a chapter? Did you outline. Yeah, I guess I guess we did an outline and then we sort of assigned chapters to each person. At the time I had moved to Boston and Stuart was in Berkeley, so basically we did it over the Internet and, you know, that wasn't the same as doing it today and, you know, dial up lines and letting in. [00:12:29] And, you know, you you don't let it into one shell and you type cat file name and you hoped it was captured at the other end. [00:12:39] And and certainly you're not sending images and figures back and forth. [00:12:43] Right. Right. I didn't work, but, you know, did you anticipate where the field would go from that day from from the Niños? [00:12:54] Did you see the growth into learning based methods, into dangerous methods that followed in the future decades? [00:13:03] We certainly thought that learning was important. I guess we we missed it as being as important as it as it is today. We miss this idea of big data. We missed it. The idea of deep learning hadn't been invented yet. We could have taken the book from a complete machine learning point of view right from the start. We chose to do it more from a point of view. We're going to first develop the different types of representations and we're going to talk about different types of environments. [00:13:40] Is it fully observable or partially observable and is it deterministic or stochastic and so on. And we made it more complex along those axes rather than focusing on the machine learning axis first. Do you think, you know, there's some sense in which the deep learning craze is extremely successful for a particular set of problems? And, you know, eventually it's going to, in the general case, hit challenges. So in terms of the difference between perception systems and robots that have to act in the world, do you think we're going to return to a modern approach type breadth in addition five and six? [00:14:25] Yeah. And in future decades, do you think deep learning will take its place as a chapter in this bigger is in its bigger view? [00:14:34] Well, I yeah, I think we don't know yet how it's all going to play out. So in the new edition, we have a chapter on deep learning. We got Ian Goodfellow to be the guest author for that chapter. So he said he could condense his whole deep learning book into one chapter. I think he did a great job. We were also encouraged that he you know, we gave him the old neural net chapter and said, have fun with it, modernise that. [00:15:04] And he said, you know, half of that was OK. That certainly there's lots of new things that have been developed, but some of the core was still the same. I think we'll gain a better understanding of what you can do there. I think we'll need to incorporate all the things we can do with the other technologies, right. So deep learning started out with convolutional networks and very close to perception. And it's since moved to be to be able to do more with actions and some degree of longer term planning. [00:15:45] But we need to do a better job with the representation and reasoning and one shot learning and so on. And I think we don't know yet how that's going to play out. [00:15:57] Do you think looking at the some success, but certainly eventual demise, the partial demise of experts, the symbolic systems in the 80s, do you think there is kernels of wisdom in the work that was done there with logic and reasoning and so on that? Will rise again, in your view, so certainly I think the idea of representation and reasoning is crucial that, you know, sometimes you just don't have enough data about the world to learn Denovo. So you've got to have some idea of representation, whether that was programmed in or told or whatever, and then be able to take steps of reasoning. [00:16:45] I think the problem with the good old fashioned A.I. was one we tried to base everything on these symbols that were atomic. And that's great if you're like trying to define the properties of a triangle, right. Because they have necessary and sufficient conditions. But things in the real world don't. The real world is is messy and doesn't have sharp edges and dynamic symbols do. So that was a poor match. And then the other aspect was that the reasoning was universal and applied anywhere, which in some sense is good, but it also means there's no guidance as to where to apply. [00:17:31] And so, you know, you started getting these paradoxes like, well, if I have a mountain and I remove one grain of sand, then it's still a mountain. And but if I do that repeatedly, at some point, it's not right. And with logic, you know, there's nothing to stop you from applying things repeatedly, but maybe with something like deep learning and I don't really know what the right name for it is, we could separate out those ideas. [00:18:02] So, one, we could say, you know, a mountain isn't just an atomic notion. It it's some sort of something like word embedding that has a more complex representation. Yeah. And secondly, we could somehow learn, yeah, there's this rule that you can remove one grain of sand and you can do that a bunch of times, but you can't do it in near infinite amount of times. But on the other hand, when you're doing induction on the integers, sure. [00:18:32] Then it's fine to do it an infinite number of times. And if we could somehow we have to learn when these strategies are applicable rather than having the strategies be completely neutral and available everywhere. [00:18:47] Any time you use your networks, any time you learn from data, form representation from data and automate away, it's not very explainable as to or it's not introspective to us humans in terms of how this neural network sees the world where why does it succeed so brilliantly and so many in so many cases and failed so miserably in surprising ways and small. So what do you think is this is. [00:19:16] The future there can simply more data, better data, more organized data solve that problem, or is there elements of symbolic systems that need to be brought in which are a little bit more explainable? [00:19:28] Yeah, so I prefer to talk about trust and validation and verification rather than just about explain ability that I think explanations are one tool that you use towards those goals. And I think it is an important issue that we don't want to use these systems unless we trust them and we want to understand where they work and where they don't work and in an explanation can be part of that. Right. So I apply for a loan and I get denied. I want some explanation of why. [00:20:02] And you have in Europe, we have the GDP that says you're required to be able to get that. But on the other hand, the explanation alone is not enough, right? So. You know, we were used to dealing with people and with organizations and corporations and so on, and they can give you an explanation and you have no guarantee that that explanation relates to reality. All right. So the bank tell me, well, you didn't get the loan because you didn't have enough collateral. [00:20:32] And that may be true or it may be true that they just didn't like my religion or or something else. I can't tell from the explanation. And that's that's true whether the decision was made by a computer or by a person. I do want to have the explanations and I want to be able to have a conversation to go back and forth and said, well, you gave this explanation, but what about this and what would have happened if this had happened and what I need to change that. [00:21:04] So I think the conversation is a better way to think about it than just an explanation as a single output. And I think we need testing of various kinds. Right. So in order to know. Was the decision really based on my collateral or was it based on my religion or skin color or whatever? I can't tell if I'm only looking at my case, but if I look across all the cases, then I can detect a pattern. All right, so you want to have that kind of capability? [00:21:35] You want to have these adversarial testing, right. So we thought we were doing pretty good at object recognition and images. He said, look, we're at pretty close to human level performance on image and so on. And then you start seeing these adversarial images and you say, wait a minute, that part is nothing like human performance. You can mess with it really easily. You can mess with it really easily. Right. And yeah, you could do that to humans, too. [00:22:01] Right. So in a different way, perhaps humans don't know what color the dress was. Right. And so they're vulnerable to certain attacks that are different than the attacks on the machines. But the you know, the the machines are so striking, they really change the way you think about what we've done. Right. And the way I think about it is I think part of the problem is we're seduced by our low dimensional metaphors, right? Yeah. [00:22:30] So, you know, you like that phrase. You look in in a textbook and you say, OK, now we've mapped out the space. You know, Cat is here and Dog is here. And maybe there's a tiny little spot in the middle where you can't tell the difference. But mostly we've got it all covered. And if you believe that metaphor, then you say, well, we're nearly there. And, you know, there's only going to be a couple of adversarial images. [00:22:55] But I think that's the wrong metaphor. And what you really say is it's not a 2D flat space that we've got mostly covered. It's a million dimension space and cat is this string that goes out in this crazy bath. And if you step a little bit off the path in any direction, you're in nowhere land and you don't know what's going to happen. And so I think that's where we are and now we've got to deal with that. So it wasn't so much an explanation, but it was an understanding of what the models are and what they're doing. [00:23:27] And now we can start exploring. How do you fix that? Yeah, validating the robustness of the system. So on. But take you back to the this this word trust. Do you think we're a little too hard on our robots in terms of the standards we apply? [00:23:42] So, you know of there's a dance, there's there's there's a dance and non-verbal and verbal communication between humans. You know, if we apply the same kind of standard in terms of humans, you know, we trust each other pretty quickly. [00:24:00] I you know, you and I haven't met before. And there's some degree of trust, right. That nothing is going to go crazy wrong. And yet to A.I., when we look at our systems where we seem to approach skepticism, always, always. [00:24:15] And it's like they have to prove through a lot of hard work that they're even worthy of even an inkling of our trust. What do you what do you think about the how how do we break that very close that gap? [00:24:27] I think that's right. I think that's a big issue. Just listening to my friend, Mark Moffett is a naturalist and he says the most amazing thing about humans is that you can walk into a coffee shop or a busy street in a city and there's lots of people around you that you've never met before and you don't kill each other. Yeah, he says chimpanzees cannot do that. Yeah, right. Right. If a chimpanzee is in a situation where here's some that aren't from my tribe. [00:25:02] Bad things happen, especially in a coffee shop as delicious food around, you know. Yeah, yeah, but but we humans have figured that out, right. And, you know, for the most part, for the most part, we still go to war. We still do terrible things. But for the most part, we've learned to trust each other and live together. So that's going to be important for our A.I. systems as well. And also, I think in a lot of the emphasis is on A.I., but in many cases it is part of the technology but isn't really the main thing. [00:25:36] So a lot of what we've seen is more due to communications technology than A.I. technology. Yeah, you want to make these good decisions. But the reason we're able to have any kind of system at all is we've got the communications that we're collecting the data and so that we can reach lots of people around the world. I think that's a bigger change that we're dealing with. [00:26:01] Speaking of reaching a lot of people around the world and instead of education, you've got one of the many things in terms of education you've done. You taught the intro to Artificial Intelligence Course that signed up one hundred thousand hundred sixty thousand students. There's one of the first successful example of and massive of a massive open online course. [00:26:23] What did you learn from that experience? What do you think is the future of Moakes of education online? [00:26:29] Yeah, it was a great fun doing it, particularly being right at the start. Just because it was exciting and new, but it also meant that we had less competition, right. So one of the things you hear about well, the problem with Moakes is the completion rates are so low. So it must be a failure. And and I got to admit, I'm a prime contributor. I probably started 50 different courses, but I haven't finished. But I got exactly what I wanted out of them because I had never intended to finish them. [00:27:02] I just wanted to dabble in a little bit either to see the topic matter or just to see the pedagogy of how they do in this class. [00:27:11] So I guess the main thing I learned is when I came in, I thought the challenge was information, saying if I could just take the stuff I want you to know and I'm very clear and explain it, well, then my job is done and good things are going to happen. And then in doing the course, I learned, well, yeah, you got to have the information. But really, the motivation is the most important thing that if students don't stick with, it doesn't matter how good the content is. [00:27:46] And I think being one of the first classes, we were helped by sort of exterior motivation. So we tried to do a good job making it enticing and setting up ways for the community to work with each other to make it more motivated. But really, a lot of it was, hey, this is a new thing and I'm really excited to be part of a new thing. And so the students brought their own motivation. And so I think this is great because there's lots of people around the world who have never had this before, you know, would never have the opportunity to go to Stanford and take a class or go to MIT or go to one of the other schools. [00:28:27] But now we can bring that to them. And if they bring their own motivation, they can be successful in a way they couldn't before. [00:28:35] But that's really just the top tier of people that are ready to do that, the rest of the people just don't see or don't have the motivation and don't see how if they push through and we're able to do it, what advantage that would get them. So I think we got a long way to go before we're able to do that. And I think it'll be some of it is based on technology, but more of it's based on the idea of community that you got to actually get people together. [00:29:03] Some of the getting together can be done online, I think some of it really has to be done in person to be able in order to build that type of community and trust. [00:29:13] You know, there's an intentional mechanism that we've developed a short attention span, especially younger people, because sort of shorter and shorter videos online. There's a whatever the the way the brain is developing now. [00:29:30] And with people that have grown up with the Internet, they have quite a short attention span. So and I would say I had the same when I was growing up to probably for different reasons. So I probably wouldn't learn as much as I have if I wasn't forced to sit in a physical classroom, sort of bored, sometimes falling asleep, but sort of forcing myself through that process, sometimes extremely difficult computer science courses. [00:29:56] What's the difference in your view between in-person? Education experience, which you, first of all yourself had and you have taught, and online education and how do we close that gap if it's even possible? Yeah, so I think there's two issues. [00:30:13] One is whether it's in person or online. So it's sort of the physical location and then the other is kind of the affiliation. Right. So. You stuck with it in part because you were in the classroom and you saw everybody else was suffering in the same way you were, but also because you were enrolled, you had paid tuition, sort of everybody was expecting you to stick with it. [00:30:42] Society, parents. Yeah, because peers. Right. And so those are two separate things. I mean, you could certainly imagine I pay a huge amount of tuition and everybody signed up and says, yes, you're doing this, but then I'm in my room and my classmates are in different rooms. Right. We could have things set up that way. So it's not just the online versus offline. I think what's more important is the commitment that you've made. [00:31:10] And certainly it is important to have that kind of informal, you know, I meet people outside of class, we talk together because we're all in it together. I think that's really important, both in keeping your motivation and also that's where some of the most important learning goes on. So you want to have that maybe, you know, especially now we start getting into higher bandwidth and augmented reality and virtual reality. You might be able to get that without being in the same physical place. [00:31:42] Do you think it's possible we'll see a course at Stanford, for example, that for students enrolled students is only online in the near future, where literally sort of it's part of the curriculum and there is no. Yeah, so you're starting to see that. I know Georgia Tech has a master's that's done that way. Oftentimes it's sort of they're creeping in in terms of a master's program or sort of further education, considering the constraints of students and so on. [00:32:13] But I mean, literally, is it possible that we, you know, Stanford, MIT, Berkeley, all these places go online only in in the next few decades? [00:32:24] Yeah, probably not, because, you know, they've got a big commitment to a physical campus, right. This there's a momentum that both financially and culturally. Right. [00:32:35] And and then there are certain things that just hard to do virtually. Right. So, you know, we're in a field where if you have your own computer and your own paper and so on, you can do the work anywhere. But if you're in a biology lab or something, you know, you don't have all the right stuff at home. All right. So our field programming, you've also done a lot of you've done a lot of programming yourself. [00:33:07] In 2001, you wrote a great article about programming called Teach Yourself Programming in 10 Years, sort of response to all the books that say teach yourself programming 21 days. So if you were giving advice to someone getting to programming today, this is a few years since you've written that article. What's the best way to undertake that journey? I think there's lots of different ways, and I think programming means more things now. And I guess, you know, when I wrote that article, I was thinking more about. [00:33:39] Becoming a professional software engineer, and I thought that's a sort of a career long field of study, but I think there's lots of things now that people can do where programming is a part of solving what they want to solve without achieving that professional level status. Right. So I'm not going to be going and writing a million lines of code, but, you know, I'm a biologist or a physicist or something or even a historian. And I've got some data and I want to ask a question of that data. [00:34:15] And I think for that, you don't need 10 years. Right. So there are many shortcuts to being able to answer those kinds of questions. And you see today a lot of emphasis on learning to code, teaching kids how to code. I think that's great, but I wish they would change the message a little bit. Right. So I think code isn't the main thing. I don't really care if you know the syntax of JavaScript or if you can connect these blocks together in this visual language. [00:34:50] But what I do care about is that you can analyze a problem. You can think of a solution. You can carry out, you know, make a model, run that model, test the model, see the results, verify that they're reasonable, ask questions and answer them. Right. So it's more modeling and problem solving and you use coding in order to do that. But it's not just learning coding for its own sake. [00:35:20] That's really interesting. So it's actually almost in many cases, it's learning to work with data to extract something useful out of data. So when you say problem solving, you really mean taking some kind of maybe collecting some kind of data set, cleaning it up and saying something interesting about it, which is useful in all kinds of domains. [00:35:39] And, you know, and I see myself being stuck sometimes in kind of the old ways. Right. So, you know, be working on a project, maybe with a younger employee. And we say, oh, well, here's this new package that could help solve this problem and I'll go and I'll start reading the manuals. [00:36:01] And, you know, I'll be two hours into reading the manuals. And then my colleague comes back and says, I'm done. Yeah. You know, I downloaded the package. I installed it. I tried calling some things. The first one didn't work, the second one on work. Now I'm done. And I say, but I have other questions about how does this work and how does that work? And they say, who cares? Right. [00:36:20] I don't need to understand the whole thing. I answered my question. It's a big, complicated package. I don't understand the rest of it, but I got the right answer. And I'm just it's hard for me to get into that mindset. I want to understand the whole thing. And, you know, if they wrote a manual, I should probably read it. And but that's not necessarily the right way. I think I have to get used to. [00:36:43] Dealing with more be more comfortable with uncertainty and not knowing everything. Yeah, so I struggle with the same sort of the spectrum between Donald Knuth. Yeah. [00:36:54] Who's kind of the very you know, before you can say anything about a problem, he really has to get down to the machine code assembly. Yeah. Versus exactly what you said of of several students in my group that, you know, 20 years old and they can solve almost any problem within a few hours. That would take me probably weeks because I would try to, as you said, read the manual. So. [00:37:19] Do you think the nature of masteries, you're mentioning biology sort of outside disciplines, applying programming, but computer scientists, though, over time there's higher and higher levels of abstraction available now. [00:37:35] So with this week, there's the chance of the summit. [00:37:40] So if you're if you're not particularly into deep learning, but you're still a computer scientist, you can accomplish an incredible amount with tends to flow without really knowing any fundamental internals of machine learning. Do you think the nature of mastery is changing even for computer scientists like what it means to be an expert programmer? [00:38:02] Yeah, I think that's true. You know, we never really should have focused on programmers, right? Because it's still it's the skill and what we really want to focus on is the result. So we built this ecosystem where the way you can get stuff done is by programming it yourself. At least when I started, you know, library functions meant you had square root and that was about it, right? Everything else you built from scratch. And then we built up an ecosystem where a lot of times you can download a lot of stuff that does a big part of what you need. [00:38:36] And so now it's more a question of assembly rather than manufacturing. [00:38:44] And that's a different way of looking at problems from another perspective in terms of mastery and looking at programmers or people that reasonable problems in a computational way. So Google, you know, from the hiring perspective, from the perspective of hiring or building a team of programmers, how do you determine if someone is a good programmer or if somebody again. So I want to deviate. I want to move away from the word programmer, but somebody who could solve problems of large scale data and so on. [00:39:16] What's what's how do you build a team like that that the interviewing process? Yeah, and I and I think as a company grows, you get more expansive in the types of people you're looking for. Right. So I think, you know, in the early days we'd interview people. And the question we were trying to ask is, how close are they to Jeff Dean? [00:39:41] And most people, we're pretty far away, but we take the ones that were not that far away. [00:39:46] And so we got kind of a homogeneous group of people who were really great programmers. Then as a company grows, you say, well, we don't want everybody to be the same. They have the same skill set. And so now we're hiring biologists in our health areas and we're hiring physicists and we're hiring mechanical engineers. We're hiring, you know, social scientists and ethnographers and people with different backgrounds who bring different skills. [00:40:18] So you mentioned they you still may partake in code reviews, given that you have a wealth of experience, as Steve also mentioned, that, uh, what areas do you often see and tend to highlight in the code of junior developers of people coming up now, given your background from Lisp to a couple of decades of programming? [00:40:42] Yeah, that's a great question. You know, sometimes I try to look at the flexibility of the design of, yes, you know, this API solve this problem, but where is it going to go in the future? Who else is going to want to call this? And, you know, how are you making it easier for them to do that? [00:41:03] That's a matter of design. It's a documentation. Is it is it sort of an amorphous thing? You can't really put into words. It's just how it feels. If you put yourself in the shoes of a developer, would you use this kind of thing? I think it is how you feel, right. So, yeah, documentation is good, but it's but it's more a design question. If you get the design right, then people will figure it out whether the documentation is good or not and the design is wrong, then it'll be hard to use. [00:41:32] How have you yourself changed as a programmer over the years as in a way where you really started to say sort of you want to read the manual, you want to understand the core of the syntax to the how the language is supposed to be used and so on. But what's the evolution been like from the 80s, 90s to today? [00:41:57] I guess one thing is you don't have to worry about the small details of efficiency as much as you used to write. So like I remember, I did my last book in the 90s, and one of the things I wanted to do was say, here's how you do an object system and basically we're going to make it so each object is a hash table and you look up the methods and here's how it works. And then I said, of course, the real. [00:42:25] Common Lisp object system is much more complicated. It's got all these efficiency type issues and this is just a toy. Nobody would do this in real life. And it turns out Python pretty much did exactly what I said. Yeah. And said objects are just dictionaries and yeah, they have a few little tricks as well. But mostly, you know, the thing that would have been 100 times too slow in the 80s is now plenty fast for most everything. [00:42:55] So you had to, as a programmer, let go of perhaps an obsession that I remember coming up with of trying to write efficient code. [00:43:05] Yeah, that to say what really matters is the total time it takes to get the project done. And most of that's going to be the programmer time. Yeah. So if you're a little bit less efficient but it makes it easier to understand and modify, then that's the right tradeoff. So you've written quite a bit about Lisp. You've become programmings unless you have a lot of code out there. That's unless so myself and people who don't know Elizabeth should look it up. [00:43:34] It's my favorite language for many. Research is it is a favorite language, the favorite language they never use these days. So what part of the list do you find most beautiful and powerful? [00:43:45] So I think the beautiful part is the simplicity that in half a page you can define the whole language. And other languages don't have that, so you feel like you can hold everything in your head. Then, you know, a lot of people say, well, then that's too simple, you know, here's all these things I want to do and, you know, my Java or Python or whatever has 100 or 200 or 300 different syntax rules. And don't I need all those and lists? [00:44:18] The answer was no. We're only going to give you eight or so syntax rules, but we're going to allow you to define your own. And so that was a very powerful idea. And I think this idea of saying I can start with my problem and with my data and then I can build the language I want for that problem and for that data, and then I can make Lisp define that language. So you you're sort of mixing levels and saying, I'm simultaneously a programmer in a language and a language designer. [00:44:55] And that allows a better match between your problem and your eventual code. And I think Liz had done that better than other languages. [00:45:04] Yes, very elegant implementation of functional programming. But why do you think this has not had the mass adoption and success of languages like Python? Is it the parentheses? Is it all the parentheses? Yeah. [00:45:19] So I think a couple of things. So one was I think it was designed for a single programmer or a small team. And skilled programmer who had the good taste to say, well, I'm I am doing language design and I have to make good choices and we make good choices. That's great. If you make bad choices, you can hurt yourself and it can be hard for other people on the team to understand it. So I think there was a limit to the scale of the size of a project in terms of number of people that list was good for. [00:45:55] And as an industry, we kind of grew beyond that. I think it is in part the parentheses. You know, one of the jokes is the acronym for LISP is lots of irritating, silly parentheses. My acronym was Lisp is syntactically pure. Saying all you need is parentheses and atoms, but I remember, you know, we had the the textbook and because we did it in the 90s, we had we had pseudocode in the book. But then we said, well, we'll have lisp on. [00:46:29] Like, that's the language of A.I. at the time. And I remember some of the students complaining because they hadn't had lisp before and they didn't quite understand what was going on. And I remember one student complained, I don't understand how this pseudocode corresponds to this lisp. And there was a one to one correspondence between the the symbols in the code and the pseudocode. And the only thing difference was the parentheses. So I said it must be that for some people, a certain number of left parentheses shuts off their brain. [00:47:01] Yeah, it's very it's very possible in that sense in Python just goes the other way. And so so that was the point at which I said, OK, can't have only lisp. That's a language because I, you know, I don't want to you know, you only got 10 or 12 or 15 weeks or whatever it is to teach. And I don't want to waste two weeks of that teaching lisp. So I say I got to have another language. [00:47:21] Java was the most popular language at the time I started doing that. And then I said it's really hard to have a one to one correspondence between the pseudocode and the Java because Java so verbose. So then I said, I'm going to do a survey and find the language that's most like my pseudocode and turn out Python basically was my pseudocode. [00:47:42] Somehow I had channeled Guido designed a pseudocode that was the same as Python, although I hadn't heard of Python at that point. And from then on, that's what I've been using because it's been a good match. [00:47:57] So what's the story in Python behind by Études? Your GitHub repository with puzzles and exercises in Python is pretty fun. Yeah, just it seems like fun. Uh, you know, I like doing puzzles and I like being an educator. I did a class with Udacity 212, I think it was that was basically problem solving using Python and looking at different problems that's try to feed that class. In terms of the exercise, I was wondering what that. Yeah. [00:48:29] So the class the class came first. Yeah. Some of the stuff that's ineptitudes was write ups of what was in the class and then some of it was just continuing to to work on new problems. [00:48:40] So what's the organizing madness of Pi tuj. This is just a collection of cool exercise, just whatever I thought was fun. OK, awesome. So you were the director of Search Quality at Google from 2001 to 2005 and the early days when there's just a few employees and when the company was growing like crazy. Right. [00:49:03] So I mean, Google revolutionized the way we discover, share and aggregate knowledge. So just this is, uh, this is one of the fundamental aspects of civilization, is information being shared. And there's different mechanism throughout history. But Google is just 10x improve that. Right. And you're part of that. Right. People discovering that information. So what were some of the challenges and the philosophical or the technical level in those early days? It definitely was an exciting time and as you say, we were doubling in size every year. [00:49:41] And the challenges were we wanted to get the right answers right and we had to figure out what that meant, we had to implement that and we had to make it all efficient and. We had to keep on testing and seeing if we were delivering good answers and now when you say good answers, that means whatever people are typing in in terms of keywords and terms, that kind of thing, that the that the results to get are ordered by the desirability for them of those results. [00:50:13] Like they're like the first thing they click on will likely be the thing that they were actually looking for. Right. One of the metrics we had was focused on the first thing. Some of it was focused on the whole page. Some of it was focused on, you know, the top three or so. So we looked at a lot of different metrics for for how well we were doing and we broke it down into subclasses of, you know, maybe here's a type of of query that we're not doing well on and we try to fix that. [00:50:42] Early on, we started to realize that we were in an adversarial position. Right. So we started thinking what we're kind of like the card catalogue in the library. Right? The books are here and we're off to the side and we're just reflecting what's there. And then we realized every time we make a change, the webmasters make a change and it's game theoretic. And so we had to think not only is this the right move for us to make now, but also if we make this move, what's the countermove going to be? [00:51:16] Is that going to get us into a work worse place, in which case we won't make that move, will make it OK. [00:51:22] And did you find I mean, I assume with the popularity and the growth of the Internet that people were creating new content. So you're almost helping guide the creation? [00:51:30] Yeah. So that's certainly true, right. So we we we definitely changed the structure of the network. Right. So if you think back, you know, in the very early days, Larry and Sergei had the page rank paper and Jon Kleinberg had this hub's in authorities model, which says The Web is made out of these hubs, which will be my page of Google links about dogs or whatever, and people would just list links and then there'd be authorities, which were the ones the page about dogs that most people link to. [00:52:09] That doesn't happen anymore, people don't bother to say my page of Google links because we took over that function, right? So so we changed the way that worked. [00:52:20] Did you imagine back then that the Internet would be as massively vibrant as it is today? I mean, it was already growing quickly, but it's just another I don't know if you've ever seen it today. [00:52:32] If you sit back and you just look at the Internet with wonder the amount of content that's just constantly being created, constantly being shared, unemployed. [00:52:40] Yeah, it's it's always been surprising to me. I guess I'm not very good at predicting the future in the future. And I remember, you know, being a graduate student in 1980 or so and, you know, we had the ARPANET. [00:52:56] And then there was this proposal to commercialize it and have this Internet and this crazy, Senator Gore thought that might be a good idea. And I remember thinking, oh, come on, you can't you can't expect commercial company to understand this technology. They'll never be able to do it. Yeah, OK. We can have this dot com domain, but it won't go anywhere. So I was wrong. Al Gore was right. At the same time, the nature of what it means to be a commercial company has changed to. [00:53:26] So Google is at its founding is different than a you know, what companies were before, I think. Right. [00:53:33] So there's all these business models that are so different than what was possible back then. [00:53:39] So in terms of predicting the future, what do you think it takes to build a system that approaches human level intelligence? [00:53:46] You've talked about, of course, that, you know, we shouldn't be so obsessed about creating human level intelligence. We just create systems that are very useful for humans. But what do you think it takes you to approach that level? Right. So certainly I don't think human level intelligence is one thing. Right. So I think there's lots of different tasks, lots of different capabilities. I also don't think that should be the goal, right? So, you know, I wouldn't want to create a calculator that could do multiplication at human level. [00:54:20] Right. But that would be a step backwards. And so for many things, we should be aiming far beyond human level for other things. Maybe human level is a good level to aim at. And for others, we say, well, let's not bother doing this because we are we already have humans can take on those tasks. So, as you say, I like to focus on what's a useful tool and and in some cases, being a human level is an important part of crossing that threshold to make the tool useful. [00:54:51] So we see in things like these personal assistants now that you get either on your phone or on a speaker that sits on the table, you want to be able to have a conversation with those. And and I think as an industry, we haven't quite figured out what the right model is for what these things can do. And we're aiming towards what you just have a conversation with them the way you can with a person. Right. But we haven't delivered on that model yet. [00:55:19] Right. So you can ask it. What's the weather? You can ask it, play some nice songs and, you know, five or six other things. And then you run out of stuff that it can do in terms of a deep, meaningful connection. So you've mentioned the movie her as one of your favorite movies. Do you think it's possible for a human being to fall in love with an AI system assistant, as you mentioned, taking this big leap from what's the weather to, you know, having a deep connection? [00:55:48] Yeah, I think as people, that's what we love to do. And I was at a showing of her where we had a panel discussion and somebody asked me, what other movie do you think her is similar to? And my answer was Life of Brian, which which is not a science fiction movie. But both movies are about wanting to believe in something that's not necessarily real. [00:56:17] Yeah. By the way, for people that I know, it's Monty Python. Yeah. Yeah, it's been brilliantly put. Right. So. [00:56:22] So, I mean, I think that's just the way we are. We want to trust. We want to believe. We want to fall in love. And it doesn't necessarily take that much. Right. So, you know, my kids fell in love with their teddy bear and the teddy bear was not very interactive. Right. So that's all us pushing our feelings onto our devices and our things. And I think that that's what we like to do. [00:56:48] So we'll continue to do that. [00:56:50] So, yeah, as human beings will long for that connection. And just I have to do a little bit of work to to catch up in the other end. Yeah. And certainly, you know, if you can get to dog level, a lot of people have invested a lot of love in their pets, in their pets. Some some people, as I've been told in working with autonomous vehicles, have invested a lot of love into their inanimate cars. [00:57:14] So it really doesn't take much. [00:57:17] So what is a good test? To linger on a topic that may be silly or a little bit philosophical, what is a good test of intelligence, in your view? Is national conversation like in the Turing test, a good a good test? Put another way, what would impress you if you saw a computer do it these days? [00:57:39] Oh, I mean, I get past all of that. Right. Really impressive. You know, go playing Starcraft playing. Those are all pretty cool. You know, and I think short conversation is important, I think, you know, we sometimes have these tests where it's easy to fool the system, where you can have a chat bot that can have a conversation, but you never it never gets into a situation where it has to be deep enough that it really reveals itself as being intelligent or not. [00:58:17] I think, you know, Turing suggested that. But I think if he were alive, he'd say, you know, I didn't really mean that seriously. Right. And I think, you know, this is just my opinion. But I think Turing's point was not that this test of conversation is a good test. I think his point was having a test is the right thing. So rather than having the philosophers say, oh, no, A.I. is impossible, you should say, well, we'll just have a test. [00:58:48] And then the result of that will tell us the answer. And it doesn't necessarily have to be a conversation test. That's right. [00:58:54] And coming up, a new better test as the technology evolves is probably the right way. [00:58:58] Do you worry, as a lot of the general public does about not a lot, but some vocal part of the general public about the existential threat of artificial intelligence? So looking farther into the future, as you said, most of us are now able to predict much so when shrouded in such mystery, there's a concern of, well, you think it's starting about worst case? Is that something that occupies your mind space? Much so. [00:59:26] I certainly think about threats. I think about dangers. And I think any new technology has positives and negatives. And if it's a powerful technology, it can be used for bad as well as for good. So I'm certainly not worried about the robot apocalypse and the Terminator type scenarios. I am worried about. Change in employment and are we going to be able to react fast enough to deal with that? I think we're you know, we're already seeing it today where a lot of people are disgruntled about the way income inequality is working and and automation could help accelerate those kinds of problems. [01:00:12] I see powerful technologies can always be used as weapons, whether they're robots or drones or whatever. Some of that we're seeing and do a lot of it. You don't need a guy. And I don't know what's what's a worse threat if it's a autonomous drone or it's CRISPR technology becoming available or we have lots of threats to face and some of them involved and some of them don't. [01:00:41] So the threats that technology presents are you, for the most part, optimistic about technology, also alleviating those threats or creating new opportunities or protecting us from the more detrimental effects of these? [01:00:55] I don't know it again, it's hard to predict the future. And yes, as a society so far, we've survived nuclear bombs and other things. Of course, only societies that have survived are having this conversation. So maybe that's survivorship bias. Yeah. What problem stands out to you as exciting, challenging, impactful to work on in the near future for yourself, for the community and broadly? So, you know, we talked about these assistants in conversation. [01:01:29] I think that's a great area. I think combining. Common sense reasoning with the power of data is a great area. In which application and in conversation was just broadly, just in general, yeah, as a programmer, I'm interested in programming tools, both in terms of, you know, the current systems we have today with denser flow and so on. Can we make them much easier to use for a broader class of people? And also, can we apply machine learning to the more traditional type of programming? [01:02:09] So, you know, when you go to Google and you type in a query and you spell something wrong, it says, did you mean? And the reason we're able to do that is because lots of other people made a similar error and then they corrected it. We should be able to go into our code bases and our bug fix bases. And when I type a line of code, it should be able to say, did you mean such and such? [01:02:31] If you type this today, you're probably going to type in this bug fix tomorrow. Yeah, that's a really exciting application of almost an assistant for the coding programming experience at every level. [01:02:46] So I think I can safely speak for the entire A.I. community. [01:02:52] First of all, thank you for the amazing work you've done, certainly for the amazing work you've done with AI, a modern approach book. And I think we are all looking forward very much for the fourth edition and then the fifth edition and so on. So, Peter, thank you so much for talking today. Yeah, thank you. Pleasure.

本集资源与出处