AirWrite XR turns handwriting you trace in mid-air with your index finger into text.
You don't need a pen, a controller, a pinch for pen-down, or a keyboard. You write words one after another, and the model works out the letters and the spaces.
I originally built it for my VibeAR.dev submission to the Meta hackathon, and I decided to release it!
For now it has only been trained on a small dataset of my own cursive handwriting. But as I show in the paper, training on a bigger dataset improves the model significantly.
Only the 26 letters from a to z and the space are supported for now.
📄 Paper: tr-mz.github.io/papers/airwrite-xr 🥽 Live demo (Quest Browser): tr-mz.github.io/airwrite-xr 💻 Code: github.com/TR-MZ/airwrite-xr
a–z and space)."they watched the entire movie", written in 3D and seen from the writer's point of view, looks like this (colour goes from dark at the start to yellow at the end):
There's no pen-up and every word lands on top of the previous one, so as a picture it's unreadable. Even cut into single words, strong OCR models can't read it, while AirWrite reads the whole sentence correctly (from a model that never saw this recording):
This release is v13 (v13-f17-six). Six motion encoders are pooled at the sentence level, then decoded with English priors (this gave the best quality).
| Member | Architecture | Params | Notes |
|---|---|---|---|
| primary | 2-block Conformer, rotary positions | 548k | Synthetic pre-training, then real fine-tune; retrained with CAPS and slow-writing augmentation |
| secondary | 2-block Conformer, rotary positions | 548k | 13-handwriting-style synthetic corpus; retrained with CAPS and slow writing |
| tertiary | 2-block Conformer + self-conditioned CTC | 552k | Intermediate letter posteriors fed back into the encoder; retrained with CAPS and slow writing |
| bilstm | BiLSTM | 400k | Many-style synthetic pre-training; retrained with CAPS and slow writing |
| bilstm_old | BiLSTM | 400k | The earlier lowercase BiLSTM, kept for lowercase accuracy |
| bilstm_s13 | BiLSTM | 400k | 13-handwriting-style synthetic pre-training |
All six output a 28-symbol CTC distribution (blank, space, a–z) at 15 Hz (stride 4 on 60 Hz input). Together they total about 2.85M parameters.
Decoder
weights/
├── primary.safetensors + primary.json # Conformer
├── secondary.safetensors + secondary.json # Conformer, 13-style synthetic
├── tertiary.safetensors + tertiary.json # Conformer + self-conditioned CTC
├── bilstm.safetensors + bilstm.json # BiLSTM
├── bilstm_old.safetensors + bilstm_old.json # earlier lowercase BiLSTM
└── bilstm_s13.safetensors + bilstm_s13.json # 13-style BiLSTM
Each .json holds the member's architecture config and the 12 input-feature normalisation means and standard deviations. The loading code, the decoder and the WebXR app (with browser ONNX versions of these six models) will be in the GitHub repo.
The evaluation set is 36 real development recordings in 4 frozen folds of 9. Each fold's models never see that fold's 9 takes, and no checkpoint selection used evaluation data. CER and WER are edit distances over characters and words after lowercasing.
| Version | Motion members | Assisted CER | WER | Exact sentences |
|---|---|---|---|---|
| v9 | 3 Conformers | 10.7% | — | — |
| v13 (this release) | 3 Conformers + 3 BiLSTMs | 7.5% | 16.4% | 19 / 36 |
Per-fold CER for this release is 5.4 / 6.0 / 4.8 / 13.9%. The scores use the base (general-English) priors.
v13 also reads writing in CAPITALS: on 6 locked CAPS recordings it gets 4.2% CER (7 errors in 165 characters). The output is still lowercase.
On their own, read greedily with no language help, the motion models sit at about 28% CER each. Most of the accuracy comes from pooling the members and from the English decoder.
Text entry in VR and MR when a virtual keyboard is awkward, and research on air-writing and motion-to-text. It isn't suitable for anything safety-critical or for identifying people from their handwriting.
@misc{airwrite-xr-2026,
title = {AirWrite XR: mid-air handwriting recognition from headset hand tracking},
author = {Jara, Xavier},
year = {2026},
url = {https://tr-mz.github.io/papers/airwrite-xr/},
note = {Model card and checkpoints v13-f17-six}
}
web/tertiary.onnx 2 MiBweb/primary.onnx 2 MiBweb/secondary.onnx 2 MiBweights/tertiary.safetensors 2 MiBweights/primary.safetensors 2 MiBweights/secondary.safetensors 2 MiBweb/bilstm.onnx 2 MiBweb/bilstm_old.onnx 2 MiBweb/bilstm_s13.onnx 2 MiBweights/bilstm.safetensors 2 MiBweights/bilstm_old.safetensors 2 MiBweights/bilstm_s13.safetensors 2 MiBHuggingFaceTB/SmolLM2-1.7B