Exploration vs exploitation

Exploration vs exploitation is the trade-off a learning system faces between using the option it currently believes is best and trying other options that might turn out to be better.

Any system that learns by trying things meets the same dilemma. Exploitation means picking the option that looks best on current knowledge. Exploration means trying something less certain, giving up a likely reward now for information that might pay off later. Think of choosing where to eat: always going to your favourite restaurant is safe, but you never find out whether the new place round the corner is better. A learner that only exploits can get stuck; one that only explores never cashes in.

The classic formal version is the multi-armed bandit, named after a gambler facing a row of slot machines, or one-armed bandits, each with an unknown payout. Herbert Robbins set out the modern form in 1952, and in 1979 John Gittins published an index rule giving the optimal strategy under certain conditions. Allied scientists first looked at the problem during the Second World War, and according to the statistician Peter Whittle it proved so hard that someone suggested dropping it over Germany to waste German scientists' time.

Practical methods are simple. Epsilon-greedy usually takes the best-known option but picks at random a small fraction of the time. Upper confidence bound methods favour options whose value is still uncertain, and a variant of this rule guides the tree search used in game-playing systems. Thompson sampling chooses options in proportion to the chance that each is best. In hard reinforcement learning problems with rare rewards, such as the Atari game Montezuma's Revenge, researchers add curiosity bonuses that reward an agent for reaching unfamiliar states.

Recommendation systems face the trade-off every time they fill a feed. In 2010 Lihong Li and colleagues at Yahoo! used a contextual bandit to choose news articles for the Yahoo! front page and reported a 12.5% lift in clicks over a standard bandit method that ignored context, across more than 33 million events. A feed that only exploits keeps showing what already worked, narrowing what people see; one that explores learns what else they might want.

The same tension appears when language models are trained with reinforcement learning, because a model only learns from the answers it actually tries. If it keeps producing the same likely responses, it gathers little new information about what earns reward. Exploration is therefore not a side issue but part of what decides how much a learning system can discover.

Common questions

What is the exploration-exploitation trade-off?

It is the choice between using what you already know works and trying something new that might work better. Exploiting gives a reliable reward now; exploring gathers information that could lead to bigger rewards later. Learning systems need some balance of the two to improve without wasting effort.

What is a multi-armed bandit problem?

It is a model of the trade-off in which a player repeatedly chooses among several slot machines with unknown payouts and tries to win as much as possible. Each pull both earns a reward and reveals information about that machine. Herbert Robbins formalised it in 1952, and it is used for clinical trial design, online testing and recommendations.

What is epsilon-greedy?

It is a simple exploration strategy: most of the time the system chooses the option with the best estimated reward, and with a small probability, called epsilon, it chooses at random. The random choices keep it learning about options it might otherwise ignore.

How does exploration vs exploitation affect recommendation feeds?

A feed that only exploits keeps serving content like what you clicked before, which can narrow what you see. Adding exploration lets the system test new content and learn other interests. Bandit algorithms are a common way to balance the two in news, video and advertising recommendations.

Finding more

Search for "multi-armed bandit", "exploration exploitation reinforcement learning" or "contextual bandit recommendation" to go further. Reliable sources include reinforcement learning textbooks, research papers on arXiv and engineering write-ups from companies that run bandit systems in production. Be cautious with vendor claims about click or revenue lifts, which depend heavily on the comparison chosen.

Working out what this means for your business?

Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.