特别节目·中文精读

迈克尔·卡恩斯:机器学习中的算法公平、偏见、隐私与伦理

Michael Kearns: Algorithmic Fairness, Bias, Privacy, and Ethics in Machine Learning

讨论算法歧视与数据隐私的成因,以及如何用技术与社会手段约束机器学习带来的伦理问题。

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

2019 年,宾夕法尼亚大学教授迈克尔·卡恩斯(Michael Kearns)和合著者亚伦·罗斯(Aaron Roth)出了一本书,叫《伦理算法》(The Ethical Algorithm)。书里摆着一个已经被证明的结论:三条各自看起来都站得住脚的公平要求,数学上不可能同时满足。

它比“机器人会不会接管世界”现实得多,就横在每一个想给贷款模型、量刑模型、招聘模型加上公平约束的工程师面前。

卡恩斯本人的路径也挺有意思。他本科进校时是英语专业,后来转去学数学和计算机,在哈佛跟莱斯·瓦利安特(Les Valiant)读博士,做机器学习理论、博弈论、算法交易,还和费城联储合办过研讨会。他有一个叔叔是道德哲学家,这件事在谈话里反复出现,因为它划定了卡恩斯对“算法能解决什么”的判断边界。

一个哲学家用“视情况而定”回答了所有问题

卡恩斯刚进入公平这个课题时,给那位当哲学家的叔叔写过一封邮件。他说,我们这里有一个具体的算法公平定义,我们认为它算是罗尔斯式公平的某种变体,您觉得怎么样。他以为自己在问一个是非题。

我收到的是哲学家最经典的那种回复:视情况而定。你看,如果你从这个前提出发,会得出这个结论;把那个假设换掉,结论就变了。(迈克尔·卡恩斯)

就是这一刻,他意识到两边存在一道真实的裂缝。哲学家从人道主义视角讨论公平,讨论了两千多年,从柏拉图问“什么是正义”开始;计算机科学家要做的是把这个东西写成能运行的约束。前者可以永远悬置判断,后者必须在某个具体时刻给出是或否。

他也没有把算法的作用说得太大。书里有个比喻,说大家其实是在路灯下面找钥匙。

如果警察在决定拦谁、盘查谁的时候就是种族主义的,这个判断会进入数据。下游再聪明的算法方法,也没法把这件事撤回来。(迈克尔·卡恩斯)

算法能处理的是那些明显的坏情况。一个完全不考虑公平的模型,往往不公平得离谱;一个完全不考虑隐私的系统,往往把隐私侵犯得很彻底。把这几类大问题修掉,收益很实在。再往里走,走进灰色地带,讨论就变成了“对谁公平、让谁承担代价”,那就回到了哲学家和立法者的地盘。

他给出的对比很能说明问题:隐私这个领域,社区基本已经收敛到一个定义,就是差分隐私(differential privacy)。公平不一样。公平的文献里已经有定理摆在那里,告诉你三个各自都合理的公平概念无法同时成立。所以卡恩斯说,公平还处在非常早期的阶段,而且注定比隐私更难。

97% 伦理的算法长什么样

访谈里 Lex 提了一个很朴素的问题:计算机科学家说一个排序算法的复杂度是 O(n log n),说一个分类器的准确率是 97%,那么有一天能不能说“这个算法有 97% 伦理”。

卡恩斯的回答是,在特定前提下可以。

书里从排序讲起,一堆写着数字的卡片,你从头扫一遍挑出最小的放最前面,再扫一遍挑出第二小的。这算一个算法,而且是个坏算法,它的复杂度是平方级的,而排序的最优解是 n log n。这个例子想说明的是:哪怕在一个定义得极其精确的问题上,也存在许多种不同的算法,各有各的取舍,有的跑得快,有的省内存,有的更适合分布式。计算机科学早就习惯了用这种方式比较不同方案的优劣。

伦理算法要做的,是把伦理问题里能被放上这种定量台面的那部分拿过来。

你可以说,对这个放贷模型,黑人和白人的错误拒绝率差距在 3% 以内。那我们也许可以把它叫作一个 97% 伦理的算法。而一个 100% 伦理的算法,意味着这个差距是 0。(迈克尔·卡恩斯)

注意这里的前置条件。公平的定义一旦确定,数学就能接手。确定定义这一步,机器帮不上忙。使用者必须先回答两个问题:你要保护谁,什么算伤害。

放贷的例子能把这层难度暴露得很清楚。你可能会认为,把一个有还款能力的人错误拒贷,也就是假阴性,是真正的伤害。而那些还不上钱却拿到了贷款的人,算是走运,不算受害。反过来想,一个人如果没有能力还款却被塞了一笔贷款,这本身是不是也是一种伤害。这个问题没有技术答案。

还有更麻烦的一层。目前主流的所有群体公平定义,对被误判者的补偿都是一种很奇怪的东西。

这些定义基本上是在说:你的补偿,就是知道我们也在以同样的比例,错误地拒绝了其他群体里的人。(迈克尔·卡恩斯)

一个具体的人被错误拒贷,他感受到的是自己的损失,不是统计上的均等。群体层面的公平和个体感受到的公平,中间隔着一道鸿沟。卡恩斯说,这个张力目前在技术层面都还没有很好的答案。

公平的杰利蝾螈

从群体到个体,可以用一个很干净的方式理解:一个具体的人是所有属性的组合。

他属于某个种族,有性别,有年龄,还有一大堆非生理的、但同样强烈影响人生轨迹的属性。所以,如果你要求模型在种族这个维度上公平、在性别这个维度上公平、在年龄这个维度上公平,每一种都单独满足,你并不能因此期待这个模型对一个 55 岁以上、年收入低于 5 万美元、有残疾的西班牙裔女性也是公平的。

卡恩斯给这个现象起了个名字,叫公平的杰利蝾螈(fairness gerrymandering)。和政治上的选区划分一样,你在总量上给出了保证,把镜头拉近,你会发现这个总量保证是靠偏袒一部分组合、牺牲另一部分组合换来的。

换个角度说,追求个体公平,等于同时要求所有可能的群体组合都公平。每个人都可以被看成一个大小为 1 的群体,因为总能找到某个属性把这个人和其他所有人分开。这样一来,粗糙的群体公平和极端的个体公平,其实落在同一根坐标轴的两端。研究者现在能在这根轴靠群体的一端给出可靠的保证,靠个体的一端还不行,能做的是尽量往中间挪,处理越来越精细的子群体。

这里还有一个躲不开的问题:要不要给人权。比如性别算 0.6 的权重、种族算 0.4。技术上当然可以把权重塞进目标函数。但卡恩斯指出,公平这个题目特殊就特殊在,你一开口讨论它,就自动卷进了那些永远没有结论的争论里:为什么要保护这个群体,是补偿历史,还是创造机会,还是别的什么。

他举的例子很尖锐。哪怕是刑事司法这种场景,大家讨论量刑公平、讨论预测被告人会不会按时出庭、讨论假释决定,定义的都是对犯罪者的公平。受害者的公平在哪里。当你写下一个约束说“黑人和白人的错误监禁率要大致相当”,这句话里完全没有提到潜在的受害者。这就是公平和隐私最大的区别:隐私是大家都想要更多的东西,公平则必然要面对“对谁公平、由谁买单”。

差分隐私:你的记录在不在都一样

隐私这一边,卡恩斯的语气明显更笃定。他说这个社区已经找到了那个定义。

差分隐私的核心是一个反事实问题。假设有一份病历数据库,其中一份是你的。研究者想用它训练一个疾病预测模型。差分隐私要求你比较两个世界:一个世界里,研究者用了包含你病历的完整数据库;另一个世界里,用的是同一份数据库,只把你的那一条记录拿掉,剩下 N 减 1 条完全一样。

这两个世界产生的结果,应该几乎无法区分。

它并没有承诺数据分析不会伤害你。它说的是,那些伤害在你没有参与的情况下也照样会发生。(迈克尔·卡恩斯)

书里那个吸烟与肺癌的例子值得慢慢看。上世纪五十年代那项确立吸烟与肺癌关联的研究,如果你的数据在里面,而当时社会上对吸烟还没有污名,研究发表之后,保险公司对你的后验判断就会改变,你的保费可能上涨,你遭受了实打实的经济损失。

但同样的分析只少了你这一条记录,结论一模一样。吸烟与肺癌的关联是关于世界的一个事实,任何足够大的病历数据库都能发现它。你的数据在这件事上并不独特。

实现机制是加噪声。每一个有用的差分隐私算法都是概率算法,同样的输入跑两次,输出会不一样。最常见的做法是先把要公布的那个数值算到精确,再往上面加一个零均值的高斯噪声或者指数噪声。输出偏离了真实均值,但离得不远,同时没人能从这个输出反推任何一个具体输入。

卡恩斯提到他第一次看到这个定义时的反应,是觉得它很聪明,但也担心它太严格,严格到根本没什么能算。后来这个领域最大的成功恰恰证明了相反的事:几乎所有我们熟悉的计算,都能改造成差分隐私的版本。反向传播和神经网络、决策树、支持向量机、提升方法、经典的假设检验,原本都不是差分隐私的,但每一个都有加噪声的改造版本。

这句话的分量在于,它意味着数据科学时代的好处和个体的隐私保证可以同时存在。我们今天这套依赖统计建模和机器学习的科研体系,不必推倒重来。

匿名化是个幻觉

要被差分隐私取代的,是那套用得最广的做法:匿名化。删掉姓名那一列,把年龄粗化成十岁一档,邮编只留前三位,去掉所谓的个人身份信息(PII)。

卡恩斯说这类做法的根本缺陷在于,它们假装这份数据集是世界上唯一存在、将来也唯一会存在的数据集。

Netflix Prize 是最早的一个教训。Netflix 公开了一批用户评分数据,姓名抹掉了,但保留了你给哪些电影打了什么分、什么时候打的。结果研究者把这些数据和 IMDb 上的公开评分一对照,就能重新识别出具体的人。有人因此起诉了 Netflix。

我们在这十年里都逐渐意识到一件事:只要知道你身上几件看起来无关紧要的小事,往往就足以构成一枚指纹。(迈克尔·卡恩斯)

你给十部电影打的分,加上打分的日期,在几千万 Netflix 用户里就几乎唯一地指向你。

Facebook 点赞那个研究更让人不舒服。只用你点过赞的内容,不用任何人口统计信息,不用你的好友关系,就足以在群体层面相当准确地预测性取向、药物和酒精使用、父母是否离异。这些信息你从来没打算公开,甚至你自己都未必意识到它们在泄露什么。

卡恩斯还提到一项新近的研究,说大约十几个属性就足以唯一识别出相当高比例的人口。这个数字是不是精确到 18 并不重要,重要的是量级:识别一个人需要的特征数远远少于直觉。

噪声救不了所有场景

Lex 提了个略带玩笑的想法:如果到处放机器人说“卡恩斯喜欢花椰菜”,是不是就能掩护他真正喜欢意大利面的偏好。

这个思路在现实里有人做过。纽约大学的 Helen Nissenbaum 团队做过一个浏览器插件,你往 Google 里输入一个查询,插件在后台同时向搜索引擎发送大量无关查询。一千次查询里只有一次是你真的想搜的,另外九百九十九次都是噪音。

这是隐私靠混淆(obfuscation)的路子。卡恩斯说它有意思,但它给不了差分隐私的保证。

更重要的是,混淆并不能覆盖所有场景。

我往 Google 里输入山地自行车,我要的就是山地自行车的结果,我确实希望 Google 知道我在搜山地自行车,这种时候我不想要噪声。(迈克尔·卡恩斯)

有些数据的价值恰恰在于它精确地属于你。医疗服务、个性化推荐、地图导航,都是这一类。真正的挑战是设计出一种适配这种场景的隐私概念,能让服务精确地使用你的数据,同时你还保留某种保证。这个技术问题至今没有解。

聊到更宏观的走向,卡恩斯的态度是乐观的。他认为社会最终会走到一个比现在更好的妥协状态:隐私保证比今天更多、更强,个体对数据的控制也更多。但他强调,光有算法方案不够,还必须有监管和法律程序去推动公司采用这些方案。

