OpenATC command model (S1-2M, free wording, v5)

A 2-million-parameter transformer that turns what an air traffic controller said into the command a simulator can carry out. It is the model inside OpenATC, a browser game where you work ground, tower and approach by voice.

said:    "emirates eight six five, come on down to seven thousand"
command: UAE865 Altitude 7000

It runs in the browser on a phone-class CPU: 2 MB download (int8), 0.24 s to load, 110–170 ms per command, no server.

What it does

The game gives the model the aircraft on frequency (callsign, spoken name, phase, altitude, heading) and the transcript of the controller's transmission. The model writes one command line, or SAY AGAIN when it cannot tell what was meant or who it was for.

<ctx>@APP 07
QFA76 qantas 76 ARR APP approach 11000ft h077 07
UAE865 emirates 865 ARR APP approach 9000ft h122 07
UAE880 emirates 880 ARR APP approach 10000ft h347 07<said> qantas 76 reduce speed 180 knots<cmd>   ->   QFA76 Speed 180

Because the callsigns come from the context, the model resolves "emirates eight six five" or "the Qantas" to the right aircraft. The game also constrains the first tokens to callsigns that are actually on frequency, so it can never invent an aircraft.

Results

Each test set runs through the game's full chain: text clean-up, rules, this model and the game's safety gate. "Sent wrong" means a command went out that the controller did not mean. Held commands ask the player to confirm instead.

test set commands sent right commands sent wrong non-commands sent by mistake
Independent exam: everyday wording, written by a separate author 51 of 60 1 0 of 12
Stress exam: 12 hard categories 82 of 86 0 1 of 34
Held-out everyday wording 58 of 62 0 0 of 5
Everyday wording, SkyWest callsigns 54 of 55 0 -
Step-by-step taxi and runway crossing 42 of 84 2 0 of 12
Talk: corrections, questions to the crew, calls cut off 15 of 31 1 0 of 26
Standard phraseology 183 of 190 3 0 of 13
All seven 485 of 568 7 1 of 102
Real controllers: 211 transcribed real ATC calls, never trained on 163 of 211 0 -
The same 211 calls through our speech model (v2) 154 of 211 0 -
Hard ground work: 156 long taxi, crossing and hold-short calls 96 of 156 3 -
Blind exam: unseen wording, 279 lines 92 of 234 10 7 of 45

v4 on the same seven exams: 458 right, 15 wrong, 7 non-commands sent. Older versions are in this repository's history (v4: 3adfe6b0, v1: 3969979c).

Where it is still weak. On wording it has never seen (the blind exam) only about 4 in 10 commands go through right; most of the rest are held for confirmation, and 17 of 279 lines were sent wrongly. That exam's lines were never read while training.

The int8 export scores 95.0 % exact against 95.3 % for fp32 on a 300-line check (web/quant_check.json).

Files

file what
model.safetensors fp32 weights (PyTorch)
model.py the architecture, written out in full: Llama-style pre-norm blocks, RoPE, SwiGLU, tied embeddings, KV cache
bpe.py, tokenizer.json the byte-pair tokenizer (1,349 tokens)
example.py runs the examples above
web/model.json, web/model.bin int8 row-wise export the game loads in the browser (format atc-s1-web-1)
web/gate.json the safety gate fitted for this version: weights and thresholds for send / confirm / say again
train_config.json pre-training settings
pip install torch safetensors
python example.py

Architecture

parameters 2,030,208
layers / width / heads 4 / 192 / 6
context 512 tokens
vocabulary 1,349 (BPE trained on ATC text)

Training

  1. Data from the simulator. About 205,000 examples from 11 airports (SFO, Heathrow, JFK, LAX, CDG, Dubai, Boston, Hong Kong, Haneda, Delhi, Singapore). The game's rule-based AI controller works real traffic and each instruction it issues becomes an example, in the situation where it was issued. Speech-like noise is added: fillers, repeats, misheard words, callsign swaps. Non-commands are included as SAY AGAIN targets.

  2. Pre-training from scratch on that data, then GRPO with the simulator as the reward: a command earns reward only if the game accepts it and it does what was meant.

  3. Free-wording fine-tune. 26,000 game situations, each instruction said the way controllers talk off the book ("come on down to", "give me two one zero"). Mixed with 50,000–60,000 rows of the original data so standard phrasing is not forgotten.

  4. v4: how people really talk. Two more rounds on a CPU: step-by-step taxi and everyday wording, then corrections in the middle of a call, questions to the crew, questions that must not become instructions, and calls cut off before their value. The last round used 54,000 rows, 14,000 of them new. The release rule (more right, and no more sent wrong or non-commands sent on every exam) was not fully met: v4 shipped as better overall, with the losses listed under Results.

  5. v5: one more round from v4 on everyday wording, picked as the best of four runs. A sixth round trained on real-radio wording understood more real calls (185 of 211) but forgot some casual game wording, so it was not released.

No real ATC recordings or third-party transcripts were used for training. All of the data is generated by the game.

Limits

  • Numbers. Feed it text the way the game's clean-up step leaves it: spoken numbers folded to digits ("heading 300", "180 knots"). Raw digit-by-digit speech ("three zero zero") often gives SAY AGAIN.
  • Mistakes. About 1 in 80 commands in the seven game exams is sent wrong (1 in 23 on the blind exam), and many more are held for confirmation, step-by-step taxi most of all. In the game a separate safety gate decides whether to send, confirm or ask again, so use something similar if commands have consequences.
  • Phraseology. It learnt the game's command set and mostly FAA/ICAO-style phrasing. Accents and wordings outside that are not covered.
  • Not for real-world use. It is a game model, not for operational air traffic control.

Links

Downloads last month

-

Downloads are not tracked for this model. How to track
Safetensors
Model size
2.03M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support