读见

大脑曾启发 AI,如今 AI 正在帮我们理解大脑

原题The brain helped us build AI. Now AI is explaining the brain.

约 32 分钟原文英文已翻译

视频由 YouTube 提供

推荐理由适合想用预测模型做科学解释的人。研究者把预测表现相近的机制放在一起比较,也指出哪些假设还需要补测。

看前速览

4 个要点

Google DeepMind 的研究人员用一项四选一的奖励任务说明,AI 如何帮助提出解释人类决策的机制假设,以及为什么仅凭预测还无法确定机制。

  1. 用预测基准量出基础模型留下的解释空间

    四个选项里随机猜中的概率是 25%。神经网络能预测对 68% 的选择,为研究团队判断基础 Q-learning 还有多少提升空间提供了参照。

  2. 借助混合模型检验哪些假设可以放宽

    用学出来的函数取代手写更新方程后,模型显示相同奖励在不同情境下价值不同,每个选项也可能需要多个变量才能描述记忆。

  3. 在维持拟合度的前提下寻找简洁程序

    DataDiver 借助 AlphaEvolve 生成程序,再在拟合度下限的约束下简化。结果提示,上次获得的奖励可能对已选选项起主导作用,而未选选项会保留更多历史信息。

  4. 用其他证据检验机制假设

    多个模型可能同样符合行为数据。猴子实验中独立的新奇性变量提供了一个明确的后续研究方向,可以通过神经活动记录来检验。

完整摘要

Maria Eckstein 和 Kim Stachenfeld 介绍了两种从行为数据提出大脑机制假设的方法。在一项四选一的多臂老虎机任务中,神经网络预测对了 68% 的参与者选择,明显超过随机猜测和基础 Q-learning 模型。研究人员放宽了对奖励和记忆的假设,得到一个更易解释、预测表现与神经网络持平的混合模型。另一条路径用 DataDiver 调用 AlphaEvolve 搜索程序,在维持一定拟合度的前提下尽量简化程序。两种方法对工作记忆的部分作用得出了相近结果,但同一组选择仍可以有多种机制解释。猴子实验中单独追踪新奇性的变量,正是有待神经数据进一步验证的假设。

文字稿

查看原文

简要说明Brief Description

大脑帮助我们构建了人工智能。如今,人工智能正在解释大脑。The brain helped us build AI. Now AI is explaining the brain.

目录Table of Contents

  • 引言
    Introduction
  • 利用 AI 理解大脑
    Using AI to understand the brain
  • 探索奖励学习
    Exploring reward learning
  • 自动化模型发现
    Automating model discovery
  • 物种比较与未来方向
    Comparing species and future directions
  • 汉娜的想法
    Hannah’s thoughts

简介Introduction

欢迎收听《Google DeepMind》播客。我是汉娜·弗莱教授。人类大脑仍然是科学领域最大的未解之谜之一。大约有860亿个神经元在脑中活动,不知何故,由此产生了智能。尽管如此,大脑在很大程度上仍是一个黑箱。在人工智能发展的早期,研究人员曾从大脑中寻找线索,思考如何打造更智能的机器。但如今,这种关系已经彻底反转。研究人员正在利用人工智能,帮助揭示人类思维的算法。Google DeepMind 在神经科学领域有着悠久的研究历史:从运用记忆重放精通 Atari 游戏,到探索大脑中多巴胺神经元的运作方式。接下来,我非常高兴邀请到 Google DeepMind 神经科学团队的两位高级研究科学家——玛丽亚·埃克斯坦和金·斯塔肯菲尔德,与我们分享更多。Welcome to Google DeepMind, the podcast. I'm Professor Hannah Fry. The human brain remains one of the greatest unsolved mysteries in science. We have roughly 86 billion neurons firing in a way that somehow produces intelligence. And yet, the brain is still largely a black box. Now, in the early days of AI, researchers look to the brain for clues about how to build smarter machines. But today, that relationship has been flipped on its head. Researchers are using AI to help figure out the algorithms of the human mind. And Google DeepMind has a long history in neuroscience from using memory replay to master Atari to exploring how dopamine neurons work in the brain. So to tell us more, I am delighted to be joined by two senior research scientists from Google DeepMind's neuroscience team, Maria Eckstein and Kim Stachenfeld.

Maria 和 Kim,欢迎来到播客。Maria and Kim, welcome to the podcast.

非常感谢你们邀请我们。真的非常感谢。Thank you so much for having us. Thank you so much.

好的,我们之前在 2019 年的这档播客里聊过神经科学和人工智能,不过当时主要是探讨神经科学如何启发人工智能。而现在感觉情况有点反过来了。这样说公平吗?Okay, we have talked about neuroscience and AI on this podcast before back in 2019, but there it was really about neuroscience inspiring artificial intelligence, but it feels like now it's sort of the other way around. Is that fair?

利用 AI 理解大脑Using AI to understand the brain

是的,这确实是个非常贴切的描述。回到 2019 年,当时人们普遍认为 AI 仍处于起步阶段。AI 虽然能做很多事情,但远不如今天这么先进。而大脑是我们所知唯一的智能系统。所以当时的想法确实是:看看能从大脑中找到哪些机制,帮助我们推进 AI 的发展。于是,人们研究记忆、导航等方面,试图弄清楚人类或动物在执行那些非常复杂的任务时,是由什么算法引导的,以及如何将这些机制提炼成 AI 算法,让 AI 在这些特定任务上表现得更好。如今,情况几乎已经反过来了:AI 已经如此先进,神经科学的洞见能否进一步推动它的发展尚不明确;甚至这是否仍是一个有价值的目标,也值得商榷,因为我们的目标或许不再是创造与人类相似的 AI,而是创造能够与人类良好互动的 AI。Yeah, that's a very fair description actually. So, back in 2019, the idea was very much that AI was still in its infancy. So AI could do a lot of things but it was by far not as advanced as it as it is today. And the brain is the only intelligent system that we know of. And so the idea really was let's see what mechanisms we can find in the brain that help us advance AI. And so people were looking at things like memory or things like navigation and trying to figure out what is the algorithm that guides humans or animals when they do those really complex tasks and how can we distill them into an AI algorithm in order to make AI better at those specific tasks. And today that has switched almost where now AI is so advanced that it's unclear if insights from neuroscience will help it further or if that even is a valuable goal because the goal might no longer be to create AI that is similar to humans but that interacts well with humans.

因此,我们现在真正做的,是把 AI 当作一种工具,帮助我们理解大脑。And so what we do now is we really use AI as a tool to help us understand the brain.

过去有一些例子表明,某种在人工智能领域被证明效果良好的技术,后来也相当准确地模拟了大脑中的运作方式。是吧。There have been examples in the past where a technique that was known to work well in artificial intelligence then ended up being quite a good model for what was going on in the brain. Right.

是的。实际上,DeepMind 就有一些很好的例子。这些例子基本上都是把 AI 中的一种特定算法当作隐喻,用来说明大脑中正在发生的事情。比如,Jane Wang 等人运用一种非常强大的机制,称为元强化学习,以便更好地解释人类和动物如何随着时间推移,越来越擅长完成任务。 我们尝试做的是以另一种方式运用 AI。我们不再把某种特定算法当作大脑中某个具体过程的隐喻,而是利用 AI 帮助我们找出大脑中正在发挥作用的隐喻。从这个意义上说,我们把思考提升到了一个元层次。因此,我们不只是拿现有的例子来寻找隐喻,而是借助 AI 创造新的例子。Yeah. There are few great examples actually coming straight out of Deep Mind. Those are all examples where we basically use a specific algorithm from AI as a metaphor of what is going on in the brain. And so people like Jane Wang used a very powerful mechanism that's called meta reinforcement learning in order to better explain how humans and animals learn to do tasks better and better over time. And so what we are trying to do is we're trying to use AI in a different way. So instead of taking a particular algorithm as a metaphor for something specific that's happening in the brain, we take AI to help us identify the metaphor that is running in the brain. And in that sense we go one level meta. So instead of just taking the examples and looking for them we come up with new examples with the help of AI.

我的意思是,我想用一句话概括,这就是你的总体目标:利用人工智能来理解大脑中发生的事情。这样说公平吗?I mean I guess this is your overall goal in a nutshell using artificial intelligence to understand what is going on in the brain. Is that fair to put it that way?

