You Write like a GPT

Andrea Esuli, Fabrizio Falchi, Marco Malvaldi, Giovanni PuccettiCLiC-it 2024

Executive Summary

This research explores a clever "reversal" of AI text detection: using tools designed to catch bot-written text to instead measure the originality and "non-obviousness" of human writing. By analyzing Raymond Queneau’s Exercises in Style—a book that tells the same story in 99 different ways—the researchers demonstrate that AI detectors can effectively quantify how much a specific writing style deviates from the "statistical average" produced by Large Language Models (LLMs).

The Challenge of Originality in the Age of LLMs

As LLMs become ubiquitous, human writers face a new existential question: Am I writing something an AI could have produced? Because LLMs are trained on massive corpora to predict the most probable next word, they naturally gravitate toward a statistical "average" style.

The authors argue that to write text that is truly original, informative, or creative, we should aim for styles that an LLM considers "unlikely." This paper investigates whether existing Machine Generated Text (MGT) detection methodologies can be repurposed as tools for writers to evaluate the uniqueness and stylistic characteristics of their own work.

Methodology and Datasets

The researchers employed two primary metrics to evaluate text:

  1. Log Likelihood (LL): A measure of how "expected" or probable a sequence of words is according to a specific language model.
  2. DetectGPT: A zero-shot method that detects machine-generated text by comparing the log probability of a text with slightly "perturbed" (rewritten) versions of itself.

They applied these metrics using two specific LLMs: Anita (for Italian) and Mistral (for French). The study uses Raymond Queneau’s Exercises in Style (1947) as a controlled dataset. This work provides a "parallel corpus" of 99 different literary styles (e.g., "Haiku," "Official Letter," "Slang") applied to the same trivial incident on a bus, allowing researchers to isolate the impact of style from content.

Stylistic Predictability and Cross-Linguistic Consistency

The results confirm Italo Calvino’s 1960s prediction of a "literary automaton": styles that mimic standard prose or common speech patterns received the highest "probability" scores from the AI. Notably, there was a high correlation ($R^2 = 0.805$) between the scores for the French originals and the Italian translations by Umberto Eco. This suggests that the metrics are capturing deep stylistic features that survive translation.

Correlation of Log Likelihood scores between Italian and French versions.

As shown in the scatter plot above, styles categorized as "Character" (e.g., writing as a biased or reactionary person) were highly predictable for the LLM, whereas "Permutations" (mathematical rearrangements of text) were the most alien to the models.

Key Results: The "GPT-ness" of Style

The analysis successfully categorized the 99 styles based on their "GPT-like" qualities:

  • Top "GPT-like" Styles: The "Character" and "Speech" groups consistently ranked in the top quarter. These styles rely on common idioms and standard syntax.
  • Bottom "Human-like" Styles: The "Permutation" and "Jargon" groups ranked the lowest. The AI found these styles highly improbable.
Rankings of the 99 styles by AI predictability metrics.

The metrics also identified "Style 98" as a significant outlier. This style differed completely between the French version (Loucherbem slang) and the Italian version (Reactionary), proving the sensitivity of the tools to specific linguistic choices.

Limitations and Future Work

The authors acknowledge several hurdles, including the trade-off between originality and quality; a low score means a text is "unlikely," but it doesn't necessarily mean it's good. There is also a risk of training data contamination if the LLMs were trained on Queneau’s book itself. Future work should involve a broader range of human-written texts to ensure the AI isn't just recognizing a familiar passage.

Ultimately, the paper envisions a future where writers use these "AI-detectors" as an "originality dashboard," helping them steer away from cliché and toward more distinctive, non-obvious prose.

Summary updated

BibTeX
@inproceedings{esuli2024you,
  author = {Andrea Esuli and Fabrizio Falchi and Marco Malvaldi and Giovanni Puccetti},
  title = {{You Write like a GPT}},
  booktitle = {CLiC-it},
  year = {2024},
}
Figure