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

It learned to fly from nothing but a score

8 min read • 30 Nov 2026
aimachine learningneuroevolutionaviation

We’ve all heard of autopilots. They are programmed along the lines of “if you want this to happen, do this” and “if this happens, do that”. But can you create a pilot that teaches itself to fly?

Animation: eight pilots with random weights crash on the runway within seconds; the best pilot after 20 generations accelerates, lifts off and climbs to 500 feet.
Eight random pilots (grey, each crash marked with an orange ×) against the best pilot after 20 generations (blue), which takes off and climbs to 500 feet.

Spoiler alert: yes, you can. But there are some interesting lessons along the way. You don’t need to understand machine learning to follow this. If you’d like a gentler start, the same method taught a car to race round a track in Teaching a car to drive. The aeroplane lives in BigSkySim, a simulator of a small airfield built with AI coding assistants (the Introduction tells that story).

A neural network is a panel of dials

A neural network is a recipe for turning a handful of numbers in into a handful of numbers out. The take-off pilot takes in eight, such as the airspeed and how far the plane sits from the runway’s centreline, and puts out three: stick forward or back, stick left or right, and the rudder pedals. In between, each input is multiplied by its own number, added up and passed on.

Those multipliers are called weights, and they are all the network knows. Think of a studio mixing desk: the same desk can make a song sound wonderful or terrible, depending only on where the sliders sit. A pilot with random weights still moves the controls every quarter of a second, just not in any way that resembles flying.

The take-off pilot has 99 sliders and the landing pilot 195. LLMs in 2026 have hundreds of billions. These pilots would fit on the back of an envelope.

The take-off pilot's network Eight inputs on the left, eight hidden units in the middle and three outputs on the right, every input joined to every hidden unit and every hidden unit to every output. The lines are the final take-off pilot's own weights: blue positive, orange negative, thicker for larger. Distance from the centreline Turn needed to line up Airspeed Pitch (nose up or down) Bank (wings tilted) Climbing or sinking Height Rate of turn Stick forward or back Stick left or right Rudder pedals 8 inputs 8 hidden units 3 outputs
The whole take-off pilot. Each line is one of its sliders: 88 connections, plus one setting on each unit, 99 numbers in all. Drawn from the final pilot's real weights: blue lines push the same way as the input, orange the opposite way, thicker means stronger. The throttle isn't an output: it is always full.

Evolution tunes the dials by trial and lots of error

How do you find a good setting for 99 sliders when nobody knows what it should be? The method is called neuroevolution, and it is natural selection with a scoreboard:

  1. Make a thousand pilots with random weights.
  2. Let each fly a dozen practice take-offs, each in a different wind, and give it a score.
  3. Keep the best few exactly as they are.
  4. Fill the other places with copies of the best, each with a little random noise added to every weight.
  5. Repeat. Each round is a generation.

Nothing in that loop knows anything about aeroplanes. It only notices that some pilots did better, and makes more like them. Most neural networks learn differently, by being shown the right answer for every example. Nobody has a right answer for “where should the stick be, in this gust, right now?” You can only say how well a whole flight went, and that’s all evolution needs.

The pilot sees what a pilot sees, and no more

A simulator knows everything: position to the millimetre, exact angles, the precise wind. A real pilot gets much less. So BigSkySim gives a program only what a pilot would have: instruments rounded the way you can read real gauges, the view out of the window as word-pictures (“centreline to the left, drifting right”), and position, if at all, as a rough radio call: “late downwind, two and a half nautical miles south east of the runway”.

BigSkySim's cockpit view at 200 feet on final approach, with the instruments and the view out of the window labelled Runway ahead PAPI approach lights Horizon Airspeed Attitude Altimeter Digital readout Turn coordinator Heading Vertical speed
The cockpit view at 200 feet on final approach to runway 27. The learned pilots never see this picture: they get the same instruments as rounded numbers, and the view out of the window as short descriptions.

One flight, three specialists, and a few lines of ordinary code

A circuit (a lap of the airfield) needs very different skills, so rather than ask one network for everything, the project does what real autopilots do: separate modes with simple logic switching between them.

Between them sits a navigator: a few dozen lines of hand-written code, with no learning in it, that tells the cruise pilot what to fly on each leg (as a real pilot gets from a document published by the airfield) and decides when one pilot hands over to the next. Splitting the job kept each network small and each score easy to write. The cost came at the joins between them, where the hardest problems lived.

