跳到主内容
@wquguru
精选75Google DeepMind(YouTube)技巧与观点

AI 不确定性数学:Zoubin Ghahramani 谈机器自我怀疑

The mathematics of AI uncertainty

原文
发到 X

Welcome to Google DeepMind, the podcast. Now, if you ask an AI a question, it will usually give you an absolute answer with unwavering authority, even if that answer turns out to be wrong. In fact, today's AI seems to be missing a fundamental human trait self-doubt. But long before the current wave of large language models, one academic researcher was trying to give machines a sense of their own limitations. Zoubin Ghahramani has spent the last 30 years pioneering a type of intelligence built on the mathematics of uncertainty.

欢迎收听 Google DeepMind 播客。如今,如果你向人工智能提问,它通常会以不容置疑的权威给出绝对答案,即便这个答案最终被证明是错误的。事实上,当今的人工智能似乎缺少人类的一项基本特质——自我怀疑。但在当前大型语言模型浪潮之前很久,就有一位学术研究者试图让机器意识到自身的局限性。Zoubin Ghahramani 在过去30年里一直致力于开创一种建立在不确定性数学基础上的智能类型。

Today, as a professor at Cambridge and co-lead of frontier AI at Google DeepMind, zoubin finds himself at the heart of another interesting debate. On the one side are those who are hoping that Pure Scale will be the answer to ever improving AI, and on the other are those like zoubin, who believe that true intelligence requires innovations in architecture, and that improving machine uncertainty may be one of the missing pieces.

如今,作为剑桥大学教授及 Google DeepMind 前沿人工智能联合负责人,Zoubin 发现自己正处于另一场有趣辩论的中心。一方希望纯粹规模扩张能成为不断提升人工智能的答案,另一方则像 Zoubin 一样,认为真正的智能需要架构上的创新,而提升机器的不确定性处理能力可能是缺失的关键环节之一。

Zubin, welcome to the podcast. Thank you. If you were to distill it all down, I mean, your central thesis is that we need to have uncertainty in. I mean, give me the top line of it. So yeah. Well if you think about intelligence, one of the most important parts of intelligence is decision making. Can't have an intelligent system that doesn't make decisions, from bacteria to animals to humans to robots decision making is really important.

Zoubin,欢迎来到播客。谢谢。如果要把你的核心论点浓缩成一句话,我的意思是,你的中心论点是我们需要在……中引入不确定性。给我一个概要吧。是的。嗯,如果你思考智能,智能最重要的部分之一就是决策。一个不能做决策的智能系统是不存在的,从细菌到动物,从人类到机器人,决策都至关重要。

And if you want to make decisions in the real world, our perception is limited. So we are always uncertain about the state of the real world. And we need to make decisions under uncertainty. We can't know everything. We don't know everything from our senses. We can't predict the future. And so fundamentally, to build an intelligent system, you need a system that can represent uncertainty, that can update its uncertainty and then can use that to make good decisions under uncertainty.

而如果你想在现实世界中做决策,我们的感知是有限的。所以我们总是对现实世界的状态感到不确定。我们需要在不确定性下做决策。我们不可能知道一切。我们无法通过感官了解所有事物。我们无法预测未来。因此,从根本上说,要构建一个智能系统,你需要一个能够表示不确定性、能够更新其不确定性,然后利用这种不确定性在不确定条件下做出良好决策的系统。

Because actually, I mean, there's two different types of uncertainty, I guess, right. There's the uncertainty of just the inherent randomness of the world. Yeah there's a pedestrian in a normal, typical street, and you just don't know which way they're going to. They're going to turn. But then there's the uncertainty of a scenario that you've never encountered before. Let me give an example from something that is becoming more and more of a reality in all our lives, which is self-driving cars.

因为实际上,我的意思是,有两种不同类型的不确定性,我想,对吧。一种只是世界固有的随机性带来的不确定性。是的,比如在一条普通的街道上有一个行人,你就是不知道他们会朝哪个方向走,他们会转向哪里。但还有另一种不确定性,即你从未遇到过的情况。让我举一个正越来越成为我们生活现实的例子,那就是自动驾驶汽车。

