Mental Models204 cards · 12 fields

Mental Models/Biology & Evolution

Adaptation and Local Optima

局部最优

If you only ever step uphill, you get stuck on the nearest small hill.

People solving a Rubik's Cube often have to scramble a face they've already finished before they can go on. Bacterial evolution won't take a single step back. Each new mutation has to leave the bacterium more drug-resistant than before; otherwise, the bacteria carrying that mutation are all killed as soon as the drug is used, and the mutation disappears with them.

In 2006, Daniel Weinreich's team at Harvard experimented with an enzyme in bacteria that breaks down antibiotics. The enzyme needs all five of a set of mutations to stand up to one powerful antibiotic. Counting every possible order in which the five could arrive, there are 120 orders. The team built every in-between version along each order, measured how drug-resistant each one was, and then checked the orders one by one: along this order, is every step more resistant than the one before?

Only 18 orders passed. In the other 102, somewhere along the way there was always a step that stayed put or got worse; evolution that will only go uphill gets stuck at that step.

You're climbing a hill in the fog with one rule: every step has to be higher than the last. After a while you reach the top of a 30-meter mound. It slopes down in front and behind, so you have to stop. Ahead of you there is actually an 80-meter mountain, but to get there you'd have to go down twenty meters first and cross the valley, and the rule doesn't allow that. Where you've stopped is called a local optimum: nowhere nearby is higher, but somewhere farther away is. Adaptation in living things keeps the same rule: only changes that leave more offspring right away get kept.

Go down 20 m first to reach the 80 m mountain
Highest reached30 m
0 m25 m50 m75 m051015Steps forwardHeightGround heightHighest so farMound top, 30 mMountain top, 80 m
0 m25 m50 m75 m051015Steps forwardHeightGround heightHighest so farMound top, 30 mMountain top, 80 m

Gray is the ground past the mound; the dark line, the highest you've been. Willing to drop under 20 m, you stay on the 30 m mound; at 20 m the line climbs to 80.

Change one thing at a time and the good combination is out of reach

Say there are two places in the genes, each with two possible states, and we score each combination by its fitness, that is, how good it is at leaving offspring. The original combination scores 10. Change only the first place and it drops to 9; change only the second and it drops to 8; change both and it rises to 15. If only one place changes at a time and only improvements are kept, the population stays at 10, because on both roads to 15 the first step is a step down. If both places could change at once, it would reach 15 in one step, and the peak it can climb to would be a different one.

The deeper the dip in between, the harder it is to last until the next step

An individual that changes the first place first drops to 9, only a little worse than before. With luck it can still leave offspring and hold on until the change in the second place shows up. If that in-between step dropped it to 2, the individual would be weeded out almost at once and would never live to see the second change.

Biologists draw these hills and valleys as a picture called a fitness landscape. Each combination of genes is a position on the map, its fitness is the height there, and the combinations one mutation away are right next to it. If each place in the genes worked on its own, the benefits could be collected one place at a time, the map would have just one mountain, and going up and up would always reach the top.

But genes affect each other, and the same mutation can have opposite results in different combinations: in the opening example, the second place scores 8 when changed alone and 15 when changed together with the first. So the map sprouts several mountains, and which peak you end up on depends on where you start.

Wiring already laid can't be flipped over

Natural selection only looks at how many more offspring this generation leaves, not at what happens several generations later. In the eyes of vertebrates, the nerve wiring runs in front of the retina and then passes back out through it, and where it passes through there is a blind spot. In an octopus the nerve wiring runs behind the retina, and there is no blind spot. To move the vertebrate wiring to the back, evolution would have to pass through a whole series of eyes that see worse. Individuals with those eyes wouldn't leave more offspring, so that road is closed. That is why the vertebrate eye can only be changed bit by bit on the wiring it already has, and the blind spot is still there today.

Local optima explain one kind of standstill best: every change is small and the yardstick stays the same, like a production line that only fine-tunes its settings year after year. When the environment changes, the whole mountain moves, and the old top is no longer the top. Populations of living things can also cross valleys through genetic drift and recombination, so how long they stay stuck depends on the population itself. Seeing results level off and declaring you're stuck at a local optimum, without checking how big the last few adjustments actually were, is a misuse of this model.

