[Paper Review] TypeFormer: Transformers for Mobile Keystroke Biometrics
TypeFormer proposes a novel Transformer-based architecture for mobile free-text keystroke biometrics, leveraging temporal and channel modules with LSTM, Gaussian Range Encoding, self-attention, and block-recurrent layers to learn discriminative 64-dimensional feature embeddings. It achieves an SOTA Equal Error Rate (EER) of 3.25% using only 5 enrolment sessions of 50 keystrokes each on the Aalto mobile keystroke database.
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.
Motivation & Objective
- To address the performance gap between mobile free-text and desktop fixed-text keystroke biometric systems.
- To develop a deep learning model that enables continuous, passive user authentication on mobile devices using keystroke dynamics.
- To improve feature robustness and generalization across diverse databases through advanced self-attention and embedding learning.
- To reduce reliance on large enrolment data while maintaining high accuracy in real-world mobile scenarios.
- To evaluate the privacy implications of feature embeddings by analyzing leakage of demographic attributes.
Proposed method
- TypeFormer employs a dual-branch architecture with Temporal and Channel Modules to model keystroke sequences independently.
- It uses Long Short-Term Memory (LSTM) layers to capture sequential dependencies in keystroke timing data.
- Gaussian Range Encoding (GRE) is applied to embed raw keystroke features into a continuous, differentiable representation.
- A multi-head self-attention mechanism captures long-range dependencies and inter-feature relationships across time and channels.
- A Block-Recurrent Transformer layer enables efficient modeling of long sequences by dividing them into non-overlapping blocks.
- The model is trained using triplet loss with Euclidean distance to minimize intra-class (same user) and maximize inter-class (different user) embedding distances.
Experimental results
Research questions
- RQ1Can a Transformer-based architecture outperform existing RNN and attention-based models in mobile free-text keystroke biometrics?
- RQ2How does the performance of TypeFormer vary with different enrolment session counts and keystroke sequence lengths?
- RQ3To what extent are the learned feature embeddings robust when evaluated on external databases?
- RQ4Does the model generalize well across different users and devices, especially under limited enrolment data?
- RQ5What is the privacy risk of the learned feature embeddings in terms of leaking demographic attributes like gender or age?
Key findings
- TypeFormer achieves an Equal Error Rate (EER) of 3.25% using only 5 enrolment sessions of 50 keystrokes each, significantly outperforming prior SOTA methods.
- The model shows a relative improvement of approximately 65% and an absolute improvement of 5.95% in EER compared to the previous SOTA LSTM-based model.
- The cross-database evaluation demonstrates that TypeFormer's features generalize better than those of existing approaches, with an average EER improvement of 8.60% across test cases.
- t-SNE visualization confirms low intra-class variability and high inter-class separability, indicating effective embedding learning.
- The model maintains strong performance even with short sequences and minimal enrolment data, showing promise for real-world deployment.
- The feature embeddings show potential for privacy leakage, suggesting that keystroke data should be treated as sensitive biometric information.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.