arXiv:2608.24780cs.CLAug 2026

Manuscript Offprint

arXiv:2608.24780

Linear Probing Provides Robust and Efficient Detection of Machine-Generated Text

Gerrit Quaremba, Hanqi Yan, Elizabeth Black, Denny Vrandecic, Elena Simperl

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Distinguishing machine-generated text (MGT) from human-written text (HWT) becomes increasingly important due to potential misuse. However, most supervised detectors often degrade out-of-domain (OOD) and require large, diverse training sets. In this work, we analyze the linearity and quality of MGT representations and show that simple linear probes outperform a wide range of detectors while being substantially more sample-efficient. We first show that MGT and HWT latent representations are linearly separable in low-dimensional space, and provide a plausible explanation for this separability through systematic differences in their representation quality. Motivated by these insights, we train two variants of simple linear probes and evaluate them across 4 benchmarks against 16 baselines. Probes consistently improve OOD detection (+11 AUC), requiring solely <100 samples to reach near-peak performance. We show that this transferability arises because probes recover a shared latent MGT direction that generalizes across diverse settings. Finally, we demonstrate that probing vectors capture a continuous spectrum of “machineness”, highlighting their potential for fine-grained estimation of AI-edited text. Overall, our work provides insights into latent-space differences between MGT and HWT and demonstrates the potential of linear probes as robust and sample-efficient MGT detectors. We release our code on github.

1 Introduction

Large language models (LLMs) now generate human-like text at scale, and their output has spread rapidly across platforms such as social media (Sun et al., 2025) or academic writing (Liang et al., 2024). This proliferation raises the risk of potential misuse, including misinformation campaigns (Goldstein et al., 2023) or plagiarism (Hutson, 2024). In response, a growing line of work builds detectors that separate machine-generated text (MGT) from human-written text (HWT) (Crothers et al., 2023; Wu et al., 2025a).

Prior work groups MGT detectors into two families (Wu et al., 2025a): zero-shot methods (e.g., Hans et al., 2024; Bao et al., 2023) and supervised classifiers (e.g., Hu et al., 2023; Verma et al., 2024). 1^{1} While supervised approaches dominate recent benchmarks (Macko et al., 2025; Quaremba et al., 2026), their practical utility remains limited: they often generalize poorly to out-of-domain (OOD) settings (Wu et al., 2025a; Doughman et al., 2025) and require large, diverse training corpora (Hu et al., 2023). Additionally, a recent line of work leverages how LLMs rewrite machine- versus human-written text differently (Mao et al., 2024; Wu et al., 2025b), but adds substantial overhead from generating rewrites.

A promising direction for overcoming these limitations lies in the Linear Representation Hypothesis (LRH) (Park et al., 2023), which posits that high-level concepts are encoded as linear directions in latent space. Recent work has identified such directions for concepts including truth (Marks and Tegmark, 2024) or political ideology (Kim et al., 2025). This raises a natural question: Are machine-and human-written text linearly separable in latent space, and if so, why? How can we exploit this structure for enhanced MGT detection?

In this work, we empirically study the latent geometry of HWT and MGT and show that simple linear probes are sufficient to improve the robustness and sample efficiency of MGT detection. We begin by visualizing that HWT and MGT are largely linearly separable in low-dimensional space, which we corroborate by reduced detection performance when increasing the complexity of nonlinear probes ( §3.1§3.1). We then investigate why this linearity emerges by analyzing both populations with

1^{1}We focus on passive detection and exclude watermarking.

four representation quality metrics (Skean et al., 2025): compared to HWT, MGT representations collapse into a compressed, more anisotropic, and lower-dimensional subspace ( §\S3.2). These systematic differences provide a plausible explanation for why a simple hyperplane can effectively separate the two in latent space.

Leveraging these insights, we train MGT probes: simple linear probes (Alain and Bengio, 2016; Nanda et al., 2023) on frozen LM representations to detect MGT. We consider two variants: layer-wise probes and a single probe trained on representations concatenated across layers. Crucially, both variants operate on PCA-reduced features, retaining only 2.4% of the original dimensions with minimal performance loss. The resulting probing vector defines a linear “machineness” direction in latent space, which we use for detection by projecting test activations onto it (Tigges et al., 2024). Across 4 benchmarks spanning 16 evaluation settings and compared against 16 baseline detectors, MGT probes improve in-domain detection by up to 18 AUC ( §\S5.2) and 11 AUC OOD ( §\S5.3).

To explain this strong generalization, we analyze probing vectors learned across diverse datasets and settings. We find that the vectors are highly aligned, indicating that probes recover a shared latent MGT direction ( §\S5.4). Moreover, probes achieve strong performance with only 10–100 training samples and exhibit substantially lower sampling uncertainty than training-based baselines ( §\S5.5). Together, our findings suggest that MGT is encoded as a compact, shared, and linearly accessible direction in latent space. This allows simple linear probes to generalize better while requiring fewer examples than more complex supervised detectors.

Lastly, we examine whether probing vectors can serve as a continuous measure of AI editing in text (Zhang et al., 2024) ( §\S5.6). We find strong correlations between probe projection scores and edit-strength metrics (Saha and Feizi, 2025), meaning that more extensively AI-edited text is projected closer to the MGT subspace. This finding suggests that the latent MGT direction encodes a continuous spectrum of “machineness,” which can be leveraged for fine-grained estimation of AI-edited text.

Our contributions are threefold:

  1. We find that human- and machine-written text are linearly separable in latent space and explain this separability through systematic differences in their representation geometry.

  2. We introduce two simple linear probe variants that recover this latent direction, improving OOD generalization over supervised detectors (+11 AUC) while exhibiting greater reliability and requiring only 10–100 training examples.

  3. We show that the learned MGT direction encodes a continuous spectrum of “machineness,” enabling fine-grained estimation of AI editing strength through probe projection scores.