Swap
← Research library

Keyboard recognition · November 16, 2026

A model that reads key visits

A small convolutional network votes on the sequence of keys a finger passed. A separate search decides how those visits could spell a word.

From a single stroke to letters

Each stroke becomes 64 samples of position, velocity, speed and pace. A 19-layer one-dimensional network with 192 channels emits 32 frames of probabilities over 26 letters and a blank. The model has 1,857,627 parameters and occupies 7.4 MB in 32-bit form. CTC permits different alignments between visits and sample times.

Training and evaluation sets

A model that learns visits can support a pause for a doubled letter without deciding the spelling in advance. Training used human public strokes. The training, development and evaluation sets had distinct roles.

The per-stroke network and the three development curves under their different training objectives.
The per-stroke network and the three development curves under their different training objectives. View full size
SplitStrokesRole
Train plus the extra collections swipe-2, 3 and 41,022,271 usable (933,502 + 116,613 rows before filtering; 12,614 sessions)Training
Dev53,066 usable of 53,961 (692 sessions)Its first 20,000 strokes pick the best epoch; 6,000 drawn from it later fit the mix weights
Test49,661 rows (696 sessions)Never trained on. 10,000 drawn for the bench
swipe-530,793 rows (462 sessions)Never trained on. Holds the 2,526 two-finger words

Three training objectives

The runs used different target representations. In particular, an exact sequence of visits can be easier to predict than the spelling with repeated letters. Joining real fragments into artificial strings also changed the movement distribution.

RunStrokes read exactly right, no dictionaryTraining time
A78.9%13 min
C (shipped)81.4%30 min
D79.6%30 min

Mixing the vote with geometry

For a single stroke the model could add eight candidates, with a weight of 0.8 and a cap of 6 on its score contribution. Shared words used 0.3 with a cap of 12 and kept the full geometric touch score. One stroke at a time means that neither cross-thumb ordering nor word boundaries can be learned jointly here.

Case setSearch aloneWith the model
One finger, 10,000 public swipes8,754 (87.5%)9,246 (92.5%)
Two fingers, 2,526 public words2,195 (86.9%)2,228 (88.2%)
One typist’s attempts, 199158 (79.4%)165 (82.9%)
Everyday sentences, 5,991 words5,338 (89.1%)5,605 (93.6%)
Owner's boundary sequences, 188170172
Generated: described techniques, 1,3501,3501,350
Generated: reported two-thumb words in every split, 5,2865,2845,282

Execution

The release implementation took about 0.3 ms per stroke on the desktop harness. An eight-stroke numerical comparison against the training implementation produced a maximum difference of 0.0004. Phone extension memory, energy and thermal behavior require separate measurements.

Sources

← Browse all research