So when you're in a self-driving car, the self-driving car has been trained on lots and lots of data. It's seen many, many scenarios. But you can imagine that there is what's called the long tail of things that could happen. For example, the car may have not been trained in many instances of hailstorms, and it may not have been trained with horses suddenly jumping in front of the car in a hailstorm. And so essentially, what you really want from an intelligent system is a certain self-awareness.

所以,当你坐在自动驾驶汽车里时,这辆自动驾驶汽车已经通过大量数据进行了训练。它见识过许多许多种场景。但你可以想象,存在着所谓的“长尾”事件,即可能发生的各种罕见情况。例如,汽车可能没有在多次冰雹情境下接受训练,也可能没有训练过在冰雹中马匹突然冲到车前的情况。因此,本质上,你真正希望智能系统具备的是一种自我意识。

If we can use those terms, a self-awareness about its uncertainty. So it needs to be able to know the situation that it's in is something that is unusual or it hasn't seen before. And in the case of the self-driving car, for example, if it were to have a sense of its uncertainty, it would basically decide to slow down because it hasn't encountered that situation before. It's not confident that the horse isn't a bicycle or whatever it is.

如果我们可以用这些术语来说,那就是对其不确定性的自我意识。所以,它需要能够意识到自己所处的情境是不同寻常的或未曾见过的。以自动驾驶汽车为例,如果它能感知到自身的不确定性,它基本上会决定减速,因为它之前没有遇到过这种情况。它不确定那匹马不是自行车或其他什么东西。

There are many different kinds of uncertainty, but the beauty of it is that from a mathematical point of view, we can boil it all down to probabilities. So we can map all these different forms of uncertainty onto probabilities, and then use the rules of probability theory to manipulate uncertainty, update your state of uncertainty, et cetera. But how important is it that a machine can tell the different types of uncertainty apart.

不确定性有很多种,但美妙之处在于,从数学角度来看,我们可以将其全部归结为概率。因此,我们可以将所有这些不同形式的不确定性映射到概率上,然后利用概率论的规则来处理不确定性、更新你的不确定性状态等等。但机器能否区分不同类型的不确定性,这有多重要呢?

Yeah, I think it's important insofar that the different types of uncertainty may mean different decisions. So for example, if you have what's called aleatoric uncertainty, which is the randomness of a coin flip, which is the pedestrian going to turn or which ways the pedestrian going to turn might want to decide that you're going to give up on trying to predict because it is just random, whereas in other cases, your state of belief is uncertain and you would want to collect more information to.

是的,我认为这很重要,因为不同类型的不确定性可能意味着不同的决策。例如,如果你遇到所谓的偶然不确定性,就像抛硬币的随机性,行人会转向哪边或行人会朝哪个方向转,这可能会让你决定放弃预测,因为那纯属随机;而在其他情况下,你的信念状态是不确定的,你可能想要收集更多信息来……

And in fact, that's the definition of information. So information a bit of information that we use in computer science is the reduction of your uncertainty by a factor of 2. That's what a bit is. And so collecting information is the way we reduce our uncertainty. How did these ideas of uncertainty map onto what humans are doing. So I actually studied cognitive science. I studied computer science and cognitive science as an undergraduate.

事实上,这正是信息的定义。所以,我们在计算机科学中使用的信息比特,就是将你的不确定性减少一半。这就是比特的含义。因此,收集信息是我们减少不确定性的方式。这些关于不确定性的想法如何映射到人类的行为上呢?实际上,我学过认知科学。我在本科阶段学习了计算机科学和认知科学。

So I've always been interested in human intelligence as well as machine intelligence. And one of the really interesting things is that the field of cognitive science has really embraced these ideas of uncertainty and probabilities and so on, to try to understand both human perception and human decision making. So we go through our lives perceiving things. Perceiving the world is fundamentally an act of sensing something that is uncertain.

因此,我一直对人类智能和机器智能都抱有浓厚兴趣。有趣的是,认知科学领域确实已经接纳了这些关于不确定性和概率等概念,试图理解人类的感知和决策过程。我们一生都在感知事物,而感知世界本质上是一种对不确定事物的感知行为。

