Learning and adaptation

🧮

Two theories of how people learn games competed for years: reinforcement (repeat what paid off) and belief learning (best-respond to what you have seen). It turned out they are the same model with a dial, and real people sit in between.

Learning and adaptation

Fictitious play was one learning rule; reinforcement learning is another. Experience-weighted attraction unifies them. Two parameters, one for memory and one for how much you learn from options you did not take, span the whole space, and fitting them to data lands squarely between the two classic extremes.

From earlier lessons
Two quick ones before we start.

Fictitious play has players best-respond to the opponent's...

Reinforcement learning updates the value of...

Predict, then play

A learner with two dials: memory (how much past experience persists) and imagination (how much it learns from payoffs it did not actually receive). Watch how fast it finds the better action.

Exhibit 1  Experience-weighted attraction with memory and imagination
Which learner homes in on the better action faster?

Why did that happen?

Take a guess, then reveal the reason

Reinforcement updates only the action you actually chose, so you learn about the road not taken only by eventually trying it, which is slow. Belief learning imagines the payoff every action would have given and updates them all, so it corrects course quickly. EWA puts a dial (imagination) between these: turn it to zero for reinforcement, to one for belief learning. Fitting the dial to human data lands around a half, meaning people do weigh what they missed, but not as heavily as what they experienced.

The math

Definition, experience-weighted attraction

EWA maintains an attraction AjA_j for each action, updated as Aj(t)=ϕ N(t−1) Aj(t−1)+[δ+(1−δ)1{j played}] πj(t)N(t)A_j(t) = \dfrac{\phi\,N(t-1)\,A_j(t-1) + [\delta + (1-\delta)\mathbf{1}\{j\text{ played}\}]\,\pi_j(t)}{N(t)}, with N(t)=ρ N(t−1)+1N(t) = \rho\,N(t-1) + 1, and choice by logit over attractions. The dial δ\delta is imagination: δ=0\delta = 0 updates only the played action (reinforcement), while δ=1\delta = 1 with ϕ=ρ\phi = \rho updates every action by its foregone payoff (belief learning / fictitious play). The dial ϕ\phi is memory.

Setting δ=0\delta = 0 recovers reinforcement learning: an unchosen action receives no payoff term at all, so you only ever learn about what you actually played. (Its attraction still drifts, because NN keeps growing and the attractions are experience-weighted averages, so an action you stop sampling fades rather than freezing. What it never gets is news about its own payoff.) Setting δ=1\delta = 1 with ϕ=ρ\phi = \rho recovers belief learning: every action is credited with its counterfactual payoff, exactly fictitious play. Estimates from experiments put ϕ≈0.8\phi \approx 0.8 to 11 and δ≈0.5\delta \approx 0.5: people remember most of the past and weigh foregone payoffs about half as much as realized ones. One model, tuned by data, subsumes both traditions.

Work it out

Turn the imagination dial

Suppose action A pays 66 and action B would have paid 44 this round, and you played A. Under δ=0\delta = 0 (reinforcement), only A’s attraction takes in the payoff; B’s carries no new information and simply fades as unsampled experience ages, so you learn nothing about B unless you try it. Under δ=1\delta = 1 (belief learning), both attractions update: A by 66, B by 44, so you immediately compare the two and lean toward A.

In this fixed-payoff example, the reinforcement learner may take many rounds to discover B is worse because it only updates what it samples. The belief learner sees both counterfactual payoffs each round. In changing or strategic environments, higher δ\delta need not always produce faster or better learning, so the graph demonstrates the mechanism rather than a general ranking.

Key idea

Key idea

Experience-weighted attraction nests reinforcement and belief learning in one model with two dials, memory and imagination. Fit to data, people weigh foregone payoffs about half as much as realized ones.

Check yourself

Check yourselfapply
What does the imagination parameter delta = 0 correspond to?
Check yourselfanalyse
Why does a belief learner (high delta) adapt faster than a reinforcement learner?
Check yourselfbrings back: learning in games
How does EWA relate to the fictitious play from the learning lesson?

Sources

  1. Camerer, C., and Ho, T.-H. (1999). Experience-weighted attraction learning in normal form games. Econometrica, 67(4), 827-874.