Skip to content
mentua.org

What Is the Explore-Exploit Tradeoff?

Line drawing of visits over time on three lanes: the first visits hop between lanes on a dotted route, then all later visits stay on one solid lane, the first of them filledLine drawing of visits over time on three lanes: the first visits hop between lanes on a dotted route, then all later visits stay on one solid lane, the first of them filled

5 min read≈ 1,200 words3 questions · up to 3 points

What this is about

Your favourite restaurant almost never lets you down, and a new one has just opened down the street. Trying it may cost you a good dinner, and never trying it may cost you a better place. You learn how mathematicians weigh the two, why the answer depends on how much time you have left, and what experiments show about the way people actually decide.

In a nutshell· skip ahead

The explore-exploit tradeoff is the choice between trying an option you know little about (exploring) and using the best option you already know (exploiting). Exploring often pays less today but gives you information you can use later. So the more time you have left to use that information, the more you should explore.

You have lived in a new city for a few weeks and have already found a favourite restaurant, an Italian place that serves a great meal most evenings. Now a Thai restaurant opens down the street. Tonight you can go back to the place you trust or try the new one, which might be wonderful or might be a wasted evening. Which choice is smarter, and does the answer change if you are staying for a year or leaving on Friday?

What is the explore-exploit tradeoff?

The explore-exploit tradeoff is this choice between learning and using. To explore means to try an option you know little about, so that you learn how good it is, and to exploit means to use the best option you already know. Exploring usually costs something today, because the known favourite is the safer bet, but it can pay later, because what you learn helps with every later choice.

Mathematicians study the tradeoff with the multi-armed bandit, a row of slot machines that each pay out with a different unknown chance, where every pull either tests a machine or uses the best one so far. The two restaurants are two such machines.

  1. The favourite. You have eaten at the Italian place often enough to know that about 70 percent of its meals are great.
  2. The new place. New places in your area tend to be either excellent (great meals 90 percent of the time) or mediocre (30 percent). You think each is equally likely, so the Thai restaurant’s expected chance of a great meal is 60 percent, lower than your favourite’s.
  3. A simplification. Suppose one dinner is enough to tell which kind of kitchen it is.

If you only look at tonight, 70 percent beats 60 percent. But suppose you eat out once a week for a year, 52 dinners. If you never explore, you expect 52 × 0.7 = 36.4 great meals. If you try the new place once, you expect 0.6 great meals tonight. Half the time you find an excellent kitchen and eat there 51 more times at 90 percent; otherwise you return to the Italian place at 70 percent. That gives 0.6 + 51 × 0.8 = 41.4 great meals, five more than never exploring.

Dinners left Always the favourite Try the new place once Gain from exploring
1 0.7 0.6 −0.1
2 1.4 1.4 0
10 7.0 7.8 +0.8
52 36.4 41.4 +5.0

On your last evening exploring loses, because you cannot use what you learn, but with a year ahead it wins, although the new place is expected to be worse tonight. With 52 dinners ahead, trying it would stop paying only if your favourite served great meals about 89 percent of the time. So the new place, worth 60 percent on its own, deserves a much higher score because of what it might teach you.

That score is the idea behind the Gittins index, which the statistician John Gittins published in 1979. It gives each option the sure rate of reward that would make you indifferent between that sure reward and the uncertain option. Gittins proved that, under certain conditions, always choosing the option with the highest index is the best possible strategy.

Computer scientists often use simpler rules with the same logic. “Upper confidence bound” rules score each option by the best value it could plausibly have, which gives a bonus to options tried only a few times. In 2002 Peter Auer, Nicolò Cesa-Bianchi and Paul Fischer showed that such a rule performs close to the best possible.

What the explore-exploit tradeoff teaches you

The insight to take away is a question: how long will I be able to use what I learn? When the answer is “a long time”, trying new things is worth some bad evenings, and when it is “not long”, stay with what you know works.

  • A new city, job or school. The early weeks are the time to try many cafés, colleagues and clubs, because every good discovery pays off for months.
  • Studies and careers. Trying different subjects and jobs early is how you find options worth using for decades.
  • Friends and age. Older people often keep a few close friends, and the psychologist Laura Carstensen found that the sense of time left, not age itself, predicts this. Young men with HIV, before effective treatment existed, viewed their social world much like very old people, while older adults who imagined many more years ahead chose like the young.

Experiments confirm that people respond to the time ahead. In 2014 Robert Wilson and colleagues at Princeton gave 30 people a game with two options, and when six choices were left instead of one, players picked the less familiar option more often and also chose more randomly. A 2017 study by the same group with 34 people found both patterns again; the samples are small, but the effect has held so far.

The same problem runs online recommendation systems, which weigh the article you will probably click against one they know less about. It also shapes clinical trials that shift patients toward the better treatment while the trial is still running.