没错。但我觉得,在许多借助 AI 实现科学突破的领域里,AI 的用法都是针对某个界定得非常清楚的问题:你只需要预测答案是什么。而预测答案本身可能就是一个非常难的问题。比如蛋白质折叠,你要输入一段序列,然后知道这种蛋白质最终会呈现什么形状。你不一定需要知道它为什么是这种形状,只需要知道答案是什么,就能为解决科学问题提供巨大的助力。 我们关注的是另一种科学突破。我们基本上想利用 AI 从数据中发现新的机制。而神经科学领域的许多突破,正是以这种方式取得的。Exactly. But I think in a lot of areas where AI has been used for some scientific breakthrough the way that it's used is there's some there's some really well scoped problem where you just want to predict what the answer is going to be. predicting what the answer is going to be might be itself a really hard problem. for instance with protein folding you want to take in a sequence and know at the end what shape that protein is going to be. You don't necessarily need to know why it's that shape. you just want to know what the answer is and then that gives you huge leverage for solving scientific problems. what we're focused on is a different kind of scientific breakthrough. we basically want to use AI to find novel mechanisms from data. And this is the structure of a lot of the breakthroughs in neuroscience.

这是一种与数据相符的新机制,让我们能够以全新的方式思考这一过程,并以全新的方式研究大脑。在获得新的认识或发现新机制方面,人工智能实际上还没有取得太大进展。这种方法在神经科学领域有着巨大的应用潜力,也适用于神经科学以外的领域,因为许多科学领域都面临同一个问题:如何找出能够解释数据所反映现象的底层过程。It's a new mechanism that is consistent with data that lets us think about this process in a new way, lets us investigate the brain in a new way. And this is something that AI has not really made as much progress on like getting to new understanding or new mechanisms. And it's something with tremendous applicability for neuroscience, but also for areas beyond neuroscience because a lot of areas of science have this problem where you want to try to find the underlying process that describes what's going on with your data.

这就是,这就是如何利用 AI 帮你找到原因。This is this is how to use AI to get you to the why.

嗯。Yeah.

关于这一切为何发生,而不仅仅是预测接下来会发生什么。Of why everything is happening rather than just predicting what's coming next.

没错。我们在这里谈论理解大脑如何运作时,我的意思是,大脑是不是在遵循某种算法?你有多确信,这背后存在某种我们能够提取出来并看清的机制?Exactly. When we're talking here about understanding how the brain works, I mean, I is the brain following a sort of algorithm? How convinced are you that there's like a mechanism underneath this that we can pull out and see?

是的,我的意思是,这是个非常有意思的问题。我们神经科学团队经常会饶有兴致地讨论这类事情。至少对我来说,核心的想法是:如果你接受这样一种观点——大脑有其物理实现,有一些物理机制在运作,并由此产生心智——那么原则上,你大概就可以把所有这些物理过程都写下来。你可以把那些规则写下来,这样就描述出了大脑中运行的算法。原则上,你可以用这种方式描述事物。在我看来,核心问题在于:什么时候算法描述才真正有用?这也是一个影响了我们团队许多研究方向的问题。Yeah. I mean, this is this is such an interesting question. We have we have a lot of fun with this in our neuroscience team talking about these kind of things. I think the way I think about it at least is at its core if you take if you accept the idea that the brain has a physical implementation there's physical mechanisms that happen that give rise to the mind then presumably in principle you can you can write all those physical processes down. You can write those rules down and you've captured the algorithm that's going on in the brain. You can in principle capture things this way. kind of the core question from my perspective and something that's shaped a lot of the research on our team is when an algorithmic description is actually useful.

原则上,你也可以对大型语言模型做同样的事情。在这种情况下,我们知道所有的权重,也知道架构是如何组织的。可以说,它确实是一种算法,但我们未必会认为,这种层次的描述能让我们深入了解其中发生的事情。这是一种非常底层的描述。像机制可解释性、语言模型认知科学这样的领域,正试图将其转化为一种更有用的描述,说明这些模型中的过程是如何运作的,也就是一种更容易被人理解的描述。这正是研究人员在神经科学中运用算法的方式之一:不是仅仅试图捕捉或描述大脑中发生的每一件事,而是提炼出一种更抽象、更有用或更有意义的描述。you can in principle do the same thing for a large language model. You can in that case we know all the weights. We know how the how the architecture is organized. It arguably is an algorithm but we wouldn't necessarily say that level of description gives us much insight about what's going on. It's a very low-level description. and fields like mechanistic interpretability, cognitive science on language models are trying to convert that into a more useful description of how processes go in these, something that's more understandable to a human. And that's really one of the ways that researchers have been using algorithms in neuroscience. not just as a way to try to capture or describe every single thing that's going on in the brain, but rather to pull out some more abstracted some more useful or meaningful description.

能够以有益的方式揭示其机制,并推动科学进步的事物。Something that tells us about the mechanism in a way that's useful that informs the progress of science.

你可以说,你是在尝试为大脑寻找某种 E=MC² 式的方程吧,我想是这样。是的,我觉得这么说很贴切。而且我认为,很难找到那个确切的方程,因为正如 Kim 提到的,描述大脑的方式有很多种。大脑是一个非常复杂的系统,人们常常称它为已知宇宙中最复杂的系统。因此,我觉得大脑可能复杂到这样一种程度:即使我们找到了能准确解释它如何运作的所有方程,那些方程从根本上说也会让人难以理解,因为要涵盖的内容实在太多了——每个离子通道、每个神经元、每个突触是如何运作的。所以我觉得,这个问题之所以如此有趣,是因为我们可以从许多不同的角度来研究它。比如,我们可以尝试理解单个神经元或一组神经元的生理机制。You're sort of trying to trying to find the E= MC² for the brain in some ways, I guess. Yeah, I think that is a good way of putting it. And I think it's also hard to find that exact equation because like Kim alluded to, there's a lot of different ways to describe the brain. The brain is a very complex system and I think oftentimes it's quoted as the most complex system in the known universe. And so I think it might just be that the brain is so complex that if we found all the equations that explain exactly how it works, that would just be fundamentally incomprehensible because there's so much to capture. How every ion channel, how every neuron, how every synapse works. And so I think what makes this so interesting is that we can look at the problem from many different angles. So we could try to understand the physiological mechanisms of a single neuron or of a group of neurons.

但我们也可以试着理解大脑试图实现的高层功能,也就是它所执行的计算或算法。这样,我们就能从不同角度来看同一件事。如此一来,模型未必有对错之分,只是有些模型在不同方面更有用,能回答我们可能提出的不同问题。不过,听你刚才那样描述,我不禁在想:这好像是在说,我们可以做出一种非常复杂的模型来解释大脑在做什么;这种模型也许很擅长预测,比如预测一个人会做什么,或者会如何做出选择。而在光谱的另一端,则是一个非常简单的模型——你知道,也许就是图上的一条线,比如说“大家看,这就是大脑的工作方式”——它确实很容易理解,但未必能让我们准确预测人们会做什么。But we could also try to understand the high-level function that the brain is trying to do. So the computation or the algorithm that it is implementing. So we can look at the same thing from different angles. And in that way no model is right or wrong necessarily, but some are useful in different ways and answering different questions that we might be asking. But then I sort of wonder the way that you're describing it there. It's like there's a choice that you can either come up with a really complex model of what the brain's doing that maybe is very good at prediction at sort of predicting what a human might do or how a human might make a choice. And then at the other end of the spectrum, you've got like a very simple, you know, maybe it's like a line on a graph like here's how the brain works everybody that actually is very easy to understand, but doesn't necessarily allow you to predict what people will do to any degree of accuracy.

你是否觉得自己不得不在这两个极端之间做出选择?Do you feel like you're having to choose between those two ends of the extreme?

是的,我的意思是,就目前而言,使用我们现有的方法,这种取舍是我们还无法绕开的:你要么得到更复杂、能更精确地刻画系统的描述,要么得到更简单、刻画得没那么准确但更容易理解的描述。我不想放弃希望,觉得我们不能两者兼得。我认为我们讨论的一件事是,如何组织复杂性,或者如何描述这种复杂性,从而有望兼顾两者:既有更易于理解的高层次描述,又能让人深入其中,开始更详细地理解各个组成部分。不过,我们还不知道该怎么做。我们目前的方法确实面临这种取舍,而我认为我们现在的想法是:既然这种取舍存在,不同的应用场景和不同的研究人员或许会对取舍中的不同侧重点感兴趣。Yeah. I mean, so far that's been with the methods we have, that's a trade-off we haven't been able to get around that you can either have this more complex description that's capturing the system with more fidelity or a simpler description that's capturing it less well, but what it is capturing it's easier to understand. I don't want to give up hope that we could get both. I think that like one thing that we talk about is like how we might organize the complexity or description of the complexity so that we could potentially get both a high-level description that's more understandable but you could zoom in on it and start understanding the components in more detail. We don't know how to do this though the methods we currently have like they do face this trade-off and I think the way we're thinking about it right now is like well given this trade-off different applications and different researchers might be interested in different values for that trade-off.