This figure is interactive and needs JavaScript. The text around it describes what it shows.

Three whole flights from above: the calmest crosswind of 200, and the strongest from each side. The trail shows who is flying: take-off pilot, cruise pilot, landing pilot. Use the slider or press play.

The score is the only instruction it ever gets

The network doesn’t know the goal. Intent enters only through the score, which has two kinds of ingredient. Points say what’s better: the take-off pilot scores them for height and speed, and they shrink the further it strays from the centreline. Rules say what’s unacceptable: tilt the wings past 30 degrees, or let the stall warning sound, and the attempt ends on the spot, like a crash.

Nearly every line of those scores exists because, early on, a champion found a way to score well by doing something no good pilot would do. The first take-off champion rolled down the runway eight or nine metres off the centreline, because nothing in its score mentioned the centreline. The cruise pilot banked at 55 degrees (pretty unpleasant for a passenger), because nothing penalised it. The first landing champion stood on the brakes with the throttle wide open, because its score counted stopping and not how. Seven times a champion found a gap like this, and each fix was a new line in the score.

A learner will exploit any gap between what you score and what you want. Tell a child to be “in bed by 8pm” and they can legitimately play on their iPad till midnight, so you learn to say “asleep by 8:30”.

Trial and error needs a practice ground that runs faster than life

A thousand pilots, twelve take-offs each, a hundred generations: about 30,000 hours of flying. Controlling BigSkySim through a browser runs in real time, so that would take three and a half years.

The first answer was a stand-in: a simple mathematical model of the plane, thousands of times faster. It seemed to work, and that hid the problem, because part of the pilots’ skill went into flying the stand-in’s mistakes. Measuring where the time went showed the fix. Almost all of it was messages passing between the program, the server and the browser; the physics itself took a few millionths of a second, and it could run without a browser at all. Thousands of copies across one desktop PC flew 300 hours of take-offs in about four and a half seconds, roughly 240,000 times real time.

A bonus: the same wind and the same control movements always produce exactly the same flight, so any moment of any flight can be replayed. That became important later to fix a major bug.

What it learned, including what nobody asked for

For ten generations, no pilot took off at all. By generation 21, the best took off in 94% of winds it had never met, and the final version in all of them.

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.

It also learned things nobody asked for. In crosswinds of 10 to 15 knots, a hand-written take-off routine succeeded 6% of the time and the evolved pilot 100%. The landing pilot learned to flare, easing its descent in the last few feet from about 300 feet per minute to about 50, exactly as student pilots are taught, although its score only counted a soft touchdown.

Chart: take-offs completed in 200 random winds, by strength of crosswind. The hand-written script completes 94%, 56% and 6% as the crosswind rises; the learned pilot completes 100% in every band.
Take-offs completed in 200 random winds, by strength of crosswind: the hand-written script against the learned pilot.
Chart: how fast the plane comes down by height above the runway. Hands-off it descends at a steady 350 feet per minute all the way down; the learned pilot eases off to about 50 feet per minute at touchdown.
The flare: descent rate by height above the runway, hands-off against the learned landing pilot.

The final exam was the real BigSkySim in a browser, with nothing in the code able to see where the plane really was. Ten whole flights, ten stopped on the runway, within 2 metres of the centreline. Strong gusts can still catch a wingtip, and that’s the next piece of work.

The final three pilots and the navigator fly a whole circuit on the real simulator: take-off, circuit, landing, stopped on the runway 1 m off the centreline. 5 times real time.

None of it arrived first time

Two more traps caught the project, and they catch every learning system. A skill only works on what it practised. The landing pilot passed its own exam 197 times in 200, then failed one landing in six after a real circuit, because the circuit handed it the plane faster and steeper than anything it had practised. Replaying real handovers as practice fixed it. Small tests flatter you. On a hundred landings, a pilot that crashes 3% of the time can look as good as one that crashes 0.5% of the time, so among fifty candidates some bad ones are bound to look good. Judging on a thousand fixed it.

The walk-through, for executives tells the full story without code, and The walk-through, with code and the ML explained with it.

Most of the work was around the network

The network never needed to be clever, only tuned, and evolution did the tuning in minutes. Most of the work went into what sat around it: what it could see, how fast it could practise, what its score accidentally encouraged, and what happened at each handover. It worked out how to fly without being taught.

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.