Explain
For ten years, every version of a piece of software only added features and never removed an old menu. Users didn't complain at any upgrade, yet the interface got harder and harder to use: every step was a small improvement, and no step was willing to make people uncomfortable first.
Design
When setting the rules for judging a new plan, leave a trial period in which this quarter's results don't count, and write down when it will be reviewed and what result means stopping.
Predict
Look at a team's rules for approving projects and you can predict which kinds of plans will be blocked: under rules that only look at this quarter's results, plans that need investment first and pay back later are the first to go.
  1. Which result decides whether a plan stays, and does it measure the thing I really want to improve?
  2. When I say "this is already the best," how big a range of changes does that cover, and how many starting points have I tried from?
  3. Are there two changes that only help when done together, and each make things worse when done alone?

Business

A new mold blocked by quarterly reviews

You run a phone-case production line, and your bonus depends only on this quarter's yield of good parts. Switching to a new mold means stopping the line to set it up first; the yield will drop for a few months, and only after that might it beat the old mold. In every quarter's plan review, the new mold is rejected because this quarter's numbers look bad, and the old mold goes on getting its settings fine-tuned.

Technology

One training run per random start

Late in training, a model's loss has stalled on a plateau. Adjusting the learning rate and adding more training rounds don't bring it down any further. The engineers swap the starting parameters for three different sets of random numbers and train once with each. One of them settles at a clearly lower loss, and the team keeps it.

Personal life

A new way of breathing slows you down first

A swimmer who breathes by lifting his head in freestyle can hardly get faster by speeding up his arm strokes any more. Switching to turning his head to the side to breathe throws off his rhythm at first, and every time he's timed over the full distance he's slower. His coach has him practice it in sections first and time the full distance again after two weeks, so that he doesn't give up the first time he gets slower.

Adaptation and Local OptimaOptionalityPaying a little to look first and decide later buys a chance that's valuable in itself.A company wants to replace its whole internal system. The old and new systems' interfaces don't work with each other, so switching only half leaves both sides hard to use. Local optima say a change like this can't be split up and has to be switched over as a whole; optionality says every step should be small and reversible, never staking everything at once. Look at whether each part still works on its own once it's split up. If it does, go step by step; if it doesn't, first run a whole-system pilot that can be rolled back, then decide on the full switch.Adaptation and Local OptimaNatural SelectionWith no designer at all, traits that leave more offspring still spread, generation after generation.Within one population, natural selection explains how a helpful variant spreads generation after generation. Local optima add its boundary: the spread only follows directions that are better right now, and a higher mountain may stay forever out of reach because one step in between is worse.Adaptation and Local OptimaExplore vs ExploitThe more chances you have left, the more it pays to try something new.Should the research budget go to ten small improvements or be staked on two big directions? Explore vs exploit says keep a share to try new routes. Local optima add that a new route has to change enough at once; otherwise it is only a different foothold on the same mountain. When improvements near the top have shown nothing for several quarters in a row, put that share of the budget into one big change, all at once.

A customer service manager sets a rule: only one process change at a time, tried for a week; if average handling time goes up, it's withdrawn. Stopping the handing-off of tickets would make new staff slower at hard problems; adding specialist training would take up that week's time for taking tickets. A small-group trial found that with both changes in place and the training finished, handling time fell by 15% and the resolution rate went up too.

If the old rule for improvements stays in place, what is the most likely result?

You run an online shop. For a whole year you've fine-tuned just one thing on a product page each month, such as the title, the main image or the button wording, and kept only the version with a higher conversion rate. For the past few months the conversion rate hasn't gone up. You suspect you're stuck: the current page may not be the best, but you don't know whether a higher position exists.

To judge whether you're stuck on a small hilltop, which of these is the most direct evidence?

A store's staff rota is made by a program. It first makes a random rota, then swaps only two people's shifts at a time, keeping the swap whenever the total score goes up. The program has stopped, because no swap between two people gives a higher score. The engineer has rerun it five times and gotten the same result every time, but she knows the score could still be higher, and suspects a good rota needs three people's shifts moved at once.

Which approach is most likely to get the program to find a higher-scoring rota?