Manuscript Offprint

arXiv:2610.07700

Detecting LLM-Assisted Vietnamese Writing via Keystrokes under Behavioral Manipulation

Thanh Dong, An Ngo, Minh Dau, Rajesh Kumar

Thanh Dong*

Bucknell University

Lewisburg, PA, USA

tpd010@bucknell.edu

An Ngo*

Bucknell University

Lewisburg, PA, USA

axn001@bucknell.edu

Minh Dau

Bucknell University

Lewisburg, PA, USA

mtcd001@bucknell.edu

Rajesh Kumar

Bucknell University

Lewisburg, PA, USA

rajesh.kumar@bucknell.edu

Abstract—We study the robustness of keystroke dynamics for detecting large language model (LLM)-assisted writing. We introduce a Vietnamese keystroke dataset capturing realistic writing modes, including bona fide composition, transcription, and paraphrasing. We also define a behaviorally grounded threat model in which users deliberately alter typing patterns. To implement the threat model, we create behaviorally manipulated variants of the data designed to evade keystroke-based detection. We evaluate four keystroke modeling approaches: temporal and rhythmic representations, and sequential representations modeled with a one-dimensional convolutional neural network (1D-CNN) and TypeNet, under user-independent and context-independent settings. The results show that sequential models outperform feature-based approaches in most cases and that keystroke signals encode discriminative information about the writing process. However, detection is not uniformly robust: transcription is reliably identified, while paraphrasing and adversarially manipulated samples are frequently misclassified as bona fide when not explicitly modeled. To address this, we incorporate adversarial training using behaviorally manipulated data, which substantially improves separability and robustness. These results suggest that keystroke-based detection depends critically on exposure to diverse writing behaviors, and that strong performance under limited conditions does not generalize to realistic or adversarial settings without targeted modeling.

Index Terms—Keystroke Dynamics, LLM-Assisted Writing Detection, Adversarial Robustness, Human vs. LLM

I. INTRODUCTION

Recent advances in large language models (LLMs) such as ChatGPT [1], Claude [2], Gemini [3], and LLaMA [4] have made it increasingly easy to generate high-quality text. This capability allows students to generate, paraphrase, or transcribe responses with minimal effort, raising significant concerns about academic integrity, particularly in online and take-home assessment settings [5]–[8]. Text-based approaches have also explored stylometric features for detecting LLM-assisted writing, demonstrating that lexical and grammatical characteristics can provide useful discriminative signals [9]. However, such approaches analyze the final written output rather than the behavioral process through which it is produced. Traditional plagiarism detection systems based on textual similarity can also become less effective when LLM-generated content is substantially paraphrased or rewritten [10], [11].

Prior studies further indicate that human evaluators struggle to reliably distinguish between human-written and artificial intelligence (AI)-generated text under such conditions, with performance approaching random guessing [8], [12].

Rather than replacing conventional plagiarism detection systems, we view keystroke-based analysis as a complementary layer of academic integrity assessment. In a practical deployment, submissions would first be screened using similarity-based plagiarism detectors, which remain effective for identifying copied material from known or indexed sources. Submissions that pass this initial screening but remain suspicious because they may have been generated or heavily paraphrased using LLMs can then be analyzed using keystroke dynamics, which examine the writing process rather than the final text.

These limitations motivate a shift from analyzing the final written output to examining the process through which the text is produced [5]–[8]. Keystroke dynamics capture fine-grained behavioral signals during text production, including typing speed, pauses, and revision patterns [5]–[8]. Such signals reflect underlying cognitive and motor processes involved in writing, including planning, translation, and editing [13]. Unlike textual features, which can be manipulated through paraphrasing or rewriting, keystroke signals arise from real-time interaction between cognition and motor execution, making them inherently difficult to replicate without altering the writing process. Altering the writing process and corresponding keystrokes is non-trivial [14]. Prior work has demonstrated systematic differences between bona fide and AI-assisted writing in these behavioral patterns, suggesting that keystroke dynamics provide a reliable signal for detecting LLM-assisted content [5]–[8].

Despite this promise, existing work remains limited in several important respects [8]. First, most approaches consider simplified problem settings, typically distinguishing only between bona fide and assisted writing [5]–[8]. In practice, LLM assistance can take different forms: a user may directly transcribe an LLM-generated response or paraphrase it while composing the final answer. These interaction modes differ in cognitive demand and consequently produce distinct behavioral signatures in keystroke dynamics [6], [8]. Importantly, paraphrasing may reduce textual evidence of LLM assistance while preserving behavioral differences in the writing process.

Second, the problem becomes adversarial at the behavioral level when detection relies on keystroke signals. In this setting, users may attempt to evade detection not by modifying the

∗^{*}Thanh Dong and An Ngo contributed equally to this work.

textual output [15], but by deliberately altering how they type. This includes introducing artificial pauses, revisions, or variations in typing speed to mimic natural writing behavior. While prior work [6] has explored adversarial settings using synthetic statistical perturbations, such approaches do not fully capture behaviorally grounded evasion, where users consciously adapt their typing process during composition. This distinction separates task-level variation (transcription vs. paraphrasing) from strategic behavioral manipulation aimed at bypassing keystroke-based detectors.

Third, the applicability of keystroke-based detection across languages remains poorly understood [6]. Existing studies focus primarily on English [5], [7], [16] and, more recently, Korean [6]. It remains unclear whether these methods generalize to languages with different typing characteristics, input methods, and orthographic structures.

Vietnamese provides a particularly informative testbed because its TELEX input method composes diacritics through multi-keystroke sequences, resulting in typing dynamics that differ substantially from English and Korean [17]–[19]. This allows us to evaluate whether existing keystroke-based detection methods generalize across fundamentally different input mechanisms. Thus, Vietnamese provides a distinct setting for evaluating keystroke-based detection, while generalization to other languages remains to be investigated.

To bridge these gaps, we develop and evaluate a behavioral detection framework that complements conventional text-based plagiarism detection for Vietnamese LLM-assisted writing. In particular, this work makes the following contributions:

• A Vietnamese keystroke dynamics dataset for analyzing AI-assisted writing across multiple realistic scenarios, publicly available for research on plagiarism detection and keystroke-based authentication. 1^{1}

• A comparative evaluation of temporal, rhythmic, and deep sequential modeling approaches, including a one-dimensional convolutional neural network (1D-CNN) and TypeNet.

• An analysis of detection performance across diverse writing conditions, including synthetically generated behavioral manipulations designed to simulate adversarial evasion strategies.

• An evaluation of adversarial training for improving robustness against these synthetically generated behavioral manipulations.

The remainder is organized as follows: Section II reviews related work, Section III presents the approach, Section IV reports results, and Section V concludes.

References (36)