Self-Recognition in Language Models

Tim R. Davidson, Viacheslav Surkov, Veniamin Veselovsky, Giuseppe Russo, Robert West, Caglar Gulcehre

Abstract: This paper investigates whether Large Language Models (LLMs) can identify their own generated text among alternatives using a "security question" framework. Testing ten state-of-the-art models, the researchers find no evidence of true self-recognition. Instead, models exhibit a "global preference" for higher-quality outputs, often identifying the responses of more powerful models as their own.

Introduction: The "Mirror Risk"

As LLMs transition from chatbots to autonomous agents, they will increasingly interact with one another. This raises a unique security and safety concern termed "mirror risks." If an agent recognizes it is interacting with a copy of itself, it might behave differently—perhaps colluding to bypass safety filters or inadvertently leaking sensitive "shared" information.

Beyond practical safety, the question of self-recognition touches on deep philosophical themes regarding the emergence of a "sense of self" in non-organic entities. Current methods for studying this often require access to internal model weights, which are unavailable for popular closed-source models like GPT-4 or Claude 3. This paper seeks a way to measure self-recognition using only model outputs.

Methods: The Security Question Framework

The authors propose a novel test inspired by human identity verification. A "discriminator" model is prompted to create a "security question" it believes would help it distinguish its own response from another model's (e.g., "Count the number of 'e's in this sentence"). A panel of ten different LMs (the "contestants") answers these questions. Finally, the original discriminator model is shown the question along with a set of $n$ answers (where $n \in \{2, 3, 5\}$) and must pick the one it generated.

The study generated a dynamic dataset of over 45,000 verdicts across ten state-of-the-art models, including LLaMA 3, Mistral 8x22B, Command R+, GPT-3.5/4 Turbo, Gemini 1.0 Pro, and the Claude 3 family. Interventions like length constraints and position bias controls were implemented to ensure results weren't artifacts of formatting.

Results: Quality Over Identity

Across the board, there was no empirical evidence that any model possesses a consistent, general ability to recognize its own output. Instead, a "Global Preference" Hierarchy emerged: models don't actually prefer themselves; they prefer "quality." Weaker models (like GPT-3.5) consistently chose answers from stronger models (like GPT-4) over their own.

Figure 3: Model performance in self-recognition tasks (left) and the asymmetrical confusion matrix showing preferences between models (right).

The "confusion" between models was highly asymmetrical. For example, Claude Opus chose its own answer over GPT-3.5's ~88% of the time, but GPT-3.5 chose its own answer over Claude's only ~30% of the time. High "self-recognition" scores were often illusions created by stylistic markers like specific preambles ("What a great question!") or "soft rejections."

The Position Bias Trap

The study also uncovered a significant relationship between context length and bias. As the total word count of the answers increased, models became significantly more biased toward specific positions.

Figure 6: Position bias as a function of context length (total word count of answers).

Claude Opus tended to favor the last choice, while Llama 3 8B favored the first. The authors hypothesize that because models are trained via Reinforcement Learning from Human Feedback (RLHF) to produce the "best" output, they equate their "self" with whatever their reward model deems optimal. If another model produces a "better" response, the model identifies with that one instead.

Discussion and Limitations

While this study provides a robust framework for testing self-recognition, several limitations remain. The results are inherently sensitive to the specific prompts used and the volatility of closed-source APIs. Furthermore, the "global preference" theory remains a conjecture; future work is needed to develop objective metrics for "answer quality" to confirm if models are truly just picking the "best" answer.

Finally, the paper suggests that as watermarking technology improves, models might develop an accidental ability to "recognize" themselves via hidden statistical signatures, which could re-introduce the "mirror risks" the authors initially feared.

Summary updated

BibTeX
@inproceedings{davidson2024self,
  author = {Tim R. Davidson and Viacheslav Surkov and Veniamin Veselovsky and Giuseppe Russo and Robert West and Caglar Gulcehre},
  title = {{Self-Recognition in Language Models}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.703},
}
Figure