# TypeFormer: Transformers for Mobile Keystroke Biometrics

arXiv: https://arxiv.org/abs/2212.13075 · HTML: https://mlsanity.com/paper/2212.13075/

## Key facts

- Cited by 7 papers in the map (data through 14 Oct 2026).
- Builds on 20 of its 79 references that are in the map.
- First posted on arXiv 26 Dec 2022.

## Builds on (most cited first, 20 of 20)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [FaceNet: A Unified Embedding for Face Recognition and Clustering](https://mlsanity.com/paper/1503.03832/) (2015)
- [Autoformer: Decomposition Transformers with Auto-Correlation for Long-Term Series Forecasting](https://mlsanity.com/paper/2106.13008/) (2021)
- [Efficient Transformers: A Survey](https://mlsanity.com/paper/2009.06732/) (2020)
- [Transformers in Time Series: A Survey](https://mlsanity.com/paper/2202.07125/) (2022)
- [Block-Recurrent Transformers](https://mlsanity.com/paper/2203.07852/) (2022)
- [BiosecurID: a multimodal biometric database](https://mlsanity.com/paper/2111.03472/) (2021)
- [BioTouchPass2: Touchscreen Password Biometrics Using Time-Aligned Recurrent Neural Networks](https://mlsanity.com/paper/2001.10223/) (2020)
- [TypeNet: Deep Learning Keystroke Biometrics](https://mlsanity.com/paper/2101.05570/) (2021)
- [A Survey of Privacy Vulnerabilities of Mobile Device Sensors](https://mlsanity.com/paper/2106.10154/) (2021)
- [SVC-onGoing: Signature Verification Competition](https://mlsanity.com/paper/2108.06090/) (2021)
- [Exploring Transformers for Behavioural Biometrics: A Case Study in Gait Recognition](https://mlsanity.com/paper/2206.01441/) (2022)
- [Sensor-based Continuous Authentication of Smartphones' Users Using Behavioral Biometrics: A Contemporary Survey](https://mlsanity.com/paper/2001.08578/) (2020)
- [Fast Free-text Authentication via Instance-based Keystroke Dynamics](https://mlsanity.com/paper/2006.09337/) (2020)
- [GaitPrivacyON: Privacy-Preserving Mobile Gait Biometrics using Unsupervised Learning](https://mlsanity.com/paper/2110.03967/) (2021)
- [BehavePassDB: Public Database for Mobile Behavioral Biometrics and Benchmark Evaluation](https://mlsanity.com/paper/2206.02502/) (2022)
- [Free-Text Keystroke Dynamics for User Authentication](https://mlsanity.com/paper/2107.07009/) (2021)
- [Mobile Keystroke Biometrics Using Transformers](https://mlsanity.com/paper/2207.07596/) (2022)
- [IJCB 2022 Mobile Behavioral Biometrics Competition (MobileB2C)](https://mlsanity.com/paper/2210.03072/) (2022)
- [Mobile Behavioral Biometrics for Passive Authentication](https://mlsanity.com/paper/2203.07300/) (2022)

## Built on by (most cited first, 7 of 7)

- [Keystroke Verification Challenge (KVC): Biometric and Fairness Benchmark Evaluation](https://mlsanity.com/paper/2311.06000/) (2023)
- [Type2Branch: Keystroke Biometrics based on a Dual-branch Architecture with Attention Mechanisms and Set2set Loss](https://mlsanity.com/paper/2405.01088/) (2024)
- [IEEE BigData 2023 Keystroke Verification Challenge (KVC)](https://mlsanity.com/paper/2401.16559/) (2024)
- [KVC-onGoing: Keystroke Verification Challenge](https://mlsanity.com/paper/2412.20530/) (2024)
- [LLM-Assisted Cheating Detection in Korean Language via Keystrokes](https://mlsanity.com/paper/2507.22956/) (2025)
- [Exploring Transformers for On-Line Handwritten Signature Verification](https://mlsanity.com/paper/2307.01663/) (2023)
- [Template Ageing and Longitudinal Verification in Fixed-Text Keystroke Dynamics: A Subject-Disjoint Study Across Eight Weeks](https://mlsanity.com/paper/2609.29851/) (2026)

## Abstract (arXiv)

The broad usage of mobile devices nowadays, the sensitiveness of the information contained in them, and the shortcomings of current mobile user authentication methods are calling for novel, secure, and unobtrusive solutions to verify the users' identity. In this article, we propose TypeFormer, a novel Transformer architecture to model free-text keystroke dynamics performed on mobile devices for the purpose of user authentication. The proposed model consists in Temporal and Channel Modules enclosing two Long Short-Term Memory (LSTM) recurrent layers, Gaussian Range Encoding (GRE), a multi-head Self-Attention mechanism, and a Block-Recurrent structure. Experimenting on one of the largest public databases to date, the Aalto mobile keystroke database, TypeFormer outperforms current state-of-the-art systems achieving Equal Error Rate (EER) values of 3.25% using only 5 enrolment sessions of 50 keystrokes each. In such way, we contribute to reducing the traditional performance gap of the challenging mobile free-text scenario with respect to its desktop and fixed-text counterparts. Additionally, we analyse the behaviour of the model with different experimental configurations such as the length of the keystroke sequences and the amount of enrolment sessions, showing margin for improvement with more enrolment data. Finally, a cross-database evaluation is carried out, demonstrating the robustness of the features extracted by TypeFormer in comparison with existing approaches.