那么,我们怎样才能赋予其灵活性呢?怎样才能让人们选择自己想要的平衡呢?当然,理想情况是,不必做艰难的取舍,就能得到一份优雅而易懂的描述,同时涵盖行为的方方面面。So, how can we confer flexibility? How can we let people pick the balance that they want? but of course, the dream would be to not have to make hard choices and just get, you know, a beautifully elegant, comprehensible description that also captures every aspect of behavior.

我是说,那些物理学家真幸运,不是吗?I mean, those physicists are lucky, aren't they?

我知道。真是太没礼貌了。I know. That's so rude.

我完全同意。也许我们可以通过一个例子来展开,因为你刚才提到了神经科学的几个不同方面,但我们不妨聚焦于奖励学习这个概念。请简单介绍一下:在做决策和处理奖励时,我们大脑所进行的最简单模型是什么?I totally agree. Maybe we should anchor this in an example then because I mean, you mentioned a few different aspects of neuroscience here, but maybe let's focus in on the idea of reward learning. just give us a very simple overview of what the simplest model of what our brains are doing when it comes to making decisions and reward.

探索奖励学习Exploring reward learning

是的。所以,奖励学习是一个很棒的研究课题。我认为这是神经科学领域的圣杯之一,人们几十年来一直在深入研究它;它也是神经科学与 AI 合作的典型范例之一。因为早在很久以前,神经科学家和 AI 研究人员就共同开发出了相关方程。基本上,你提到的那些方程描述的就是我们如何从奖励中学习。最简单的情况下,强化学习理论告诉我们——具体来说,我指的是一种叫作 Q-learning 的算法——当我们面临多个可选动作时会发生什么。比如说,我在一家餐厅,可以从四道不同的菜里选一道,Yeah. So, reward learning is a wonderful research topic. I think it's one of the holy grails of neuroscience that people have really studied for many decades and it's one of those poster children of neuroscience AI collaboration. because we have equations that date a long time back that have been co-developed by neuroscientists and AI researchers. And so basically what those equations that you're alluding to capture is how we learn from reward. So in the simplest case basically what reinforcement learning theory tells us and specifically I'm talking about one specific algorithm that's called Q-learning. Basically, what that says is that when we face the choice between different actions that we could choose, so say I'm in a restaurant and I could choose between four different dishes,

我会为这四个选项中的每一个赋予一个价值。吃完饭后,我会获得一种奖励,并在内心把收到的奖励与最初设定的价值进行比较。如果两者存在差异,就说明我最初的价值估计不太准确,于是我会更新这个值。随着时间推移,如果我不断回到同一家餐馆,并且每次都要在这些菜品中做出选择,那么我对每道可选菜品的价值估计就会越来越准确。what I do is I assign a value to each one of those four options that I have. And then after I have eaten my food, I experience a reward and I will internally compare that reward that I received to the value I originally had. And when there's a discrepancy, that means that my initial value was a little off. And I will update this value. And so over time, if I keep going back to the same restaurant and I have the same choice between those different dishes, I will have a more and more precise value estimate for each of those items that I could choose.

我的意思是,在很多方面,你描述的这些其实相当直观,因为我觉得每个人都有过这种预期与现实之间的体验,对吧?比如说,你有多开心?这有点像是在问:你原本期待什么,最后结果又如何?这就是我们理解大脑里发生了什么的某种基本基础,对吗?I mean, in a lot of ways, this it's quite intuitive what you're what you're describing because I think every human has this experience of this expectation and reality, right? Like how happy are you? It's sort of like what were you expecting and then and then how did it turn out in the end and that's the sort of fundamental basis of how we understand what's going on in our brains is it?

是的,这有点像强化学习的经典模型:比较预期与现实,并利用这种比较中任何出乎意料的东西来更新预期。Yeah, that's kind of the classic model of reinforcement learning is this comparison between expectation and reality and using that using anything that is surprising in that way to update your expectations

而这在人工智能领域确实被证明极其有效。是的,这种通过做出预测并不断修正预测来学习的强化学习基本理念,是强化学习算法的核心,而强化学习算法在现代人工智能系统中占据重要地位。它们的基础训练是尝试进行下一步预测,也就是预测接下来会发生什么。这更像是对世界统计规律的统计学习。但在此基础上,为了让它们真正掌握更高一层的技能、具备解决新问题的能力,人们往往还会用新的问题来训练它们,促使它们给出答案,并根据某种奖励函数判断答案是否更值得奖励。这种奖励函数可能由人类设定,也可能是我们希望它们解决的不同问题本身所固有的。and this is something that has actually proved to be extremely powerful when it comes to artificial intelligence. yes, this basic idea of reinforcement learning of learning by making predictions and then revising those predictions is the core of reinforcement learning algorithms which are a big part of modern AI systems. Their basic training is to try to do next-step prediction, predict what's going to happen next. it's more of a statistical learning about the statistics of the world. But on top of that, in order to get them a real extra level of skills, an ability to solve new problems, they're often trained on new problems to try to produce answers that are more rewarding according to some reward function that maybe humans specify or is intrinsic to different problems we want them to solve.

不过好吧,回到大脑这方面,那个非常基础的模型——大致上就是比较预期和现实——在预测人类行为方面表现如何?But okay, in terms of back in the brain then in terms of that very basic model of sort of making that comparison of expectation and reality, how does it do at being able to predict how humans will behave?

这是个非常棒的问题,我觉得它很有意思,因为人们长期以来一直在使用这种特定的 delta 规则模型,或者这种基于奖励预测误差的特定 Q-learning 模型。然而,当我们直接采用这个模型最原始的形式,并用它来拟合行为时,它往往无法很好地解释行为。因此,人们通常需要调整这个算法。他们会说,好吧,这是基础算法,但我们假设人类也会遗忘。这个算法里没有遗忘机制。所以现在我们稍微调整一下模型,对原始方程做一点修改,加入遗忘机制,这样一来,模型通常就能拟合得更好一些。然后我们可能会说,哦,等一下,我们处理奖励和惩罚的方式并不相同。That's a fantastic question and I think it is interesting because people have used that specific delta rule model or that specific Q-learning model that is based on a reward prediction error for such a long time. However, when we just take the rawest form of this model and we fit it to behavior, often times it does not explain behavior extremely well. So oftent times what people do is they need to tweak this algorithm. So they need to say all right here's the base algorithm, but we just assume that humans also forget. There's no forgetting in this algorithm. So now we tweak the model a little bit. we make a little amendment to the original equation to add a forgetting mechanism and then typically our model fits a little bit better and then we might say oh wait a second but we don't process rewards and punishment in the same way.

于是我们再做一个小小的修正,而这些修正往往对应着大脑中发生的事情。比如,可能存在一个负责奖励处理的神经系统,以及另一个负责惩罚处理的神经系统。我们就这样不断进行修正,但这一切都属于强化学习这个更大的范畴。因此,文献中的所有这些模型,或者说大多数模型,都是基于这个 Q-learning 算法的。So we make another little amendment and oftentimes those map into things that happen in the brain. So maybe there's a different neural system for reward processing, a different for punishment processing. And so we keep going with those amendments, but it is all under the bigger brella of reinforcement learning. So all those models or most of the ones that we have in the literature are based on this Q-learning algorithm,

实际上就是那种基线模型。好吧,我知道你最近刚发表了一篇非常精彩的论文。顺便说一句,我读得特别开心。that sort of baseline model actually. Okay. So I know that you've just recently published this really gorgeous paper. I had so much fun reading it by the way.

谢谢。不过,关于人类如何从奖励中学习,请给我们解释一下:你首先让这些人做了什么?这种情况下的奖励是什么?Thank you. but about how humans learn from reward just explain to us what did you have the humans do first? What was the reward in this case?

