Live data from Hacker News

Poker Tournament for LLMs

pokerbattle.ai

81–90 of 212 posts

Re: Poker Tournament for LLMs

#81
post #56

Earlier quoted context omitted.

> equilibrium strategy is guaranteed to not lose, In my scenario and tournament play. Are you sure? I would be shocked to learn that there is a Nash equilibrium in multi-player setting, or any kind of strategic stability.

In multi-player you don't have guarantees, but it tends to work well anyway: https://www.science.org/doi/full/10.1126/science.aay2400

Thanks.

> with five copies of Pluribus playing against one professional

Although this configuration is designed to water down the difficulty in multi-player setting.

Pluribus against 2 professionals and 3 randos would better test. Two pros would take turns taking money from the 3 randos and Pluribus would be left behind and confused if it could not read the table.

Re: Poker Tournament for LLMs

#83
post #53

Earlier quoted context omitted.

> LLMs do not have a mechanism for sampling from given probability distributions. They could have a tool for that, tho.

They also could be funetuned for it. Eg. When asked for a random number between 1 and 10, and 3 is returned too often, you penalize that in the fine-tuning process until the distribution is exactly uniform.

World's most overengineered Mersenne twister

Re: Poker Tournament for LLMs

#84

I gave a talk on this topic at PyConEs just 10 days ago. The idea was to have each (human) player secretly write a prompt, then use the same model to see which one wins. It’s just a proof of concept, but the code and instructions are here: https://github.com/pablorodriper/poker_with_agents_PyConEs20...

(author of PokerBattle here)

That's cool! Do you have a recording of the talk? You can use PokerKit (https://pokerkit.readthedocs.io/en/stable/) for the engine.

Re: Poker Tournament for LLMs

#85

Earlier quoted context omitted.

>>1) There are currently no algorithms that can compute deterministic equilibrium strategies [0]. Therefore, mixed (randomized) strategies must be used for professional-level play or stronger. It's not that the algorithm is currently not known but it's the nature of the game that deterministic equilibrium strategies don't exist for anything but most trivial games. It's very easy to prove as well (think Rock-Paper-Sci…

> It's not that the algorithm is currently not known but it's the nature of the game that deterministic equilibrium strategies don't exist for anything but most trivial games. Thanks for making this more precise. Generally for imperfect-information games, I agree it's unlikely to have deterministic equilibrium, and I tend to agree in the case of poker -- but I recall there was some paper that showed you can get somet…

>> but I recall there was some paper that showed you can get something like 98% of equilibrium utility in poker subgames, which could make deterministic strategy practical. (Can't find the paper now.)

Yeah I can see that for sure. That's also a holy grail of a poker enthusiast "can we please have non-mixed solution that is close enough". The problem is that 2% or even 1% equilibrium utility is huge. Professional players are often not happy seeing solutions that are 0.5% or less from equilibrium (measured by how much the solution can be exploited).

>>Continual resolving done in DeepStack [1]

Right, thank you. I am very used to the term resolving but not "online search". The idea here is to first approximate the solution using betting abstraction (for example solving with 3 bet sizes) and then hope this gets closer to the real thing if we resolve parts of the tree with more sizes (those parts that become relevant for the current play).

>>Gadget game introduced in [3], used in continual resolving.

I don't see "strategy consistency" in the paper nor a gadget game. Did you mean a different one?

>>Being imprecise like this would arguably not result in a super-human play.

Well, you have noticed that we can get somewhat close with a deterministic strategy and that is one step closer. There is nothing stopping LLMs from giving more precise answers like 70-30 or 90-10 or whatever.

>>But this is in token space. I'd be curious to see a demonstration of sampling of a distribution (i.e. some uniform) in the "token space", not via external tool calling. Can you make an LLM sample an integer from 1 to 10, or from any other interval, e.g. 223 to 566, without an external tool?

It doesn't have to sample it. It just needs to approximate the function that takes a game state and outputs the best move. That move is a distribution, not a single action. It's purely about pattern recognition (like chess). It can even learn to output colors or w/e (yellow for 100-0, red for 90-10, blue for 80-20 etc.). It doesn't need to do any sampling itself, just recognize patterns.

>>You don't need an LLM under such scheme -- you can do a k-NN or some other simple approximation. But any strategy/value approximation would encounter the very same problem DeepStack had to solve with gadget games about strategy inconsistency [5]. During play, you will enter a subgame which is not covered by your training data very quickly, as poker has ~10^160 states.

Ok, thank you I see what you mean by strategy consistency now. It's true that generating data if you need resolving (for example for no-limit poker) is also computationally expensive.

However your point:

>You don't need an LLM under such scheme -- you can do a k-NN or some other simple approximation.

Is not clear to me. You can say that about any other game then, no? The point of LLMs is that they are good at recognizing patterns in a huge space and may be able to approximate games like chess or poker pretty efficiently unlike traditional techniques.

>>How you define "precision" ?

I mean that there are patterns that seem very similar but result in completely different correct answers. In chess a miniscule difference in positions may result in a the same move being a winning one in one but a losing one in another. In poker if you call 25% more or 35% more if the bet size is 20% smaller is unlikely to result in a huge blunder. Chess is more volatile and thus you need more "precision" telling patterns apart.

I realize it's nota technical term but it's the one that comes to mind when you think about things LLMs are good and bad at. They are very good at seeing general patterns but weak when they need to be precise.

Re: Poker Tournament for LLMs

#86

It seems to be broken? For example in this hand, the hand finishes at the turn even though 2 players still live. https://pokerbattle.ai/hand-history?session=37640dc1-00b1-4f...

one of them went all in, but still the river should have opened because none of them are drawing dead. Kc is still in deck which will make llama the winning hand(other players have the other two kings). If it was Ks instead in the deck, llama would be drawing dead because kimi would improve to a flush even if king opened.

Perhaps a display issue then in case no action possible on river. You can see the winning hand does include the river card 8d "Winning Hand: One pair QsQdThJs8d"

Poor o3 folded the nut flush pre..

Re: Poker Tournament for LLMs

#87

I have PhD in algorithmic game theory and worked on poker. 1) There are currently no algorithms that can compute deterministic equilibrium strategies [0]. Therefore, mixed (randomized) strategies must be used for professional-level play or stronger. 2) In practice, strong play has been achieved with: i) online search and ii) a mechanism to ensure strategy consistency. Without ii) an adaptive opponent can learn to exp…

