第 344 期·中文精读

诺姆·布朗:扑克中 AI 与人类的对抗及策略性谈判博弈

Noam Brown: AI vs Humans in Poker and Games of Strategic Negotiation

OpenAI 研究者诺姆·布朗讲扑克 AI 的训练思路、博弈论基础与机器在谈判类任务中的推理。

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

2017 年 1 月,匹兹堡。一台叫 Libratus 的机器,在 20 天里跟四位世界顶级单挑无限注德州扑克(No Limit Texas Hold'em)选手打了 12 万手牌,赢走了接近 200 万美元的筹码。

同一批人,2015 年也打过一场。那次机器输得很难看,差距不小。

两年时间,对手没换,规则没换,赌注没换。变的是算法里一个很具体的选择,而这个选择后来被证明,比多算几百万手牌重要得多。

Libratus 是拉丁语,意思是"平衡"。名字是诺姆·布朗(Noam Brown)起的。他当时在卡内基梅隆读博,现在是 Meta AI(原 FAIR)的研究科学家。他参与打造的三个系统,构成了这条研究线的三级台阶:Libratus 打赢双人无限注德州扑克,Pluribus 打赢六人局,Cicero 在《外交》(Diplomacy)这个靠自然语言谈判推动的桌游里达到人类水平。

表面上这是三个游戏。往深了看,这是同一个问题的三种难度:信息不完全、对手会思考、对手还会说话。

无限注的真正区别,藏在人的心理阈值里

无限注德州扑克是全世界最流行的扑克变体。电影里那些场景,《007:大战皇家赌场》《赌王之王》,桌上玩的都是它。

跟限注版本比,规则差异只有一句话:你可以在任何时候把面前所有的筹码推进底池。限注局里底池有 2 美元,你最多只能下 2 美元。无限注局里,面前摆着 1 万美元,你就随时可以推 1 万美元进去。

开局底池可能只有一两美元,一手牌打完,桌上可能已经有 1000 美元。筹码量能以极快的速度放大,这个选项永远摆在桌上。

布朗提到一个词,jumpy,大致可以译成"跳脚"。很多人在无限注里输钱,输在这个地方:坐下的时候想的是玩个一百美元,打了两圈,底池突然变成一千美元,手就开始抖,判断就开始变形。

他自己给了一个很生活化的解释。打扑克你要选的,是期望值最大的那个动作。这跟投资是一个逻辑:如果桌上这笔钱的输赢会实质影响你的生活,你就会不自觉地转向风险厌恶。对手推一个大注过来,你脑子里冒出来的第一句话往往是"这太多了,我承受不起"。这一瞬间,你已经不在算牌了。

反过来,主动推大注的人也吃同一碗饭。扑克的核心策略之一,就是把对手放进一个不舒服的位置。底池里躺着 50 美元,你甩进去 1000 美元,如果时机选对,对手就被迫在一个他从来没准备好面对的量级上做决定。

这件事当然双向。推错了,你也会输掉一大笔。布朗说得很直白,不懂行的人在无限注里亏钱非常容易,但反过来,上升空间也大。

所以"无限注奖励疯子"这个说法只对了一半。它奖励的是那种能精确控制自己疯狂频率的人。真正被惩罚的,是承受不了那个数字的人。

纳什均衡:石头剪刀布里藏着的那个真理

任何有限的、双人的、零和博弈,都存在一个最优策略。你按它打,不管对手做什么,期望上你不会输。

这个结论对很多人来说是反常识的,但它在象棋里成立,在扑克里成立,在所有满足条件的双人零和博弈里都成立。

布朗用石头剪刀布给直觉。你按相同概率出石头、剪刀、布,对手怎么出都无所谓,长期下来你不会亏。

扑克同理。存在一套非常复杂的策略,按它打,长期你不会输钱,实际对局里大概率还会赢。

"期望"这个词要拆开看。扑克方差极大,你会赢一些牌,也会输一些牌,就算打的是完美策略,也没法保证每一手都赢。打得足够久,至少不亏,通常还会赚。这个"期望"讲的是筹码量长期的变化,它不含一个现实约束:你会不会中途破产。理论上你不会,现实里你可能已经没钱上桌了。

"有限"这个条件其实很宽松。大多数游戏本来就是有限的,很多无限游戏里也存在这套完美策略,只要满足紧致性一类的技术条件。真有反例,比如那个著名的小游戏:谁报的数字大谁赢。这个游戏没有纳什均衡。访谈里两人还当场玩了一把,莱克斯喊 17,布朗喊 18,赢了。

"零和"这个条件更关键。我赢 50 美元,就意味着你输 50 美元,总量守恒。

一旦走出双人零和,纳什均衡依然存在,但它的意义大打折扣。布朗举了《风险》(Risk)这个游戏:如果桌上其他所有人商量好了联手先把你灭了,你没有任何一套策略能保证自己赢。你做什么都没用。

六人扑克也在这条线上。它依然是筹码守恒的,但三个以上玩家同场,纳什均衡给不了你"不会输"的保证。双人博弈里,策略是你的护城河;多人博弈里,别人的联合才是你的天花板。

这也解释了一件很多人没意识到的事:为什么扑克 AI 的进展顺序是先双人、后六人。Pluribus 打赢六人局发生在 Libratus 之后,间隔一年多。技术上六人局的复杂度高得多,但更大的障碍在于,理论保证在多人局里消失了,你没法再声称自己"不可被击败",只能声称自己在实战里赢了。

反事实遗憾最小化:把"如果我当时"算到底

怎么找到那个均衡?布朗团队用的是自我对弈(self play)。

算法一开始完全随机地打牌,打到一手牌结束,赢了 50 美元,然后回头复盘:如果我当时选另一个动作会怎样?如果我在这一步加注而不是跟注,对手会怎么反应?因为对面坐的是自己的副本,这个反事实推理做得出来。它会算出"如果我这么走,对手那么走,我再这么走,最后能赢 150 美元而不是 50"。

然后它更新那个动作的后悔值(regret)。后悔值大致等于:过去没打这个动作,我有多后悔。下次遇到同样的局面,后悔值高的动作被选中的概率就更高。

这个过程反复跑,后悔值不断累积。按正确的方式把高后悔值动作的概率提上去,数学上可以证明它会收敛到纳什均衡。哪怕是不完全信息博弈,结论照样成立。

这个方法叫反事实遗憾最小化(counterfactual regret minimization,CFR)。它不必然绑定自我对弈,只是自我对弈是它最自然的实现方式,也是一种有理论保证的强化学习。

布朗特意点了一句:这套东西跟人类学牌的方式非常像。你跟朋友打完一手牌,会问一句"如果我在转牌加注,你会跟吗"。这就是在做反事实推理,跟算法干的事一模一样。规模放大到千万手,你就能逼近一套最优策略。

这里有个细节值得技术人留意。CFR 的强项不只是"会学习",而是"有证明"。在完全信息博弈里,你甚至不需要这么严密的算法,随便来点蒙特卡洛树搜索加上自我对弈就能收敛。一旦进入不完全信息,理论的严密性就变成了必需品,随手的工程手段会直接失效。

10 的 161 次方:为什么需要神经网络

问题在于,无限注德州扑克的决策点数量大概是 10 的 161 次方。宇宙里的原子数大约是 10 的 80 次方,平方一下是 10 的 160 次方。这个游戏的规模比"宇宙原子数的平方"还大一截。

你不可能遍历所有局面。你也不可能指望再次遇到完全相同的局面,概率低到可以忽略。神经网络解决的是"相似":遇到一个没见过的局面,它可以从见过的、结构类似的局面里泛化,把那些局面上积累的后悔值迁移过来。

布朗补了一句,这个数字还取决于筹码量怎么设置,不同版本会有出入。但量级摆在这里,多一两个数量级不改变结论。

训练用的版本里,机器自己的下注尺度是有约束的,它只在一个有限的候选集里选。但对面的真人选手不受这个限制,想推多少推多少。这构成了一个不对称:对手可以出招到你的搜索空间之外,你不能。所以搜索模块必须能处理"预期之外的输入",这跟很多工程系统面临的处境是一样的。

扑克和象棋,哪个更难

这是个会吵起来的问题。布朗的回答很干脆:扑克。他还开了个玩笑,说这个答案大概会让 DeepMind 的大卫·席尔瓦(David Silver)不太高兴。

不完全信息是第一个理由。德州扑克里,你拿到两张牌,只有你能看见;对手也拿到两张,只有他能看见。你打牌的时候得同时算四件事:他以为我有什么,我有什么,他有什么,他以为我以为他有什么。

诈唬能成立,全靠这个不对称。你手里的牌很烂,但你下注,对手不知道,你就有可能赢下这一手。

第二个理由更微妙,也更值得琢磨:在不完全信息博弈里,策略不只是"打哪个动作",还包括"以多大概率打这个动作",而概率本身决定了这个动作的价值。

回到石头剪刀布。你每次都出石头,对手很快发现规律,你的石头就不值钱了。你几乎从不出石头,只出 1% 的时候出,对手大概率在出剪刀,这时候你石头的价值高得离谱。

平移到扑克:你从来不诈唬,名声在外,某一天突然诈唬一次,成功率极高,赚得很多。反过来,你被人看出是个诈唬惯犯,你一诈唬就被人跟到底,你会输得很惨。找到那个诈唬频率,就是扑克的核心难题。

象棋里没有这回事。你十次开局走王后弃兵,还是一百次走王后弃兵,这个动作的期望值不变。

所以扑克的算法要解决的是两件事:每个动作值不值得打,以及每个动作该用多高的频率去打。后一件才是真正难的地方,也是前面那些 CFR、搜索、神经网络存在的理由。Libratus 这个名字取"平衡",就是因为它被设计成去找那个频率上的平衡点。

频率不只管诈唬。下注多少、用哪些牌下注、大注还是小注,全都是频率问题。所谓"范围"(range)这个概念就来自这里:你在某个位置诈唬的时候,不希望对手能抓到规律,所以你得同时想"如果我手里是好牌,我会不会也这么打"。你的动作要能被对手映射到很多种手牌,这个动作才够好。

这套"我知道你知道我知道"的推理,在成功的扑克 AI 里是被显式建模的。共同知识的信念状态,被直接写进了算法。它没有从对局里自己涌现出来。

12 万手牌,200 万美元,和 2015 年那场惨败

布朗读博期间,每年有个"计算机扑克竞赛",全世界做扑克 AI 的实验室带着自己的机器人来对打。他们的机器人赢了 2014 年和 2016 年的比赛。

他们决定把这个东西推到真人顶级选手面前。四位专精单挑无限注德州扑克的世界级选手,20 天,12 万手牌,20 万美元奖金池,按四个人互相之间的相对战绩分配,目的是让他们有动机认真打。

这不是他们第一次干这件事。2015 年,团队带着当时的版本跟职业选手打过一场,输得很明显。

从 2015 到 2017,改进的核心在算法层面。

2015 年的思路是"先把整个游戏解出来"。赛前把能算的算完,做成一张巨大的查询表,实战时遇到什么局面就查表。

2017 年的思路转向实时搜索。赛前那张表只作为起点,每次真正做决策的时候,现场再算一遍:针对当前这个具体局面,重新求一个更好的策略。

听起来像工程优化,实际上是范式差异。查表意味着你把计算预算花在赛前,把所有可能性都铺平;实时搜索意味着你把预算花在当下这个点上,只算眼前这一步。前者在遇到表外局面时会直接崩掉,后者天然有应对空间。

搜索空间长什么样?象棋里的搜索是你在这个局面下能走哪些棋,走完之后局面变成什么样。扑克里搜的东西更绕:你搜的是自己可以采取的动作、采取这些动作的概率,以及你如果拿的是别的牌,你会怎么做。

最后这一项是最难理解的。你手里一把烂牌,想诈唬。这个诈唬好不好,取决于你会不会在同样的位置用好牌也下注。如果你只在烂牌时下注,那就是明牌诈唬,对手一眼看穿。所以算法必须同时评估"我拿好牌的时候怎么打",两边的频率要配平,对手才会陷入两难:这注到底该跟还是该弃。

这正是布朗说的目标:永远让对手留着一丝怀疑。

最终的结果是,12 万手牌,接近 200 万美元。这一次机器人没有试图适应对手,没有试图读人,没有搞任何心理战,它只是在逼近纳什均衡。

然后它把四位顶级选手打崩了。

GTO 与剥削:一场持续多年的争论,被一场比赛终结

扑克圈和学术界为这件事吵了很久。一边叫 GTO(game theory optimal,博弈论最优),一边叫剥削性打法(exploitative play)。

2017 年之前,占上风的其实是后者。很多人说,博弈论那套东西纯属纸上谈兵,真想赚钱,你得盯着对手的眼睛,读出他的灵魂,猜出他手里是什么牌。

后来情况慢慢变了。一批选手开始老老实实打接近 GTO 的策略,赚到了钱,而且不太去调整自己适应对手。Libratus 那场比赛把这件事钉死了。

但布朗对菲尔·赫尔穆特(Phil Hellmuth)的评价很有意思。他承认这位扑克传奇有时候打得并不"最优",可他就是赢。布朗的解释是,赫尔穆特的强项不在于让自己变得不可预测,而在于他能引导对手犯错:让对手以为自己有某个弱点,然后预判对手会怎么调整打法,再反手针对这个调整。

这是个两层结构。第一层,你偏离均衡去剥削对手。第二层,对手发现你在剥削他,他也偏离均衡来反制你。谁在第二层站得更高,谁就赢。

顶尖人类选手通常的做法是:先把自己的策略打到接近均衡,让自己不可被剥削;同时在实战中观察对手哪里露出了破绽,再针对性地偏出去一点。偏离是有限度的,因为每一次偏离都在给对方留下可利用的空间。

这里有个常被混淆的点需要说清。纳什均衡不等于"可预测"。恰恰相反,均衡策略的全部意义就在于让你变得难猜。赫尔穆特的混乱风格之所以有效,是因为它让对手无法建立稳定的模型,这跟均衡策略要达到的效果在方向上是一致的,只是路径不同。

访谈里莱克斯问了一个布朗没往深处答、但其实挺重要的问题:能不能把"表演性"也建模进去?职业牌手的收入大头来自赞助和曝光,不来自牌桌。一个能说垃圾话、能制造节目效果、偶尔故意打得离谱的 AI,在商业上是更值钱的。

这已经不是博弈论问题了。

会赢的 AI 和好玩的 AI,是两种东西

布朗把这个区分讲得很清楚:赢下一个游戏的 AI,和让人愿意跟它玩的 AI,是两码事。再加上一个维度,让人愿意看它玩的 AI,又是第三码事。

他听过做游戏 AI 的人讲过这个。《文明》(Civilization)系列里的 AI 从来不打最优解,它们在做另一件事:制造人格,制造性格,让局面好看。真按胜率优化,游戏会变得很难玩。

莱克斯刚跟托德·霍华德(Todd Howard)聊过,就是《辐射》《上古卷轴》《星空》背后的那个人。话题自然滑到 NPC 上:大语言模型会把开放世界 RPG 里的 NPC 变成什么样。

布朗的判断是,这可能是大语言模型最早进入大众消费场景的应用之一。《上古卷轴 6》大概快做完了,赶不上;《上古卷轴 7》用上语言模型,他一点都不意外。莱克斯在旁边补了一句"这是我猜的,不是他说的",两人笑了一下。

更有意思的是布朗讲的一段往事。他读书时听一位游戏公司高管的分享,台下有人问:为什么这些游戏全都围绕着打打杀杀?那位高管的回答是,做一个能跟你对话、能跟你合作的 AI,比做一个能跟你对打的 AI,难太多了。

这个解释放在今天看,依然成立,但正在松动。当对话不再需要逐句写死脚本,非战斗类的交互就有了空间。大量以合作为核心、以关系为核心的游戏形态会被解锁。

莱克斯提了个更野的方向:未必是正向的,可能只是戏剧性。你进《使命召唤》,不开枪,蹲在角落里跟一个 AI 拌嘴,被它阴阳怪气了一顿,晚上睡不着,第二天专门回去把这场架吵完。

布朗觉得这个方向挺带劲。游戏世界有个天然优势:玩家心里清楚这不是真实世界,所以 AI 犯点错、出点乱子,代价可控。就像《外交》这个游戏,它不是真实的地缘政治,不是真实的战争,它是个游戏,可以在里面放一点混乱,放一点乐趣。

从没有语言的博弈,到有语言的博弈

扑克和《外交》,中间隔着一道坎。

扑克是纯策略博弈,全程没有一句话。所有信息都编码在动作里:下注、加注、跟注、弃牌。诈唬是用筹码说的谎。对手能读的只有你的下注模式,你能藏的只有自己的牌。

《外交》不一样。七个玩家,一战前的欧洲,谈判、结盟、背叛、承诺、威胁,全部通过自然语言完成。你要说服法国跟你一起打德国,你要在最后一刻撕毁约定去抢补给中心,你还得在下一轮重新找到盟友。

这里的不完全信息,不只是"你手里有什么牌"。更麻烦的是"你说的话算不算数"、"你现在的盟友明天会不会反水"、"你刚才那句承诺是真心还是缓兵之计"。牌是固定的,意图是流动的。

Cicero 在 2022 年登上 webDiplomacy 平台的匿名对局,40 局下来,平均得分是人类玩家的两倍以上,进入了前 10%。它由两部分组成:一个负责战略推理的规划模块,一个负责生成对话的语言模型。规划模块算出该跟谁结盟、该往哪调兵,语言模型负责把这些意图翻译成让对面信服的人话。

这套组合的难度在于,两半必须对齐。战略上你需要法国按兵不动,语言上你就得找出一个法国愿意相信的理由,而且这个理由在后续几十轮里还得自洽,不能自己打自己的脸。

扑克 AI 里那个"共同知识信念状态"的显式建模,在《外交》里变成了另一种形态:你要建模的不只是对手认为你手里有什么牌,还要建模对手相信你这个人有多可信。前者是概率,后者是声誉。

从 Libratus 到 Cicero,布朗走的是一条很清晰的线:先解决只有动作的博弈,再解决有语言、需要建立信任的博弈。前者考的是概率和平衡,后者考的是意图和信誉。而人类世界里绝大多数难题,都是后者。

这也是为什么扑克那套东西值得技术人认真看一遍。你做产品定价,对手是竞品;你做招聘谈判,对手是候选人;你做商务合作,对手是合作方。这些场景的共同结构是:信息不对称、对手在思考、你的动作会被解读成信号、你的声誉会影响下一轮的价值。

这四条,恰好就是扑克。

  • 先判断你面对的是"完全信息"场景还是"不完全信息"场景。象棋式的场景里,把每一步算到最优就够了;扑克式的场景里,只算最优会被人读穿。
  • 在不完全信息场景里,主动保留随机性。固定套路一旦被识别,价值就会归零。同一个决策,故意用不同方式处理,哪怕单次看不是最优。
  • 做复盘时,问那句扑克选手会问的话:如果我当时换一种打法,对手会怎么反应。只复盘自己做了什么远远不够,要复盘对手的应对函数。
  • 评估一个策略的好坏,看它在对手最优应对下的表现,不要只看它在对手犯错时的表现。后者只能证明对手菜。
  • 多人博弈里放弃"必胜策略"的幻想。你能控制的是自己不被联合针对,控制不了别人是否结盟。把精力放在降低自己被围剿的概率上。
  • 做决策前先问一句:这个动作能不能被对方翻译成唯一含义。如果你的每一个动作都指向一种意图,你在谈判桌上就没有任何杠杆。
  • 如果你想做出让人愿意用的 AI 产品,别只盯着胜率或准确率。好玩、可信、有性格,是另一条独立的优化目标,需要单独设计。
文稿由本站用语音识别模型(基于官方发布音频)机器转写,可能有识别错误,人名与数字请以音频为准。
Lex Fridman Podcast #344 – Noam Brown: AI vs Humans in Poker and Games of Strategic Negotiation Machine transcription by Qwen3-ASR 0.6B (MLX, local, Apache-2.0). May contain recognition errors. The following is a conversation with No Brown, research scientist at Fair Facebook AI Research Group at Meta AI. He co-created the first AI system that achieved superhuman level performance in No Limit Texas Hold'em both heads up and multiplayer. And now recently he co-created an AI system that can strategically out negotiate humans using natural language in a popular board game called Diplomacy, which is a war game that emphasizes negotiation. And now a quick few second mention of each sponsor. Check them out in the description. It's the best way to support this podcast. We got True Classic T's for shirts, Audible for audiobooks, Inside Tracker for bio monitoring and ExpressVPN for ISP privacy. Choose wisely, my friends. And now onto the full ad reads as always no ads in the middle. I try to make this interesting but if you skip them, please still check out the sponsors. I enjoy their stuff, maybe you will too. This show is brought to you by True Classic T's, high quality soft slim fitted T shirts for men. They also make all the other menswear staples like polo's, workout shirts and boxers. I mostly wear their black T shirt. And that's what I am wearing right now. I have a ton of them. I enjoy how it feels. I enjoy how it looks. That's like the standard default look of the the guy behind the keyboard. I guess programmer. I wonder when the T-shirt was created. Looking up on Wiki, the T-shirt evolved from undergarments used in the 19th century and in the mid 20th century transitioned from undergarments to general use casual clothing. Okay, wonderful. Anyway, go to trueclassic dot com and enter code Lex to get 25% off. This episode is brought to you by Audible, an audiobook service that has given me hundreds if not thousands of hours of education through listening to audiobooks. I am currently re-listening for the. I don't know how many times I've re-listened to this book. How many times I've read it, but George Orwell's 1984, not nearly as many times as Animal Farm. I don't know why exactly, but Animal Farm just as a story just connects with me—a basic fable of creatures being not so good to each other and being greedy and also being good to each other and having personalities and just in a simple way that sort of whatever animals are made in a children like story—it's simple but it can still get to the profound and I think I like to think of life in those terms. Anyway, I am currently listening to 1984. It's really well sort of spoken voice or whatever on Audible, so I highly recommend it. New members can try free for 30 days at audible dot com slash Lex or text Lex to 500 500. This show is also brought to you by Inside Tracker, a service I use to track biological data. Did you know there is 1.2 to 1.5 gallons of blood in a human being? It's approximately 10% of adults' weight. I remember like reading some insane stats on the volume of blood pumped a day through the human body. It's kind of it's just incredible. Sort of this whole machinery that interacts with oxygen. I mean, just with the chemistry of Earth interacts with it. It uses energy ultimately from the sun and the photosynthesis is involved with the plants. The whole like system is just freaking incredible and it's just so full of data. Like imagine being able to measure all of that about life on Earth. Yeah, so Inside Tracker is like early steps in being able to measure directly from the human body. Get 200 off Inside Tracker's ultimate plan or 34% off the entire store when you go to insidetracker dot com slash Lex. This show is also brought to you by ExpressVPN. I use them to protect my privacy on the internet. I've used them for many many years. Through thick and thin, when I was lost in this too big world of ours and looking for the truth out there and protecting my privacy all along. I remember being really excited to learn that it can work on Android that it can work on Linux. So it works on any operating system and it just doesn't feel like it's there. Everything is super fast whether you have the VPN or not. It's kind of incredible. It's incredible how this technology works and it it conceals your location from the perspective of the website or service that you are using online. It's it's an incredible tool should be the first layer of protection of your privacy on the internet. Go to expressvpn dot com slash Lex Pod for an extra three months free. This is the Lex Friedman podcast. To support it, please check out our sponsors in the description. And now, dear friends, here is No Brown. You've been a lead on three amazing AI projects. So we got Libras that solved or at least achieved human level performance on No Limit Texas Hold'em poker with two players heads up. You got Pluribus that solved No Limit Texas Hold'em poker with six players. And just now you have Cicero. These are all names of systems that solved or achieved human level performance on the game of Diplomacy, which for people who don't know is a popular strategy board game. It was loved by JFK, John F Kennedy and Henry Kissinger and many other big famous people in the decade since. So let's talk about poker and diplomacy today. First poker, what is the game of No Limit Texas Hold'em and how is it different from chess? Well, No Limit Texas Hold'em poker is the most popular variant of poker in the world. So you know you go to a casino, you play, sit down at the poker table. The game that you are playing is No Limit Texas Hold'em. If you watch movies about poker like Casino Royale or Rounders, the game that they're playing is No Limit Texas Hold'em poker. Now it's very different from Limit Hold'em in that you can bet any amount of chips that you want and so the stakes escalate really quickly. You start out with like one or two dollars in the pot and then by the end of the hand you've got like a thousand dollars in there maybe. So the option to increase the number very aggressively very quickly is always there. Right, the no limit aspect is there is no limit to how much you can bet. You know you in Limit Hold'em, there is like two dollars in the pot you you can only bet like two dollars but if you got ten thousand dollars in front of you you are always welcome to put ten thousand dollars into the pot. So I got a chance to hang out with Phil Hellmuth who plays all these different variants of poker. And correct me if I am wrong, but it seems like No Limit rewards crazy versus the other ones rewards more kind of calculated strategy or or no because you are sort of looking from an from an analytic perspective is is strategy also rewarded in No Limit Texas Hold'em. I think both variants reward strategy, but I think what's different about No Limit Hold'em is it's it's much easier to get jumpy. You know you go in there thinking you are going to lose. You know you are going to play for like a hundred dollars or something and suddenly there is like you know a thousand dollars in the pot. A lot of people can't handle that. Can you define jumpy? When you are playing poker, you always want to choose the action that's going to maximize your expected value. It's kind of like kind of like with investing right like if you are ever in a situation where you are the amount of money that's at stake is is going to have a material impact on your life, then you are going to play in a more risk averse style. You know if somebody makes a huge bet, you are going to if you are playing No Limit Hold'em and somebody makes a huge bet, there might come a point where you are like this is too much money for me to handle like I can't risk this amount and that's what throws a lot of people off. So that's the big difference I think between No Limit and Limit. What about on the action side when you are actually making that big bet? That's what I mean by crazy. I was I was trying to refer to the the technical the the technical term of crazy meaning use the big jump in the bet to completely throw off the other person in terms of their ability to reason optimally. I think that's right. I think one of the key strategies in poker is to put the other person into an uncomfortable position and if you are doing that then you are you are playing poker well and there is a lot of opportunities to do that in No Limit Hold'em you know you can have like fifty dollars in there you throw in a thousand dollar bet and you know that sometimes if you do it right it puts the other person in a really tough spot now it's also possible that you make huge mistakes that way and so it's really easy to lose a lot of money in No Limit Hold'em if you don't know what you are doing but there is a lot of upside potential too. So when you build systems AI systems that play these games, we'll talk about poker, we'll talk about diplomacy. Are you are you drawn in in part by the beauty of the game itself? AI aside, or is it to you primarily a fascinating problem set for the AI to solve? I am drawn in by the beauty of the game. When I I started playing poker when I was in high school and the idea to me that there is a correct an objectively correct way of playing poker and if you could figure out what that is then you are you know you are making unlimited money basically. That's like a really fascinating concept to me. And so I was fascinated by the strategy of poker, even when I was like 16 years old. It wasn't until like much later that I actually worked on poker AI's. So there was a sense that you can solve poker like in the way you can solve chess for example or checkers. I believe checkers got solved right. Yeah checkers checkers is completely solved optimal strategy. It's impossible to beat the AI. Yeah and so in that same way you could technically solve chess. You could solve chess. You could solve poker. You could solve poker. So this is this gets into the concept of Nash equilibrium. So what is Nash equilibrium? Okay, so in any finite two player zero sum game, there is an optimal strategy that if you play it you are guaranteed to not lose an expectation no matter what your opponent does. And this is kind of a radical concept to a lot of people, but it's true in chess, it's true in poker, it's true in any finite two player zero sum game. And to give some intuition for this, you can think of rock paper scissors. In rock paper scissors, if you randomly choose between throwing rock paper and scissors with equal probability, then no matter what your opponent does, you are not going to lose an expectation. You are not going to lose an expectation in the long run. Now the same is true for poker. There exists some strategy, some really complicated strategy that if you play that you are guaranteed to not lose money in the long run and I should say this is for two player poker, six player poker is a different story. Yeah it's a beautiful giant mess. When you say in expectation, you are guaranteed not to lose in expectation. What does in expectation mean? Poker is a very high variance game, so you are going to have hands where you win, you are going to have hands where you lose, even if you are playing the perfect strategy, you can't guarantee that you are going to win every single hand, but if you play for long enough, then you are guaranteed to at least break even and and in practice probably win. So that's in expectation the size of your stack generally speaking. Now that doesn't include anything about the fact that you can go broke. It doesn't include any of those kinds of normal real world limitations. You are talking in a in a theoretical world. What about the the zero sum aspect? How big of a constraint is that? How big of a constraint is finite? So finite's not a huge constraint. So I mean most games that you play are finite in size. It's also true actually that there exists this like perfect strategy in many infinite games as well. Technically the game has to be compact. There are like some edge cases where you don't have an Nash equilibrium in a two player zero sum game. So you can think of a game where like you know if we're playing a game where whoever names the bigger number is the winner, there is no Nash equilibrium to that game. 17. Yeah, 18. You beat. You win again. You are good at this. Played a lot of games. Okay, so that's and then the zero sum aspect the zero zero sum aspect. So there exists a Nash equilibrium in non two player zero sum games as well. And by the way, just to clarify what I mean by two player zero sum, I mean there is two players and whatever one player wins the other player loses. So if we're playing poker and I win fifty dollars, that means that you are losing fifty dollars. Now outside of two player zero sum games, there still exists Nash equilibrium, but they're not as meaningful because you know you can think of a game like risk. If everybody else at the and on the board decides a team up against you and take you out, there is no perfect strategy you can play that's going to guarantee that you win there. There is just nothing you can do. So outside of two player zero sum games, there is no guarantee that you are going to win by playing a Nash equilibrium. Have you ever tried to model in the other aspects of the game, which is like the pleasure you draw from playing the game and then if you are a professional poker player, if you are exciting even if you lose. The you know the money you would get from the attention you get to the sponsors and all that kind of stuff is that that would be a fun thing to model to model in. I wish that would make it sort of super complex to include the human factor and this in its full complexity. I think you bring up a couple good points there. So I think a lot of professional poker players, I mean they get a huge amount of money not from actually playing poker but from the sponsorships and having a personality that people want to tune in and watch that that's a big that's a big way to to make a name for yourself in poker. I just wonder from an AI perspective if you create and we'll talk about this more maybe an AI system that also talks trash and all that kind of stuff that that becomes part of the function to maximize so it's not just optimal poker play maybe sometimes you want to be chaotic maybe sometimes you want to be suboptimal and you lose the the chaos and maybe sometimes you want to be overly aggressive because the audience loves that. Yeah, fascinating. I think I think what you are getting at here is that there is a difference between making an AI that wins a game and an AI that's fun to play with. Yeah, yeah, and or fun to watch. So those are all different things, fun to play with and fun to watch. Yeah, and I think you know I've I've heard talks from like game designers and and they say like you know people that work on AI for actual recreational games that people play and they say yeah there is a big difference between trying to make an AI that actually wins and you know you look at a game like Civilization the way that the AI's play is not optimal for trying to win they're they're playing a different game they're trying to have personalities they're trying to be fun and engaging and that makes for a better game. Yeah and we also talk about NPCs. I just talked to Todd Howard who is the the creator of Fallout and the Elder Scrolls series and Starfield a new game coming out and the creator what I think is the greatest game of all time which is Skyrim and the NPCs there the AI that governs that whole game is very interesting but the NPCs also are super interesting and considering what language models might do to NPCs in an open world RPG role playing game. It's super exciting. Yeah, honestly, I am. I think this is like one of the first applications where we're going to see like real consumer interaction with large language models. I guess let Skyrim Elder Scrolls six is in development now. They're probably like pretty close to finishing it, but I would not be surprised at all if Elder Scrolls seven was using large language models for their NPCs. No, they're not. They're I mean I am not saying anything. Not saying anything. Okay, this is me speculating, not you. No, but but there is they're just releasing the Starfield game. They do one game at a time. Yeah, and so whatever it is, whenever the date is, I don't know what the date is. Calm down, but it would be I don't know like 2024, 25, 26. So it's actually very possible that would include language models. I was listening to this this talk by a gaming executive when I was in grad school, and one of the questions that a person in the audience asked is why are all these games so focused on fighting and killing? And the person responded that it's just so much harder to make an AI that can talk with you and cooperate with you than it is to make an AI that can fight you. And I think once this technology develops further and you can have you can reach a point where like not every single line of dialogue has to be scripted, it unlocks a lot of potential for new kinds of games like much more like positive interactions that are not so focused on fighting and I am really looking forward to that. It might not be positive, it might be just drama. So you you'll be in like a Call of Duty game instead of doing the shooting, you'll just be hanging out and like arguing with an AI about like like passive aggressive and then you won't be able to sleep that night. You have to return and continue the argument that you were emotionally hurt. I mean, yeah, I think that's actually an exciting world. Whatever, whatever is the drama, the chaos that we love the push and pull of human connection. I think it's possible to do that in the video game world, and I think you could be messier and make more mistakes in the video game world, which is why it would be a nice place and and also it doesn't have a deep of a as deep of a real psychological impact because inside video games it's kind of understood that you are in a not a real world so whatever crazy stuff AI does we have some flexibility to play just like with a game of diplomacy it's a game this is not real geopolitics not real war it's a it's a game so you could you can have a little bit of fun a little bit of chaos okay back to Nash equilibrium how do we find the Nash equilibrium? All right, so there is different ways to find a Nash equilibrium. So the way that we do it is with this process called self play. Basically, we have this algorithm that starts by playing totally randomly and it learns how to play the game by playing against itself. So it will start playing the game totally randomly and then it you know if it's playing poker it'll eventually like get to the end of the end of the game and make fifty dollars, and then it will like review all the decisions that it made along the way and say what would have happened if I had chosen this other action instead. You know if I had raised here instead of called, what would the other player have done? And because it's playing against a copy of itself, it's able to do that counterfactual reasoning. So it can say, okay, well if I took this action and the other person takes this action and then I take this action and eventually I make one hundred fifty dollars instead of fifty. And so it updates the regret value for that action. Regret is basically like how much does it regret having not played that action in the past, and when it encounters that same situation again, it's going to pick actions that have higher regret with higher probability. Now it'll just keep simulating the games this way. It'll keep you know accumulating regrets for different situations, and in the long run, if you pick actions that have high regret with higher probability in the correct way, it's proven to converge to a Nash equilibrium. Even for super complex games, even for imperfect information games. It's true for all games. It's true for it's true for chess. It's true for poker. It's particularly useful for poker. So this is the the method of counterfactual regret minimization. This is counterfactual regret minimization. That doesn't have to do with self play. Has to do with just any if you follow this kind of process self play or not. You will be able to arrive at an optimal set of actions. So this counterfactual regret minimization is a kind of self play. It's a principled kind of self play that's proven to converge to Nash equilibrium even in imperfect information games. Now you can have other forms of self play and people use other forms of self play for perfect information games. Um, where you have more flexibility the algorithm doesn't have to be as theoretically sound. Um, in order to converge to to that class of games because there's it's a simpler setting. Sure. So I kind of in in my brain the word self play has mapped to neural networks but we're speaking something bigger than just neural networks it could be anything. The self play mechanism is just the mechanism of a system playing itself. Exactly. Yeah, self play is not tied specifically to neural nets. It's it's a kind of reinforcement learning basically. Okay. And I would also say this process of like trying to reason oh what would the value have been if I had taken this other action instead. This is very similar to how humans learn to play a game like poker right like you probably played poker before and with your friends you probably ask like oh would you have called me if I raised there. You know and that's that's a person trying to do the same kind of like learning from a counterfactual that the AI is doing. Okay and if you do that at scale you are going to be able to learn an optimal policy. Yeah. Now where the neural nets come in I said like okay if it's in that situation again then it will choose the action that has has high regret now the problem is that poker is such a huge game you know I think no limit Texas Hold'em the version that we were playing has 10 of the 161 different decision points which is more than the number of atoms in the universe squared. That's heads up. That's heads up. Yeah. 10 of the 161 you said. Yeah I mean it depends on the number of chips that you have the stacks and everything but like the version that we were playing was 10 of the 161. Which I assume would be a somewhat simplified version anyway because the. But there's some like step function you had for like bets. Oh no no that's that's I'm saying like we played the the full game you can bet whatever amount you want and the bot maybe was constrained in like what it considered for bet sizes but the the person on the other side could bet whatever they wanted. Yeah I mean 161 plus or minus 10 doesn't matter. Um and so the the way neural nets help out here is you know you don't have to run into the same exact situation because that's never going to happen again the odds of you running into the same exact situation are pretty slim but if you run into a similar situation then you can generalize from other states that you've been in that kind of look like that one and you can say like well these other situations I had high regret for this action and so maybe I should play that action here as well. Which is the more complex game chess or poker or go or poker do you know. That is a controversial question. Okay I'm gonna. Was like somebody screaming on Reddit right now it depends on which subreddit you're on is it chess or is it poker. I'm sure like David Silver is going to get really angry at me. Yeah I'll I'll say I'm going to say poker actually and I think for a couple reasons. They're not here to defend themselves. So first of all you have the imperfect information aspect and so it's um it. We we can go into that but like once you introduce imperfect information, uh things get much more complicated. So we should say maybe you can describe what is seen to the players what is not seen, uh in the game of Texas Hold'em. Yeah so Texas Hold'em you get two cards face down that only you see um and so that's the hidden information of the game the other players also all get two cards face down that only they see. Um and so you have to kind of as you're playing reason about like okay what do they think I have what do they have what do they think I think they have that kind of stuff and um that's that's kind of where bluffing comes into play right because the fact that you can bluff the fact that you can bet with a bad hand and still win is because they don't know what your cards are. And that's the that's the key difference between a perfect information game like poker sorry like chess and go um and imperfect information games like poker. This is what trash talk looks like. The implied statement is the game I solved is much tougher. But yeah so when you're playing I'm just going to do random questions here so when you're playing your opponent under imperfect information. Is there some degree to which you're trying to estimate the range of hands that they have, or is that not part of the algorithm? So what are the different approaches to the imperfect information game. So the key thing to understand about why imperfect information makes things difficult is that you have to worry not just about which actions to play but the probability that you're going to play those actions. So you think about um rock paper scissors for example rock paper scissors is an imperfect information game. Um because you don't know what I'm about to throw. I do but yeah usually not yeah. And so you can't just say like oh I'm just going to throw rock every single time because the other person is going to figure that out and notice a pattern and then suddenly you're going to start losing. And so you don't just have to figure out like which action to play you have to figure out the probability that you play it. And really importantly the value of an action depends on the probability that you're going to play it. So if you're playing rock every single time that value is really low but if you're. Never playing rock you play rock like one percent of the time and suddenly the the other person is probably going to be throwing scissors and when you throw rock the value of that action is going to be really high. Now you take that to poker what that means is the value of bluffing for example if you're the kind of person that never bluffs and you have this reputation as somebody that that never bluffs and suddenly you bluff there's a really good chance that that bluff is going to work and you're going to make a lot of money. On the other hand if you got a reputation like if they see you play for a long time and they see oh you're the kind of person that's bluffing all the time when you bluff they're not going to buy it and they're going to call you down you're going to lose a lot of money. And that finding that balance of how often you should be bluffing is the key challenge of a game of poker. And um you contrast that with a game like chess. It doesn't matter if you're opening with the queen's gambit 10 of the time or 100 of the time the value the expected value is the same. So um so that's that's why we need these algorithms. That understand not just we have to figure out what actions are good but the probabilities we need to get the exact probabilities correct and that's actually when we created the bot Lebratus Lebratus means balanced because the algorithm that we designed. Was designed to find that right balance of how often it should play each action. The balance of how often in the key sort of branching is the bluff or not the bluff. Is that is that a good crude simplification of the major decision in poker. It's a good simplification I think that's like the main tension but it's it's not just how often to bluff or not to bluff it's like how often should you bet in general how often should you what what kind of bet should you make. Um should you bet big or should you bet small and with which with with which hands and so this is where the idea of of a range comes from because when you are bluffing with a particular hand in a particular spot. You don't want there to be a pattern for the other person to pick up on you don't want them to figure out oh whenever this person is in this spot they're always bluffing and so you have to reason about okay would I also bet with a good hand in this spot. You want to be unpredictable so you have to think about what would I do if I had this different set of cards. Is there explicit estimation of like a theory of mind that the other person has about you or is that just a emergent thing that happens. The way that the bots handle it that are really successful they have an explicit theory of mind so they are explicitly reasoning about what are. What's the common knowledge belief what does what do you think I have what do I think you have what do you think I think you have um it's explicitly reasoning about that is there multiple use there. So maybe that's jumping ahead to six players but is there a stickiness to the person so it's an iterative game you're playing the same person. There is there's a stickiness to that right you're gathering information as you play it's not every every every hand is in your hand is there um a continuation in terms of estimating what kind of player I'm facing here. That's a good question so you could approach the game that way the way that the bots do it they don't and the way that humans approach it also expert human players the way they approach it is to basically assume that you know my strategy so. I'm going to try to pick a strategy where even if I were to play it for 10 000 hands and you could figure out exactly what it was you still wouldn't be able to beat it basically what that means is I'm trying to approximate the Nash equilibrium I'm trying to be perfectly balanced because if if I'm playing the Nash equilibrium even if you know what my strategy is like I said I'm still unbeatable in expectation. So so that's what that's what the bot aims for and that's actually what a lot of expert poker players aim for as well to start by playing the Nash equilibrium and then maybe if they spot weaknesses in the way you're playing then they can deviate a little bit to take advantage of that. They aim to be unbeatable in expectation okay so who's the greatest poker player of all time and why is it Phil Hellmuth so this is for Phil. So he's known um at least in part for maybe playing suboptimally and he still wins a lot it's a bit chaotic so maybe. Can you speak from an AI perspective about the genius of his madness or the madness of his genius. So playing suboptimally playing chaotically um as a way to make you hard to pin down about what your strategy is. So okay the thing that I should explain first of all with like Nash equilibrium it doesn't mean that it's predictable the whole point of it is that you're trying to be unpredictable. Now I think when somebody like Phil Hellmuth might be really successful is not in being unpredictable but in being able to um. Take advantage of the other player and figure out where they're being predictable or guiding the other player into thinking that you have certain weaknesses and then and then understanding how they're going to change their behavior they're going to deviate from a Nash equilibrium style of play to try to take advantage of those perceived weaknesses and then counter exploit them so you kind of get into the mind games there. So you think about at least heads up poker as as a dance between two agents I guess are you playing the cards are you playing the the player. So this this gets down to a big argument in the poker community and the academic community for a long time there was this debate of like what what's called GTO game theory optimal poker or exploitative play. And um up until about like 2017 when we did the Lebratus match I think actually exploitative play had the advantage a lot of people were saying like oh this whole idea of game theory it's just nonsense and if you really want to make money you got to like look into the other person's eyes and read their soul and figure out what cards they have. But what happened was people started adopting the game theory optimal strategy um and they were making good money and they weren't trying to adapt so much the other player they were just trying to play the Nash equilibrium and then what really solidified it I think was the Lebratus the Lebratus match. Where we played our bot against four top heads up no limit Hold'em poker players and the bot wasn't trying to adapt to them it wasn't trying to exploit them it wasn't trying to do these mind games it was just trying to approximate the Nash equilibrium and it crushed them. I think you know we were playing for 50 100 blinds and over the course of about 120 000 hands it made close to two million dollars 120 000 hands 120 000 hands against humans. Yeah and this was this was fake money to be clear so there was real money at stake there was 200 000 first of all all money is fake but um that's that's that's a different conversation. We give it meaning it's an it's a it's it's a phenomenon that gets meaning from our complex psychology as a human civilization. It's emergent from the collective intelligence of the human species but that's not what you mean you mean like there's literally you can't you can't buy stuff with it okay can you actually step back and take me through that competition. Yeah okay so when I was in grad school there was this thing called the annual computer poker competition where every year all the different research labs that were working on AI for poker would get together they would make a bot they would play them against each other. And we made a bot that actually won the 2014 competition the 2016 competition and so we decided we're going to take this bot build on it and play against real top professional heads up no limit Texas Hold'em poker players. So we invited four of the world's best um players in this specialty and we challenged them to 120 000 hands of poker over the course of 20 days. Um and we had 200 000 200 000 dollars in prize money at stake where it would basically be divided among them depending on how well they did relative to each other. So we wanted to have some incentive for them to play their best. Did you have a confidence 2014 16 that this is even possible how much doubt was there. So and we did a competition actually in 2015 where we also played against professional poker players and the bot lost by by a pretty sizable margin actually now there were some big improvements from 2015 to 2017 and so. Can you speak to the improvements is it computational nature is it the algorithm the the methods it was it was really an algorithmic approach that that was the difference so. 2015 it was much more focused on trying to come up with a strategy upfront like trying to solve the entire game of poker like and then just have a lookup table where you're saying like oh I'm in this situation what's the strategy. Um the approach that we took in 2017 was much more search based it was trying to say okay well let me in real time try to compute a much better strategy than what I had precomputed by playing against myself during self play. What is the search space for poker? What are you searching over? What's that look like? There's different actions like raising calling yeah what are the actions. Um is it just a search over actions. So in a game like chess the the search is like okay I'm in this chess position and I can like you know move these different pieces and see where things end up in poker what you're searching over is the actions you can take for your hand the probabilities that you take those actions and then also the probabilities that you take other actions with other hands that you might have. Um and and that's kind of like a hard to wrap your head around like why are you searching over these like other hands that you might have and like trying to figure out what you would do with those hands. Um and the idea is is again you you want to you want to always be balanced and unpredictable and so if your search algorithm is saying like oh I want to raise with this hand well in order to know whether that's a good action like let's say it's a bluff you know let's say you have a bad hand and you're saying like oh I I think I should be betting here with this really bad hand and bluffing. Well that that's only a good action if you're also. Betting with a strong hand otherwise it's an obvious bluff so if your action in some sense maximizes your unpredictability so that action could be mapped by your opponent to a lot of different hands then that's a good action. Basically what you want to do is put your opponent into a tough spot so you want them to always have some doubt like should I call here should I fold here and if you are raising in the appropriate balance between bluffs and good hands then you're putting them into that tough spot and so that's what we're trying to do we're always trying to search for a strategy that would put the opponent into a difficult position. Can you give a metric that you're trying to maximize or minimize does this have to do with the regret thing what we're talking about in terms of putting your opponent in a maximally tough spot. Yeah ultimately what you're trying to maximize is your expected winning so like your expected value the amount of money that you're going to walk away from assuming that your opponent was playing optimally in response so you're going to assume that your opponent is is also playing like as as well as possible a Nash equilibrium approach because if they're not then you're just going to make more money right like anything that deviates like by definition the Nash equilibrium is the strategy that does the best in expectation. And so if you're deviating from that then you're just they're going to lose money and since it's a two

本集资源与出处