所以,我们的任务基本上是受到我之前给你举的餐厅例子的启发,只不过简单、枯燥得多。参与者坐在电脑屏幕前,看到屏幕上有四种不同的图形。比如,一个绿色圆形、一个橙色三角形,以及另外两种图形。然后我们让他们从这四种图形中选一种。假设你选了绿色圆形,就能获得32分。到了下一轮,你再从这四种图形中选一次,也许会选另一个。你的目标是在一轮轮的选择中,尽可能多地赢得分数。 为了让任务更有意思一些,我们让每种图形对应的得分随时间随机变化。因此,你需要稍微留意一下不同选项的情况。So the way our task works is basically inspired by the restaurant example I gave you earlier just much more simple and boring. So what people did is they were in front of a computer screen and they saw four different items on the screen. So let's say a green circle and an orange triangle and two other shapes. And then we ask them to pick one of those four. And say you pick the green circle, you get a reward of 32 points. And now in the next round, you pick again from the four items. And you might choose a different one. And your goal is to maximize the number of points that you win in this game iteratively choosing. And so to make this a little more interesting, what we did is that the number of points that you get for each of those items just randomly changes over time. So, you need to kind of keep track a little bit of your different choice options.

我的意思是,这和玩老虎机也并非完全是两回事。我知道这次不是为了钱,但当你坐在老虎机前时,某种程度上是在预测接下来会发生什么。然后,这个预测可能会成真,也可能不会;而你接下来的行动,则是基于你在过程中做出的预测。这样比较公平吗?I mean, this isn't completely a world apart from playing at a slot machine. I mean, I know this not for money in this instance, but you're sort of when you're sitting at a slot machine, you're making a prediction of what's going to happen next. And then it may or may not end up coming true and you're sort of your next action is based on the prediction that you're making as you're going along. Is that a fair comparison?

是的,我们通常把这类问题称为老虎机问题或多臂老虎机任务。实际上,关于多臂老虎机任务已有不少研究。它们确实是强化学习问题中的一个正统类别,所以没错,这就是一个多臂老虎机任务。Yeah, oftentimes we call those slot machines or bandit tasks. they are there actually is a literature on bandit tasks. They are a legit category of reinforcement learning problems and so yes it is it is a bandit task.

那么,基础强化学习模型在预测人类会选择什么方面表现如何?So okay the basic reinforcement learning model how did it do at predicting what humans would choose?

这正是我们开始的地方。因此,这个模型的表现确实还不错。其实很难判断,因为拟合这些模型时,我们基本上会得到一个介于 0 和 1 之间的数值,用来表示模型的表现有多好。0 表示它与人类的选择毫无关联,1 表示它的行为与人类完全一致。这个数值大概在中间,比如 0.3 或 0.4 左右,所以我们其实并不清楚这个模型的表现到底有多好。This is exactly where we started. And so the model did do okay. It's hard to tell actually because what we do when we fit those model is we basically get a number between zero and one that tells us how good the model is. So zero is it has nothing to do with human choices and one is it behaves exactly like humans and the number was somewhere in the middle say in the in the in the 30s or 40s and so we did not really know how well this model is doing

而此处的随机值大概是 25%。and random presumably here would be 25%

随机的话会是 25%。random would be 25%

比随机水平更好。因此,我们首先提出的问题是:这个模型表现得怎么样?为了回答这个问题,我们采用了一种机器学习方法。我们基本上取了一个大型神经网络,并像拟合强化学习算法那样将它拟合到数据上。这样做的原因是,这种神经网络非常灵活。神经网络有时被称为通用函数逼近器,因为它们可以捕捉任意输入输出映射,也就是从你之前经历的奖励到随后采取的行动之间的任意映射。我们因此希望,这会是预测人类行为的最佳模型。将这个模型拟合到人类行为数据后,我们才意识到,我们的强化学习模型实际上表现得非常差。better than random and so the first question we asked ourselves is how well is this model doing and so in order to answer this question we used a method from machine learning. So we basically took a big neural network and fitted it to the data in the same way as we fitted our reinforcement learning algorithm. And what that does is this neural network is so flexible. neural networks sometimes are called universal function approximators because they can capture any input output mapping any mapping from the previous reward that you experienced to the subsequent action. And so we were hoping that this would be the best possible predictive model of human behavior. And so when we fitted this model to human behavior, we then realized that our reinforcement learning model actually was doing very poorly.

对。等等。我是说,我想这应该算是我们刚才所说的光谱的另一端。它预测能力很强,但可解释性不高。那个神经网络预测人们会做什么,效果有多好?Right. Wait. So I mean I guess this is sort of the other end of the spectrum as we were describing earlier. This is something with good predictive power but not very much interpretability. How good was it at predicting what people would do? The neural network.

因此,神经网络预测了 68% 的参与者选择,表现显著优于强化学习模型。So the neural network predicted 68% of participant choices which was substantially better than the reinforcement learning model.

但到了那一步,你就完全失去了可解释性。But you've lost all interpretability at that point.

没错。神经网络会为我们提供一个预测能力很强的模型,准确告诉我们人们会做出什么选择。但神经网络往往被称为黑箱模型,因为我们并不理解它们在做什么。而这个经过手工构建、精心设计的强化学习模型,无法解释数据中的很多方差,预测能力也不强。不过,我们完全理解它在做什么。我们知道参与者在每一次试验中都会学习各项价值,并通过奖励预测误差进行更新。因此,这个项目真正的目标,是在这个光谱上找到合适的位置,尽可能提高预测能力,同时不牺牲可解释性。Exactly. So what happens is the neural network gives us a very predictive model that tells us exactly what choices people will make. But oftentimes neural networks are called blackbox models because we don't understand what they're doing. And this handcrafted, carefully designed reinforcement learning model does not explain a lot of variance in the data. It's not very predictive. However, we understand exactly what it is doing. We know participants are learning values on each trial. They update using reward prediction errors. And so the goal we really had in this project was to kind of live on this spectrum to try to get as much predictive power without losing the interpretability.

那么你做了什么?你是怎么——你是怎么从这个极端走到另一个极端的?So what did you do? How did you how did you get from this end of the spectrum to the other?

我们尝试做的,基本上就是把我们通常设计这些模型时经历的过程自动化。就像我之前说的,我们通常会采用 Q-learning 算法,然后对很多细节做些修改;而且我们不只是能修改遗忘机制,以及区分奖励和惩罚。我们还可以尝试很多很多不同的做法,其他人也试过不少。有时人们会开玩笑地把这称为“研究生下降法”,因为很多人整个博士生涯都在想办法对这个算法再做一处修改,以便更好地解释人类在某项特定任务中的行为。What we tried was basically to automate the process that we go through usually when we design those models. So like I said earlier, usually we take the Q-learning algorithm and then we amend a lot of little things and we could not just amend forgetting and differentiation between reward and punishment. But there's a million different things that we could try and that people have tried. And sometimes people jokily talk about graduate student descent because a lot of people spent their entire PhDs just finding one more amendment to this algorithm in order to explain human behavior on a specific task a little bit better.

其弊端在于,人类会一遍又一遍地尝试,并在过程中不断优化。The descent being that the human is trying over and over and over again and trying to optimize as they go along.

没错,是的。因此,我们在这里尝试做的是将这个过程自动化。这样一来,人们就不必费心手动提出新的修正方案,我们尝试改用神经网络来完成。基本上,我们保留了 Q-learning 算法的结构,但把之前需要手动编写的具体方程替换成了神经网络。如果用参与者的行为来拟合这个混合模型,那么网络就会隐式地完成我们之前所做的全部工作,并自动从所有可能的备选方案中找出能让模型表现最佳的算法。Exactly. Yeah. And so what we tried to do here was to automate this process. And so instead of humans having to painstakingly manually come up with new amendments, we tried to use neural networks to do that instead. So basically we kept the structure of our Q-learning algorithm, but we replaced the specific equations that before we would write by hand with a neural network. And so if you fit this hybrid model then to participant behavior, the network will implicitly do all the work that we used to do before and automatically identify the algorithm that makes this model perform best out of all possible alternatives.

理论上,不借助 AI 能完成吗?我是说整篇论文。我确定这会花相当长的时间,但不借助 AI 能完成吗?In theory, could it have been done without AI? The entire paper, I mean, I'm sure it would have taken quite a long time, but could it have been done without AI?

这正是问题所在。那会花费非常长的时间。而且,如果在整个过程中,创造力的唯一来源是我们人类,那么还会有另一个根本性的局限,因为我的思维很容易受到所受教育的影响,尤其是科学教育,也受到人类大脑结构本身的影响。因此,有很多假设我可能永远都想不到。借助神经网络,我们不仅能加快这一过程,还能探索更广阔的可能假设空间,触及那些我们根本无法自行想到的假设。That's exactly the point. It would have taken a really long time. And there's another fundamental limitation when we as humans are the only source of creativity in the process because I'm very biased by my education, my scientific education, and also just how my human brain is structured. So there's a lot of hypotheses that I might just never come up with. And so by using a neural network, we both speed up the process, but we also have the ability to capture a broader space of possible hypotheses that we just could never have come up with.