I can't see the back of your head, but I can infer what the back of your head might look like from you. Hope it was there. I would hope it's there. And similarly, let's say I'm hiking in Costa Rica and suddenly there's the rustling of the leaves. It may be a Jaguar. And so my sense is through evolution, my senses have developed to take in perceptual information, taken my prior beliefs, because there are Jaguars in Costa Rica, or there wouldn't be Jaguars in the middle of London.

我看不到你的后脑勺,但我可以从你身上推断出它可能的样子。希望它还在那里,我期望它在那里。同样,假设我在哥斯达黎加徒步,突然听到树叶沙沙作响,那可能是一只美洲豹。因此,通过进化,我的感官已经发展出接收感知信息的能力,结合我的先验信念——因为哥斯达黎加有美洲豹,而伦敦市中心不会有美洲豹。

And that process of combining information has been modeled by cognitive scientists and psychologists and neuroscientists through the language of probabilistic inference, basically. And also actually one of the interesting things is that we as humans are actually quite bad at estimating probabilities explicitly. If you ask somebody what is the probability of a certain event, they might get it wrong by orders of magnitude, for example.

这种信息整合的过程,认知科学家、心理学家和神经科学家基本上是通过概率推断的语言来建模的。实际上,有趣的是,我们人类在明确估计概率方面其实相当糟糕。比如,如果你问某人某个事件的概率是多少,他们可能会错得离谱,甚至相差几个数量级。

And, we have these fallacies of probabilistic inference and belief. Kahneman and Tversky showed that humans are actually quite bad at representations of uncertainty at a conscious level. But in our perceptual systems, unconsciously, we tend to be quite good about these things because our survival depends on them. I'm thinking also about babies here. Toddlers and the way that they learn is a lot about their belief in what action will drive a particular outcome.

而且,我们在概率推断和信念上存在这些谬误。卡尼曼和特沃斯基表明,人类在意识层面上对不确定性的表征其实相当差。但在我们的感知系统中,无意识层面,我们往往表现得相当好,因为我们的生存依赖于这些。我也想到了婴儿。幼儿的学习方式很大程度上取决于他们对哪种行为会带来特定结果的信念。

Yeah I mean, it's all implicit. Obviously babies don't know what probabilities are and they won't be able to write down any equations for you. But there are many cognitive scientists and psychologists who try to understand human learning, human perception, human decision making, using these same formalisms that we're using for AI systems. I think there are a few things here we should probably tease apart before we get really into it, because there's a difference between correctness and confidence, which both sometimes come under the umbrella of uncertainty.

是的,我的意思是,这一切都是隐性的。显然,婴儿不知道概率是什么,也无法为你写出任何方程式。但有许多认知科学家和心理学家试图用我们用于人工智能系统的同样形式化方法来理解人类的学习、感知和决策。我认为在我们深入探讨之前,有几件事应该先理清,因为正确性和置信度之间存在区别,这两者有时都归入不确定性的范畴。

Yeah, absolutely. A great example of this is we use AI systems for image classification all the time. So you give it an image and it gives you an answer of what's in the image. And we can measure correctness, but we also want it to tell us how confident it is. And more than a decade ago, people discovered that you can take an image, for example, of a school bus, modify just a few pixels in that image in an imperceptible way, so a human being would look at it and say, well, that's an image of a school bus.

是的,绝对如此。一个很好的例子是我们经常使用AI系统进行图像分类。你给它一张图片,它会告诉你图片里有什么。我们可以衡量正确性,但我们也希望它能告诉我们它的自信程度。十多年前,人们发现你可以拿一张校车的图片,以几乎不可察觉的方式修改其中的几个像素,以至于人类看到后会认为,嗯,这是一张校车的图片。

You give it to the neural network and it confidently says, that's a cheetah. 99% that's a cheetah. And in fact, you could do it for any category. You could turn the school bus into a monkey or whatever in the eyes of the neural network. And so that sort of adversarial example shows us that it's not correctness that we care about alone. It's actually correctness and

你把它交给神经网络,它会自信地说,那是猎豹。99%确定是猎豹。实际上,你可以对任何类别这样做。你可以把校车变成猴子或任何东西,在神经网络的眼中。因此,这种对抗性示例告诉我们,我们关心的不仅仅是正确性。实际上,我们关心的是正确性和

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近