Idiosyncrasies in Large Language Models

Mingjie Sun, Yida Yin, Zhiqiu Xu, J. Zico Kolter, Zhuang Liu

TL;DR

Large Language Models (LLMs) possess unique, identifiable "fingerprints" in their generated text that allow them to be distinguished from one another with startling precision. By fine-tuning simple text embedding models, researchers achieved over 97% accuracy in identifying which major model (e.g., ChatGPT, Claude, Gemini) produced a specific snippet of text, revealing that these idiosyncrasies are deeply embedded in both word-level statistics and high-level semantic content.

What Problem Does This Paper Address?

As AI-generated content becomes ubiquitous, determining its provenance—the specific model that created it—is increasingly critical for accountability, transparency, and security. While significant research has focused on distinguishing human-written text from AI-generated text, there has been surprisingly little investigation into whether we can distinguish between different AI models.

If LLMs all use similar Transformer architectures and are trained on overlapping datasets (like Common Crawl and Wikipedia), do they end up "speaking" the same way? This paper explores whether unique stylistic and semantic patterns—idiosyncrasies—exist for each model and how robustly these patterns persist across different tasks and transformations.

Methods

The authors frame the problem as a synthetic N-way classification task: given a text output, a classifier must predict which of $N$ candidate LLMs generated it.

The core approach involves:

  1. Classification Framework: Fine-tuning sequence embedding models (primarily LLM2vec, but also BERT, GPT-2, and others) with a simple linear classification head.
  2. Controlled Interventions: To isolate the source of these idiosyncrasies, the authors applied various transformations to the text before classification, such as:
  3. Structural: Shuffling words or letters and stripping special characters.
  4. Formatting: Retaining only markdown elements (bolding, lists, headers).
  5. Semantic: Using an external LLM to paraphrase, translate, or summarize the outputs to see if the "fingerprint" survives a change in exact wording.
  6. Qualitative Analysis: Using "LLM-as-a-judge" to generate natural language descriptions of each model's unique style.
Figure 1. Our framework for studying idiosyncrasies in Large Language Models (LLMs). We show that each LLM is unique in its expression. In the example shown here on ChatGPT, Claude, Grok, Gemini, and DeepSeek, a neural network classifier is able to distinguish them with a near-perfect 97.1% accuracy.

Datasets

The study utilized several diverse prompt datasets to generate model outputs:

  • UltraChat: A large-scale dialogue and instruction dataset used for chat and instruct models.
  • FineWeb: Used to generate prompts for base (non-fine-tuned) models.
  • Cosmopedia, LmsysChat, and WildChat: Used specifically to test "out-of-distribution" generalization—training on one dataset and testing on another.

For each model, they collected 11,000 text sequences, split into 10,000 for training and 1,000 for validation.

Key Insights and Ideas

  • Word Choice is the Key: The idiosyncrasies are primarily rooted in word-level distributions rather than letter-level patterns. While letter frequencies are nearly identical across models, word frequencies vary significantly. For example, Claude uses common words like "the" and "and" much less frequently than its competitors.
  • The First Token Matters: Remarkably, for chat-tuned models, a classifier can achieve ~50% accuracy (in a 5-way task) using only the very first token of the response. This suggests that models have highly idiosyncratic "opening moves."
  • Semantics Over Syntax: The "fingerprint" isn't just about specific words; it's about the "vibe." Classifiers maintained high accuracy even when text was translated into Chinese or paraphrased, suggesting the models have unique ways of structuring information and choosing semantic depth.
  • Synthetic Inheritance: If you train a model (like Llama) on synthetic data generated by another model (like ChatGPT), the student model inherits the teacher's idiosyncrasies. This has major implications for model distillation and the "model collapse" debate.
  • Leaderboard Vulnerability: Because models are so distinguishable, the authors warn that voting-based leaderboards like Chatbot Arena could be manipulated by automated scripts that identify a target model and vote for it consistently.
Figure 5. Frequencies of words and letters. The top 20 most frequently used words of LLMs (left) exhibit distinct patterns for each model, but their letter frequencies (right) are very similar. Results are on the chat API models.

Key Results

  • Near-Perfect Identification: The classifier achieved 97.1% accuracy in distinguishing between ChatGPT, Claude, Grok, Gemini, and DeepSeek.
  • Robustness to Length: While accuracy improves with more text, it saturates quickly. Using just 256 tokens is enough for near-peak performance.
  • Markdown as a Signal: Even when the actual text was replaced with placeholders (e.g., "xxx"), leaving only markdown formatting (headers, bolding, lists), the classifier achieved 73-77% accuracy.
  • Intra-family Distinctions: The task is harder but still possible for models within the same family; the classifier achieved 59.8% accuracy distinguishing between different sizes of the Qwen-2.5 series.
Figure 2. Ablations on input length of text embedding models. Classification accuracies improve as the text embedding models capture more context. Performance begins to saturate beyond an input sequence length of 256. Note that the three lines represent different groups of LLMs and are not directly comparable.

Limitations and Future Work

The authors acknowledge several areas for further exploration:

  • Architecture Diversity: The study focused on Transformer-based models. It remains to be seen if these findings generalize to newer architectures like State Space Models (SSMs) or diffusion-based language models.
  • The "Why": While the paper identifies where the idiosyncrasies are (words, semantics, markdown), it doesn't fully explain why they emerge—whether they are a product of the pretraining data, the specific RLHF/DPO algorithms, or system prompts.
  • Open-Set Scenarios: The current setup assumes the source model is one of a known few. Real-world applications would need to handle "unknown" models.

Summary updated

BibTeX
@inproceedings{sun2025idiosyncrasies,
  author = {Mingjie Sun and Yida Yin and Zhiqiu Xu and J. Zico Kolter and Zhuang Liu},
  title = {{Idiosyncrasies in Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=FCZ3jVzmTZ},
}
Figure