他还提到一个正在萌芽的想法:给数据定价。如果要训练一个罕见病的预测模型,负样本很容易找,正样本极其稀缺。那么患病者的数据在这个应用上就比普通人值钱得多,也许应该得到更多补偿。顺着这个思路往下,今天互联网的经济模型是双边的,一边是内容方,一边是广告主,谷歌和 Facebook 在中间撮合,用户不在场。三方市场,让代理来代表用户的利益,技术上不难想,经济后果会很剧烈。

我们是产品,不是客户。客户是广告主。这件事如果真的做成,会颠覆掉支撑互联网至今的整个经济模型。(迈克尔·卡恩斯)

导航 App 正在把我们推向同一个均衡

博弈论给了卡恩斯另一个观察世界的镜头。他给的定义很平实:一套用来推理多个互动个体所产生集体结果的数学框架。

最少两个人就能开始。囚徒困境是最著名的例子,每个人都为自己打算,最后得到的集体结果比合作能达成的结果更糟。而合作在囚徒困境里不是均衡。

他最喜欢的博弈论结论是纳什的工作:在非常一般的条件下,竞争均衡一定存在。这个存在性定理的意义在于,如果连均衡都没有,你根本没法推理接下来会发生什么,因为没有稳定状态可谈。当然,存在性不保证现实里的迭代行为会走到那里去。

算法博弈论这二十年里最重要的技术贡献,可能是发现了机器学习和博弈论之间的紧密联系,具体说是和无遗憾学习(no-regret learning)的联系。一群各自追求自身利益的玩家反复互动,每个人用无遗憾算法更新策略,整个过程会收敛到均衡,所需步数还相当少。

这套理论落到日常,最干净的案例是导航 App。

你打开 Google Maps 或 Waze,输入起点终点,它给你的路线,本质上是在针对其他所有人此刻的行为,为你计算一个自私的最优反应。这些 App 正在把我们所有人推向这个博弈的纳什均衡。(迈克尔·卡恩斯)

听起来挺好。问题是,理论和有限的真实交通数据都显示,所有人都处在竞争均衡的时候,集体的通行时间可能显著高于其他方案。每个人都做出了对自己最优的选择,加总起来是一场集体亏损。

社交媒体是同一套逻辑。平台用机器学习预测你会喜欢什么,为你优化,把你推向某种均衡。博弈论最重要的教训之一就是:处在均衡,不意味着不存在让一些人、甚至所有人同时过得更好的方案。

卡恩斯在这里的表述很克制。均衡本身既不善也不恶。但他补充说,社交平台不孤立运作,它们是社会系统,用户的行为本身在驱动系统的技术演化。极化、回音室、对异见的容忍度下降,是我们所有人一起走到的那个均衡。

从 500 毫秒到 20 年

聊到金融,卡恩斯给出一条清晰的分层。算法接手的第一批工作,是那些计算机明显比人强的事。金融交易所电子化之后,算法通过 API 下单和人在屏幕前敲键盘已经没有区别,这时候算法交易才有可能。

最先被吃掉的是执行问题。一家券商替大型机构客户买苹果,量太大,如果不聪明地在时间上拆单、在不同电子交易所之间分散,价格就会被自己推上去,伤害执行成本。这是纯粹的优化和控制问题,机器肯定比人做得好。

高频交易紧挨着这一层,盯着交易所之间、或者同一资产内部的瞬时错价,赚取微小的价差。

再往上一层是统计套利。预测资产价格的方向性变动,这个预测的有效期从几秒到几天。这是目前量化交易的甜点区,而且已经持续了相当一段时间。

再往上,是巴菲特那个时间尺度。卡恩斯说他对巴菲特的漫画式想象是:坐在那里思考苹果的长期价值应该是多少,不看今天苹果的股价,判断出它离那个价值还很远,然后买入或者做空,接着坐上十年二十年。

到了那个时间尺度,你要扛过衰退,扛过经济周期,中间可能爆发战争。你的数据来源跨度极大,靠从交易所数据里优化,根本不够。(迈克尔·卡恩斯)

高频交易的模型只需要保证未来 500 毫秒内不出大事。长期投资者需要对政治格局、经济周期、社会情绪有判断。卡恩斯一年多以前和费城联储合办过一场关于机器学习用于宏观经济预测的研讨会,他的结论是这条路还很长。所以如果问华尔街哪些岗位暂时安全,他的答案是那些坐在长时间尺度上、并且有承受长期风险的胃口的人。

帕累托曲线该由谁来看

回到公平的技术台面。如果你选定了公平定义,比如担心性别歧视,也选定了伤害的定义,比如错误拒贷,那么第一件能做的事是审计:从数据出发,直接算出女性被错误拒贷的比例比男性高多少。

再往下,就能画出那条曲线。横轴是误差,纵轴是不公平度,模型的公平约束强度是一个旋钮。理想点是原点,零误差、零不公平,但任何做过机器学习的人都知道,不施加任何公平约束也到不了零误差。所以现实里得到的是一条凸曲线,它精确地告诉你,从 17% 误差降到 16% 误差,要多付出多少不公平度。曲线之外的点,在其中一个维度或两个维度上都能被严格改进,所以它们是没有意义的选项。真正需要决定的,是沿着这条前沿停在哪里。

卡恩斯认为这条曲线本身就该是研究者与决策者之间的界面。设想一个刑事司法辖区,既担心种族公平,又担心准确性:既不想放走会再犯暴力罪行的人,也不想关着不会再犯的人。这两件事会打架。你可以把这条曲线摆到他们面前,让他们看,如果要把两个种族群体的假阳性率差距压到某个水平,释放决策的整体准确率要付出多少。

这不该由计算机科学家替社会决定。做决定的是政策制定者、监管者,是那些真正身处这个领域的人。但我希望他们能理解,这种取舍一般总是存在的,而且你必须选一个点。你不去选,其实也已经选了,只是你不知道,也不肯承认。(迈克尔·卡恩斯)

成本不会消失,只会换个地方出现

偏见怎么进入算法,人脸识别是个干净的例子。训练集主要是白人男性,模型目标是最大化整体准确率,那么模型降低误差最省力的路径就是把占多数的白人男性认对,代价是其他群体的准确率更差。这无关算法的恶意,它就是目标函数在数据分布上的自然结果。

常见的反驳是:这个取舍是假的,你可以去收集更多少数群体的数据,或者给每个子群体单独训一个模型。

卡恩斯的回应是,这些做法也有成本,只是成本从准确率挪到了别处。收集稀有群体的数据要花钱,训练、部署、维护多个模型也要花钱。哪怕你在技术上消解了误差与公平之间的张力,成本也会转移到研发时间和预算上。这一点在讨论里经常被跳过,因为谈钱不如谈原则舒服。

他还专门澄清了书名的误解。有人看到《伦理算法》这几个字,第一反应是这本书在主张让算法自己去决定社会规范,自己去发展一套公平和隐私的观念。

我们绝对没有这个意思。尤其是在大家担心机器人变成主宰的年代,机器人顺带发展出自己的社会规范,离那一步只差一格。(迈克尔·卡恩斯)

书里的立场是:如果社会或者某个领域里的相关方能够就这些事达成一致,很多情况下存在把它们编码进算法的办法。达成一致这件事,算法帮不上忙。

“每个人都该学计算机”这句话,他不同意

访谈里有一段真实的分歧,值得单独拎出来。

Lex 的观点是,计算机科学正在变成一种基础能力,学哲学的人应该去学编程,这样才能抓到数据、分析人们在 Twitter 上想什么,然后得出关于人生意义的结论。二十、三十年后,计算机科学家会回到高德纳(Donald Knuth)那种纯理论的位置,而所有其他领域的人都在做今天属于计算机科学的事。

卡恩斯不完全反对这个趋势,但他把责任的方向调转了。

计算机科学对社会的影响在过去十到二十年里是指数级放大的。以前我们自己在小圈子里折腾,影响没那么大,计算机科学家不需要做世界公民。那个时代需要非常快地结束。我不是说每个人都要做,但正确的方式,是计算机科学家更多地走进世界,而不是指望全世界都变成计算机科学家。(迈克尔·卡恩斯)

他顺带提了一个更大胆的猜想:五十年后可能不再有计算机系,因为这门学科会像电一样弥漫在所有领域里,那时候“计算机系”听起来会像“电力系”一样奇怪。当然高德纳式的理论内核会一直存在,但一个学科因为过于成功而被边缘化,这个路径并不荒谬。

这场分歧背后还有一个共识:这本书能在 2019 年写出来,本身就说明时代变了。十年前他不会动这个念头,因为公众对算法和机器学习的认知度太低,你得先写一本给普通人解释这些东西的书,才轮得到谈伦理。现在很多人完全没有技术训练,但对算法已经知道得足够多,可以直接进入这些细微的地方。

没有人问过普通人怎么想

访谈里有一段是卡恩斯主动提到的,很关键,因为它指出了整个领域的一个盲点。

目前算法公平文献里的定义,全部是“接收下来的智慧”。某个像他这样的研究者坐在那里想:我认为这里有一个公平的技术定义,人们应该会想要它。也许它不是唯一的,不是最好的,也不是最终的。

但我们其实不知道,从主观的角度看,普通人真正认为什么算公平。就我所知,几乎没有大规模的文献去把普通人关于公平的直觉系统地收集起来。(迈克尔·卡恩斯)

他的团队刚开始做一点这方面的工作,用人类受试者实验的方式。给被试看刑事累犯预测场景里的一对个体,问他们:从公平的角度看,这两个人应该被同样对待吗。

他顺手把这个盲点推到了另一个热门话题上。所有人都在说深度学习不可解释,稀疏的整数系数线性模型更可解释。但几乎没有人真的把模型摆到普通人面前,问他们:你看得懂这个模型在干什么吗。

这里有个反差。计算机科学在解释世界这件事上一向自信,甚至有点帝国主义:物理学家在上一代是这个样子,计算机科学家则不认为有任何科学题目是自己不能碰的,会大摇大摆走进别人耕耘了几十年的地盘。

我们通常会在最初那段时间里把自己搞得很尴尬。强化学习就是好例子,控制理论家看着我们说,你们在重新发明我们四十年代就知道的东西,我完全同情他们。但最终计算机科学家在这个领域做出了实质贡献,尽管头十年确实尴尬。所以要去做心理学和人类受试者研究,就该预期先尴尬十年,然后希望结局能像其他几个领域一样好。(迈克尔·卡恩斯)

如果把 Facebook 交给他六个月

Lex 问他,扎克伯格打电话来说要休假,请你代管 Facebook 半年,你会怎么做。

他的第一反应是谢谢不用。理由很干脆:要植入他设想的那些有限改动,并不需要坐上 CEO 的位置。

他给出的具体方案是滑块。既然这些平台已经用机器学习把你和每一块内容放进了同一个度量空间,它们就同时知道什么会让你最开心,也知道什么会让你最不舒服,两者用的是同一个模型。

那就给愿意用的人一个滑块,说清楚:有多少内容你希望是离你的兴趣远一点的、你可能不同意的。这几乎就是一个探索按钮。(迈克尔·卡恩斯)

他没有把话说得太满。优化参与度把行业带到了今天这一步,改做别的事情,短期内在收入和利润上确实会有代价。他也承认,如果自己在这些公司工作,优化参与度大概也会显得是世界上最自然的选择,因为让用户沉浸在平台里、觉得有用有趣,本身也是为用户好。

但“这事不归我们管”这个说法,在他这里站不住。这些公司由机器学习驱动,参与度优化也是机器学习驱动的,加上极大规模的 A/B 实验,调一点界面、调一点点击率模型的特征。既然你知道怎么优化一个目标,这个解几乎定义上也告诉你怎么不优化它。

真正的困难在于目标的可测量性。参与度可以测。减少对立、或者提升一个人一生的智识成长,很难测。他承认这一点,但还是认为值得试。

我们有点像处在一个坏的均衡里。这些系统在帮我们每个人短视地、自私地优化自己。任何一个人凭什么要在一个此刻看到令我反感的内容的信息流里待着。但也许正因为所有人都让平台短视地为自己优化,我们作为一个社会抵达了一个大家都不满意的集体结果。(迈克尔·卡恩斯)

他还替这些公司说了句公道话。Facebook 和它的前身 Friendster 刚出来的时候,很多人觉得莫名其妙,问这玩意有什么用、谁会想玩。十年前没人预见到这类平台会影响选举结果、会极化政治讨论。现在这些公司受到的审视完全正当,但回头指责他们当初就该预见到,有点过于苛刻。这些结果是我们所有人一起学到的,公司也在其中。

