SPOT: Text Source Prediction from Originality Score Thresholding

Edouard Yvinec, Gabriel KasserarXiv 2024 · DOI

Introduction

As Large Language Models (LLMs) become increasingly integrated into digital communication, the ability to distinguish between human-authored and AI-generated content has become a critical necessity. Existing detection frameworks often suffer from significant limitations, primarily model and domain specificity. Many detectors are over-fitted to specific architectures or specific genres of writing, failing when confronted with novel models or general prose. This paper introduces SPOT (Text Source Prediction from Originality Score Thresholding), a robust, "trust-based" approach that identifies text sources by measuring an inherent statistical property: the Originality Score.

The SPOT Methodology

The fundamental premise of SPOT is that human word choice is inherently less predictable to a transformer-based model than the model's own output. To quantify this, the authors propose the Originality Score ($O$).

The process involves passing an input text through a "reference" LLM. For every token in the sequence, the reference model generates a probability distribution for the next word. SPOT records the rank of the actual token that appeared in the text.

  • A rank of 0 indicates the token was the model's most likely prediction (low originality).
  • A high rank indicates the token was an unlikely choice for the model (high originality).

The SPOT score is calculated as the average rank of all tokens in a sentence, typically normalized on a scale of 0 to 10. Classification is then achieved through simple thresholding: if the score exceeds a predefined value ($\rho$), the text is classified as human; otherwise, it is flagged as AI-generated. This method is conceptually related to perplexity but is more robust to outliers due to its reliance on token ranking rather than raw probability.

The Originality Gap

Empirical evaluation reveals a massive "Originality Gap" between human and machine-generated text. In general prose datasets, such as Wikipedia, human originality scores are consistently 20x to 100x higher than those of LLMs.

Comparison of originality scores between human-generated text and Mistral 7B outputs, demonstrating the clear separation used for thresholding.

This gap is so pronounced that a simple linear threshold provides remarkably high accuracy across diverse datasets, including general prose, instructions (Alpaca), and professional communication (Enron emails).

Cross-Model Robustness and the "Universal Signature"

A significant finding of this research is that LLMs share a "universal signature" of unoriginality. Even when the reference model used for detection is different from the model that generated the text, the detection remains highly effective. LLMs tend to follow similar probability distributions, making them "predictable" to one another.

Originality scores across various reference models (rows) and text sources (columns). Human text consistently yields significantly higher scores regardless of which model serves as the reference.

The study demonstrates that reference models as small as 350M parameters can successfully detect text from models as large as 7B parameters. This architecture independence makes SPOT a versatile tool in an evolving AI landscape where new models are released frequently.

Domain Constraints and Efficiency

Despite its success in general prose, SPOT faces challenges in highly constrained domains. In fields like mathematics, formal logic, and computer programming, there are often very few "correct" or standard ways to express a concept. In these instances, human writing becomes as predictable as AI generation, causing their originality scores to converge and making differentiation difficult.

From a practical standpoint, SPOT is highly efficient. It requires only a single forward pass through a reference LLM, making the detection process computationally cheaper than the generation process itself. It also maintains accuracy across varying context lengths (64 to 768 tokens) and remains robust even when the reference models are quantized.

Conclusion and Future Work

SPOT provides a scalable and efficient framework for AI text detection by leveraging the inherent statistical differences between human and machine language patterns. While highly effective for general text, future research is needed to address "cyborg" text—human-edited AI content—and to evaluate the method against the most massive frontier models. Additionally, developing strategies to mitigate adversarial attacks, where users intentionally select low-probability synonyms to inflate scores, remains a key area for future exploration.

Summary updated

BibTeX
@misc{yvinec2024spot,
  author = {Edouard Yvinec and Gabriel Kasser},
  title = {{SPOT: Text Source Prediction from Originality Score Thresholding}},
  year = {2024},
  eprint = {2405.20505},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.20505},
}
Figure