Want a quick email when a new article is published? Subscribe
It learned to fly from nothing but a score
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?

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.
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:
- Make a thousand pilots with random weights.
- Let each fly a dozen practice take-offs, each in a different wind, and give it a score.
- Keep the best few exactly as they are.
- Fill the other places with copies of the best, each with a little random noise added to every weight.
- 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”.
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.
- The take-off pilot gets the plane from standing still to 500 feet, straight out along the runway.
- The cruise pilot flies to the height and heading it’s given, and holds them.
- The landing pilot flies down a gentle slope from a mile or so out, touches down softly on the centreline and stops.
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.
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.

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.


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.
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
- Never seen how a light aircraft flies a lap of an airfield? Flying a circuit.
- The same ideas on something simpler: Teaching a car to drive.
- The full story, mistakes and all, without code: The walk-through, for executives.
- The code, with each machine learning idea explained: The walk-through, with code and the ML explained.
Share this article
Comments
Leave a Comment
All comments are moderated and may take a short while to appear.
Loading comments...