波士顿公园的那个下午

访谈最后,Lex 问有没有哪一天让他真正快乐、被深刻改变。

卡恩斯换了个问法来回答,讲了他人生里的一个分水岭。

他从本科直接读博,这在学术家庭里不算特别,他父亲是教授,叔叔是教授,两个祖父都是教授,专业遍布各处,其中就有哲学。他在哈佛跟莱斯·瓦利安特,那段经历很好。但第一年他过得很不开心。

原因说起来有点朴素。伯克利是个巨大的学校,他本科虽然学了不少数学和计算机,但也修历史、修艺术史,从英语专业起步,朋友干什么的都有。哈佛小得多,当时的计算机系比现在更小,他忽然发现自己从一个很大的世界掉进了一个高度专业化的世界,所有课都是计算机课,身边的人全是学数学和计算机的。

那一年他反复想,要不要读下去。他盘算过拿个硕士就撤,回湾区,那个年代在当时的几家大科技公司找份收入不错的工作并不难。

然后是一个晚春的日子,他坐在波士顿公园里,认真想自己到底要干什么。

我意识到,你现在确实过得不怎么样,确实感觉路越走越窄。但你到这里来是为了做研究,是为了做出原创的东西,是为了给自己挣出一条能自己决定想什么、有很大独立性的职业道路。而那时候我根本还没有真正做过研究,试过一些题目,没什么成功。但我知道,我还没有真正去试那件我明明是为了它才来的事。(迈克尔·卡恩斯)

他决定撑过那个夏天。一年之后,他开始做出研究了,做得顺利,也有意思,事情彻底变了。他把这个转变描述成每个博士生某个时刻都要经历的那道坎:从一个学习前人做过什么的学生,变成做自己东西的研究者,并且摸清自己的强项和弱项在哪里。

Lex 补了一句:也是接受这段旅程本身的痛苦。卡恩斯说,对,就是这样。那个下午他对自己说的是,我要撑下去,我要在这儿多待一阵。

可以直接用起来的几件事

这期访谈信息密度很高,但落到行动上,有几条是可以马上做的。

  • 如果你在做任何涉及人的预测模型,先做一次审计,别急着优化。把假阳性率、假阴性率按你能想到的每一个敏感属性分组算一遍,再按两两组合、三三组合算一遍。卡恩斯说的公平杰利蝾螈,几乎一定会在某个你没看过的交叉子群体里出现。
  • 在项目文档里画一条帕累托曲线,横轴误差,纵轴不公平度,把公平约束强度作为参数扫一遍。这张图比任何一段文字论述都更适合拿给非技术的决策者看,因为它把“选哪个点”这个责任清晰地交回给了应该负责的人。
  • 检查你对匿名化的依赖。删掉姓名列、粗化年龄、截断邮编,这些操作在数据集可以被联结的世界里提供不了任何保证。如果隐私是硬需求,去查差分隐私的现成实现,主流机器学习算法基本都有对应版本。
  • 不要替用户决定他们想要什么样的信息流。如果你的系统有能力计算用户喜欢什么,它同时就有能力计算用户不喜欢什么,把它做成一个用户可见的开关,成本远低于你想象。
  • 如果你是研究者,去做一点行为学实验。把模型、把公平场景摆到普通人面前,问他们怎么想。这个领域最缺的不是新定义,是普通人直觉的经验数据。
  • 如果你是计算机背景出身,把一部分精力花在走出圈子这件事上。这个学科对社会的影响力已经大到不允许从业者只做技术公民,而这个责任主要在这一边,不在指望所有人来学编程的那一边。