那么你后来发现了什么?你能否在这种关于人们如何做决策的基础强化学习理解之上有所改进?So then what did you find then? Could you improve on that basic reinforcement learning understanding of how people were making decisions?

我们发现,在测试了整整一类 Q-learning 模型后,原本以为效果会好得多。但实际结果是没有任何提升。刚看到这个结果时,我们非常惊讶。我当时真的以为是模型设置或计算出了错,于是又回头检查了数据。但事实证明,整个 Q-learning 类算法都不太擅长捕捉参与者的行为。What we found is that when we had tested a whole class of Q-learning models, we were expecting to do way better. What we actually found was no improvement. And we were so surprised when we first saw that. I literally thought I had made an error setting up my models or calculating things. And I went back to the data. But it turns out to be the case that the entire class of Q-learning like algorithms is just not very good at capturing participant behavior.

所以这就像是基本的期望—现实结构,而你是在……你只是在这里那里调调参数。改这个参数,改那个参数,基本上没什么区别。So this is like the basic expectation reality structure and you're going you're kind of tweaking dials here and there. Change this parameter, change that parameter. basically makes no difference.

没错,没错。无论我们对这个基本方案做什么修订,进展都不大。于是我们回到起点,问自己:接下来可以尝试什么?从神经网络的结果中,我们知道自己能够很好地解释参与者的行为。我们有一个预测能力很强的模型。那我们该如何找到这个模型呢?接下来,我们基本上尝试设计越来越广泛的模型类别,逐步增加它们的能力,并逐一放宽 Q 学习机制中的特定假设,以此弄清楚哪些假设可以舍弃、对我们并没有什么帮助,哪些则值得保留,而且能让模型具有可解释性。Exactly. Exactly. No matter what amendments we add to this basic recipe, we don't get very far. And that's when we went back to the drawing board and we asked ourselves, what can we try next? We know from the neural network results that we can explain participant behavior really well. There is a model that is very predictive. How do we find this? And so what we did next is we basically try to design broader and broader classes of models that add more capability and that one by one relax specific assumptions of the Q-learning mechanism in order to see which ones are the ones that we can throw overboard and that don't really help us and which are the ones that we can hold on to and that give us interpretability.

那你最后发现了什么?你想出来的结构中,哪种类型表现最好?So what did you find then? what was the sort what was the best performing structure that you came up with?

因此,我们最终发现,有几件事确实有助于解释人类行为。其中之一就是我所说的情境特异性。举例来说,如果其他选项能给你10分或12分,那么拿到50分可能是个非常好的结果;但如果其他选项能给你90分,拿到50分就没那么令人满意了。我们的模型确实捕捉到了这种差异。我们还发现,记忆实际上非常复杂。正如我之前所说,经典模型基本上会为每个选项分配一个价值。因此,在我们的例子中,四个选项意味着要检查四个价值,并在每次试验中根据新的更新覆盖这些价值。我们发现,记忆实际上复杂得多。要捕捉人类行为,我们需要的不只是四个隐藏变量。So what we find in the end is that there's a couple of things that really help us explain human behavior. One of them is that what I call context specificity. So for example, if you get 50 points, this might be a very good outcome when your other options give you 10 points or 12 points, but getting 50 points when the other options give you 90 points does not feel as nice. And so our model really picked up on that difference. And another thing that we found is that memory is very complex. So what I told you earlier is classic models basically assign one value for each choice option. So in our case four choice options means you check four values and on each trial you overwrite those based on the new updates. And we found that memory actually is much more complex. So we need much more than just four hidden variables in order to capture human behavior.

而且,我们还需要比这种奖励预测误差计算复杂得多的更新规则。And we also need much more complex update rules than just this reward prediction error calculation.

请结合你举的餐厅例子来解释一下。如果你反复光顾同一家餐厅,记忆会是如何运作的?Just translate that for us in terms of your restaurant example. How would the memory work if you were revisiting the same restaurant over and over again?

是的。所以我认为,这基本上关联到你如何尝试理解一道菜会如何随时间变化,或者比如说新来了一位厨师。于是你会试着推断:哦,之前存在一道界限;或者你会说,哦,现在是夏天,所以蔬菜菜品可能都特别好吃;又或者新开了一家鱼市,所以现在鱼类菜品都特别美味。在我们具体的实验中,我们发现人们似乎会利用这种记忆来追踪各种选项是在变得更好,还是更差。Yeah. So I think what that ties into is basically you try to understand how is a dish changing over time or say maybe a new chef gets hired. So you try to infer, oh there was a there was a boundary or you say, oh it's summer, so maybe all the veggie dishes are really tasty or maybe a new fish market opens, so now all the fish dishes are very tasty. So what we saw in our specific experiment is that people seem to use this memory to track whether options were getting better or whether they were getting worse,

对吗?right?

而这一切实际上都是随机的,但人们仍然试图找出其中的模式。所以他们还是会——就是试图构建一个模型,来解释自己所处环境的运作方式。And this actually all was random, but people still try to find those patterns. So they still it's like they try to come up with a model of how the environment works that they found themselves in.

我明白了。而人们此前用来描述这一过程中人类行为的传统强化学习算法,并没有涉及这些内容。I see. And none of this stuff is going on in the traditional reinforcement learning algorithm that people were using to sort of describe human behavior in this process.

这是,这是一个非常棒的问题,因为我提到的所有这些东西,都是我们早就知道存在的,只是它们从未被整合到同一个模型中。关于基于模型的强化学习,有大量研究聚焦于环境跟踪;关于不同记忆系统,也有大量研究,包括工作记忆、情景记忆或长期记忆。因此,我们早已掌握了一些零散的知识,也知道我们的模型并不完整,但我们一直没能真正把它们整合起来,形成一种共同的理解。This is this is a fantastic question because all of those things that I've alluded to are things that people that we have known for a long time exist, but they have never been combined in one model. So there's a whole literature on model-based RL that focuses on this environment tracking and there's a whole literature focusing on different memory systems including working memory or episodic memory or long-term memory and so we have known bits and pieces and we have known that our models are incomplete but we haven't really been able to bring them all together into one shared understanding.

那么,把它们放在一起会怎么样?在预测人类行为方面,你们能接近神经网络的水平吗?So what happens when you do put them together then? Do you get close to the neural network at being able to predict what humans will do?

我们确实如此,而我们的胜出模型在性能上实际上与神经网络完全相同。We do and our winning model actually is exactly identical in performance to the neural network.

对。所以你基本上发现了幕后运作的隐藏机制。Right. So you found the hidden mechanism going on behind the scenes then essentially

我想是的。对。所以我们确实有一个预测能力与上界基线相当的模型。我们认为,我们捕捉到了这份数据中所有可解释的方差。所有能够预测的行为,我们都能预测出来,同时仍然具有很强的可解释性。I guess so. Yeah. So we really do have a model that is as predictive as the upper baseline. So we believe that we capture all the explainable variance in this in this data. All the actions that can be predicted, we predict them, but we still have a lot of interpretability.

这倒让我有点好奇,那、呃,你怎么知道?你怎么知道人们心里实际在想的就是这些?我是说,你能看出来吗?That kind of makes me wonder then, h how do you know? How do you know that this is actually what is going on in people's minds? I mean, can you tell?

所以我觉得这是个很深刻的问题。我们稍后会谈到金的研究,到时会看到一个例子:即使我们找到一个预测能力达到上限的模型,也可能还存在另一个同样达到预测能力上限的模型。因此,同一种行为往往有很多种解释。我认为,这是我们如今面临的科学前沿问题之一,而这大概也是我们这个领域一直以来都存在的问题:总有很多种解释都能说明同一件事。现在,随着新方法的出现,我们开始反复看到这种模式。So I think this is a deep question because and I think we're going to talk about Kim's work later and we will see an example of how even though we found one model that hits the ceiling of predictiveness, there might be a different model that also hits the ceiling of predictiveness. So oftentimes there are many explanations for the same behavior. And this is one of the frontiers I'd say of science that we're facing now, which is a problem our field probably has always had. There's always a lot of explanations that could capture the same thing. And we're really starting to see this pattern repeatedly now with new methods.

好吧,金,如果你不介意的话,我马上就谈谈你的工作。不过在那之前,我有点好奇,因为我们一开始提到老虎机这个类比,Well, let me come on to your work in just a second if that's okay, Kim. But before I do, I sort of I'm wondering just because of the analogy of slot machines that we were describing right at the beginning,