Does the tradeoff mean you should always try new things?

No, and that is the most common misreading. Exploring is worth it only when the time ahead is long enough to use the lesson, so trying the new restaurant on your last evening is a mistake. Nor does exploring guarantee a good result, because the new place may be mediocre. Why a sound choice can still end badly is the subject of A Good Decision Can End Badly: How to Judge Choices When Luck Is Involved.

The strongest objection is that real options change. The classic bandit, and the proof behind the Gittins index, assume that an option you are not using stays the same. Restaurants change cooks and friends move away, so even late in life some exploring is needed just to notice what has changed. The worked example also simplified: a single meal rarely shows how good a kitchen is, so real exploring takes several tries.

Learn more

The explore-exploit tradeoff has no single inventor. In 1933 W. R. Thompson of Yale University asked how to choose between two medical treatments while still learning which one works better, and in 1952 the American statistician Herbert Robbins posed the problem in its modern form. The mathematician Peter Whittle later told how the problem wore out Allied scientists in the Second World War, until someone suggested dropping it over Germany as intellectual sabotage. Gittins solved one classic version in the 1970s.

For the wider picture, read “Algorithms to Live By” by Brian Christian and Tom Griffiths: Summary and Review, whose second chapter tells this story with restaurants and stages of life. What Is the Secretary Problem? is the close cousin, in which you search once and can never go back. And because exploring means updating your beliefs after every try, Bayes’ Theorem, Explained shows the rule for that update.

Quiz

3 questions · up to 3 points

Open a question and pick one answer. Only your first answer counts: +1 if it is right, −1 if it is wrong.

  1. Why can it be right to try a new option that you expect to be a little worse than your favourite?
    Show answer

    Because trying it gives you information that you can use on every later choice. If the new option turns out to be better, you gain on every later visit. That future gain can outweigh the small expected loss today.

  2. You are leaving a city next week and have one free evening left. A new bar opened that you know nothing about. What does the tradeoff suggest?
    Show answer

    Go to the place you already know is good, because there is no time left to use what you would learn. With one evening left, the information from exploring is worth almost nothing. Only the expected quality of tonight counts.

  3. Older people often spend more time with a few close friends and meet fewer new people. How does the explore-exploit view explain this?
    Show answer

    A shorter time ahead makes new contacts less valuable, so focusing on known friends can be a sensible choice. Studies by Laura Carstensen found that the sense of time left, not age itself, predicts this choice. Young people who expect little time ahead choose in a similar way.

The takeaway

The explore-exploit tradeoff is the choice between trying something new to learn about it and using the best option you already know. A new restaurant that seems a little worse than your favourite can still be the better choice, because what you learn pays off on every later visit: with a year of weekly dinners, one try gains about five great meals. The rule assumes options that stay the same, and one try rarely tells you enough. Explore when much time lies ahead, and exploit when little does.

References

  1. Humans use directed and random exploration to solve the explore-exploit dilemma. Robert C. Wilson, Andra Geana, John M. White, Elliot A. Ludvig and Jonathan D. Cohen, Journal of Experimental Psychology: General, 2014

    The Horizon Task experiment: people explore more, in two different ways, when they have six choices ahead instead of one.

  2. Finite-time Analysis of the Multiarmed Bandit Problem. Peter Auer, Nicolò Cesa-Bianchi and Paul Fischer, Machine Learning, 2002

    The paper behind UCB1, the simple 'upper confidence bound' rule; the introduction states the problem in a few clear sentences.

  3. Lecture 5B: Bandit processes and the Gittins Index Theorem. Daniel Russo, Columbia University, course notes on dynamic optimization, 2023

    Five pages on the Gittins index, with Whittle's wartime anecdote and the link to upper confidence bounds.

  4. Herbert Robbins, 1915–2001: A Biographical Memoir. Tze Leung Lai and David Siegmund, National Academy of Sciences, 2018

    How Robbins posed the two-armed bandit in 1952 and how the problem reached clinical trials and online recommendations.

  5. The Influence of a Sense of Time on Human Development. Laura L. Carstensen, Science, 2006

    A short review of the evidence that the time people feel they have left, more than their age, shapes what they seek.

explore-exploit-tradeoffexploration-exploitationmulti-armed-banditgittins-indexupper-confidence-boundthompson-samplingherbert-robbinsjohn-gittinsdecision-makingprobabilitytime-horizonsocioemotional-selectivityrestaurantsreinforcement-learning

What Is the Secretary Problem?

How to pick the best option when you see them one at a time and cannot go back. The 37 percent rule, worked through with ten flats, and its limits.

7 min read≈ 1,630 words3 questions

Bayes' Theorem, Explained

Why a positive test result often means less than it seems. Bayes' theorem worked through with 1,000 women and a mammogram, step by step.

8 min read≈ 1,790 words3 questions