Want a quick email when a new article is published? Subscribe

Seventeen lessons from a machine that learned to fly, and where each one came from

19 min read • 30 Nov 2026
aimachine learningneuroevolutionaviation

In three decades of building software I have written, read and argued over a great many specifications. The most instructive reader any of them ever had was a list of about a hundred numbers that didn’t know what an aeroplane was.

Those numbers were the brain of a pilot that learned to fly by trial and error, in my own flight simulator, BigSkySim. Before that, a similar brain learned to race a car round a track. Neither was told how to do anything. Each one practised, got a score, and the best were kept and copied with small random changes, round after round. The method is called neuroevolution: breeding, with a scoreboard instead of a dog show.

This page starts from the other end. Instead of telling the story and pulling out lessons along the way, it lists the lessons, says what each means beyond machine learning, and links to the article in the series where it was learnt. You don’t need any knowledge of machine learning, programming or flying to read it. Pick the heading that sounds most like a problem you have, and follow the links if you want the evidence.

Part one: what the learner is told

The learner knows nothing about the goal, so the score is where your intent goes in

The car was never told which way the track went, or that driving onto the grass was bad. It sensed seven distances to the edge of the track and its own speed, and its brain turned those into throttle and steering. The pilots were never told what an aeroplane is for. The only message that ever reached either of them was a number at the end of each attempt: how far round the track, how close to a good take-off.

That number, the fitness function or score, is the whole specification. Whatever “drive well” or “fly well” meant had to be written into it, because there was nowhere else for it to go. This is true far beyond machine learning. Targets, bonuses, league tables and KPIs are all scores, and every one of them is the only part of your intent some people will act on.

Learnt in: Teaching a car to drive (the car’s senses and its score), Teaching a pilot to fly (what the pilot senses and controls), The walk-through, with code and the ML explained (the score in full).

Whatever you score gets optimised, loopholes included

Seven times in the project, a champion pilot found a gap between what its score counted and what was intended. The first take-off champion rolled down the runway eight or nine metres to one side of the centreline, because nothing mentioned the centreline. Another held its height by slamming the controls from one stop to the other. Another banked at 55 degrees to turn faster. The first landing champion stood on the brakes with the throttle wide open, because the score counted stopping and not how.

Each was the learner doing its job well, and each fix became a line in the score. People do the same with a commission plan or a metric that has become a target, and AI tools do it with a vague request. Before anything is trained, or any target set, ask one question out loud: what could this do that scores well and that I would hate?

Learnt in: The walk-through, for executives (the seven loopholes), The walk-through, with code and the ML explained (how each one became a line in the score), The walk-through, for ML practitioners (reward design in detail).

Ban what you won’t tolerate, and score what you’d prefer

The fixes came in two kinds. Points grade every moment on a scale: closer to the centreline scores more. Rules end the attempt on the spot: bank too far, stall, or wander ten metres off the centreline on the runway, and it is over. They do different jobs. Points for a short landing roll halved the distance the plane needed to stop, and left the full-throttle braking habit untouched. Only a rule (any power above 20% on the runway ends the attempt) got rid of it.

Organisations use both, often without noticing which. Bonuses shape outcomes. Policies forbid behaviour whatever the outcome. If a habit survives every incentive you add, the answer is probably a rule. And if a rule produces people, or systems, that sit exactly at its edge, you probably needed points as well: with only a ten metre limit, nine metres off the centreline scores the same as dead centre.

Learnt in: The walk-through, for executives (the landing pilot’s brakes), The walk-through, with code and the ML explained, The walk-through, for ML practitioners.

A target nobody can reach teaches nothing

The first no-power rule was all or nothing: break it once and the whole landing scored zero. Starting from pilots that knew nothing, evolution never found one that could stop without breaking it. Every pilot scored about the same, so there was nothing to choose between them, and the learner gave up on stopping altogether. Partial credit for how much speed it had lost before breaking the rule, and starting from a pilot that could already land, fixed it.

Selection needs differences to select on. So does any team. A target that is all or nothing, and currently nothing, gives people no way to tell a good week from a bad one. Measure the distance to the goal instead, and start people somewhere the distance is short enough to close.

Learnt in: The walk-through, for executives (the all-or-nothing rule), The walk-through, with code and the ML explained (partial credit and the warm start), The walk-through, for ML practitioners (flat fitness landscapes).