这有什么应用吗?我不知道,我不是要你突然变成解决赌博问题之类的专家,但我的意思是,这能不能应用在这方面?比如说,你越了解人们是如何做决定的,就越能把他们往某些方向引导?does it have an application for I don't know I'm not asking you to suddenly become an expert in sort of solving gambling problems or anything like that, but I mean does this have an application in that way of like the more that you understand how humans are making the decisions, the more that you can nudge them in particular directions one way or the other?

我真的希望如此。坦白说,我们的研究属于非常基础的科学研究,我们真正想做的是弄清楚人们使用的算法是什么,以及如何改进寻找这些算法的方法。所以我们对任何应用都不感兴趣。不过,应用的第一步往往——也许总是——都需要扎实的基础科学。因此,我真心希望,通过识别出这一机制,其他人能够在此基础上继续研究,并帮助有赌博问题的患者,比如说。I really hope so. So to be honest our research was really basic science and we really tried to understand what is the algorithm that people use how can we improve on the methods to find those algorithms. So we were not interested in any applications but oftentimes or maybe always the first step to an application is to have really solid basic science and so I really hope that by identifying this mechanism somebody else might pick it up and might be able to help patients for example who have gambling problems.

好吧,接下来谈谈你的论文。我是说,你的研究在某些方面与你们之前做的工作有所重合,也是在此基础上的进一步发展。给我们介绍一下吧。Okay. Well let's come on to your paper because I mean your work in some ways sort of overlaps and sits as a step on from what you guys were doing. Tell us about it.

自动化模型发现Automating model discovery

我们的方法,关键区别在于,我们使用大型语言模型而非神经网络来探索模型空间。这一想法源自 AlphaEvolve 的开发,或者说源自它最早的版本。事情是这样的:我在这个项目中的共同负责人 Kevin Miller 接触到了这个工具。AlphaEvolve 是一个用于寻找程序的系统,这些程序能够很好地解决某个问题。当时它主要应用于数学和计算机科学问题。但 Kevin 的想法是,我们可以用它来寻找能够拟合数据、并且善于模仿动物或人类在某类任务中可能会做出何种选择的程序。这与人类研究者历来试图深入理解行为的方式有着很好的相似之处。Our approach, the key difference is that we're using large language models rather than neural networks to explore our model space. the origin of this came with the development of AlphaEvolve or the earliest versions of it. and the story is that my our my co-lead on this project Kevin Miller came across this tool. and AlphaEvolve is a system for finding programs that are really good at solving some problem. It had mostly been applied to math problems, computer science problems at that point. but Kevin's idea was we can use this to find programs that fit the data that do a good job imitating what choices an animal or a human might make on some kind of task. And this has a nice parallel to the way that human researchers have historically tried to gain insights about behavior.

我们编写代码来实现某种假设,也就是某种关于动物如何做出决策的潜在机制,然后看看它是否会做出相同的决策。因此,AlphaEvolve 基本上让我们能够利用大型语言模型生成大量程序,再看看哪些程序会以与动物相同的方式做出选择。我们完全不知道这是否行得通。我想当时我们俩都觉得,这件事大概有两种主要的失败方式。一种是我们可能根本找不到与数据非常吻合的程序。也可能是这个工具的表达能力不够,找不到符合数据的程序。另一种担忧是,也许我们能找到与数据极其吻合的程序,但这些程序会非常混乱——我们称之为“意大利面条代码”——就像一些毫无意义的程序,根本无法让我们深入了解这一过程。we write code that implements some hypothesis, some potential mechanism for how we think animals are making decisions and we see if it makes the same decisions. So, AlphaEvolve basically lets us use large language models to generate lots of programs and see which ones are making choices in the same ways that animals do. We had no idea if this would work. I think both of us at the at the time thought there was really like two big ways it could fail. One is that we might just not find programs that fit the data very well. It might be that this tool is not expressive enough to find programs that fit the data. The other concern was that maybe you would find programs that fit the data amazingly well, but they would be really messy programs, what we would call spaghetti code, just like nonsense programs that don't really shed much insight on the process.

于是,我们设计了一个名为 DataDiver 的流水线,基本上是把这套方法放进一个系统中,用来寻找与数据拟合良好的程序,并在一定程度上简化这些程序。它的做法不是进一步优化程序、让它们更好地拟合数据,而是尽可能让程序变得简单,同时要求它们与数据的拟合程度仍高于某个水平。So, we came up with a pipeline called DataDiver to basically put this within a system that would find programs that fit the data well, but then simplify those programs to some degree. and the way it did them is instead of optimizing programs to fit the data even better, it would optimize programs to be as simple as possible, but they were constrained to keep the data fit above some level.

那我们就来看多臂老虎机的例子吧,因为我知道你也曾用过在完全相同的数据集上尝试不同模型的方法。Let's go to the bandit example then because I know that you used your technique of trying out different models on the exact same data set as you did.

你找到能很好拟合这些数据的东西了吗?Did you find something that fit the data well?

是的,我们找到了与数据拟合良好的程序,也找到了与数据拟合得非常好、但我们更难理解的程序;还有一些与数据拟合得没那么好、但更容易理解的程序。Yeah, we found programs that fit the data well. and we found some programs that fit the data very well but were harder for us to understand. Other programs that fit the data less well but were much easier to understand.

还有那些你发现自己能够理解的东西And the ones that you found that you could understand

那个模型中,人们行为背后的机制——也就是他们如何在这些餐厅菜品之间做选择——是否与你发现的一致?所以,预期、现实和记忆,这几者是否吻合?were the mechanisms behind what people were doing in that model how people were making the choice between these restaurant items. Did they match up with what you had you had discovered? So expectation reality and memory did it match up

大体上是这样。我想,直到我们让玛丽亚检查这些程序,并意识到很多对我来说没那么有意义的代码行,对玛丽亚却有意义时,我才真正体会到这一点。她会说:“啊,对,这和我们用另一种建模方法发现的情况是一个版本。神经网络是这样做的,而你看,这行代码则是用稍微不同的方式实现的。”有一个明显的地方,起初看起来似乎对不上。那就是它采用的学习规则是一种增量式的试错学习规则。它做的正是我们之前谈到的这种由误差驱动的预测:先形成一个预期,然后将其与实际收到的奖励进行比较。for the most part. And I think I didn't really appreciate this until we had Maria look through the programs and recognized I think a lot of the lines of code that hadn't had as much meaning to me meant something to Maria. She was like ah yes this is a version of what we found with this other modeling approach like ah the neural network does it in this way but you know this line of code is doing it in a slightly different way. there was one notable place where it didn't look like it matched up at first. and that was that the learning rule that it was doing was a an incremental trial and error learning rule. It was doing exactly this error-driven prediction that we talked about earlier where it makes an expectation and it compares that to the reward received.

在玛丽亚的分析中,她发现人们似乎记住的是某个选项最近一次对应的价值。因此,他们做出选择并获得奖励。他们不一定是在进行渐进式更新,只是在记住自己最近因该价值而获得的奖励。And in Maria's analysis, she found that it looks like people are memorizing the value that they most recently received for a given choice. So they made a choice and got reward. They're not necessarily doing something incremental. They're just memorizing the reward that they most recently received for that value.

所以这不是说你去餐厅几次,这次觉得不错,就把预期稍微调高一点;或者说,过去三次都不错,我就慢慢调高预期。这是不一样的。So it's not like you do several visits to the restaurant, it's good this time. I'll nudge up my expectation a tiny bit or you know it's been good for the last three times. I'll nudge it up slowly. It's different.

是啊。没错。只是你上次选择去那家餐馆时得到的任何东西,都会主导你对这个选择的价值判断,Yeah. Exactly. It's just whatever you received last time you went for the restaurant that dominates your value of that choice,

这就是说,我的意思是,感觉有点像我对餐馆的态度,对吧?which is I mean sort of kind of feels like how I how I am about restaurants, right?

这可能更直观一些。正如你在论文中所描述的,这更像是一种工作记忆策略。但我们在程序中没有看到这种情况。我们看到的是,它们在通过渐进式试错来学习。不过,因为它们是程序,由变量构成,所以我们可以操纵这些变量。我们可以把它们删掉,看看代码会有什么变化。结果发现,如果进行这样的操作:用最近一次的奖励直接覆盖预测误差项,性能完全不会下降。It might be more intuitive. It's more of a working memory strategy as you described it in the paper. and we didn't see that in our programs. We saw that they were doing incremental trial and error learning. However, because they're programs, they consist of variables and we can manipulate those variables. we can remove them and see how the code changed. And it turns out if you do a manipulation where you replace the prediction error term with just overwriting it with the most recent reward, performance doesn't drop at all.