文稿来自公开 Kaggle 数据集(rajneesh231/lex-fridman-podcast-transcript),为早期自动转录存档,可能存在识别错误。
The following is a conversation with Michael Kearns. He's a professor at the University of Pennsylvania and a coauthor of the new book, Ethical Algorithm, that is the focus of much of this conversation. It includes algorithmic fairness, bias, privacy, and ethics in general. But that is just one of many fields that Michael is a world class researcher in, some of which we touch on quickly, including learning theory or the theoretical foundation of machine learning, game theory, quantitative finance, computational social science, and much more. But on a personal note, when I was an undergrad, early on, I worked with Michael on an algorithmic trading project and competition that he led. That's when I first fell in love with algorithmic game theory. While most of my research life has been in machine learning and human robot interaction, the systematic way that game theory reveals the beautiful structure in our competitive and cooperating world of humans has been a continued inspiration to me. So for that and other things, I'm deeply thankful to Michael and really enjoyed having this conversation again in person after so many years. This is the Artificial Intelligence Podcast. If you enjoy it, subscribe on YouTube, give it five stars on Apple Podcast, support on Patreon, or simply connect with me on Twitter at Lex Friedman, spelled F R I D M A N. This episode is supported by an amazing podcast called Pessimists Archive. Jason, the host of the show, reached out to me looking to support this podcast, and so I listened to it, to check it out. And by listened, I mean I went through it, Netflix binge style, at least five episodes in a row. It's not one of my favorite podcasts, and I think it should be one of the top podcasts in the world, frankly. It's a history show about why people resist new things. Each episode looks at a moment in history when something new was introduced, something that today we think of as commonplace, like recorded music, umbrellas, bicycles, cars, chess, coffee, the elevator, and the show explores why it freaked everyone out. The latest episode on mirrors and vanity still stays with me as I think about vanity in the modern day of the Twitter world. That's the fascinating thing about the show, is that stuff that happened long ago, especially in terms of our fear of new things, repeats itself in the modern day, and so has many lessons for us to think about in terms of human psychology and the role of technology in our society. Anyway, you should subscribe and listen to Pessimist Archive. I highly recommend it. And now, here's my conversation with Michael Kearns. You mentioned reading Fear and Loathing in Las Vegas in high school, and having a more, or a bit more of a literary mind. So, what books, non technical, non computer science, would you say had the biggest impact on your life, either intellectually or emotionally? You've dug deep into my history, I see. Went deep. Yeah, I think, well, my favorite novel is Infinite Jest by David Foster Wallace, which actually, coincidentally, much of it takes place in the halls of buildings right around us here at MIT. So that certainly had a big influence on me. And as you noticed, like, when I was in high school, I actually even started college as an English major. So, I was very influenced by sort of that genre of journalism at the time, and thought I wanted to be a writer, and then realized that an English major teaches you to read, but it doesn't teach you how to write, and then I became interested in math and computer science instead. Well, in your new book, Ethical Algorithm, you kind of sneak up from an algorithmic perspective on these deep, profound philosophical questions of fairness, of privacy. In thinking about these topics, how often do you return to that literary mind that you had? Yeah, I'd like to claim there was a deeper connection, but, you know, I think both Aaron and I kind of came at these topics first and foremost from a technical angle. I mean, you know, I kind of consider myself primarily and originally a machine learning researcher, and I think as we just watched, like the rest of the society, the field technically advance, and then quickly on the heels of that kind of the buzzkill of all of the antisocial behavior by algorithms, just kind of realized there was an opportunity for us to do something about it from a research perspective. You know, more to the point in your question, I mean, I do have an uncle who is literally a moral philosopher, and so in the early days of my life, he was a philosopher, and so in the early days of our technical work on fairness topics, I would occasionally, you know, run ideas behind him. So, I mean, I remember an early email I sent to him in which I said, like, oh, you know, here's a specific definition of algorithmic fairness that we think is some sort of variant of Rawlsian fairness. What do you think? And I thought I was asking a yes or no question, and I got back your kind of classical philosopher's response saying, well, it depends. Hey, then you might conclude this, and that's when I realized that there was a real kind of rift between the ways philosophers and others had thought about things like fairness, you know, from sort of a humanitarian perspective and the way that you needed to think about it as a computer scientist if you were going to kind of implement actual algorithmic solutions. But I would say the algorithmic solutions take care of some of the low hanging fruit. Sort of the problem is a lot of algorithms, when they don't consider fairness, they are just terribly unfair. And when they don't consider privacy, they're terribly, they violate privacy. Sort of the algorithmic approach fixes big problems. But there's still, when you start pushing into the gray area, that's when you start getting into this philosophy of what it means to be fair, starting from Plato, what is justice kind of questions? Yeah, I think that's right. And I mean, I would even not go as far as you want to say that sort of the algorithmic work in these areas is solving like the biggest problems. And, you know, we discuss in the book, the fact that really we are, there's a sense in which we're kind of looking where the light is in that, you know, for example, if police are racist in who they decide to stop and frisk, and that goes into the data, there's sort of no undoing that downstream by kind of clever algorithmic methods. And I think, especially in fairness, I mean, I think less so in privacy, where we feel like the community kind of really has settled on the right definition, which is differential privacy. If you just look at the algorithmic fairness literature already, you can see it's going to be much more of a mess. And, you know, you've got these theorems saying, here are three entirely reasonable, desirable notions of fairness. And, you know, here's a proof that you cannot simultaneously have all three of them. So I think we know that algorithmic fairness compared to algorithmic privacy is going to be kind of a harder problem. And it will have to revisit, I think, things that have been thought about by, you know, many generations of scholars before us. So it's very early days for fairness, I think. TK So before we get into the details of differential privacy, and on the fairness side, let me linger on the philosophy a bit. Do you think most people are fundamentally good? Or do most of us have both the capacity for good and evil within us? SB I mean, I'm an optimist. I tend to think that most people are good and want to do right. And that deviations from that are, you know, kind of usually due to circumstance, not due to people being bad at heart. TK With people with power, are people at the heads of governments, people at the heads of companies, people at the heads of, maybe, so financial power markets, do you think the distribution there is also, most people are good and have good intent? SB Yeah, I do. I mean, my statement wasn't qualified to people not in positions of power. I mean, I think what happens in a lot of the, you know, the cliche about absolute power corrupts absolutely. I mean, you know, I think even short of that, you know, having spent a lot of time on Wall Street, and also in arenas very, very different from Wall Street, like academia, you know, one of the things I think I've benefited from by moving between two very different worlds is you become aware that, you know, these worlds kind of develop their own social norms, and they develop their own rationales for, you know, behavior, for instance, that might look unusual to outsiders. But when you're in that world, it doesn't feel unusual at all. And I think this is true of a lot of, you know, professional cultures, for instance. And, you know, so then your maybe slippery slope is too strong of a word. But, you know, you're in some world where you're mainly around other people with the same kind of viewpoints and training and worldview as you. And I think that's more of a source of, of, you know, kind of abuses of power than sort of, you know, there being good people and evil people, and that somehow the evil people are the ones that somehow rise to power. Oh, that's really interesting. So it's the, within the social norms constructed by that particular group of people, you're all trying to do good. But because as a group, you might be, you might drift into something that for the broader population, it does not align with the values of society. That kind of, that's the word. Yeah, I mean, or not that you drift, but even the things that don't make sense to the outside world don't seem unusual to you. So it's not sort of like a good or a bad thing, but, you know, like, so for instance, you know, on, in the world of finance, right? There's a lot of complicated types of activity that if you are not immersed in that world, you cannot see why the purpose of that, you know, that activity exists at all. It just seems like, you know, completely useless and people just like, you know, pushing money around. And when you're in that world, right, you're, and you learn more, your view does become more nuanced, right? You realize, okay, there is actually a function to this activity. And in some cases, you would conclude that actually, if magically we could eradicate this activity tomorrow, it would come back because it actually is like serving some useful purpose. It's just a useful purpose that's very difficult for outsiders to see. And so I think, you know, lots of professional work environments or cultures, as I might put it, kind of have these social norms that, you know, don't make sense to the outside world. Academia is the same, right? I mean, lots of people look at academia and say, you know, what the hell are all of you people doing? Why are you paid so much in some cases at taxpayer expenses to do, you know, to publish papers that nobody reads? You know, but when you're in that world, you come to see the value for it. And, but even though you might not be able to explain it to, you know, the person in the street. Right. And in the case of the financial sector, tools like credit might not make sense to people. Like, it's a good example of something that does seem to pop up and be useful or just the power of markets and just in general capitalism. Yeah. In finance, I think the primary example I would give is leverage, right? So being allowed to borrow, to sort of use ten times as much money as you've actually borrowed, right? So that's an example of something that before I had any experience in financial markets, I might have looked at and said, well, what is the purpose of that? That just seems very dangerous and it is dangerous and it has proven dangerous. But, you know, if the fact of the matter is that, you know, sort of on some particular time scale, you are holding positions that are, you know, very unlikely to, you know, lose, you know, your value at risk or variance is like one or five percent, then it kind of makes sense that you would be allowed to use a little bit more than you have because you have, you know, some confidence that you're not going to lose it all in a single day. Now, of course, when that happens, we've seen what happens, you know, not too long ago. But, you know, but the idea that it serves no useful economic purpose under any circumstances is definitely not true. We'll return to the other side of the coast, Silicon Valley, and the problems there as we talk about privacy, as we talk about fairness. At the high level, and I'll ask some sort of basic questions with the hope to get at the fundamental nature of reality. But from a very high level, what is an ethical algorithm? So I can say that an algorithm has a running time of using big O notation n log n. I can say that a machine learning algorithm classified cat versus dog with 97 percent accuracy. Do you think there will one day be a way to measure sort of in the same compelling way as the big O notation of this algorithm is 97 percent ethical? First of all, let me riff for a second on your specific n log n example. So because early in the book when we're just kind of trying to describe algorithms period, we say like, okay, you know, what's an example of an algorithm or an algorithmic problem? First of all, like it's sorting, right? You have a bunch of index cards with numbers on them and you want to sort them. And we describe, you know, an algorithm that sweeps all the way through, finds the smallest number, puts it at the front, then sweeps through again, finds the second smallest number. So we make the point that this is an algorithm and it's also a bad algorithm in the sense that, you know, it's quadratic rather than n log n, which we know is kind of optimal for sorting. And we make the point that sort of like, you know, so even within the confines of a very precisely specified problem, there, you know, there might be many, many different algorithms for the same problem with different properties. Like some might be faster in terms of running time, some might use less memory, some might have, you know, better distributed implementations. And so the point is that already we're used to, you know, in computer science thinking about trade offs between different types of quantities and resources and there being, you know, better and worse algorithms. And our book is about that part of algorithmic ethics that we know how to kind of put on that same kind of quantitative footing right now. So, you know, just to say something that our book is not about, our book is not about kind of broad, fuzzy notions of fairness. It's about very specific notions of fairness. There's more than one of them. There are tensions between them, right? But if you pick one of them, you can do something akin to saying that this algorithm is 97% ethical. You can say, for instance, the, you know, for this lending model, the false rejection rate on black people and white people is within 3%, right? So we might call that a 97% ethical algorithm and a 100% ethical algorithm would mean that that difference is 0%. In that case, fairness is specified when two groups, however, they're defined are given to you. That's right. So the, and then you can sort of mathematically start describing the algorithm. But nevertheless, the part where the two groups are given to you, I mean, unlike running time, you know, we don't in computer science talk about how fast an algorithm feels like when it runs. True. We measure it and ethical starts getting into feelings. So, for example, an algorithm runs, you know, if it runs in the background, it doesn't disturb the performance of my system. It'll feel nice. I'll be okay with it. But if it overloads the system, it'll feel unpleasant. So in that same way, ethics, there's a feeling of how socially acceptable it is. How does it represent the moral standards of our society today? So in that sense, and sorry to linger on that first of high, low philosophical questions. Do you have a sense we'll be able to measure how ethical an algorithm is? First of all, I didn't, certainly didn't mean to give the impression that you can kind of measure, you know, memory speed trade offs, you know, and that there's a complete mapping from that onto kind of fairness, for instance, or ethics and accuracy, for example. In the type of fairness definitions that are largely the objects of study today and starting to be deployed, you as the user of the definitions, you need to make some hard decisions before you even get to the point of designing fair algorithms. One of them, for instance, is deciding who it is that you're worried about protecting, who you're worried about being harmed by, for instance, some notion of discrimination or unfairness. And then you need to also decide what constitutes harm. So, for instance, in a lending application, maybe you decide that, you know, falsely rejecting a creditworthy individual, you know, sort of a false negative, is the real harm and that false positives, i.e. people that are not creditworthy or are not gonna repay your loan, that get a loan, you might think of them as lucky. And so that's not a harm, although it's not clear that if you don't have the means to repay a loan, that being given a loan is not also a harm. So, you know, the literature is sort of so far quite limited in that you sort of need to say, who do you want to protect and what would constitute harm to that group? And when you ask questions like, will algorithms feel ethical? One way in which they won't, under the definitions that I'm describing, is if, you know, if you are an individual who is falsely denied a loan, incorrectly denied a loan, all of these definitions basically say like, well, you know, your compensation is the knowledge that we are also falsely denying loans to other people, you know, in other groups at the same rate that we're doing it to you. And, you know, and so there is actually this interesting even technical tension in the field right now between these sort of group notions of fairness and notions of fairness that might actually feel like real fairness to individuals, right? They might really feel like their particular interests are being protected or thought about by the algorithm rather than just, you know, the groups that they happen to be members of. Is there parallels to the big O notation of worst case analysis? So, is it important to looking at the worst violation of fairness for an individual? Is it important to minimize that one individual? So like worst case analysis, is that something you think about or? I mean, I think we're not even at the point where we can sensibly think about that. So first of all, you know, we're talking here both about fairness applied at the group level, I definitely think, you know, this is a much narrower statement. I definitely think that kind of algorithmic auditing for different types of unfairness, right? So like in this gerrymandering example where I might want to prevent not just discrimination against very broad categories, but against combinations of broad categories. You know, you quickly get to a point where there's a lot of, a lot of categories. There's a lot of combinations of end features and, you know, you can use algorithmic techniques to sort of try to find the subgroups on which you're discriminating the most and try to fix that. That's actually kind of the form of one of the algorithms we developed for this fairness gerrymandering problem. But I'm, I'm, you know, partly because of our technological, you know, our sort of our scientific ignorance on these topics right now. And also partly just because these topics are so loaded emotionally for people that I just don't see the value. I mean, again, never say never, but I just don't think we're at a moment where it's a great time for computer scientists to be rolling out the idea like, hey, you know, you know, not only have we kind of figured fairness out, but, you know, we think the algorithm should start deciding what's fair or giving input on that decision. I just don't, it's like the cost benefit analysis to the field of kind of going there right now just doesn't seem worth it to me. That said, I should say that I think computer scientists should be more philosophically, like should enrich their thinking about these kinds of things. I think it's been too often used as an excuse for roboticists working on autonomous vehicles, for example, to not think about the human factor or psychology or safety in the same way like computer science design algorithms that have been sort of using it as an excuse. And I think it's time for basically everybody to become a computer scientist. I was about to agree with everything you said except that last point. I think that the other way of looking at it is that I think computer scientists, you know, and many of us are, but we need to weigh it out into the world more, right? I mean, just the influence that computer science and therefore computer scientists have had on society at large just like has exponentially magnified in the last 10 or 20 years or so. And you know, before when we were just tinkering around amongst ourselves and it didn't matter that much, there was no need for sort of computer scientists to be citizens of the world more broadly. And I think those days need to be over very, very fast. And I'm not saying everybody needs to do it, but to me, like the right way of doing it is to not to sort of think that everybody else is going to become a computer scientist. But you know, I think people are becoming more sophisticated about computer science, even lay people. You know, I think one of the reasons we decided to write this book is we thought 10 years ago I wouldn't have tried this just because I just didn't think that sort of people's awareness of algorithms and machine learning, you know, the general population would have been high. I mean, you would have had to first, you know, write one of the many books kind of just explicating that topic to a lay audience first. Now I think we're at the point where like lots of people without any technical training at all know enough about algorithms and machine learning that you can start getting to these nuances of things like ethical algorithms. I think we agree that there needs to be much more mixing, but I think a lot of the onus of that mixing needs to be on the computer science community. Yeah. So just to linger on the disagreement, because I do disagree with you on the point that I think if you're a biologist, if you're a chemist, if you're an MBA business person, all of those things you can, like if you learned a program, and not only program, if you learned to do machine learning, if you learned to do data science, you immediately become much more powerful in the kinds of things you can do. And therefore literature, like library sciences, like, so you were speaking, I think, I think it holds true what you're saying for the next few years. But long term, if you're interested to me, if you're interested in philosophy, you should learn a program, because then you can scrape data and study what people are thinking about on Twitter, and then start making philosophical conclusions about the meaning of life. I just feel like the access to data, the digitization of whatever problem you're trying to solve, will fundamentally change what it means to be a computer scientist. I mean, a computer scientist in 20, 30 years will go back to being Donald Knuth style theoretical computer science, and everybody would be doing basically, exploring the kinds of ideas that you explore in your book. It won't be a computer science major. Yeah, I mean, I don't think I disagree enough, but I think that that trend of more and more people in more and more disciplines adopting ideas from computer science, learning how to code, I think that that trend seems firmly underway. I mean, you know, like an interesting digressive question along these lines is maybe in 50 years, there won't be computer science departments anymore, because the field will just sort of be ambient in all of the different disciplines. And people will look back and having a computer science department will look like having an electricity department or something that's like, you know, everybody uses this, it's just out there. I mean, I do think there will always be that kind of Knuth style core to it, but it's not an implausible path that we kind of get to the point where the academic discipline of computer science becomes somewhat marginalized because of its very success in kind of infiltrating all of science and society and the humanities, etcetera. What is differential privacy, or more broadly, algorithmic privacy? Algorithmic privacy more broadly is just the study or the notion of privacy definitions or norms being encoded inside of algorithms. And so, you know, I think we count among this body of work just, you know, the literature and practice of things like data anonymization, which we kind of at the beginning of our discussion of privacy say like, okay, this is sort of a notion of algorithmic privacy. It kind of tells you, you know, something to go do with data, but, you know, our view is that it's, and I think this is now, you know, quite widespread, that it's, you know, despite the fact that those notions of anonymization kind of redacting and coarsening are the most widely adopted technical solutions for data privacy, they are like deeply fundamentally flawed. And so, you know, to your first question, what is differential privacy? Differential privacy seems to be a much, much better notion of privacy that kind of avoids a lot of the weaknesses of anonymization notions while still letting us do useful stuff with data. What is anonymization of data? So by anonymization, I'm, you know, kind of referring to techniques like I have a database. The rows of that database are, let's say, individual people's medical records, okay? And I want to let people use that data. Maybe I want to let researchers access that data to build predictive models for some disease, but I'm worried that that will leak, you know, sensitive information about specific people's medical records. So anonymization broadly refers to the set of techniques where I say like, okay, I'm first going to like, I'm going to delete the column with people's names. I'm going to not put, you know, so that would be like a redaction, right? I'm just redacting that information. I am going to take ages and I'm not going to like say your exact age. I'm going to say whether you're, you know, zero to 10, 10 to 20, 20 to 30, I might put the first three digits of your zip code, but not the last two, et cetera, et cetera. And so the idea is that through some series of operations like this on the data, I anonymize it. You know, another term of art that's used is removing personally identifiable information. And you know, this is basically the most common way of providing data privacy, but that it's in a way that still lets people access the, some variant form of the data. So at a slightly broader picture, as you talk about what does anonymization mean when you have multiple database, like with a Netflix prize, when you can start combining stuff together. So this is exactly the problem with these notions, right? Is that notions of a anonymization, removing personally identifiable information, the kind of fundamental conceptual flaw is that, you know, these definitions kind of pretend as if the data set in question is the only data set that exists in the world or that ever will exist in the future. And of course, things like the Netflix prize and many, many other examples since the Netflix prize, I think that was one of the earliest ones though, you know, you can reidentify people that were, you know, that were anonymized in the data set by taking that anonymized data set and combining it with other allegedly anonymized data sets and maybe publicly available information about you. You know, for people who don't know the Netflix prize was, was being publicly released this data. So the names from those rows were removed, but what was released is the preference or the ratings of what movies you like and you don't like. And from that combined with other things, I think forum posts and so on, you can start to figure out I guess it was specifically the internet movie database where, where lots of Netflix users publicly rate their movie, you know, their movie preferences. And so the anonymized data and Netflix, when it's just this phenomenon, I think that we've all come to realize in the last decade or so is that just knowing a few apparently irrelevant innocuous things about you can often act as a fingerprint. Like if I know, you know, what, what rating you gave to these 10 movies and the date on which you entered these movies, this is almost like a fingerprint for you in the sea of all Netflix users. There were just another paper on this in science or nature of about a month ago that, you know, kind of 18 attributes. I mean, my favorite example of this is, was actually a paper from several years ago now where it was shown that just from your likes on Facebook, just from the time, you know, the things on which you clicked on the thumbs up button on the platform, not using any information, demographic information, nothing about who your friends are, just knowing the content that you had liked was enough to, you know, in the aggregate accurately predict things like sexual orientation, drug and alcohol use, whether you were the child of divorced parents. So we live in this era where, you know, even the apparently irrelevant data that we offer about ourselves on public platforms and forums often unbeknownst to us, more or less acts as signature or, you know, fingerprint. And that if you can kind of, you know, do a join between that kind of data and allegedly anonymized data, you have real trouble. So is there hope for any kind of privacy in a world where a few likes can identify you? So there is differential privacy, right? What is differential privacy? Yeah, so differential privacy basically is a kind of alternate, much stronger notion of privacy than these anonymization ideas. And, you know, it's a technical definition, but like the spirit of it is we compare two alternate worlds, okay? So let's suppose I'm a researcher and I want to do, you know, there's a database of medical records and one of them is yours, and I want to use that database of medical records to build a predictive model for some disease. So based on people's symptoms and test results and the like, I want to, you know, build a probably model predicting the probability that people have disease. So, you know, this is the type of scientific research that we would like to be allowed to continue. And in differential privacy, you ask a very particular counterfactual question. We basically compare two alternatives. One is when I do this, I build this model on the database of medical records, including your medical record. And the other one is where I do the same exercise with the same database with just your medical record removed. So basically, you know, it's two databases, one with N records in it and one with N minus one records in it. The N minus one records are the same, and the only one that's missing in the second case is your medical record. So differential privacy basically says that any harms that might come to you from the analysis in which your data was included are essentially nearly identical to the harms that would have come to you if the same analysis had been done without your medical record included. So in other words, this doesn't say that bad things cannot happen to you as a result of data analysis. It just says that these bad things were going to happen to you already, even if your data wasn't included. And to give a very concrete example, right, you know, like we discussed at some length, the study that, you know, in the 50s that was done that established the link between smoking and lung cancer. And we make the point that, like, well, if your data was used in that analysis and, you know, the world kind of knew that you were a smoker because, you know, there was no stigma associated with smoking before those findings, real harm might have come to you as a result of that study that your data was included in. In particular, your insurer now might have a higher posterior belief that you might have lung cancer and raise your premium. So you've suffered economic damage. But the point is, is that if the same analysis has been done with all the other N minus one medical records and just yours missing, the outcome would have been the same. Or your data wasn't idiosyncratically crucial to establishing the link between smoking and lung cancer because the link between smoking and lung cancer is like a fact about the world that can be discovered with any sufficiently large database of medical records. But that's a very low value of harm. Yeah. So that's showing that very little harm is done. Great. But how what is the mechanism of differential privacy? So that's the kind of beautiful statement of it. It's the mechanism by which privacy is preserved. Yeah. So it's basically by adding noise to computations, right? So the basic idea is that every differentially private algorithm, first of all, or every good differentially private algorithm, every useful one, is a probabilistic algorithm. So it doesn't, on a given input, if you gave the algorithm the same input multiple times, it would give different outputs each time from some distribution. And the way you achieve differential privacy algorithmically is by kind of carefully and tastefully adding noise to a computation in the right places. And to give a very concrete example, if I wanna compute the average of a set of numbers, the non private way of doing that is to take those numbers and average them and release like a numerically precise value for the average. In differential privacy, you wouldn't do that. You would first compute that average to numerical precisions, and then you'd add some noise to it, right? You'd add some kind of zero mean, Gaussian or exponential noise to it so that the actual value you output is not the exact mean, but it'll be close to the mean, but it'll be close... The noise that you add will sort of prove that nobody can kind of reverse engineer any particular value that went into the average. So noise is a savior. How many algorithms can be aided by adding noise? Yeah, so I'm a relatively recent member of the differential privacy community. My co author, Aaron Roth is really one of the founders of the field and has done a great deal of work and I've learned a tremendous amount working with him on it. It's a pretty grown up field already. Yeah, but now it's pretty mature. But I must admit, the first time I saw the definition of differential privacy, my reaction was like, wow, that is a clever definition and it's really making very strong promises. And I first saw the definition in much earlier days and my first reaction was like, well, my worry about this definition would be that it's a great definition of privacy, but that it'll be so restrictive that we won't really be able to use it. We won't be able to compute many things in a differentially private way. So that's one of the great successes of the field, I think, is in showing that the opposite is true and that most things that we know how to compute, absent any privacy considerations, can be computed in a differentially private way. So for example, pretty much all of statistics and machine learning can be done differentially privately. So pick your favorite machine learning algorithm, back propagation and neural networks, cart for decision trees, support vector machines, boosting, you name it, as well as classic hypothesis testing and the like in statistics. None of those algorithms are differentially private in their original form. All of them have modifications that add noise to the computation in different places in different ways that achieve differential privacy. So this really means that to the extent that we've become a scientific community very dependent on the use of machine learning and statistical modeling and data analysis, we really do have a path to provide privacy guarantees to those methods and so we can still enjoy the benefits of the data science era while providing rather robust privacy guarantees to individuals. So perhaps a slightly crazy question, but if we take the ideas of differential privacy and take it to the nature of truth that's being explored currently. So what's your most favorite and least favorite food? Hmm. I'm not a real foodie, so I'm a big fan of spaghetti. Spaghetti? Yeah. What do you really don't like? I really don't like cauliflower. Wow, I love cauliflower. Okay. Is there one way to protect your preference for spaghetti by having an information campaign bloggers and so on of bots saying that you like cauliflower? So like this kind of the same kind of noise ideas, I mean if you think of in our politics today there's this idea of Russia hacking our elections. What's meant there I believe is bots spreading different kinds of information. Is that a kind of privacy or is that too much of a stretch? No it's not a stretch. I've not seen those ideas, you know, that is not a technique that to my knowledge will provide differential privacy, but to give an example like one very specific example about what you're discussing is there was a very interesting project at NYU I think led by Helen Nissenbaum there in which they basically built a browser plugin that tried to essentially obfuscate your Google searches. So to the extent that you're worried that Google is using your searches to build, you know, predictive models about you to decide what ads to show you which they might very reasonably want to do, but if you object to that they built this widget you could plug in and basically whenever you put in a query into Google it would send that query to Google, but in the background all of the time from your browser it would just be sending this torrent of irrelevant queries to the search engine. So you know it's like a weed and chaff thing so you know out of every thousand queries let's say that Google was receiving from your browser one of them was one that you put in but the other 999 were not okay so it's the same kind of idea kind of you know privacy by obfuscation. So I think that's an interesting idea, doesn't give you differential privacy. It's also I was actually talking to somebody at one of the large tech companies recently about the fact that you know just this kind of thing that there are some times when the response to my data needs to be very specific to my data right like I type mountain biking into Google, I want results on mountain biking and I really want Google to know that I typed in mountain biking, I don't want noise added to that. And so I think there's sort of maybe even interesting technical questions around notions of privacy that are appropriate where you know it's not that my data is part of some aggregate like medical records and that we're trying to discover important correlations and facts about the world at large but rather you know there's a service that I really want to you know pay attention to my specific data yet I still want some kind of privacy guarantee and I think these kind of obfuscation ideas are sort of one way of getting at that but maybe there are others as well. So where do you think we'll land in this algorithm driven society in terms of privacy? So sort of China like Kai Fuli describes you know it's collecting a lot of data on its citizens but in the best form it's actually able to provide a lot of sort of protect human rights and provide a lot of amazing services and it's worst forms that can violate those human rights and limit services. So where do you think we'll land because algorithms are powerful when they use data. So as a society do you think we'll give over more data? Is it possible to protect the privacy of that data? So I'm optimistic about the possibility of you know balancing the desire for individual privacy and individual control of privacy with kind of societally and commercially beneficial uses of data not unrelated to differential privacy or suggestions that say like well individuals should have control of their data. They should be able to limit the uses of that data. They should even you know there's you know fledgling discussions going on in research circles about allowing people selective use of their data and being compensated for it. And then you get to sort of very interesting economic questions like pricing right. And one interesting idea is that maybe differential privacy would also you know be a conceptual framework in which you could talk about the relative value of different people's data like you know to demystify this a little bit. If I'm trying to build a predictive model for some rare disease and I'm trying to use machine learning to do it, it's easy to get negative examples because the disease is rare right. But I really want to have lots of people with the disease in my data set okay. And so somehow those people's data with respect to this application is much more valuable to me than just like the background population. And so maybe they should be compensated more for it. And so you know I think these are kind of very, very fledgling conceptual questions that maybe we'll have kind of technical thought on them sometime in the coming years. But I do think we'll you know to kind of get more directly answer your question. I think I'm optimistic at this point from what I've seen that we will land at some you know better compromise than we're at right now where again you know privacy guarantees are few far between and weak and users have very, very little control. And I'm optimistic that we'll land in something that you know provides better privacy overall and more individual control of data and privacy. But you know I think to get there it's again just like fairness it's not going to be enough to propose algorithmic solutions. There's going to have to be a whole kind of regulatory legal process that prods companies and other parties to kind of adopt solutions. And I think you've mentioned the word control a lot and I think giving people control that's something that people don't quite have in a lot of these algorithms and that's a really interesting idea of giving them control. Some of that is actually literally an interface design question sort of just enabling because I think it's good for everybody to give users control. It's almost not a trade off except that you have to hire people that are good at interface design. Yeah. I mean the other thing that has to be said right is that you know it's a cliche but you know we as the users of many systems platforms and apps you know we are the product. We are not the customer. The customer are advertisers and our data is the product. Okay. So it's one thing to kind of suggest more individual control of data and privacy and uses but this you know if this happens in sufficient degree it will upend the entire economic model that has supported the internet to date. And so some other economic model will have to be you know we'll have to replace it. So the idea of markets you mentioned by exposing the economic model to the people they will then become a market. They could be participants in it. And you know this isn't you know this is not a weird idea right because there are markets for data already. It's just that consumers are not participants and there's like you know there's sort of you know publishers and content providers on one side that have inventory and then their advertisers on the others and you know you know Google and Facebook are running you know they're pretty much their entire revenue stream is by running two sided markets between those parties right. And so it's not a crazy idea that there would be like a three sided market or that you know that on one side of the market or the other we would have proxies representing our interest. It's not you know it's not a crazy idea but it would it's not a crazy technical idea but it would have pretty extreme economic consequences. Speaking of markets a lot of fascinating aspects of this world arise not from individual human beings but from the interaction of human beings. You've done a lot of work in game theory. First can you say what is game theory and how does it help us model and study? Yeah game theory of course let us give credit where it's due. You know it comes from the economist first and foremost but as I've mentioned before like you know computer scientists never hesitate to wander into other people's turf and so there is now this 20 year old field called algorithmic game theory. But you know game theory first and foremost is a mathematical framework for reasoning about collective outcomes in systems of interacting individuals. You know so you need at least two people to get started in game theory and many people are probably familiar with Prisoner's Dilemma as kind of a classic example of game theory and a classic example where everybody looking out for their own individual interests leads to a collective outcome that's kind of worse for everybody than what might be possible if they cooperated for example. But cooperation is not an equilibrium in Prisoner's Dilemma. And so my work in the field of algorithmic game theory more generally in these areas kind of looks at settings in which the number of actors is potentially extraordinarily large and their incentives might be quite complicated and kind of hard to model directly but you still want kind of algorithmic ways of kind of predicting what will happen or influencing what will happen in the design of platforms. So what to you is the most beautiful idea that you've encountered in game theory? There's a lot of them. I'm a big fan of the field. I mean you know I mean technical answers to that of course would include Nash's work just establishing that you know there is a competitive equilibrium under very very general circumstances which in many ways kind of put the field on a firm conceptual footing because if you don't have equilibrium it's kind of hard to ever reason about what might happen since you know there's just no stability. So just the idea that stability can emerge when there's multiple. Not that it will necessarily emerge just that it's possible right. Like the existence of equilibrium doesn't mean that sort of natural iterative behavior will necessarily lead to it. In the real world. Yeah. Maybe answering a slightly less personally than you asked the question I think within the field of algorithmic game theory perhaps the single most important kind of technical contribution that's been made is the realization between close connections between machine learning and game theory and in particular between game theory and the branch of machine learning that's known as no regret learning and this sort of provides a very general framework in which a bunch of players interacting in a game or a system each one kind of doing something that's in their self interest will actually kind of reach an equilibrium and actually reach an equilibrium in a you know a pretty you know a rather you know short amount of steps. So you kind of mentioned acting greedily can somehow end up pretty good for everybody. Or pretty bad. Or pretty bad. Yeah. It will end up stable. Yeah. Right. And and you know stability or equilibrium by itself is neither is not necessarily either a good thing or a bad thing. So what's the connection between machine learning and the ideas. Well I think we kind of talked about these ideas already in kind of a non technical way which is maybe the more interesting way of understanding them first which is you know we have many systems platforms and apps these days that work really hard to use our data and the data of everybody else on the platform to selfishly optimize on behalf of each user. OK. So you know let me let me give I think the cleanest example which is just driving apps navigation apps like you know Google Maps and Waze where you know miraculously compared to when I was growing up at least you know the objective would be the same when you wanted to drive from point A to point B spend the least time driving not necessarily minimize the distance but minimize the time. Right. And when I was growing up like the only resources you had to do that were like maps in the car which literally just told you what roads were available and then you might have like half hourly traffic reports just about the major freeways but not about side roads. So you were pretty much on your own. And now we've got these apps you pull it out and you say I want to go from point A to point B and in response kind of to what everybody else is doing if you like what all the other players in this game are doing right now here's the you know the route that minimizes your driving time. So it is really kind of computing a selfish best response for each of us in response to what all of the rest of us are doing at any given moment. And so you know I think it's quite fair to think of these apps as driving or nudging us all towards the competitive or Nash equilibrium of that game. Now you might ask like well that sounds great why is that a bad thing. Well you know it's known both in theory and with some limited studies from actual like traffic data that all of us being in this competitive equilibrium might cause our collective driving time to be higher maybe significantly higher than it would be under other solutions. And then you have to talk about what those other solutions might be and what the algorithms to implement them are which we do discuss in the kind of game theory chapter of the book. But similarly you know on social media platforms or on Amazon you know all these algorithms that are essentially trying to optimize our behalf they're driving us in a colloquial sense towards some kind of competitive equilibrium and you know one of the most important lessons of game theory is that just because we're at equilibrium doesn't mean that there's not a solution in which some or maybe even all of us might be better off. And then the connection to machine learning of course is that in all these platforms I've mentioned the optimization that they're doing on our behalf is driven by machine learning you know like predicting where the traffic will be predicting what products I'm going to like predicting what would make me happy in my newsfeed. Now in terms of the stability and the promise of that I have to ask just out of curiosity how stable are these mechanisms that you game theory is just the economist came up with and we all know that economists don't live in the real world just kidding sort of what's do you think when we look at the fact that we haven't blown ourselves up from the from a game theoretic concept of mutually shared destruction what are the odds that we destroy ourselves with nuclear weapons as one example of a stable game theoretic system? Just to prime your viewers a little bit I mean I think you're referring to the fact that game theory was taken quite seriously back in the 60s as a tool for reasoning about kind of Soviet US nuclear armament disarmament detente things like that. I'll be honest as huge of a fan as I am of game theory and its kind of rich history it still surprises me that you know you had people at the RAND Corporation back in those days kind of drawing up you know two by two tables and one the row player is you know the US and the column player is Russia and that they were taking seriously you know I'm sure if I was there maybe it wouldn't have seemed as naive as it does at the time you know. Seems to have worked which is why it seems naive. Well we're still here. We're still here in that sense. Yeah even though I kind of laugh at those efforts they were more sensible then than they would be now right because there were sort of only two nuclear powers at the time and you didn't have to worry about deterring new entrants and who was developing the capacity and so we have many you know it's definitely a game with more players now and more potential entrants. I'm not in general somebody who advocates using kind of simple mathematical models when the stakes are as high as things like that and the complexities are very political and social but we are still here. So you've worn many hats one of which the one that first caused me to become a big fan of your work many years ago is algorithmic trading. So I have to just ask a question about this because you have so much fascinating work there in the 21st century what role do you think algorithms have in space of trading investment in the financial sector? Yeah it's a good question I mean in the time I've spent on Wall Street and in finance you know I've seen a clear progression and I think it's a progression that kind of models the use of algorithms and automation more generally in society which is you know the things that kind of get taken over by the algos first are sort of the things that computers are obviously better at than people right so you know so first of all there needed to be this era of automation right where just you know financial exchanges became largely electronic which then enabled the possibility of you know trading becoming more algorithmic because once you know that exchanges are electronic an algorithm can submit an order through an API just as well as a human can do at a monitor quickly can read all the data so yeah and so you know I think the places where algorithmic trading have had the greatest inroads and had the first inroads were in kind of execution problems kind of optimized execution problems so what I mean by that is at a large brokerage firm for example one of the lines of business might be on behalf of large institutional clients taking you know what we might consider difficult trade so it's not like a mom and pop investor saying I want to buy a hundred shares of Microsoft it's a large hedge fund saying you know I want to buy a very very large stake in Apple and I want to do it over the span of a day and it's such a large volume that if you're not clever about how you break that trade up not just over time but over perhaps multiple different electronic exchanges that all let you trade Apple on their platform you know you will you will move you'll push prices around in a way that hurts your your execution so you know this is the kind of you know this is an optimization problem this is a control problem right and so machines are better we we know how to design algorithms you know that are better at that kind of thing than a person is going to be able to do because we can take volumes of historical and real time data to kind of optimize the schedule with which we trade and you know similarly high frequency trading you know which is closely related but not the same as optimized execution where you're just trying to spot very very temporary you know mispricings between exchanges or within an asset itself or just predict directional movement of a stock because of the kind of very very low level granular buying and selling data in the in the exchange machines are good at this kind of stuff it's kind of like the mechanics of trading what about the can machines do long terms of prediction yeah so I think we are in an era where you know clearly there have been some very successful you know quant hedge funds that are you know in what we would traditionally call you know still in this the stat arb regime like so you know what's that stat arb referring to statistical arbitrage but but for the purposes of this conversation what it really means is making directional predictions in asset price movement or returns your prediction about that directional movement is good for you know you you have a view that it's valid for some period of time between a few seconds and a few days and that's the amount of time that you're going to kind of get into the position hold it and then hopefully be right about the directional movement and you know buy low and sell high as the cliche goes. So that is a you know kind of a sweet spot I think for quant trading and investing right now and has been for some time when you really get to kind of more Warren Buffett style timescales right like you know my cartoon of Warren Buffett is that you know Warren Buffett sits and thinks what the long term value of Apple really should be and he doesn't even look at what Apple is doing today he just decides you know you know I think that this is what its long term value is and it's far from that right now and so I'm going to buy some Apple or you know short some Apple and I'm going to I'm going to sit on that for 10 or 20 years okay. So when you're at that kind of timescale or even more than just a few days all kinds of other sources of risk and information you know so now you're talking about holding things through recessions and economic cycles, wars can break out. So there you have to understand human nature at a level that. Yeah and you need to just be able to ingest many many more sources of data that are on wildly different timescales right. So if I'm an HFT I'm a high frequency trader like I don't I don't I really my main source of data is just the data from the exchanges themselves about the activity in the exchanges right and maybe I need to pay you know I need to keep an eye on the news right because you know that can cause sudden you know the CEO gets caught in a scandal or you know gets run over by a bus or something that can cause very sudden changes but you know I don't need to understand economic cycles I don't need to understand recessions I don't need to worry about the political situation or war breaking out in this part of the world because you know all I need to know is as long as that's not going to happen in the next 500 milliseconds then you know my model is good. When you get to these longer timescales you really have to worry about that kind of stuff and people in the machine learning community are starting to think about this. We held a we jointly sponsored a workshop at Penn with the Federal Reserve Bank of Philadelphia a little more than a year ago on you know I think the title is something like machine learning for macroeconomic prediction. You know macroeconomic referring specifically to these longer timescales and you know it was an interesting conference but it you know my it left me with greater confidence that we have a long way to go to you know and so I think that people that you know in the grand scheme of things you know if somebody asked me like well whose job on Wall Street is safe from the bots I think people that are at that longer you know timescale and have that appetite for all the risks involved in long term investing and that really need kind of not just algorithms that can optimize from data but they need views on stuff they need views on the political landscape economic cycles and the like and I think you know they're they're they're pretty safe for a while as far as I can tell. So Warren Buffett's job is not seeing you know a robo Warren Buffett anytime soon. Give him comfort. Last question. If you could go back to if there's a day in your life you could relive because it made you truly happy. Maybe you outside family what otherwise you know what what what day would it be. But can you look back you remember just being profoundly transformed in some way or blissful. I'll answer a slightly different question which is like what's a day in my my life or my career that was kind of a watershed moment. I went straight from undergrad to doctoral studies and you know that's not at all atypical and I'm also from an academic family like my my dad was a professor my uncle on his side as a professor both my grandfathers were professors. All kinds of majors to philosophy. Yeah they're kind of all over the map yeah and I was a grad student here just up the river at Harvard and came to study with Les Valiant which was a wonderful experience. But you know I remember my first year of graduate school I was generally pretty unhappy and I was unhappy because you know at Berkeley as an undergraduate you know yeah I studied a lot of math and computer science but it was a huge school first of all and I took a lot of other courses as we've discussed I started as an English major and took history courses and art history classes and had friends you know that did all kinds of different things. And you know Harvard's a much smaller institution than Berkeley and its computer science department especially at that time was was a much smaller place than it is now. And I suddenly just felt very you know like I'd gone from this very big world to this highly specialized world and now all of the classes I was taking were computer science classes and I was only in classes with math and computer science people. And so I was you know I thought often in that first year of grad school about whether I really wanted to stick with it or not and you know I thought like oh I could you know stop with a master's I could go back to the Bay Area and to California and you know this was in one of the early periods where there was you know like you could definitely get a relatively good job paying job at one of the one of the tech companies back you know that were the big tech companies back then. And so I distinctly remember like kind of a late spring day when I was kind of you know sitting in Boston Common and kind of really just kind of chewing over what I wanted to do with my life and I realized like okay and I think this is where my academic background helped me a great deal. I sort of realized you know yeah you're not having a great time right now this feels really narrowing but you know that you're here for research eventually and to do something original and to try to you know carve out a career where you kind of you know choose what you want to think about you know and have a great deal of independence. And so you know at that point I really didn't have any real research experience yet I mean it was trying to think about some problems with very little success but I knew that like I hadn't really tried to do the thing that I knew I'd come to do and so I thought you know I'm going to stick through it for the summer and you know and that was very formative because I went from kind of contemplating quitting to you know a year later it being very clear to me I was going to finish because I still had a ways to go but I kind of started doing research it was going well it was really interesting and it was sort of a complete transformation you know it's just that transition that I think every doctoral student makes at some point which is to sort of go from being like a student of what's been done before to doing you know your own thing and figure out what makes you interested in what your strengths and weaknesses are as a researcher and once you know I kind of made that decision on that particular day at that particular moment in Boston Common you know I'm glad I made that decision. And also just accepting the painful nature of that journey. Yeah exactly exactly. In that moment said I'm gonna I'm gonna stick it out yeah I'm gonna stick around for a while. Well Michael I've looked off do you work for a long time it's really nice to talk to you thank you so much. It's great to get back in touch with you too and see how great you're doing as well. Thanks a lot. Thank you. which is a relatively weak thing, but it's better than nothing. And also the more ambitious thing of trying to give some individual promises, but even that doesn't incorporate, I think something that you're hinting at here is what I might call subjective fairness, right? So a lot of the definitions, I mean, all of the definitions in the algorithmic fairness literature are what I would kind of call received wisdom definitions. It's sort of, you know, somebody like me sits around and things like, okay, you know, I think here's a technical definition of fairness that I think people should want or that they should, you know, think of as some notion of fairness, maybe not the only one, maybe not the best one, maybe not the last one. But we really actually don't know from a subjective standpoint, like what people really think is fair. You know, we just started doing a little bit of work in our group at actually doing kind of human subject experiments in which we, you know, ask people about, you know, we ask them questions about fairness, we survey them, we, you know, we show them pairs of individuals in, let's say, a criminal recidivism prediction setting, and we ask them, do you think these two individuals should be treated the same as a matter of fairness? And to my knowledge, there's not a large literature in which ordinary people are asked about, you know, they have sort of notions of their subjective fairness elicited from them. It's mainly, you know, kind of scholars who think about fairness kind of making up their own definitions. And I think this needs to change actually for many social norms, not just for fairness, right? So there's a lot of discussion these days in the AI community about interpretable AI or understandable AI. And as far as I can tell, everybody agrees that deep learning or at least the outputs of deep learning are not very understandable, and people might agree that sparse linear models with integer coefficients are more understandable. But nobody's really asked people. You know, there's very little literature on, you know, sort of showing people models and asking them, do they understand what the model is doing? And I think that in all these topics, as these fields mature, we need to start doing more behavioral work. Yeah, which is one of my deep passions is psychology. And I always thought computer scientists will be the best future psychologists in a sense that data is, especially in this modern world, the data is a really powerful way to understand and study human behavior. And you've explored that with your game theory side of work as well. Yeah, I'd like to think that what you say is true about computer scientists and psychology from my own limited wandering into human subject experiments. We have a great deal to learn, not just computer science, but AI and machine learning more specifically, I kind of think of as imperialist research communities in that, you know, kind of like physicists in an earlier generation, computer scientists kind of don't think of any scientific topic that's off limits to them. They will like freely wander into areas that others have been thinking about for decades or longer. And, you know, we usually tend to embarrass ourselves in those efforts for some amount of time. Like, you know, I think reinforcement learning is a good example, right? So a lot of the early work in reinforcement learning, I have complete sympathy for the control theorists that looked at this and said like, okay, you are reinventing stuff that we've known since like the forties, right? But, you know, in my view, eventually this sort of, you know, computer scientists have made significant contributions to that field, even though we kind of embarrassed ourselves for the first decade. So I think if computer scientists are gonna start engaging in kind of psychology, human subjects type of research, we should expect to be embarrassing ourselves for a good 10 years or so, and then hope that it turns out as well as, you know, some other areas that we've waded into. So you kind of mentioned this, just to linger on the idea of an ethical algorithm, of idea of groups, sort of group thinking and individual thinking. And we're struggling that. One of the amazing things about algorithms and your book and just this field of study is it gets us to ask, like forcing machines, converting these ideas into algorithms is forcing us to ask questions of ourselves as a human civilization. So there's a lot of people now in public discourse doing sort of group thinking, thinking like there's particular sets of groups that we don't wanna discriminate against and so on. And then there is individuals, sort of in the individual life stories, the struggles they went through and so on. Now, like in philosophy, it's easier to do group thinking because you don't, it's very hard to think about individuals. There's so much variability, but with data, you can start to actually say, you know what group thinking is too crude. You're actually doing more discrimination by thinking in terms of groups and individuals. Can you linger on that kind of idea of group versus individual and ethics? And is it good to continue thinking in terms of groups in algorithms? So let me start by answering a very good high level question with a slightly narrow technical response, which is these group definitions of fairness, like here's a few groups, like different racial groups, maybe gender groups, maybe age, what have you. And let's make sure that for none of these groups, do we have a false negative rate, which is much higher than any other one of these groups. Okay, so these are kind of classic group aggregate notions of fairness. And you know, but at the end of the day, an individual you can think of as a combination of all of their attributes, right? They're a member of a racial group, they have a gender, they have an age, and many other demographic properties that are not biological, but that are still very strong determinants of outcome and personality and the like. So one, I think, useful spectrum is to sort of think about that array between the group and the specific individual, and to realize that in some ways, asking for fairness at the individual level is to sort of ask for group fairness simultaneously for all possible combinations of groups. So in particular, you know, if I build a predictive model that meets some definition of fairness, definition of fairness by race, by gender, by age, by what have you, marginally, to get it slightly technical, sort of independently, I shouldn't expect that model to not discriminate against disabled Hispanic women over age 55, making less than $50,000 a year annually, even though I might have protected each one of those attributes marginally. So the optimization, actually, that's a fascinating way to put it. So you're just optimizing, the one way to achieve the optimizing fairness for individuals is just to add more and more definitions of groups that each individual belongs to. That's right. So, you know, at the end of the day, we could think of all of ourselves as groups of size one because eventually there's some attribute that separates you from me and everybody else in the world, okay? And so it is possible to put, you know, these incredibly coarse ways of thinking about fairness and these very, very individualistic specific ways on a common scale. And you know, one of the things we've worked on from a research perspective is, you know, so we sort of know how to, you know, in relative terms, we know how to provide fairness guarantees at the core system of the scale. We don't know how to provide kind of sensible, tractable, realistic fairness guarantees at the individual level, but maybe we could start creeping towards that by dealing with more refined subgroups. I mean, we gave a name to this phenomenon where, you know, you protect, you enforce some definition of fairness for a bunch of marginal attributes or features, but then you find yourself discriminating against a combination of them. We call that fairness gerrymandering because like political gerrymandering, you know, you're giving some guarantee at the aggregate level, but when you kind of look in a more granular way at what's going on, you realize that you're achieving that aggregate guarantee by sort of favoring some groups and discriminating against other ones. And so there are, you know, it's early days, but there are algorithmic approaches that let you start creeping towards that, you know, individual end of the spectrum. Does there need to be human input in the form of weighing the value of the importance of each kind of group? So for example, is it like, so gender, say crudely speaking, male and female, and then different races, are we as humans supposed to put value on saying gender is 0.6 and race is 0.4 in terms of in the big optimization of achieving fairness? Is that kind of what humans are supposed to do here? I mean, of course, you know, I don't need to tell you that, of course, technically one could incorporate such weights if you wanted to into a definition of fairness. You know, fairness is an interesting topic in that having worked in the book being about both fairness, privacy, and many other social norms, fairness, of course, is a much, much more loaded topic. So privacy, I mean, people want privacy, people don't like violations of privacy, violations of privacy cause damage, angst, and bad publicity for the companies that are victims of them. But sort of everybody agrees more data privacy would be better than less data privacy. And you don't have these, somehow the discussions of fairness don't become politicized along other dimensions like race and about gender and, you know, whether we, and, you know, you quickly find yourselves kind of revisiting topics that have been kind of unresolved forever, like affirmative action, right? Sort of, you know, like, why are you protecting, and some people will say, why are you protecting this particular racial group? And others will say, well, we need to do that as a matter of retribution. Other people will say, it's a matter of economic opportunity. And I don't know which of, you know, whether any of these are the right answers, but you sort of, fairness is sort of special in that as soon as you start talking about it, you inevitably have to participate in debates about fair to whom, at what expense to who else. I mean, even in criminal justice, right, you know, where people talk about fairness in criminal sentencing or, you know, predicting failures to appear or making parole decisions or the like, they will, you know, they'll point out that, well, these definitions of fairness are all about fairness for the criminals. And what about fairness for the victims, right? So when I basically say something like, well, the false incarceration rate for black people and white people needs to be roughly the same, you know, there's no mention of potential victims of criminals in such a fairness definition. And that's the realm of public discourse. I should actually recommend, I just listened to people listening, Intelligence Squares debates, US edition just had a debate. They have this structure where you have old Oxford style or whatever they're called, debates, you know, it's two versus two and they talked about affirmative action and it was incredibly interesting that there's really good points on every side of this issue, which is fascinating to listen to. Yeah, yeah, I agree. And so it's interesting to be a researcher trying to do, for the most part, technical algorithmic work, but Aaron and I both quickly learned you cannot do that and then go out and talk about it and expect people to take it seriously if you're unwilling to engage in these broader debates that are entirely extra algorithmic, right? They're not about, you know, algorithms and making algorithms better. They're sort of, you know, as you said, sort of like, what should society be protecting in the first place? When you discuss the fairness, an algorithm that achieves fairness, whether in the constraints and the objective function, there's an immediate kind of analysis you can perform, which is saying, if you care about fairness in gender, this is the amount that you have to pay for it in terms of the performance of the system. Like do you, is there a role for statements like that in a table, in a paper, or do you want to really not touch that? No, no, we want to touch that and we do touch it. So I mean, just again, to make sure I'm not promising your viewers more than we know how to provide, but if you pick a definition of fairness, like I'm worried about gender discrimination and you pick a notion of harm, like false rejection for a loan, for example, and you give me a model, I can definitely, first of all, go audit that model. It's easy for me to go, you know, from data to kind of say like, okay, your false rejection rate on women is this much higher than it is on men, okay? But once you also put the fairness into your objective function, I mean, I think the table that you're talking about is what we would call the Pareto curve, right? You can literally trace out, and we give examples of such plots on real data sets in the book, you have two axes. On the X axis is your error, on the Y axis is unfairness by whatever, you know, if it's like the disparity between false rejection rates between two groups. And you know, your algorithm now has a knob that basically says, how strongly do I want to enforce fairness? And the less unfair, you know, if the two axes are error and unfairness, we'd like to be at zero, zero. We'd like zero error and zero unfairness simultaneously. Anybody who works in machine learning knows that you're generally not going to get to zero error period without any fairness constraint whatsoever. So that's not going to happen. But in general, you know, you'll get this, you'll get some kind of convex curve that specifies the numerical trade off you face. You know, if I want to go from 17% error down to 16% error, what will be the increase in unfairness that I experienced as a result of that? And so this curve kind of specifies the, you know, kind of undominated models. Models that are off that curve are, you know, can be strictly improved in one or both dimensions. You can, you know, either make the error better or the unfairness better or both. And I think our view is that not only are these objects, these Pareto curves, you know, with efficient frontiers as you might call them, not only are they valuable scientific objects, I actually think that they in the near term might need to be the interface between researchers working in the field and stakeholders in given problems. So you know, you could really imagine telling a criminal jurisdiction, look, if you're concerned about racial fairness, but you're also concerned about accuracy. You want to, you know, you want to release on parole people that are not going to recommit a violent crime and you don't want to release the ones who are. So you know, that's accuracy. But if you also care about those, you know, the mistakes you make not being disproportionately on one racial group or another, you can show this curve. I'm hoping that in the near future, it'll be possible to explain these curves to non technical people that are the ones that have to make the decision, where do we want to be on this curve? Like, what are the relative merits or value of having lower error versus lower unfairness? You know, that's not something computer scientists should be deciding for society, right? That, you know, the people in the field, so to speak, the policymakers, the regulators, that's who should be making these decisions. But I think and hope that they can be made to understand that these trade offs generally exist and that you need to pick a point and like, and ignoring the trade off, you know, you're implicitly picking a point anyway, right? You just don't know it and you're not admitting it. Just to linger on the point of trade offs, I think that's a really important thing to sort of think about. So you think when we start to optimize for fairness, there's almost always in most system going to be trade offs. Can you like, what's the trade off between just to clarify, there have been some sort of technical terms thrown around, but sort of a perfectly fair world. Why is that? Why will somebody be upset about that? The specific trade off I talked about just in order to make things very concrete was between numerical error and some numerical measure of unfairness. What is numerical error in the case of... Just like say predictive error, like, you know, the probability or frequency with which you release somebody on parole who then goes on to recommit a violent crime or keep incarcerated somebody who would not have recommitted a violent crime. So in the case of awarding somebody parole or giving somebody parole or letting them out on parole, you don't want them to recommit a crime. So it's your system failed in prediction if they happen to do a crime. Okay, so that's one axis. And what's the fairness axis? So then the fairness axis might be the difference between racial groups in the kind of false positive predictions, namely people that I kept incarcerated predicting that they would recommit a violent crime when in fact they wouldn't have. Right. And the unfairness of that, just to linger it and allow me to in eloquently to try to sort of describe why that's unfair, why unfairness is there. The unfairness you want to get rid of is that in the judge's mind, the bias of having being brought up to society, the slight racial bias, the racism that exists in the society, you want to remove that from the system. Another way that's been debated is sort of equality of opportunity versus equality of outcome. And there's a weird dance there that's really difficult to get right. And we don't, affirmative action is exploring that space. Right. And then this also quickly bleeds into questions like, well, maybe if one group really does recommit crimes at a higher rate, the reason for that is that at some earlier point in the pipeline or earlier in their lives, they didn't receive the same resources that the other group did. And so there's always in kind of fairness discussions, the possibility that the real injustice came earlier, right? Earlier in this individual's life, earlier in this group's history, et cetera, et cetera. And so a lot of the fairness discussion is almost, the goal is for it to be a corrective mechanism to account for the injustice earlier in life. By some definitions of fairness or some theories of fairness, yeah. Others would say like, look, it's not to correct that injustice, it's just to kind of level the playing field right now and not falsely incarcerate more people of one group than another group. But I mean, I think just it might be helpful just to demystify a little bit about the many ways in which bias or unfairness can come into algorithms, especially in the machine learning era, right? I think many of your viewers have probably heard these examples before, but let's say I'm building a face recognition system, right? And so I'm kind of gathering lots of images of faces and trying to train the system to recognize new faces of those individuals from training on a training set of those faces of individuals. And it shouldn't surprise anybody or certainly not anybody in the field of machine learning if my training data set was primarily white males and I'm training the model to maximize the overall accuracy on my training data set, that the model can reduce its error most by getting things right on the white males that constitute the majority of the data set, even if that means that on other groups, they will be less accurate, okay? Now, there's a bunch of ways you could think about addressing this. One is to deliberately put into the objective of the algorithm not to optimize the error at the expense of this discrimination, and then you're kind of back in the land of these kind of two dimensional numerical trade offs. A valid counter argument is to say like, well, no, you don't have to, there's no, you know, the notion of the tension between error and accuracy here is a false one. You could instead just go out and get much more data on these other groups that are in the minority and, you know, equalize your data set, or you could train a separate model on those subgroups and, you know, have multiple models. The point I think we would, you know, we tried to make in the book is that those things have cost too, right? Going out and gathering more data on groups that are relatively rare compared to your plurality or more majority group that, you know, it may not cost you in the accuracy of the model, but it's going to cost, you know, it's going to cost the company developing this model more money to develop that, and it also costs more money to build separate predictive models and to implement and deploy them. So even if you can find a way to avoid the tension between error and accuracy in training a model, you might push the cost somewhere else, like money, like development time, research time and the like. There are fundamentally difficult philosophical questions, in fairness, and we live in a very divisive political climate, outraged culture. There is alt right folks on 4chan, trolls. There is social justice warriors on Twitter. There's very divisive, outraged folks on all sides of every kind of system. How do you, how do we as engineers build ethical algorithms in such divisive culture? Do you think they could be disjoint? The human has to inject your values, and then you can optimize over those values. But in our times, when you start actually applying these systems, things get a little bit challenging for the public discourse. How do you think we can proceed? Yeah, I mean, for the most part in the book, a point that we try to take some pains to make is that we don't view ourselves or people like us as being in the position of deciding for society what the right social norms are, what the right definitions of fairness are. Our main point is to just show that if society or the relevant stakeholders in a particular domain can come to agreement on those sorts of things, there's a way of encoding that into algorithms in many cases, not in all cases. One other misconception that hopefully we definitely dispel is sometimes people read the title of the book and I think not unnaturally fear that what we're suggesting is that the algorithms themselves should decide what those social norms are and develop their own notions of fairness and privacy or ethics, and we're definitely not suggesting that. The title of the book is Ethical Algorithm, by the way, and I didn't think of that interpretation of the title. That's interesting. Yeah, yeah. I mean, especially these days where people are concerned about the robots becoming our overlords, the idea that the robots would also sort of develop their own social norms is just one step away from that. But I do think, obviously, despite disclaimer that people like us shouldn't be making those decisions for society, we are kind of living in a world where in many ways computer scientists have made some decisions that have fundamentally changed the nature of our society and democracy and sort of civil discourse and deliberation in ways that I think most people generally feel are bad these days, right? But they had to make, so if we look at people at the heads of companies and so on, they had to make those decisions, right? There has to be decisions, so there's two options, either you kind of put your head in the sand and don't think about these things and just let the algorithm do what it does, or you make decisions about what you value, you know, of injecting moral values into the algorithm. Look, I never mean to be an apologist for the tech industry, but I think it's a little bit too far to sort of say that explicit decisions were made about these things. So let's, for instance, take social media platforms, right? So like many inventions in technology and computer science, a lot of these platforms that we now use regularly kind of started as curiosities, right? I remember when things like Facebook came out and its predecessors like Friendster, which nobody even remembers now, people really wonder, like, why would anybody want to spend time doing that? I mean, even the web when it first came out, when it wasn't populated with much content and it was largely kind of hobbyists building their own kind of ramshackle websites, a lot of people looked at this and said, well, what is the purpose of this thing? Why is this interesting? Who would want to do this? And so even things like Facebook and Twitter, yes, technical decisions were made by engineers, by scientists, by executives in the design of those platforms, but, you know, I don't think 10 years ago anyone anticipated that those platforms, for instance, might kind of acquire undue, you know, influence on political discourse or on the outcomes of elections. And I think the scrutiny that these companies are getting now is entirely appropriate, but I think it's a little too harsh to kind of look at history and sort of say like, oh, you should have been able to anticipate that this would happen with your platform. And in this sort of gaming chapter of the book, one of the points we're making is that, you know, these platforms, right, they don't operate in isolation. So unlike the other topics we're discussing, like fairness and privacy, like those are really cases where algorithms can operate on your data and make decisions about you and you're not even aware of it, okay? Things like Facebook and Twitter, these are, you know, these are systems, right? These are social systems and their evolution, even their technical evolution because machine learning is involved, is driven in no small part by the behavior of the users themselves and how the users decide to adopt them and how to use them. And so, you know, I'm kind of like who really knew that, you know, until we saw it happen, who knew that these things might be able to influence the outcome of elections? Who knew that, you know, they might polarize political discourse because of the ability to, you know, decide who you interact with on the platform and also with the platform naturally using machine learning to optimize for your own interest that they would further isolate us from each other and, you know, like feed us all basically just the stuff that we already agreed with. So I think, you know, we've come to that outcome, I think, largely, but I think it's something that we all learned together, including the companies as these things happen. You asked like, well, are there algorithmic remedies to these kinds of things? And again, these are big problems that are not going to be solved with, you know, somebody going in and changing a few lines of code somewhere in a social media platform. But I do think in many ways, there are definitely ways of making things better. I mean, like an obvious recommendation that we make at some point in the book is like, look, you know, to the extent that we think that machine learning applied for personalization purposes in things like newsfeed, you know, or other platforms has led to polarization and intolerance of opposing viewpoints. As you know, right, these algorithms have models, right, and they kind of place people in some kind of metric space, and they place content in that space, and they sort of know the extent to which I have an affinity for a particular type of content. And by the same token, they also probably have that same model probably gives you a good idea of the stuff I'm likely to violently disagree with or be offended by, okay? So you know, in this case, there really is some knob you could tune that says like, instead of showing people only what they like and what they want, let's show them some stuff that we think that they don't like, or that's a little bit further away. And you could even imagine users being able to control this, you know, just like everybody gets a slider, and that slider says like, you know, how much stuff do you want to see that's kind of, you know, you might disagree with, or is at least further from your interest. It's almost like an exploration button. So just get your intuition. Do you think engagement, so like you staying on the platform, you're staying engaged. Do you think fairness, ideas of fairness won't emerge? Like how bad is it to just optimize for engagement? Do you think we'll run into big trouble if we're just optimizing for how much you love the platform? Well, I mean, optimizing for engagement kind of got us where we are. So do you, one, have faith that it's possible to do better? And two, if it is, how do we do better? I mean, it's definitely possible to do different, right? And again, you know, it's not as if I think that doing something different than optimizing for engagement won't cost these companies in real ways, including revenue and profitability potentially. In the short term at least. Yeah. In the short term. Right. And again, you know, if I worked at these companies, I'm sure that it would have seemed like the most natural thing in the world also to want to optimize engagement, right? And that's good for users in some sense. You want them to be, you know, vested in the platform and enjoying it and finding it useful, interesting, and or productive. But you know, my point is, is that the idea that there is, that it's sort of out of their hands as you said, or that there's nothing to do about it, never say never, but that strikes me as implausible as a machine learning person, right? I mean, these companies are driven by machine learning and this optimization of engagement is essentially driven by machine learning, right? It's driven by not just machine learning, but you know, very, very large scale A, B experimentation where you kind of tweak some element of the user interface or tweak some component of an algorithm or tweak some component or feature of your click through prediction model. And my point is, is that anytime you know how to optimize for something, you, you know, by def, almost by definition, that solution tells you how not to optimize for it or to do something different. Engagement can be measured. So sort of optimizing for sort of minimizing divisiveness or maximizing intellectual growth over the lifetime of a human being are very difficult to measure. That's right. And I'm not claiming that doing something different will immediately make it apparent that this is a good thing for society and in particular, I mean, I think one way of thinking about where we are on some of these social media platforms is that, you know, it kind of feels a bit like we're in a bad equilibrium, right? That these systems are helping us all kind of optimize something myopically and selfishly for ourselves and of course, from an individual standpoint at any given moment, like why would I want to see things in my newsfeed that I found irrelevant, offensive or, you know, or the like, okay? But you know, maybe by all of us, you know, having these platforms myopically optimized in our interests, we have reached a collective outcome as a society that we're unhappy with in different ways. Let's say with respect to things like, you know, political discourse and tolerance of opposing viewpoints. And if Mark Zuckerberg gave you a call and said, I'm thinking of taking a sabbatical, could you run Facebook for me for six months? What would you, how? I think no thanks would be my first response, but there are many aspects of being the head of the entire company that are kind of entirely exogenous to many of the things that we're discussing here. Yes. And so I don't really think I would need to be CEO of Facebook to kind of implement the, you know, more limited set of solutions that I might imagine. But I think one concrete thing they could do is they could experiment with letting people who chose to, to see more stuff in their newsfeed that is not entirely kind of chosen to optimize for their particular interests, beliefs, et cetera. So the, the kind of thing, so I could speak to YouTube, but I think Facebook probably does something similar is they're quite effective at automatically finding what sorts of groups you belong to, not based on race or gender or so on, but based on the kind of stuff you enjoy watching in the case of YouTube. Sort of, it's a, it's a difficult thing for Facebook or YouTube to then say, well, you know what? We're going to show you something from a very different cluster. Even though we believe algorithmically, you're unlikely to enjoy that thing sort of that's a weird jump to make. There has to be a human, like at the very top of that system that says, well, that will be longterm healthy for you. That's more than an algorithmic decision. Or that same person could say that'll be longterm healthy for the platform or for the platform's influence on society outside of the platform, right? And it, you know, it's easy for me to sit here and say these things, but conceptually I do not think that these are kind of totally or should, they shouldn't be kind of completely alien ideas, right? That, you know, you could try things like this and it wouldn't be, you know, we wouldn't have to invent entirely new science to do it because if we're all already embedded in some metric space and there's a notion of distance between you and me and every other, every piece of content, then, you know, we know exactly, you know, the same model that tells, you know, dictates how to make me really happy also tells how to make me as unhappy as possible as well. Right. The focus in your book and algorithmic fairness research today in general is on machine learning, like we said, is data, but, and just even the entire AI field right now is captivated with machine learning, with deep learning. Do you think ideas in symbolic AI or totally other kinds of approaches are interesting, useful in the space, have some promising ideas in terms of fairness? I haven't thought about that question specifically in the context of fairness. I definitely would agree with that statement in the large, right? I mean, I am, you know, one of many machine learning researchers who do believe that the great successes that have been shown in machine learning recently are great successes, but they're on a pretty narrow set of tasks. I mean, I don't, I don't think we're kind of notably closer to general artificial intelligence now than we were when I started my career. I mean, there's been progress and I do think that we are kind of as a community, maybe looking a bit where the light is, but the light is shining pretty bright there right now and we're finding a lot of stuff. So I don't want to like argue with the progress that's been made in areas like deep learning, for example. This touches another sort of related thing that you mentioned and that people might misinterpret from the title of your book, ethical algorithm. Is it possible for the algorithm to automate some of those decisions? Sort of a higher level decisions of what kind of, like what, what should be fair, what should be fair. The more you know about a field, the more aware you are of its limitations. And so I'm a, I'm pretty leery of sort of trying, you know, there's, there's so much we don't all, we already don't know in fairness, even when we're the ones picking the fairness definitions and, you know, comparing alternatives and thinking about the tensions between different definitions that the idea of kind of letting the algorithm start exploring as well.

本集资源与出处