Tuomas Sandholm, a computer scientist at Carnegie Mellon University, is not a poker playeror much of a poker fan, in factbut he is fascinated by the game for much the same reason as the great game theorist John von Neumann before him. Von Neumann, who died in 1957, viewed poker as the perfect model for human decision making, for finding the balance between skill and chance that accompanies our every choice. He saw poker as the ultimate strategic challenge, combining as it does not just the mathematical elements of a game like chess but the uniquely human, psychological angles that are more difficult to model preciselya view shared years later by Sandholm in his research with artificial intelligence.
Poker is the main benchmark and challenge program for games of imperfect information, Sandholm told me on a warm spring afternoon in 2018, when we met in his offices in Pittsburgh. The game, it turns out, has become the gold standard for developing artificial intelligence.
Tall and thin, with wire-frame glasses and neat brow hair framing a friendly face, Sandholm is behind the creation of three computer programs designed to test their mettle against human poker players: Claudico, Libratus, and most recently, Pluribus. (When we met, Libratus was still a toddler and Pluribus didnt yet exist.) The goal isnt to solve poker, as such, but to create algorithms whose decision making prowess in pokers world of imperfect information and stochastic situationssituations that are randomly determined and unable to be predictedcan then be applied to other stochastic realms, like the military, business, government, cybersecurity, even health care.
While the first program, Claudico, was summarily beaten by human poker playersone broke-ass robot, an observer called itLibratus has triumphed in a series of one-on-one, or heads-up, matches against some of the best online players in the United States.
Libratus relies on three main modules. The first involves a basic blueprint strategy for the whole game, allowing it to reach a much faster equilibrium than its predecessor. It includes an algorithm called the Monte Carlo Counterfactual Regret Minimization, which evaluates all future actions to figure out which one would cause the least amount of regret. Regret, of course, is a human emotion. Regret for a computer simply means realizing that an action that wasnt chosen would have yielded a better outcome than one that was. Intuitively, regret represents how much the AI regrets having not chosen that action in the past, says Sandholm. The higher the regret, the higher the chance of choosing that action next time.
Its a useful way of thinkingbut one that is incredibly difficult for the human mind to implement. We are notoriously bad at anticipating our future emotions. How much will we regret doing something? How much will we regret not doing something else? For us, its an emotionally laden calculus, and we typically fail to apply it in quite the right way. For a computer, its all about the computation of values. What does it regret not doing the most, the thing that would have yielded the highest possible expected value?
The second module is a sub-game solver that takes into account the mistakes the opponent has made so far and accounts for every hand she could possibly have. And finally, there is a self-improver. This is the area where data and machine learning come into play. Its dangerous to try to exploit your opponentit opens you up to the risk that youll get exploited right back, especially if youre a computer program and your opponent is human. So instead of attempting to do that, the self-improver lets the opponents actions inform the areas where the program should focus. That lets the opponents actions tell us where [they] think theyve found holes in our strategy, Sandholm explained. This allows the algorithm to develop a blueprint strategy to patch those holes.
Its a very human-like adaptation, if you think about it. Im not going to try to outmaneuver you head on. Instead, Im going to see how youre trying to outmaneuver me and respond accordingly. Sun-Tzu would surely approve. Watch how youre perceived, not how you perceive yourselfbecause in the end, youre playing against those who are doing the perceiving, and their opinion, right or not, is the only one that matters when you craft your strategy. Overnight, the algorithm patches up its overall approach according to the resulting analysis.
Theres one final thing Libratus is able to do: play in situations with unknown probabilities. Theres a concept in game theory known as the trembling hand: There are branches of the game tree that, under an optimal strategy, one should theoretically never get to; but with some probability, your all-too-human opponents hand trembles, they take a wrong action, and youre suddenly in a totally unmapped part of the game. Before, that would spell disaster for the computer: An unmapped part of the tree means the program no longer knows how to respond. Now, theres a contingency plan.
Of course, no algorithm is perfect. When Libratus is playing poker, its essentially working in a zero-sum environment. It wins, the opponent loses. The opponent wins, it loses. But while some real-life interactions really are zero-sumcyber warfare comes to mindmany others are not nearly as straightforward: My win does not necessarily mean your loss. The pie is not fixed, and our interactions may be more positive-sum than not.
Whats more, real-life applications have to contend with something that a poker algorithm does not: the weights that are assigned to different elements of a decision. In poker, this is a simple value-maximizing process. But what is value in the human realm? Sandholm had to contend with this before, when he helped craft the worlds first kidney exchange. Do you want to be more efficient, giving the maximum number of kidneys as quickly as possibleor more fair, which may come at a cost to efficiency? Do you want as many lives as possible savedor do some take priority at the cost of reaching more? Is there a preference for the length of the wait until a transplant? Do kids get preference? And on and on. Its essential, Sandholm says, to separate means and the ends. To figure out the ends, a human has to decide what the goal is.
The world will ultimately become a lot safer with the help of algorithms like Libratus, Sandholm told me. I wasnt sure what he meant. The last thing that most people would do is call poker, with its competition, its winners and losers, its quest to gain the maximum edge over your opponent, a haven of safety.
Logic is good, and the AI is much better at strategic reasoning than humans can ever be, he explained. Its taking out irrationality, emotionality. And its fairer. If you have an AI on your side, it can lift non-experts to the level of experts. Nave negotiators will suddenly have a better weapon. We can start to close off the digital divide.
It was an optimistic note to end ona zero-sum, competitive game yielding a more ultimately fair and rational world.
I wanted to learn more, to see if it was really possible that mathematics and algorithms could ultimately be the future of more human, more psychological interactions. And so, later that day, I accompanied Nick Nystrom, the chief scientist of the Pittsburgh Supercomputing Centerthe place that runs all of Sandholms poker-AI programsto the actual processing center that make undertakings like Libratus possible.
A half-hour drive found us in a parking lot by a large glass building. Id expected something more futuristic, not the same square, corporate glass squares Ive seen countless times before. The inside, however, was more promising. First the security checkpoint. Then the ride in the elevator down, not up, to roughly three stories below ground, where we found ourselves in a maze of corridors with card readers at every juncture to make sure you dont slip through undetected. A red-lit panel formed the final barrier, leading to a small sliver of space between two sets of doors. I could hear a loud hum coming from the far side.
Let me tell you what youre going to see before we walk in, Nystrom told me. Once we get inside, it will be too loud to hear.
I was about to witness the heart of the supercomputing center: 27 large containers, in neat rows, each housing multiple processors with speeds and abilities too great for my mind to wrap around. Inside, the temperature is by turns arctic and tropic, so-called cold rows alternating with hotfans operate around the clock to cool the processors as they churn through millions of giga, mega, tera, peta and other ever-increasing scales of data bytes. In the cool rows, robotic-looking lights blink green and blue in orderly progression. In the hot rows, a jumble of multicolored wires crisscrosses in tangled skeins.
In the corners stood machines that had outlived their heyday. There was Sherlock, an old Cray model, that warmed my heart. There was a sad nameless computer, whose anonymity was partially compensated for by the Warhol soup cans adorning its cage (an homage to Warhols Pittsburghian origins).
And where does Libratus live, I asked? Which of these computers is Bridges, the computer that runs the AI Sandholm and I had been discussing?
Bridges, it turned out, isnt a single computer. Its a system with processing power beyond comprehension. It takes over two and a half petabytes to run Libratus. A single petabyte is a million gigabytes: You could watch over 13 years of HD video, store 10 billion photos, catalog the contents of the entire Library of Congress word for word. Thats a whole lot of computing power. And thats only to succeed at heads-up poker, in limited circumstances.
Yet despite the breathtaking computing power at its disposal, Libratus is still severely limited. Yes, it beat its opponents where Claudico failed. But the poker professionals werent allowed to use many of the tools of their trade, including the opponent analysis software that they depend on in actual online games. And humans tire. Libratus can churn for a two-week marathon, where the human mind falters.
But theres still much it cant do: play more opponents, play live, or win every time. Theres more humanity in poker than Libratus has yet conquered. Theres this belief that its all about statistics and correlations. And we actually dont believe that, Nystrom explained as we left Bridges behind. Once in a while correlations are good, but in general, they can also be really misleading.
Two years later, the Sandholm lab will produce Pluribus. Pluribus will be able to play against five playersand will run on a single computer. Much of the human edge will have evaporated in a short, very short time. The algorithms have improved, as have the computers. AI, it seems, has gained by leaps and bounds.
So does that mean that, ultimately, the algorithmic can indeed beat out the human, that computation can untangle the web of human interaction by discerning the little tactics of deception, of asking yourself what is the other man going to think I mean to do, as von Neumann put it?
Long before Id spoken to Sandholm, Id met Kevin Slavin, a polymath of sorts whose past careers have including founding a game design company and an interactive art space and launching the Playful Systems group at MITs Media Lab. Slavin has a decidedly different view from the creators of Pluribus. On the one hand, [von Neumann] was a genius, Kevin Slavin reflects. But the presumptuousness of it.
Slavin is firmly on the side of the gambler, who recognizes uncertainty for what it is and thus is able to take calculated risks when necessary, all the while tampering confidence at the outcome. The most you can do is put yourself in the path of luckbut to think you can guess with certainty the actual outcome is a presumptuousness the true poker player foregoes. For Slavin, the wonder of computers is That they can generate this fabulous, complex randomness. His opinion of the algorithmic assaults on chance? This is their moment, he said. But its the exact opposite of whats really beautiful about a computer, which is that it can do something thats actually unpredictable. That, to me, is the magic.
Will they actually succeed in making the unpredictable predictable, though? Thats what I want to know. Because everything Ive seen tells me that absolute success is impossible. The deck is not rigged.
Its an unbelievable amount of work to get there. What do you get at the end? Lets say theyre successful. Then we live in a world where theres no God, agency, or luck, Slavin responded.
I dont want to live there, he added I just dont want to live there.
Luckily, it seems that for now, he wont have to. There are more things in life than are yet written in the algorithms. We have no reliable lie detection softwarewhether in the face, the skin, or the brain. In a recent test of bluffing in poker, computer face recognition failed miserably. We can get at discomfort, but we cant get at the reasons for that discomfort: lying, fatigue, stressthey all look much the same. And humans, of course, can also mimic stress where none exists, complicating the picture even further.
Pluribus may turn out to be powerful, but von Neumanns challenge still stands: The true nature of games, the most human of the human, remains to be conquered.
This article was originally published on Undark. Read the original article.
Image Credit: Jos Pablo Iglesias /Unsplash
The Deck Is Not Rigged: Poker and the Limits of AI - Singularity Hub