Describe the outcome, and the learner finds skills you never wrote down

The same literal-mindedness that finds loopholes also finds skills. Nobody told the take-off pilot about crosswinds; it met thousands of them in practice. In crosswinds of 10 to 15 knots, the hand-written take-off routine managed 6% of take-offs and the learned pilot managed all of them. The landing pilot scored higher for soft touchdowns and was never told how. It learned to flare, easing the descent almost to nothing in the last few feet, exactly as student pilots are taught. The car, scored on distance and lap time, found its own way round corners that nobody had drawn for it.

The lesson for anyone writing a brief: specify the result and leave the method open, and a capable learner, machine or human, may find a route you didn’t know existed. Dictate the method and you get the solution you already imagined. You can’t have the surprises without the loopholes, though, which is why the next lesson matters.

Learnt in: Teaching a car to drive (the car’s own line round the track), The walk-through, for executives (crosswinds and the flare), The walk-through, with code and the ML explained.

Watch more than the score

The worst flight in the project came from the best score. Of three cruise pilots compared, the one trained with no limits outscored the others, and in its test it banked at 55 degrees to turn faster. The problem only showed up because the test also recorded the steepest bank of every flight. The score alone would have crowned it.

Extra measures are how you find out whether the optimiser was doing the job you intended. Log the behaviours you’d be embarrassed by alongside the headline, and give every headline metric a partner that would show the cheat: tickets closed beside tickets reopened, sign-ups beside refunds. Pilots learn this as a habit: scan every instrument, because any one of them can look fine while the aeroplane does something alarming.

Learnt in: The walk-through, for executives (the 55 degree bank), The walk-through, for ML practitioners (logging beyond the fitness), What flying can teach us (trusting the instruments).

Part two: where the learner practises

Measure the whole path before you decide what’s slow

Evolution needs a lot of practice: a thousand pilots, twelve take-offs each, a hundred rounds, which adds up to 30,000 hours of flying. The simulator ran at about real time, so that was three and a half years. The obvious assumption was that the simulator’s physics was the slow part. A closer measurement showed that almost all of each 65 millisecond step was the browser and the network passing messages; the physics took a few millionths of a second. Running the physics directly, on every processor core of one desktop PC, gave about 300,000 times real time. The full training run took about ten minutes.

Someone always has a confident theory about where the time, or the cost, lies. Ask for the breakdown before committing to the fix. The costly mistake is solving the wrong slow part.

Learnt in: BigSkySim (how the simulator is built, and why its core could run outside the browser), The walk-through, for executives (from three and a half years to ten minutes), The walk-through, with code and the ML explained, The walk-through, for ML practitioners.

A stand-in is one more thing to validate

Before that measurement, the first answer to the slow simulator was a stand-in: a fast, rough imitation of the plane, fitted to fifteen minutes of recorded flying. It worked well enough that pilots trained on it flew the real plane at the first attempt, which is exactly why its cost stayed hidden. Much later, a proper comparison showed that pilots trained on the real physics scored about five points better and were never worse in any of 191 test situations. Part of the stand-in pilots’ skill had gone into flying the stand-in’s mistakes. They had also learned to fly right along the fence built round it.

Staging environments, synthetic data, easy samples and trial customers are all stand-ins. Each is a sensible shortcut, and each trains your system, or your people, on something slightly wrong. If a plan depends on one, it needs time set aside for checking it against the real thing.

Learnt in: The walk-through, for executives (the workaround that quietly cost quality), The walk-through, with code and the ML explained, The walk-through, for ML practitioners (model error and exploiting it).

Determinism makes everything debuggable

Running the physics directly brought a gift: the same wind and the same control movements produce exactly the same flight, every time. Rerunning the first 25 rounds of training gives identical scores, round by round. The car project had the same property, so it never needed to store recordings: driving the same brains again replays every car exactly.

That property later fixed the hardest problem in the project, because any moment of any real flight could be rebuilt and used as practice (more on that under “Parts that pass their own tests” below). In software, reproducible builds, repeatable tests and replayable incidents are the same thing. A system you can’t reproduce is one you can only guess about, and time spent making it repeatable is time spent gaining the ability to debug it.

