Detecting AI-Authored Text in Authentic Student Writing: Evidence from PISA 2025

Nils-Jonathan Schaller, Thorben Jansen, Olaf Köller, Andrea HorbacharXiv 2026 · arXiv

TL;DR

Current AI-text detectors excel at distinguishing purely human essays from purely AI-generated ones, but they struggle with the "messy" reality of authentic student writing. This study uses keystroke-level data to show that while state-of-the-art detectors are reliable at the whole-text level, they are surprisingly fragile at the sentence level and can be easily evaded by simple "write like a student" prompts.

What Problem Does This Paper Address?

Most research on AI detection relies on "clean" datasets: researchers prompt an AI to write an essay and compare it to a human-written one. In the classroom, however, AI use is rarely all-or-nothing. Students might use a chatbot for brainstorming, copy-paste a single paragraph, or retype AI suggestions with minor edits.

This creates a "grey zone" of mixed-authorship text. If a detector is used to make high-stakes decisions about academic misconduct, we need to know:

  1. How do detectors handle partial AI use?
  2. Can they locate where the AI material is within a mixed essay?
  3. Are they robust against simple student-led evasions, like adding spelling errors or asking the AI to "sound younger"?

Methods

The authors evaluated two top-performing detection strategies from recent shared tasks:

  • Feature-based (XGBoost): This model uses 85 interpretable linguistic features (NELA set), covering style, lexical complexity, bias, and affect.
  • Embedding-based (RFCN): This approach uses a frozen Llama-3.1-8B model as a feature extractor. The text's embeddings are passed through a Refined Feature Classification Network (a compact CNN).

To create a "ground truth," the researchers used the PISA 2025 FLA dataset. Because this dataset includes keystroke and clipboard logs, the authors could trace every single character to its origin: typed by the student, pasted from the chatbot, or retyped from the chat window. This allowed them to create precise labels at both the text and sentence levels.

Datasets

The primary dataset is the PISA 2025 FLA, featuring 3,303 argumentative essays written in English by 15-year-old students in Germany.

  • Conditions: Students wrote one essay with access to a gpt-4o-mini chatbot and one without.
  • Labels: Beyond simple "AI" or "Human," the authors introduced MIXED (partially AI) and POTENTIAL_INFLUENCE (PI) (text written after using the chatbot but containing no traceable copied/retyped material).
Label distribution in the experimental subset

Key Insights and Ideas

  • The "Lexical Complexity" Trap: The feature-based detector relies heavily on the fact that AI-generated text is generally more "sophisticated"—using longer words and more complex punctuation. However, this is a fragile signal. A single prompt asking the AI to use simpler language can effectively "blind" this type of detector.
  • Embeddings are More Robust (Mostly): The Llama-based detector was remarkably resilient to style-level rewriting at the text level, maintaining high recall even when the AI was prompted to sound like a student. This suggests it captures deeper structural properties of LLM output that survive surface-level changes.
  • The Sentence-Level Struggle: Detecting AI at the sentence level is much harder. While the embedding-based model performed well on original sentences, its performance tanked when those sentences were rewritten by a different model (like Qwen3).
  • Spelling is a Red Herring: Teachers often report using the absence of spelling errors as a cue for AI. The study found that automated detectors don't actually rely on this; correcting human errors or adding errors to AI text had almost no impact on the models' accuracy.

Key Results

On the core task of separating 100% human from 100% AI text, both models performed excellently at the text level, with macro-F1 scores of 0.95 (XGBoost) and 0.96 (RFCN).

Macro-F1 of the binary detectors

However, the "grey zone" proved difficult. When tested on POTENTIAL_INFLUENCE texts, both models classified them as human-written ~95% of the time. This suggests that using AI for "ideas" or "language help" without direct copying leaves no detectable footprint.

The most dramatic finding came from the rewriting experiment. When AI text was rewritten with a "STUDENT" prompt, the feature-based model's recall dropped from 0.92 to 0.60. In contrast, the embedding-based RFCN maintained a recall of 0.99 at the text level, though it dropped to 0.90 at the sentence level.

Detection results on rewritten AI test items

Limitations and Future Work

  • Single Model Bias: All AI text in the original dataset was generated by gpt-4o-mini. While the authors tested robustness using Qwen3, the training was model-specific.
  • Manual Thresholds: The "gold labels" rely on manually set similarity thresholds (e.g., 90% similarity for retyping), which might miss more creative paraphrasing.
  • The "PI" Mystery: The study confirms that "Potential Influence" (using AI for ideas) is invisible to current detectors. Future work needs to investigate what exactly happens in the student's writing process after they interact with a chatbot.

The authors conclude with a warning: AI detectors should not be used as standalone evidence for misconduct, especially given their uncertainty regarding mixed and rewritten text.

Summary updated

Abstract

AI-text detectors reach near-perfect scores in evaluations that contrast fully human-written texts with texts generated from researcher-designed prompts. In authentic student writing, however, AI use is voluntary and often partial. We study this setting with the PISA 2025 FLA dataset, in which 15-year-olds in Germany wrote English argumentative essays with and without access to a gpt-4o-mini-based chatbot. Keystroke, clipboard and chat logs let us trace every character of the final essay to its origin. From this provenance, we derive text- and sentence-level labels for human-written, AI-generated and mixed text, and for text written after chatbot use without traceable AI material. We evaluate a feature-based detector and a classifier on frozen Llama-3.1-8B embeddings, both adapted from top-ranked shared-task systems. Both separate AI from human text reliably (macro-F1 up to 0.96 for texts and 0.95 for sentences), independently of spelling errors. The feature-based detector, however, relies on lexical complexity, which a simple student-style rewriting prompt removes (AI recall 0.92 $\to$ 0.60 with gpt-4o-mini, 0.41 with Qwen3). The embedding-based detector stays robust for whole texts (AI recall $\geq$ 0.94) but not for single sentences (AI recall as low as 0.59). Mixed text falls between the two classes, and text without traceable AI material is classified as human-written in about 95\% of texts.
BibTeX
@misc{schaller2026detecting,
  author = {Nils-Jonathan Schaller and Thorben Jansen and Olaf Köller and Andrea Horbach},
  title = {{Detecting AI-Authored Text in Authentic Student Writing: Evidence from PISA 2025}},
  year = {2026},
  eprint = {2611.12487},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.12487},
}
Figure