Text from the interactive explanation
Searching in the Dark and Learning Where to Look
Suraj Malladi
An interactive guide to a paper by Suraj Malladi
You can test one option at a time. Each test costs. Something far better might be out there. Where do you look next — and when do you stop?
A beam of light is a test: it reveals one option's true quality.
Cyan dashes: the best found so far.
Amber ridge: the ceiling of maybe, the most any untested option could still be worth.
Pulsing diamond: the best thing you could still be missing.
Blue columns: the search window, the only places a better option could hide.
Hollow circles: the planned list of tests.
Teal at dawn: the hidden landscape, revealed.
A simulation of the paper's model on illustrative hidden landscapes: complexity L = 3, cost 0.008 per test, and an illustrative payoff (best find − 2 × (what you might be missing)² − costs).
Chapter 1
A puzzle from 1979
In 1979 the economist Martin Weitzman solved a famous search problem: which box to open next when every box hides a prize that has nothing to do with the others. Real searches are rarely like that. Trying one drug dose tells you something about nearby doses. Reading up on one camera tells you something about similar cameras. Weitzman saw this himself:
“It appears plausible that other things being equal it would be better to open a box whose reward is highly correlated with other rewards because this adds a positive informational externality. But translating such an effect into a simple search rule seems difficult except in the most elementary cases.”
Suraj Malladi's paper takes on searchers in unfamiliar territory: people who know almost nothing about where the good options are, but badly want to avoid missing them. It keeps returning to three examples.
A startup prototyping designs
Small tweaks to a design change its quality only a little; bigger changes can do almost anything. A strong competitor is prototyping too, and the startup would make little profit if the rival found a much better design. So it explores widely.
A dose-ranging study
Similar doses have similar effects, and there is thought to be a sweet spot, a therapeutic window: too high is toxic, too low does nothing. Where exactly it lies has to be found through costly experiments, with a competitor watching.
A first-time camera shopper
An amateur photographer learns how much he'd value a camera only by taking the time to read its description and reviews. He would hate to find out later that he missed a much better buy.
Why it matters: online platforms decide in which order to show products, and the paper argues that helping shoppers find what they want first requires a theory of how shoppers actually navigate. Economists who estimate people's tastes and search costs from their clicks also need theories that can make sense of real search sequences.
So: where should a forward-looking searcher look next, and when should they stop?
Chapter 2
The one thing you know: similar things are similar
Picture all your options laid out along a line: doses from low to high, designs from cautious to wild, cameras from cheap to pricey. Each option has a hidden quality between 0 and 1. You have tested one of them, the bright dot. What can you say about the rest?
The paper assumes only this: quality can't change faster than a certain rate as you move along the line. Call that rate L . An option a distance d away is at most L × d better, or worse, than what you saw. That pitches a tent over your test, and nothing can poke above it. The faint curves are possible worlds: every one of them fits what you know, and you cannot tell which is real.
Malladi calls L the search complexity . A high L means tiny changes can have big effects. His example: pharmaceutical firms may see working with lithium as highly complex, because small changes in lithium levels tend to have large effects on how well a drug works, or how toxic it is. Push the complexity slider up and watch the tent narrow: far from your test, something perfect could be hiding.
Chapter 3
The ceiling of maybe
Each test pitches its own tent. Where tents overlap, only the lowest one counts: if any tent says “nothing here beats 0.7”, nothing does. The lowest of all the tents, capped at a perfect 1, is what we'll call the ceiling of maybe : the most any untested option could still be worth. The paper shows that, point by point, this ceiling is exactly the highest that any landscape fitting your tests can reach, and that the ceiling itself is one such landscape (its Lemma 1).
Two things to notice. The ceiling sags wherever you have looked. And it rises above your best find only in some places, shaded blue: the search window , the only places where a better option could hide. Testing outside it is pointless. Peek at the truth as often as you like: it never pokes through the ceiling.
Chapter 4
Plan for no news
Our searcher cares about more than what she finds. She also fears missing out: the startup's rival might find the better design; the shopper might later hear of a far better camera. Her payoff rises with her best find, falls with how good the best option out there turns out to be, and falls with the cost of every test.
She knows so little that she plans for the worst case, as if a mischievous opponent could shape the hidden landscape, within what her tests allow, to hurt her. Below are three tests and the one she is about to make (the dashed line).
Which answer would leave her worst off?
Choose an answer to see what each result would do.
This is the paper's Proposition 1. Whatever test she plans, the opponent's best reply is to make it come back equal to her best so far (or as close to it as her earlier tests allow). Good news would raise her best; bad news would at least tell her where not to look. No news keeps every unexplored peak as tall as possible and teaches her nothing. So a careful planner assumes that every future test will return no news.
Chapter 5
Lower the ceiling
If every future test returns no news, planning becomes geometry. Here the searcher has one test (bright dot) and some more to place. Each will come back exactly equal to her best, pitching a small tent of its own. Drag the hollow markers to make the tallest remaining peak as low as you can.
The paper's answer: split the window as evenly as possible . A gap between two tests peaks in its middle. But a gap that runs into the end of the line peaks right at the end, so it should be only half as wide: edges count double.
Chapter 6
Plan the list, take one step
Now put it together. The paper's main result (Theorem 1) says the best step-by-step searcher does something surprisingly simple. At every moment she:
pretends she must commit to a fixed list of tests, all of which will return no news;
picks the best such list, weighing each extra test's cost against how far it lowers the tallest peak;
carries out only the first test on the list, looks at the result, and re-plans from scratch.
With a constant cost per test this becomes a fast recipe (Section 4.4): for every number of tests k, spread them as evenly as possible over the window and score that plan; choose the best number, k*. When k* is zero, stop.
Worst-case payoff if I plan k more tests
The recipe runs in polynomial time: a computable rule of exactly the kind Weitzman thought would be hard to find. And it is dynamically consistent: committing to a whole plan in advance would gain nothing over re-planning after every result.
One-step thinker vs planner
A one-step thinker only asks: “is one more test worth it?” Start both searchers with a single test right in the middle. Two equally tall peaks rise at the two ends of the line. One test can lower only one of them, so the worst case doesn't improve at all. The planner sees that two tests, one on each side, do.
One-step thinker
Planner
Both start with one test in the middle of the same hidden landscape (L = 2, cost 0.03 per test, λ = 1).
Chapter 7
Too easy, too hard
How hard should you search when the world gets more complex? “Harder” is the natural guess. The paper finds something stranger: planned search effort is shaped like an inverse V (Propositions 2–4). Slide the complexity and watch.
Nothing to gain. When complexity is low, nothing untested can be much better than what you already have, so you stop.
Searching harder. As complexity rises, the planner plans more tests, spread evenly.
Tipping point: give up. Then, abruptly, effort collapses to zero. The ceiling is pinned at “perfect” over so much of the line that a few tests would leave the worst case untouched, and pulling it down would take more tests than they are worth. A perfect option could hide almost anywhere: a needle in a haystack. This is choice overload.
Small changes in how hard a problem seems can flip maximal effort into giving up. The paper suggests that subsidizing search costs could have large effects when people are paralyzed by perceived difficulty. Lower the cost slider: the tipping point moves to the right.
Chapter 8
When there's a sweet spot
Sometimes you know a little more: quality rises to one peak and then falls, like a drug's therapeutic window. Then news becomes far more powerful (Propositions 5–6). If a test on one side of her best comes back worse, the peak cannot lie beyond that test, so everything past it is ruled out for good. If a test comes back better, everything on the far side of the old best is ruled out.
Below, two searchers explore the same single-peaked landscape. Left: believes only “similar is similar”. Right: also believes in a sweet spot. Under each, time flows downward: every row is one test, and the dark walls are regions ruled out.
With a sweet-spot belief, search starts broad and funnels in. The paper notes the resemblance to how online camera shoppers were seen to “zoom in” on their choice in earlier empirical work by Bronnenberg and colleagues (2016).
Chapter 9
Beyond a line
Real products have several attributes: a camera's sensor size and its resolution, say. With two attributes the tents become cones, and the ceiling of maybe becomes a crumpled surface over a square.
The paper's Theorem 1′ says the core result survives in any number of dimensions for the “similar is similar” belief: plan a list assuming no news, take one step, re-plan. The job becomes covering the space as evenly as possible (Appendix B.1). Testing the tallest peak again and again is not the same as spreading a planned set of tests evenly; compare the tallest peak after each. The sweet-spot funnel, though, has no simple analogue with many attributes.
Chapter 10
What the paper proves
These are mathematical results about a model of a searcher who maximizes her worst-case payoff; the paper reports no experiments or data. Every simulation on this page runs the paper's model, with hidden landscapes and a payoff function chosen for illustration.
Chapter 11
Back to the puzzle
Weitzman doubted that the value of informative, related options could be turned into a simple search rule. In this model it can: look where an untested, possibly better option is still too far from anything you have tried; spread your planned tests evenly over those places; take one; stop when the next is not worth its cost.
Because the rule is quick to compute, the paper points to two uses. Platforms could order products to help shoppers discover what they want, for instance by showing first-time buyers a diverse range first. And economists could use the model to read people's preferences and search costs from their actual search-and-purchase paths.
Source and credits
Based on: Suraj Malladi, “Searching in the Dark and Learning Where to Look”, SSRN working paper, April 19, 2023. ssrn.com/abstract=4084113
Simulations and visuals created for this page based on the paper's model; payoff function and landscapes are illustrative choices.
Weitzman quotation: M. L. Weitzman (1979), “Optimal search for the best alternative”, Econometrica, as quoted in the paper. Camera-shopper funnel: Bronnenberg, Kim and Mela (2016), Marketing Science, as cited in the paper.
Fonts: Fraunces and Inter (SIL Open Font License).
Topics in this iPaper
Social sciences
We study a model of ordered search with learning.
Abstract, page 1
Mathematics
The modeling approach is also related to the applied mathematics literature on adversarial multi-arm bandits and Lipschitz function optimization
Section 1.1, page 5
search theory
This paper studies ordered search with learning, particularly how forward-looking searchers explore unfamiliar territories.
Section 1, page 2
robust decision making
We model searchers as maximizing their worst-case eventual payoffs so as to be robust to the shape of this unknown mapping.
Section 1, page 2
game theory
We recast the searcher's problem as a dynamic zero-sum game.
Section 2.3, page 7
choice overload
The relationship between search effort and complexity is inverse-v-shaped and and captures choice overload.
Abstract, page 1
consumer search
a literature in economics and marketing estimates preferences and search costs from consumer search data.
Section 8, page 25