Hi, everybody. So yeah, I'm Noam Brown. Excited to talk about this today. So I'll be talking about multi-agent AI. I'll be taking a pretty broad view of it because there's a lot to cover. And I guess I'll start by motivating it. I think we have seen that... So yeah.
First, I want to talk about self-play. So self-play has been behind a lot of the breakthroughs that we've seen in AI, especially for games. Things like AlphaGo, things like DOTA and StarCraft, and also poker. And we haven't really seen that in LLMs. And it's a little surprising because if you look at the trajectory of LLMs, it actually looks a lot like the trajectory of something like AlphaGo. You start with pre-training on high quality human data. This was done for AlphaGo. It was also done for LLMs. And then you enable large scale inference compute, and then you have recursive self-improvement.
And step 1, pre-training on high quality human data. In AlphaGo, this means training on a bunch of human go games. And in language models, it means training on large chunks of the internet and doing next token prediction. And then step 2 is enabling large scale inference compute. So in AlphaGo, this was Monte Carlo tree search. And in all the different games, there were different ways of doing this large scale inference compute. But in AlphaGo it was Monte Carlo tree search. And then in LLMs, you have chain of thought. And then step 3, you have recursive self-improvement. And then in AlphaGo, this is self-play, where the AI plays against itself over millions, billions of different games. And it gets better and better over the course of those games. And in LLMs, we don't have that piece.
So why is that? What's so difficult about doing something like self-play, recursive self-improvement in LLMs compared to all these games where it's been so successful? And I'll give you the takeaway, which is that a lot of people's intuitions about self-play is basically overfit to go and chess and these kinds of two-player zero-sum perfect information games. And it turns out that when you go outside of these games, a lot of the very nice properties go away, and self-play becomes much more difficult.
So to give one example of this, I want to start with just a very basic question, which is, who do you think is the better poker player? Option 1 is someone who, over a very large sample size, wins head to head against any other player. So if this person were to play a million hands of poker against any other person alive, they would win in expectation. They would end up winning. They would end up up money. Option 2 is someone who makes more money playing poker than anyone else over, like, let's say, a year. So who thinks option 1? And then who thinks option 2? OK. It seems pretty split, but I think most people actually lean towards option 2.
Now, it's very interesting that in poker, this is not necessarily the same person. You could have someone who is really good at squeaking out wins against other players, but if they're playing against a really weak player, doesn't really exploit them to the max. And you could have somebody who's really, really good at finding the weaknesses of weak players and taking advantage of that to the fullest extent possible. But when they're up against another top pro who doesn't have many weaknesses, they end up doing a little bit worse. So in poker, these could be two different people. In a game like chess or a game Go, we don't really consider the possibility that these could be two different people. If you think about who is the best person at option 1 and who is the best person at option 2 in a game of chess, you would just say Magnus Carlsen. It would be the same person.
OK. So option 1 is what we call a minimax equilibrium, and option 2 is what we'll call a population-based response. Now, typically, when we think about AI for games, when we talk about solving a game, what does it mean to solve a game? Typically, what people are talking about is computing a minimax equilibrium. And that's going to be important because that's an assumption that we are making about what it means to solve a game. And it's a strong assumption. It's not necessarily what we want. And in games like chess and Go, this is fine because it ends up being the same thing. But in other games like poker and a lot of other settings, and we'll see that as we go beyond two-player zero-sum games, this actually becomes a very significant problem. This is not necessarily the same thing. And we might actually... it's possible that what we really want is a population best response. But for now, let's just take it as an assumption that what we really want is a minimax equilibrium. And we'll go down the rabbit hole of what this involves.
So for starters, what is a minimax equilibrium? A minimax equilibrium is a set of strategies in which no player can improve by deviating to a different strategy. And in two-player zero-sum games, in particular, playing minimax equilibrium guarantees that you will not lose in expectation. And we're going to measure something called exploitability, which is how much we lose to a best response. So exploitability is basically how far away are we from a minimax equilibrium. If we're in equilibrium, then exploitability is zero.
OK. So to give you some intuition for this, let's say you're playing rock-paper-scissors. One strategy that you could take, not a very good one, is to just throw rock every single time. And in this case, the best response against that strategy is to throw paper every single time. And our exploitability is 1, because we're losing every single round.
OK. So you might have a more sophisticated strategy. You might say, like, well, let's throw rock the first two rounds, and then on the third round, if our opponent threw paper, then we're going to throw scissors. Well, in this case, the exploitability is still one, because the best response would be to throw paper on the first two rounds and then rock on the third round. Now, you might say this is unfair. We're assuming that the opponent knows our strategy, and they know that we're going to throw scissors on the third round. And that is correct. And this is an assumption that we're making when we talk about equilibria. And again, this is a very strong assumption. And I think it's fair to question this assumption, which is that our strategy is common knowledge, but the outcomes of random processes, like the random seed, is not common knowledge.
So why are we making this assumption? The reason is because if you are creating an AI that is going online and being used by billions of users, then if there are weaknesses in that system, eventually, people will find it, and they will exploit it. And so the idea behind minimax, like when we're measuring exploitability, is to say, OK, well, let's just assume that the opponent has... that people have full access to our weights. They know exactly what the probability distribution is over actions, and can we be robust despite that? Now again, this is a very strong assumption that we're making. And I think it is very fair to question this assumption. But for now, we're going to go with this and see what happens when we make this assumption. And what can we do to make our agents robust despite this assumption.
So in rock-paper-scissors, the answer is to randomize. Remember that the strategy is common knowledge, but the outcomes of random processes is not common knowledge. So in rock-paper-scissors, if we just randomize equally between throwing rock, paper, and scissors with equal probability each round, then our opponent will not know what we're going to throw. And the best they can do is just tie us. And so the exploitability is 0. OK. And this is the minimax equilibrium for rock-paper-scissors: to randomly choose between rock, paper, and scissors with equal probability each round.
Now, it's reasonable to look at this and say, OK, well, great. We're able to compute a minimax equilibrium that guarantees we don't lose in expectation, but we're not going to win in expectation by playing equal probability each round. So how do we actually win in a game like poker? And the answer is that in a game like poker, the strategy is much more complicated. Rock-paper-scissors is a very simple example where you can just play any action as long as you balance them correctly, and the best you can do is tie. But in a more complicated game like poker, if you are playing the Nash equilibrium... if you are playing the minimax equilibrium, it's actually very difficult for the opponent to know what to do to counter you, because there are some actions that should just not be played at all. In rock-paper-scissors, that doesn't happen. In rock-paper-scissors, the opponent can do anything in response and still tie you. In poker, that's not true. There are many actions that they could make, which actually are just what we call negative expected value. That actually just cost them, even when you're playing against the minimax equilibrium.
So the idea behind minimax equilibrium in something like poker is that your opponent is going to make mistakes, and that's going to cost them value. And because it's a two-player zero-sum game, that means that it's going to increase your value. And in fact, this is the strategy that's been adopted by poker professionals now. This guide to poker, for example, says, poker is simple: as your opponents make mistakes, you profit. So the conventional wisdom is play the minimax equilibrium. And then maybe... and your opponent will make mistakes and you'll profit off of that. And then also, over the course of the long run, if you observe weaknesses in your opponent, then you could adapt from the minimax equilibrium, deviate, and then try to take advantage of them.
OK. So we were aiming for minimax equilibrium because that guarantees that we're not going to lose in expectation. And in practice, it means that we're going to win. Self-play is this algorithm that converges to a minimax equilibrium. So self-play is when an agent gradually improves by playing against copies of itself. And the initial strategy could even be completely random. As long as you have a sound self-play algorithm, and I'll talk about what sound means, because it's actually non-trivial, in a two-player zero-sum game, any sound self-play algorithm provably converges to a minimax equilibrium. And so this is actually really incredible because this means you don't need any data. You don't need any human data. As long as you have sufficient memory and compute, any finite two-player zero-sum game can be solved via self-play.
I want to say this again, because I think this is really profound and kind of amazing: that in any two-player zero-sum game, you don't need any human data. If you just do any balanced two-player zero-sum game, you don't need any human data. If you just have sufficient memory and compute, you can just do self-play and converge to a minimax equilibrium. And that guarantees that you will not lose in expectation to any human or any other player. We take this for granted, but it's actually lucky that we can get this. And so this is behind a lot of the victories that we've seen in games Go and chess and poker and real-time strategy games.
OK. So what do I mean by sound self-play? And what does self-play look like in different kinds of games? So there's different kinds of two-player zero-sum games, and we'll start by talking about perfect information games. Essentially, what this is just independent single agent RL. You just take something like PPO, and as long as you do sufficient exploration, it's actually pretty easy for this to converge in theory to a minimax equilibrium. Now, that said, that convergence to minimax equilibrium is a theoretical property. In practice, you don't usually get all the way to minimax equilibrium. And in particular, you might still be vulnerable to adversarial attacks. Neural nets are limited in their ability to approximate a minimax equilibrium, especially in complex games like Go. So this could mean that, yes, if you had infinite capacity and infinite compute, then you would eventually arrive at a minimax equilibrium. In practice, you don't have that. And so you could still be vulnerable to exploits. And this is especially a problem because finding exploits is generally easier than defending against exploits. And especially in imperfect information games, which we'll talk about later. And so there's actually a paper that came out in 2023, which showed that in Go, in many of the leading Go bots, there were adversarial strategies that could be deployed by humans even, that would allow them to defeat very, very strong Go bots.
OK. So that is perfect information games, and perfect information games, it's actually relatively simple. When you go to imperfect information games, things become a lot more complicated. And one thing that I think is surprising to people is that if we take this modified version of rock-paper-scissors, where the payoffs for scissors and paper are altered to be plus 2 and minus 2 instead of plus 1 minus 1, just to break the symmetry of the game, PPO does not converge to a minimax equilibrium. A lot of people, even people that are very experienced in RL, don't know this, but I think it's pretty important that there's actually nothing in PPO that guarantees convergence to minimax equilibrium in a game like rock-paper-scissors. And the reason is because rock-paper-scissors, you have to balance between multiple actions with a certain probability. And there's nothing forcing that balance, that convergence to a particular probability distribution, in the PPO algorithm.
So this points to the fact that imperfect information games, there's something special about them that's much more difficult than perfect information games. And why is that? OK. So to explain what is particularly difficult about imperfect information games, I want to talk about... we'll illustrate this game called rock-paper-scissors plus. And this is a visualization of the game where player 1 acts first, and then player 2 acts after player 1 without observing what player 1 did. So that's just so we can view it as something like a perfect information game, where the players act sequentially. So here, the players are acting sequentially, but player 2 doesn't observe what player 1 did. And so it's kind of like no different from them acting simultaneously. And we're going to modify the payoffs a little bit so that there's no symmetry, and the equilibrium is to play rock and paper with 40% probability and scissors with 20% probability. So the way this works is player 1 acts first. They choose either rock, paper, or scissors, and then player 2 acts, they choose rock, paper, scissors, and then the payoff is shown for player 1. And there's dotted lines between the player 2 nodes to signify that player 2 doesn't know which of those nodes they are actually in. So for example, if player 1 chooses rock and then player 2 chooses scissors, then player 1 wins two points and player 2 loses two points. And like I said, the equilibrium for this modified version of the game is to throw rock, paper with 40% probability, scissors with 20% probability.
OK. So let's say we do depth-limited lookahead search. So just like we would do in a game like chess. So what does this look like? Well, you start at player 1. We're going to do a depth 1 search. Player 1 is going to look at all the different actions they could take, and then ask, what is the expected value after taking this action? And in an equilibrium, it's going to look like this. It's going to show, well, if you throw a rock, you'll get a payoff of 0, paper, you get a payoff of 0, scissors, you get a payoff of 0. So it actually doesn't matter... from player 1's perspective, it doesn't matter what they do. In all cases, they get the equilibrium payoff. And so there's not enough information for them to arrive at the equilibrium of choosing rock and paper with 40% probability, scissors with 20% probability.
But the problem is that this isn't realistic, because this is assuming that player 2 is playing the equilibrium. And that is an assumption you can make in a game like chess or Go, but you can't make in an imperfect information game, because if player 1 were to, for example, choose rock with 80% probability, then player 2 would no longer play the equilibrium. Player 2 would pick up on this, and they would deviate, and they would start playing paper. And so the value of player 1 throwing rock would decrease from 0 to minus 1. And so this is actually fundamentally why imperfect information games... I mean, one of the reasons, but I think the main reason why imperfect information games are so difficult, because the value of an action depends on the probability that it is played. And that is not true for a game like chess or Go, a perfect information game. In perfect information games, the value of an action does not depend on the probability that you play it. If you're playing chess and you want to open with the Sicilian defense, it doesn't matter if you do that 10% of the time or 90% of the time. It's not really going to change the expected value. Whereas in a game like poker, if you want to bluff, well, whether you're bluffing 10% of the time or 90% of the time matters a ton, because if you're always bluffing, then the opponent is going to pick up on that and they're going to start calling you more often, and the value of bluffing is going to go down. So what this means is that you need an algorithm that finds the right probability of choosing an action, not just what action to play.
Now, I should caveat that a little bit. I use chess as an example. The truth is that chess these days is kind of like an imperfect information game because players like prepare different strategies and think about what strategies the opponent has prepared for... but that's modeling chess as like a repeated game that could be viewed as imperfect information. That's not really viewing chess as a standalone game.
OK. So how do we get around the fact that we can't use something like PPO? We need an algorithm that doesn't just figure out what actions to play, but the probability to play them. Well, there's a few different approaches that can be taken. The simplest is this algorithm called fictitious play. And the idea is that we'll initialize the strategies for all players arbitrarily. And then on each iteration, each player simply plays the best response to the opponent's average strategy over all previous iterations. And if all the players play fictitious play, then the average strategy over all iterations converges to a minimax equilibrium. So to give you an idea of what this looks like for rock-paper-scissors, you initialize the strategies arbitrarily. So let's say we initialize it to all the players throwing rock. OK. So player 1 throws rock, player 2 throws rock, their average strategy so far is 100% rock. And then on iteration 2 you compute the best response to the average strategy so far. So the average strategy so far is to always throw rock. So the best response to that is to throw paper. And now, you update the average strategy to be 50% rock, 50% paper.
OK. On iteration 3, you again compute the best response to the average strategy so far. So the best response to 50% rock, 50% paper is to always throw paper. And so now the average strategy is updated to be 33% rock, 1/3 rock, 2/3 paper. On iteration 4, you do the same thing. The best response to 1/3 rock, 2/3 paper is to throw scissors. And so then your average strategy is updated to 25% rock, 50% paper, 25% scissors. And you can see that as you do this more and more, the average strategy is going to slowly converge to a minimax equilibrium of 1/3, 1/3, 1/3. So this is one algorithm that's been around for a long time. The truth is that it converges very, very slowly to a minimax equilibrium.
There are modern algorithms that converge a lot faster. And basically, what they're doing is computing a regularized best response. So regret-matching and hedge are the two most popular versions of these algorithms. And the idea is that whereas fictitious play would always compute the exact best response, regret-matching and hedge pick a regularized best response. So in this case, you're going to have some kind of value. And then you look at the expected value of each of the actions and take the... just choose proportional to the amount of mass that's over that line. So in this case, you look at the expected value of paper and expected value of rock. And you see how much are they over that dotted line. Scissors is below the dotted line, so just put zero probability on that. And then for rock and paper, you just choose them with a probability that's proportional to the amount of mass that's over the line. Now, I should point out there's a lot of similarities between these kinds of algorithms and gradient descent. And there's a lot of deep literature into this that I won't go into, but there are strong connections there.
So this is what it would look like if you ran regret matching, which is like this improved version of fictitious play. So on the x-axis here, we have the number of iterations that you've done. And the y-axis is the average probability for each action in rock-paper-scissors. And you can see over time, it slowly converges to playing one third, one third, one third. Now, there's a whole body of literature that I won't go into in this talk that shows you can converge much, much faster with better algorithms. So one for example is linear regret-matching. And this is what it looks like. It converges orders of magnitude faster compared to just regular regret-matching.
So these algorithms, the regret-matching algorithms, they're iterative algorithms. They slowly converge to the optimal probability of playing each action correctly. And these are the algorithms that were ultimately used to defeat top humans in poker, which was what my PhD work was on. So we were able to use these algorithms to defeat four of the world's best heads up no limit Texas Hold'em poker pros. And this was actually done without neural nets. The main challenge for poker was, how do you do... one, how do you do search in imperfect information game? And two, how do you converge to an equilibrium in a game with hidden information? And regret-matching was a key part of that.
OK. So there are limitations to fictitious play, regret-matching, and hedge. In particular, they tend to have poor performance in single-agent RL. And this has always been a really annoying quirk of these algorithms, because there's a lot of great algorithms for single-agent RL that don't work for imperfect information games. And there's a lot of algorithms that can converge to an equilibrium in imperfect information games, but don't have very good performance in single-agent RL settings. So it'd be really nice if we just had a single algorithm that we could deploy in all cases, but that really wasn't the case for a long time. There has been very recent work from a few different folks on developing algorithms that actually do have really good performance, both in single-agent RL settings and multi-agent RL settings that converge to an equilibrium quite quickly. So I think that this probably is the future. But this is still an area undergoing rapid development.
OK. So I've talked a lot about two-player zero-sum games so far. I'm going to shift away from that. I want to take one quick aside and talk about, why haven't I mentioned LLMs yet? And there's actually a very good reason for this. It's that because we've been talking about two-player zero-sum games this whole time. And in two-player zero-sum games, if what you're computing is a minimax equilibrium, then communication is never useful. And this is actually... you can prove this. It's never useful to talk to the opponents if you're playing a minimax equilibrium in a two-player zero-sum game. So I get asked this sometimes, is it ever useful to talk to the opponent? The answer is simply no. And there's a very simple proof, which I'll give the intuition for, which is that in a two-player zero-sum game, there could be multiple minimax equilibria, but they're all going to have the same unique value for players 1 and 2. So there will be some unique value for player 1. And then player 2's value is simply the opposite of that value. That's the definition. Like, the fact that it's the opposite is what makes it zero-sum. And so if there was some cheap talk action for player 1, then there's three possibilities. Either taking that action would increase v1, decrease v1, or it would have no effect. If it were to increase v1, then player 2 would simply ignore it because it's going to hurt their value. So they're just not going to listen to whatever player 1 was saying. If it decreases v1, then player 2 should simply not say it. And so the only remaining possibility is that it has no effect. And so we can see that in a minimax equilibrium, there is no reason for the players to talk to each other. It's either one player or the other is going to realize that it's not worth it.
OK. So that was two-player zero-sum games. Now let's move to the, I think, more interesting part, which is what about non-two-player zero-sum games. We've seen that there's a lot of these nice properties for two-player zero-sum games, minimax equilibrium, unique values, all this stuff. What about non-two-player zero-sum games? And we're going to see that a lot of the properties that... the nice properties that we saw in two-player zero-sum games actually don't carry over. And so that creates a real dilemma for us about what do we do. And the central claim that I'm going to make in this section of the talk, and I think this is a really important point,
Is that if your goal is to learn to cooperate with humans, then avoiding using human data is a dead end. The only way, in my opinion, to learn — the only scalable way, in my opinion, to learn to cooperate with humans is to use human data. And this is, first of all, relatively controversial because there's a lot of research on multi-agent RL that's focused on learning to cooperate with humans without using human data. And I mean, I will make my spicy claim, which is that I think that is a dead end.
And this is also, in truth, kind of unfortunate, because I mentioned earlier that in two-player zero-sum games, we have this beautiful property that you actually don't need any human data. If you just do self-play with sufficient memory and compute, then you will converge to this minimax equilibrium, which is this unbeatable perfect optimal strategy in the two-player zero-sum game. And what I'm saying here is that actually that's not true. And when it comes to non-two-player zero-sum games, there's simply no way around the fact that you need human data if you want to do well when playing with humans.
OK. So why is this? I think I can actually convince you — my hope is that I can convince you pretty easily with this demonstration in the ultimatum game. And by the way, I think this is really like one of the most important slides in this whole presentation. So the ultimatum game is a popular game theory game. And the way it works is Alice is given $100, and first, Alice has to offer Bob between $0 and $100. And then Bob must decide whether to accept or reject that offer. If Bob accepts, then Alice and Bob keep their money according to the split that Alice offered. And if Bob rejects, then Alice and Bob get nothing. So for example, if Alice were to offer Bob $30 and Bob accepts, then Bob gets $30, Alice gets $70. If Bob rejects, then Alice and Bob both get $0.
So I want you to think for a second. OK. I want you to think about two things. First of all, what is the minimum amount that you would accept as player 2 in this game? And then the second thing I want you to think about is if you were to do self-play RL from scratch without any human data, what do you think it would converge to? OK. So I'm curious. Like how many people would accept, let's say, less than $40 in this game? $40. OK. Some people. Surprisingly few. Please raise your hand if you're going to accept. So how about less than $30? $30 or less. OK. That's a pretty good amount. OK. What about $20 or less? Still some $10 or less? Who would accept $1? Really? Oh. OK.
I'll tell you that in general, people tend to be willing to accept between 20% and 30%. And then if you offer too low, they will reject simply because that's human nature. Does anybody want to guess what the minimax — well, not the minimax equilibrium, but a Nash equilibrium is in this game? Yeah. 50/50? Well, could Alice do better? If Alice's objective is to get as much money for themselves as possible, then could they do better than offering 50/50? OK. So what would the optimal strategy be for Alice? Yeah. Do you want to say?