TL;DR
Gesture2Text is a new neural decoder for word-gesture (swiping) keyboards in Extended Reality (XR) that works across different devices and interaction modes without needing custom fine-tuning. By converting messy, continuous finger trajectories into a sequence of coarse "pixels" (discretization) and pre-training on large datasets, the authors achieved a robust 90.4% Top-4 accuracy while keeping the model small enough (4MB) to run in real-time on mobile headsets like the Quest 3.
What Problem Does This Paper Address?
Word-gesture keyboards (WGK)—where you swipe through letters to form words—are a natural fit for XR (Augmented and Virtual Reality). However, the "data signature" of a swipe changes drastically depending on whether you are poking at a virtual keyboard in mid-air, pinching from a distance, or swiping on a physical surface.
Currently, developers have two mediocre choices:
- Template Matching (e.g., SHARK2): Easy to set up but struggles with the "noisy" trajectories typical of mid-air movement.
- Standard Neural Decoders: Highly accurate but require massive amounts of specific training data for every new keyboard size or interaction mode, making them a nightmare to generalize.
The authors tackle this "generalization gap" to create a "plug-and-play" neural decoder that works across the diverse hardware landscape of XR.
Methods
The core innovation is Trajectory Coarse Discretization. Instead of feeding the neural network raw, high-resolution Cartesian coordinates $(x, y)$, the system maps the trajectory to a grid of "pixels" or regions centered on the keys.
- Discretization: Each segment of a swipe is assigned to a discrete region. This effectively "denoises" the input, as small tremors or slight offsets in hand tracking are absorbed into the coarser grid.
- Encoding: These pixels are one-hot encoded, creating a representation that matches the model's output space (characters).
- Architecture: The model uses a Bi-directional Long Short-Term Memory (BiLSTM) network. This allows the decoder to look at the entire gesture (both forward and backward in time) to resolve ambiguities.
- Training: It uses Connectionist Temporal Classification (CTC) loss, which is standard for speech and handwriting recognition because it doesn't require the input and output sequences to be the same length.
- Optimization: To ensure it runs on standalone headsets, the authors used quantization, shrinking the model to just 4MB.
Datasets
The authors used a mix of existing and newly collected data:
- Training Data: A combination of the public "How We Swipe" mobile dataset (95k samples) and a synthetic dataset of 100k trajectories generated by a GAN (Generative Adversarial Network).
- Validation Data: They tested on four distinct XR scenarios:
- Mid-Air Poke (AR): Using HoloLens 2.
- Mid-Air Poke (VR): Using Quest 2.
- Mid-Air Pinch (VR): Ray-casting from a distance.
- On-Surface WGK: Swiping on a haptic touchpad (newly collected from 100 participants).
Key Insights and Ideas
- Discretization as a Bridge: The "aha moment" is that mapping continuous movement to discrete "pixels" bridges the gap between the infinite variability of human motion and the discrete nature of text. It makes the model focus on the pattern of the word rather than the specific coordinates.
- Square vs. Ellipse: The authors tested different region shapes for discretization. Surprisingly, simple square regions performed slightly better and were computationally cheaper than complex elliptical ones.
- The "Fat Finger" Problem in XR: The paper quantifies how on-surface and mobile typing suffer more from "fat finger" errors (hitting adjacent keys), while mid-air typing is more prone to "geometric noise" (shaky trajectories). Their discretized approach handles both by effectively increasing the "target" size of the keys in the model's eyes.
- Zero-Shot Generalization: The model achieves high accuracy on AR/VR datasets it was never explicitly trained on, proving that pre-training on discretized mobile data is enough to learn the "language" of gestures.
Key Results
- Accuracy: Gesture2Text achieved an average Top-4 accuracy of 90.4% across all test sets.
- Comparison: It outperformed the industry-standard SHARK2 by 37.2% and conventional coordinate-based neural decoders by 7.4%.
- Efficiency: After quantization, the model is only 4MB.
- Latency: It executes in 97 milliseconds on a Quest 3, well within the 100ms threshold required for users to perceive an interaction as "instantaneous."
Limitations and Future Work
- Layout Specificity: The current model is optimized for the QWERTY layout. If a user switches to a different layout (like Dvorak or a custom XR layout), the discretization mapping would need to be redefined.
- Advanced Architectures: While they tested Transformers, they found that LSTMs currently handle the localized context of word-gestures better with smaller datasets. Future work involves scaling the dataset to see if a "Gesture-Transformer" can eventually take the lead.
- Input Modes: The study didn't explicitly test more exotic inputs like eye-gaze-based swiping or curved virtual keyboards, which are common in some XR productivity apps.
Summary updated