所以在这方面完全一样。So it's exactly the same in that way.

好。但这和记忆的概念又是怎么对应起来的呢?因为你刚才说,你其实带着对自己所有过往经历的长久记忆;但你又好像在说,不,只有最近发生的事情才重要。这两者怎么协调起来呢?Okay. But then how does this match up with the idea of memory then? Because what you were saying is that actually you carry this long memory of all of your previous experiences, but you're sort of saying no, only the last thing matters. How do those two things fit together?

所以,我们实际发现的是,当你学习自己选择的某个选项的价值时,起作用的只是你对上一次试验的记忆。我们确实在程序中观察到了对你不久前没有选择的选项价值进行渐进式试错学习的现象。因此,这里存在一种奇怪的记忆机制:它是根据你记得的过去选择过的选项的价值来起作用,而不是根据你最近一次选择的选项。So actually what we found is for the when you're learning about the value of an option you chose, it's just your memory of the last trial that matters. We did actually see in our programs incremental trial and error learning on the values for options you hadn't just chosen. So there is this memory weird memory thing going on. It's just acting on the values that you remember for options that you chose in the past rather than the option that you most recently chose.

那和你发现的情况一致吗?And did that align with what you'd found?

没错。所以我们都发现了一些更复杂的记忆机制,它们并不能与 Q-learning 中的奖励预测误差计算一一对应。我记得读过你们为 DataDiver 找到的代码,里面有很多变量用来追踪复杂的信息,比如过去若干次试验的平均奖励,或者不同的方差。因此,它包含许多用于追踪过往事件的潜变量。它有着非常复杂的记忆结构,但也实现了工作记忆;我的模型也是如此:它有着复杂的记忆结构,却没有奖励预测误差计算。Exactly. So we both found some more complex memory mechanisms that did not match one-to-one onto Q-learning onto this reward prediction error calculation. And so what I remember reading in the code that you guys found for DataDiver is there were a lot of variables that kept track of complicated things like the average reward over x amount of trials or different variance. So it had a lot of latent variables that kept track of past events. So it had a very complex memory structure but it did the working memory thing and that was the same case for my model as well where we have this complex memory structure but we do not have the reward prediction error calculation.

好的。所以实际上,它们并不矛盾。我的意思是,你用两种不同的方法处理同一组数据,试图预测人们会怎么做,最后得出的结论大体上与真实人们头脑中运作的机制相吻合。Okay. So actually they're not contradicting each other. I mean, you tried two different methods on the same data set to try and predict what people are going to do and you've ended up with something that basically broadly agree with what the mechanisms are going on in real people's heads.

是的,我认为总体上确实如此。Yeah, I would say that's broadly true.

我是说,这挺积极的。是啊。I mean, that's pretty positive. Yeah.

尝试用两种不同的方法得出相同的答案。Try two different ways to get to the same answer.

是的,这很好。我认为这点值得注意,因为我们的混合建模方法确实是一种理论驱动的方法。我们从一个自认为已经得到的答案出发,最初采用的是 Q-learning;后来我们不得不先一步步推翻 Q-learning,才找到我们认为更准确的模型。相比之下,DataDiver 更偏向数据驱动的方法,不依赖任何特定理论,几乎是从零开始,因此它显然能让数据自己说话,也没有什么我们必须先行推翻的假设。Yeah, that is good. And I think it is noteworthy because our hybrid modeling approach really is a theory-driven approach. So we started from one answer that we thought we had. We started from Q-learning and we actually had to go through the step of refuting Q-learning before we found what we believe is the more accurate model whereas DataDiver is more a data-driven approach where no theory exactly starting from scratch where no theory goes in and so it clearly lets the data speak for themselves and there's no ingredients that we have to refute at first.

物种比较与未来研究方向Comparing species and future directions

这确实非常有趣。That is very interesting indeed.

是的。Yeah.

我知道你做的不只是基于人类的数据集,里面还有其他动物。跟我说说吧。I know you weren't just working on humanbased data sets. You had other animals in there too. Tell me about that.

是的。所以我们有五个不同的数据集,涉及四种不同的物种:人类、大鼠、苍蝇和猴子。我觉得总体来说,我们为每个物种找到的算法都相当不同,这有点出乎意料。我想我们可能原本预期它们会有更多趋同性,但仔细想想之后,我们意识到或许不应该对此那么惊讶。这些生物不仅差异极大,而且它们与这些任务互动的方式也非常不同。它们做的都是强化学习任务,动物会做出选择并获得奖励,但有时任务是在电脑屏幕上进行的,有时是在迷宫里,有时则是大鼠把它的小鼻子伸进一个孔里,换取一滴水。我的意思是,它们所处的环境差异实在太大了。 对于猴子来说,这是一个来自 Vinnie Costa 的数据集。这是我最喜欢的程序之一。它发现的基本规律——也是让我们有些意外的地方——是有一个程序以一种不同于我们预期的方式捕捉了新奇性。简单来说,这个特定的数据集与 Maria 描述的那种数据集不同,因为它引入了新奇这一因素。有时,已有的选项会被移除,再换成新的选项。动物和人类往往有点追求新奇,因此更可能选择新选项。设计这个任务,就是为了更深入地了解这种对新奇事物的偏好是如何起作用的。传统上,人们只是把新颖反应的价值稍微加上一点奖励,来对这种偏好进行建模。Yeah. So we had we had five different data sets, four different species. We had humans, rats, flies, and monkeys. and I think overall we found the algorithms we found for each species were pretty different. and this was a little bit surprising. I think maybe we expected there to be more convergence, but then upon more reflection, we realized maybe we shouldn't be s so surprised by it. Not only are these like vastly different organisms, but they're interacting with these tasks in very different ways. They're all reinforcement learning tasks where the animal makes choices and gets rewards, but sometimes it's on a computer screen, sometimes it's a maze, sometimes it's a rat sticking its little rat nose in a in a port to get a drop of water. I mean, they're just like tremendously different environments. For the monkeys, this is a data set from Vinnie Costa. this was one of my favorite programs. the basic thing that it found that was that was sort of surprising to us is a program that captured novelty in a way that was different from what we were expecting. so this particular data set just briefly it was it was different from the kind of data set that Maria described in that it introduced an element of novelty. Sometimes existing choices were removed and replaced by something new. animals and humans tend to be a little bit novelty-seeking. So they're more likely to pick the new option. and this task was designed to try to get more understanding on how that novelty preference works. classically this has just been modeled as adding a little bit of a bonus on the value of a novel response.

但我们发现的那些程序并没有追踪每个选项的价值并对新颖选项加以加权,实际上它们只是用一个单独的变量来追踪新颖性。这很令人兴奋,因为这表明这件事还需要进一步检验;但它也提示,新奇偏好可能有一种不同的神经组织方式。实际上,可能存在两个神经基质:一个追踪奖励,另一个追踪新颖性,而这两者可能会在大脑中整合起来。因此,这就是我们现在可以通过实验去探究的一个问题。but the programs we found instead of keeping track of value for each option and giving a boost to the novel ones actually just kept track of a separate variable for novelty. This is exciting because it suggests this is something that needs to be you know further tested but it suggests a different neural organization for novelty preference. that actually there might be two substrates one substrate that keeps track of reward and one that keeps track of novelty and that these might be combined in the brain. so that's now something we could look for experimentally.

那这又有什么关系呢?新奇感和好奇心可能由大脑中的不同神经通路处理,这又有什么关系呢?Why does that matter then? Why does it matter that novelty and curiosity might be on different tracks in the brain?

是的,这很重要,因为这里发生的是一个不同的过程。如果这是大脑组织信息的方式,而我们的总体目标是理解哪些神经机制会产生行为,那么这就是一种在根本上不同的行为组织方式。如果你想利用这种理解来指导未来疗法或治疗方案的设计,这也会很有意义。如果你想以某种方式干预某人对新奇事物作出判断时所涉及的神经过程,那么了解其神经实现机制对于设计这种干预至关重要。Yeah, it matters because it's a different process going on. If this is the way information is organized in the brain, and if our overall goal is to understand what kinds of neural mechanisms give rise to behavior, this is this is just a fundamentally different organization of behavior. it would also have relevance if you're trying to use this kind of understanding in order to in order to base future design of therapies or designs of treatments. if you wanted to somehow intervene on the neurology of how somebody makes a decision about novelty, knowing the neural implementation is really important for designing such an intervention.

这一切的真正价值是什么?这是否——这是否让我们更接近真正理解人类或动物的大脑内部正在发生什么?What is the real value of all of this? Does this does this get us closer to really understanding what is going on inside a brain of a human or an animal?