Learnt in: Teaching a car to drive (replaying any generation), The walk-through, with code and the ML explained (identical reruns), The walk-through, for ML practitioners (replayable starts from a seed and a script).

Progress arrives late and all at once, so judge the curve

For the first ten rounds of take-off training, the best pilot completed no take-offs at all. By round 21 it managed 94% of 200 winds it had never practised in. Anyone reviewing the project at round eight would have seen nothing to show for it.

Chart: take-offs completed by the best pilot of each generation, in 200 winds it never practised in. Zero for the first ten generations, then a rapid rise to 94% by generation 21 and close to 100% after that.
Take-offs completed by each generation's best pilot, in 200 winds it never practised in.

Learning curves often look like that, in machines, in teams and in new products. If a sponsor only sees the headline number, they will cancel promising work at the worst possible moment. Agree in advance which measure moves first, and watch that one.

Learnt in: Teaching a car to drive (the typical car’s flat-then-jump curve), The walk-through, for executives (the take-off learning curve), The walk-through, with code and the ML explained.

How many neurons to give a brain is a judgement call. More capacity means the brain can represent more skilful behaviour, and also means more numbers for evolution to search through, so it can take longer to find anything good. The car had 90 numbers and the pilots about a hundred each. Even at that size, the trade showed: asking the take-off pilot to fly straight through the air, rather than slightly sideways, as well as everything else cost a little elsewhere, because the more you ask of 99 numbers, the less room each request gets. And when a later experiment gave the landing pilot a new sense, how fast the wings were rolling, evolution found no use for it at all.

More is not automatically better, whether it’s inputs to a model, people on a project or features in a product. Each addition is something the whole system has to learn to use, and some never prove their worth.

Learnt in: Teaching a car to drive (choosing the number of hidden neurons), Teaching a pilot to fly, The walk-through, with code and the ML explained (the cost of flying straight), The walk-through, for ML practitioners (the roll-rate input).

Part three: putting learned parts together, and testing them

Give learned specialists a coordinator you can read

A whole flight needs three skills, so the project trained three separate pilots: one to take off, one to hold a height and heading, and one to land. Between them sits a navigator: a few dozen lines of ordinary, hand-written code that know the shape of a circuit round the airfield, tell the cruise pilot where to point, and decide when one pilot hands over to the next. Real autopilots are built the same way, as separate modes with simple logic switching between them.

The split kept each brain small enough to train in minutes, and kept the decisions about what happens next in code a person can read and change. Any system that mixes learned and written parts benefits from the same division: let the learned parts do the narrow skills that are hard to describe, and keep the decisions you need to explain in plain code.

Learnt in: Teaching a pilot to fly, The walk-through, for executives (three pilots and a navigator), The walk-through, for ML practitioners (mode logic around learned controllers).

Parts that pass their own tests can still fail together

The landing pilot passed its own exam 197 times out of 200. At the end of a real circuit, it failed one landing in six. It had practised on tidy approaches at 60 to 72 knots, and a real circuit handed it the plane at around 97 knots, coming down more steeply than anything it had seen. Machine learning calls this distribution shift: the situations met in use differ from the ones learned on. Its exam couldn’t show the problem, because the exam came from the same place as the practice. The fix was to replay a few hundred real handovers and make them half of its practice; afterwards 194 of 200 whole flights ended stopped on the runway.

Chart: airspeed when the landing pilot takes over. What it practised on sits between 60 and 72 knots; what a real circuit hands it sits around 97 knots, with no overlap at all.
Airspeed when the landing pilot takes over: what it practised on, against what a real circuit hands it.

The navigator caused a smaller version. It demanded each 90 degree turn all at once, the cruise pilot had never practised sudden demands, and 16 flights in 200 were lost. Turning the requested heading gradually lost none. How you ask is part of what a learned skill has learned. Teams that each hit their targets while the product fails at the joins are the same story, and testing each part on what its neighbours really hand it is the cure.

Learnt in: The walk-through, for executives (the handover), The walk-through, with code and the ML explained, The walk-through, for ML practitioners (distribution shift and the fine-tune), What flying can teach us (the Swiss cheese model).

Train on the information you’ll really have

The first navigator decided where to turn from the plane’s exact position, to the metre. The local copy of the simulator knows that. The real simulator never tells a pilot, by design: it gives the instruments, the view out of the window and a rough position report, like a pilot’s radio call. A navigator rebuilt to use only those did as well as the one that knew the truth: 489 of 500 new flights stopped on the runway, against 488.

