144 points · by poppingtonic · 9y ago · 28 comments
Otherwise, seems like a cool foray for anyone interested in game theory.
Edit: I take it back! The Introduction to Counterfactual Regret Minimization pdf is actually here: http://cs.gettysburg.edu/~tneller/modelai/2013/cfr/cfr.pdf
Think about the memory that triggers regret/shame, then decide whether and what you should do differently in the future to make better decisions in similar situations.
After that, maybe you you can look back on the event as a "lesson well learned" instead of "ohmygodohmygodohmygod that's so embarassing I can't believe I did that I'll never open my stupid mouth again".
(No idea if this actually works.)
The trouble stems from thinking you should have done something, and did not, and that you are somehow infallible. In truth, there are a lot of things one COULD do, but few are absolute SHOULD's.
My cat died very recently - and I've been working through the thinkings of if I could have been a better owner, if I reciprocated his unwavering love enough, if I could have caught his sickness sooner, if I was "good enough" and so on.
And yes. There ARE things I could have done differently. But I'm also a human being, and am not a saintly creature without fault or error or oversight. So to expect this ideal from myself in response to what I see as a faultless cat, is cruel punishment to dispense to oneself.
Can someone explain how there is any difference in these CFR model from a normal reinforcement learning algorithm where you just take your loss function as the "regret" in CFR terms?
CFR differs from standard RL in a few ways:
- Exploring the tree. CFR has many variants, many of which focus on using sampling to trade off between fast, narrow, noisy updates versus slow, broad, precise updates. The most sampling-heavy variant, called Outcome Sampling, traces a single path through the tree, as you would in RL. However, it doesn't converge nearly as quickly as other variants, like Vanilla (explore the whole tree on each iteration) or Chance Sampling (sample the cards, explore the whole action space). Since those variants consider all paths through the tree, you don't have an explore/exploit tradeoff anymore, as you normally would in RL.
- The "Counterfactual" part. Regret updates are weighted by the other agents' probability of taking you to a decision point. Or, equivalently: updates are weighted by the probability that you reach a decision, if you are trying to reach that decision (and all of your action probabilities along the way are 1). If you use Outcome Sampling (described above) then by sampling all actions that weight becomes 1, and thus less important. But for fast learning, the weighting becomes important.
- The strategy doesn't converge, but the average strategy does. Even in the limit, in an adversarial setting where all players are learning, the strategy produced from the regret values doesn't converge to Nash. If it was a single-player problem (either no opponents, or static opponents that can be treated as part of the environment), then as in RL, the strategy would converge to an optimal response to the environment. But in an adversarial setting, you also need the average strategy, which is the only part guaranteed to converge to optimal.
The cool thing about it is that it provably converges to nash equilibrium in zero sum game, and to correlated equilibria in non-zero sum games.
But what about a game that's not two-player and zero-sum? Are CFRs still useful?
Intuitively, in a zero sum game, running CFR on one player will find him best responses for the strategies he's playing against. Doing this for multiple players finds corresponding best responses, which is the definition of a Nash Equilibrium.
In non-zero sum game CFR only converges to correlated equilibrium, which is a much weaker equilibrium than a Nash equilibrium.