>3) LLMs do not have a mechanism for sampling from given probability distributions. E.g. if you ask LLM to sample a random number from 1 to 10, it will likely give you 3 or 7, as those are overrepresented in the training data.

I am not sure that is true. Yes it will likely give a 3 or 7 but that is because it is trying to represent that distribution from the training data. It's not trying for a random digit there, it's trying for what the data set does.

It would certainly be possible to give an AI the notion of a random digit, and rather than training on fixed output examples give it additional training to make it to produce an embedding that was exactly equidistant from the tokens 0..9 when it wanted a random digit.

You could then fine tune it to use that ability to generate sequences of random digits to provide samples in reasoning steps.

Re: Poker Tournament for LLMs

#88

Earlier quoted context omitted.

FWIW, I’d bet some coin that current CharGPT would provide a genuine pseudo-random number on request. It now has the ability to recognise when answering the prompt requires a standard algorithm instead of ordinary sentence generation. I found this out recently when I asked it to generate some anagrams for me. Then I asked how it did it.

I asked chatgpt for a ramdom number between 1 and 10. It answered 7, then i asked for anpther, and it answered 3.

exactly the same here, 7 first then 3.

Re: Poker Tournament for LLMs

#89

Not enough samples to overcome variance. Only 714 hands played for Meta LLAMA 4. Noise in a dashboard.

(author of PokerBattle here)

That’s true. The original goal was to see which model performs statistically better than the others, but I quickly realized that would be neither practical nor particularly entertaining.

A proper benchmark would require things like: - Tens of thousands of hands played - Strict heads-up format (only two models compared at a time) - Each hand played twice with positions swapped

The current setup is mainly useful for observing common reasoning failure modes and how often they occur.

Re: Poker Tournament for LLMs

#90
post #8

As a Texas Hold'em enthusiast, some of the hands are moronic. Just checked one where grok wins with A3s because Gemini folds K10 with an Ace and a King on the board, without Grok betting anything. Gemini just folds instead of checking. It's not even GTO, it's just pure hallucination. Meaning: I wouldn't read anything into the fact that Grok leads. These machines are not made to play games like online poker determinis…

From my experience, their hallucination when playing poker mostly comes from a wrong reading of their hand strength in the current state. E.g., thinking they have the nuts when they are actually on a nut draw. They would reason a lot better if you explicitly give out their hand strength in the prompt.

(author of PokerBattle here)

I noticed the same and think that you're absolutely right. I've thought about adding their current hand / draw, but it was too close to the event to test it properly.

Post reply on HN