A system that works in the demo because it can see things production can’t is a familiar way to waste a quarter. In machine learning it is called leakage, and it looks excellent right up to launch. Ask of any system, learned or not: will every piece of information it relies on really be there when it matters?

Learnt in: BigSkySim (what the simulator tells a pilot, and what it doesn’t), The walk-through, for executives, The walk-through, for ML practitioners (flying on the position report).

Rules written for people rely on everything else people know

Pilots are taught to turn onto the last-but-one leg of the circuit when the end of the runway is 45 degrees behind the left wing. Used on its own by the navigator, that textbook rule stopped only 127 of 200 flights on the runway. The circuits came out narrower or wider with the wind, and in a narrow one the rule turned too early, leaving no room to line up for landing. A human pilot would notice and adjust without thinking. Adding a second condition, not before two and a half miles out, took it to 195.

Every process document in your organisation is full of rules like that. They work because the person following them fills the gaps from experience. Hand them to a new joiner, an outsourced team or an AI agent and the gaps show.

Learnt in: Flying a circuit (where the rule comes from), The walk-through, with code and the ML explained, The walk-through, for ML practitioners (the base turn bug).

Small tests flatter you

Near the end, two experiments set out to stop the wings rocking just before touchdown, and the first results made no sense. The cause was the test inside training: each run picked its champion from its best 50 candidates on only 100 practice landings. A pilot that crashes 3% of the time looks at least as good as one that crashes 0.5% of the time about 13% of the time on 100 tries, so across 50 candidates a bad one regularly won. Judging on 1,000 landings fixed it, and keeping the starting pilot in the running meant more training could never hand back something worse. Then, because picking a winner on a set of flights flatters it on those flights, the final comparison ran on 2,000 fresh ones. Points for level wings halved the rocky landings, from 49% to 24%. The new sense, which sounded obviously right, didn’t help at all.

Chart: the chance that a pilot who crashes 3% of the time looks at least as good as one who crashes 0.5% of the time, by number of test flights. About 75% on 10 flights, 13% on 100, and under 1 in 100,000 on 1,000.
How often a pilot that crashes 3% of the time looks at least as good as one that crashes 0.5% of the time, by number of test flights.

This is the winner’s curse, and it hides inside decisions that look rigorous: an A/B test stopped early, a vendor bake-off on ten samples, a model chosen as the best of twenty on the test it is reported on. Ask how many tries the test had, how rare the failure you care about is, how many options were compared, and whether the final number came from data nobody used to choose. The same applies to the final exam: ten flights out of ten on the real simulator proves the whole thing works end to end, but is too few to measure a one-in-a-hundred failure.

Learnt in: The walk-through, for executives (small tests and the final exam), The walk-through, with code and the ML explained, The walk-through, for ML practitioners (selection noise and fresh hold-out sets).

For a narrow job you can score, a small trained model can beat a large language model

Given the same aeroplane, three popular language models had a much easier job than the learned pilots. The simulator took off for them, their instructions described the circuit step by step, and an autopilot flew to the heading, height and speed they chose every few seconds. They landed three times out of four, against ten out of ten for pilots of about a hundred numbers that had been taught nothing. Every decision they made also took a second or two and cost money: about 50p a circuit for Opus 5.5.

The same choice turns up wherever a general-purpose model is proposed for a narrow, repetitive decision: classifying support tickets, routing requests, flagging transactions. If you can write down what good looks like and gather practice to learn from, a small model trained for the job may be better, faster and almost free to run. Reaching for the most capable model available is often a sledgehammer to crack a nut.

Learnt in: Bonus: Can an LLM fly an aeroplane? (four flights by three language models)

Most of the work was around the learner

Look back down the headings and very few are about neural networks. The brains were tiny and the method barely changed from the car to the aeroplane. The difficult problems sat around the learner: in the world it practised in, in the score it was given, and at the joins between its parts. That is where the work is in machine learning, and in most of what organisations build. The learner does exactly what its world and its score allow, and both of those are yours.

Where next

Share this article

Email LinkedIn X

Comments

Loading comments...

Leave a Comment

All comments are moderated and may take a short while to appear.