这是一种全新的方法,是一种看待神经数据的新思路。我认为,基本上我们长期以来一直在做的,就是逐一提出理论,看看它们能否解释数据。而真正让我们兴奋的是这样一种想法:我们或许可以反过来,利用 AI 工具处理大型数据集,尝试让这些工具告诉我们数据里发生了什么。我们希望这样能获得一些全新的见解——一些作为研究人员的我们原本不会想到去寻找的见解。至于这种方法的全部潜力,最让我兴奋的是,我们或许能从数据中得到一些我们从未真正想过的、完全崭新的根本性想法。这就是梦想。It's a new approach. It's a new way of thinking about neural data. I think basically what we've been doing for a long time is picking theories out one by one and seeing if they explain data. and the thing that we're really excited about is this idea that we could potentially do the inverse and take a large data set and use AI tools to try to try to let them tell us what's going on in the data. the hope is that we could get some really new insight that, you know, didn't occur to us as researchers to get. and this you know the full possibility of this the thing I'm most excited about is this potential that we could get some idea that we had never really thought of some totally fundamentally new idea that we get from looking at the data. that is yeah that's the dream.

你呢?How about you?

我认为,从某种意义上说,这是一种开展科学研究的新方式:我们跳出了把 AI 当作隐喻的这一范式。I think it is kind of a new way of doing science in some way where we step out of this paradigm of using AI as a metaphor

并提出根本性的新理论或新模型。我认为,有一些迹象表明这可能正在奏效,只不过它们主要表现为我们的方法存在的问题。我觉得我们遇到了很多问题。比如,针对不同的数据集,我们会发现不同的模型。但退一步看,你会意识到,我们所了解的整个文献领域都存在这个问题。我认为这是个好迹象,因为这意味着我们确实处在科学的前沿。我们确实在推动人们尚未涉足的领域。所以,我们确实在做一些新事情。我们正在解决一些过去不知道存在的问题,因为那时我们还没有发现这些问题的方法。and come up with fundamentally new theories or fundamentally new models. And I think there are a few glimpses that this might be working that mainly disguise as problems with our approach. So I think we've run into a lot of issues. for example, the issue that we find different models for different data sets. But once you take a step back, you realize that this problem is true for the entire literature that we know. And I think this is a good sign because it means we really are at the frontier of science. We really are pushing something that people haven't got to yet. So we really are doing something new. We're solving problems that we didn't know existed because we didn't have the methods to see them.

确实,确实感觉你们已经迸发出了某种相当令人兴奋的东西的第一缕火花。It does it does feel like you've got the first sparks of something quite exciting here.

是的,我觉得我们一直对此挺兴奋的。你觉得神经科学算是有望被攻克的领域之一吗?Yeah, I think we've been pretty excited about it. do you think that neuroscience is on the list of things that could be solved?

哦,我希望如此。Oo, I hope so.

我的意思是,这感觉像是向前迈出了一大步。所以我觉得,思考这些模型与神经科学之间的关系很有意思,因为我们现在对参与者选择的解释比过去好得多;如果因此我们也不能更好地预测神经活动,我会觉得很意外。我们可以观察你执行这项任务时,相关变化如何随时间发生,然后再看看大脑里是否也有某个脑区以这种方式发生变化?I mean, this feels like quite a big step forwards. So I think it is it is interesting to think about those models and neuroscience because we explain participant choices so much better than we were able to in the past and I would be surprised if we weren't also better able to predict neural activity because of that we could see how it's changing over time as you do this task and then look into the brain and see is there a brain region that also changes in this way?

所以,把这与 fMRI 扫描仪联系起来,或者与植入猴子大脑中的电极联系起来,或者其他类似的东西。So connect this with fMRI scanners or with electrodes placed into the brains of monkeys or whatever it might be.

没错。Exactly.

只是为了真正验证,你描述的这些模型是否确实对应着大脑中正在发生的事情。Just to really validate what you are describing these models is actually what's going on in the brain.

正是如此。我们希望能够更好地解释大脑是如何进行计算的,或者哪些脑区正在执行这些算法。Exactly. And the hope is that we could explain much better what how the brain is calculating or what regions are doing are calculating those algorithms.

那么,将这些想法与其他更传统的神经科学方法联系起来,有可能吗?Is that on the cards then connecting these ideas up with other more traditional methods of neuroscience?

是的,我觉得这是我们现在特别兴奋的一件事。到目前为止,我们主要关注行为数据集,并试图找到具有机制形式的模型。它们可以被视为对正在发生什么机制的一种假设,并与神经数据联系起来。我们的希望是,这能让我们把大脑中的机制与行为联系起来。基本上,就是建立一个模型,说明大脑如何产生行为。这可以说是神经科学的核心问题。另一方面,你知道,我们也谈过复杂性与预测之间的这种权衡。我们希望尽可能推动这种权衡,让我们不必在两者之间做选择,而是对复杂性进行组织,而不是只能接受忽略它,或者牺牲一部分性能。Yeah, I think this is something that we're really excited about is right now we've been mostly focusing on behavior data sets and trying to get find models that are that have a mechanistic form. They could be considered a hypothesis for what mechanism is going on and connect them with neural data. The hope here is that this lets us bridge the bridge the mechanisms in the brain with the behavior. Basically get a model of how the brain gives rise to behavior. That's kind of the core problem of neuroscience. another aspect is, you know, we've talked about this trade-off between complexity and prediction. We would like to try to push that trade-off as far as possible in the direction of not having to make a choice, organizing the complexity rather than just accepting that we're going to have to ignore it or sacrifice some performance.

这一类别中的另一点是,你知道,我们正在使用的这些方法需要大量数据。如果你想从数据构建模型,就需要大量数据来限定搜索范围。而收集数据才是难点,也是最耗时的部分。这部分确实需要你与现实世界进行交互。因此,我们一直在重点思考的一些方向是如何改进数据收集,比如探索更广阔的模型空间,或者自动化实验设计流程,以便更高效地收集有意义的数据。Another thing in this category is you know these methods that we're using require a lot of data. If you want to go from data to model, you need a lot of data to constrain your search. and collecting data is the hard part. That's the slow part. That's the part you really need to interface with the real world for. and so some of the directions we've been thinking about a lot are how we can improve our data collection, whether it's searching more vast model spaces or automating the experimental design process to collect meaningful data more efficiently.

非常感谢你们两位来参加。刚才的内容真的非常、非常精彩。Thank you both so much for joining me. That was really, really fascinating.

非常感谢你们邀请我们。那真的很有意思。Thank you so much for having us. That was a lot of fun.

谢谢。是的,非常开心。Thank you. Yeah, very much enjoyed.

汉娜的想法Hannah’s thoughts

如今,对于人工智能来说,2019年简直像是遥远的过去。但实际上那不过是七年前。令人惊叹的是,我们竟然在这么短的时间里,从试图在生物身上寻找智能的线索,以此让人工智能抢占先机,发展到如今利用强大得惊人的人工智能来解释人类心智的运作机制。问题在于,迄今为止神经科学所依据的那些模型,全都是由人类构建的。它们经过人工调整,源自我们的想象,也带着随之而来的种种先入之见和偏见。而现在,正如我们刚刚看到的,人工智能几乎能同时探索各种各样的可能性,不受这些包袱的影响,让神经科学数据本身说话。你收听的是《Google DeepMind:播客》,我是主持人汉娜·弗莱教授。Now, 2019 might as well be the back of beyond as far as AI is concerned. But it was actually only seven years ago and it is astonishing how quickly we have gone from trying to find clues to intelligence in biological creatures to give AI a head start to now using phenomenally powerful AI to explain the workings of the human mind. And the thing is all of those models that neuroscience has been based on up until now they were all built by humans. They were tweaked by hand, built from our imagination with all of the preconceptions and biases that comes with. And now, as we have just seen, AI can explore all manner of possibilities almost at once without any of that baggage and let the neuroscience data speak for itself. You have been listening to Google DeepMind the podcast with me, Professor Hannah Fry.

如果你喜欢这期节目,别忘了点击订阅,我们还有更多精彩内容即将推出。下次再见。If you enjoyed this episode, make sure you click subscribe as we have plenty more to come. See you next time.

值得记下

  1. 所以我们现在确实在用 AI 这个工具帮助我们理解大脑。
  2. 神经网络预测对了参与者 68% 的选择,明显好于强化学习模型。
  3. 同一种行为往往有多种解释。

← 回到本期 · 第 11 条