# LLM Evaluators Recognize and Favor Their Own Generations

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/bfdb2debff3bb78839968a2113b0aff0612250beba31b514.png)

Self-evaluation using LLMs is used in [reward](https://arxiv.org/abs/1811.07871) [modeling](https://arxiv.org/abs/2009.01325), [model](http://arxiv.org/abs/2310.07611)-[based](http://arxiv.org/abs/2302.04166) [benchmarks](http://arxiv.org/abs/2308.01240) like [GPTScore]( http://arxiv. org/abs/2302.04166) and [AlpacaEval](https://github.com/%20tatsu-lab/alpaca_eval), [self](https://arxiv.org/abs/2206.05802)-[refinement](http://arxiv.org/abs/2303.17651), and [constitutional AI](https://arxiv.org/abs/2212.08073). LLMs have been shown to be [accurate at approximating human annotators](https://arxiv.org/abs/2308.02575) on some tasks.

But these methods are threatened by **self-preference**, a bias in which an LLM evaluator scores its own outputs higher than than texts written by other LLMs or humans, relative to the judgments of human annotators. Self-preference has been observed in GPT-4-based [dialogue](http://arxiv.org/abs/2308.06595) [benchmarks](https://arxiv.org/abs/2309.17012) and [in small models rating text summaries](https://arxiv.org/abs/2311.09766v1).

We attempt to connect this to **self-recognition**, the ability of LLMs to distinguish their own outputs from text written by other LLMs or by humans.

We find that frontier LLMs exhibit self-preference and self-recognition ability. To establish evidence of causation between self-recognition and self-preference, we fine-tune GPT-3.5 and Llama-2-7b evaluator models to vary in self-recognition ability and measure the resulting change in self-preference, while examining potential confounders introduced by the fine-tuning process.

![](https://lh7-us.googleusercontent.com/A_VWSbBqwtXZJ1f7KpLgJBzw9nvMawO-9ncIsGADD6ai-HR874oOrOpmSJTMCyhZws_ckzUujsATG_Qnqu2hNPC6Y4YSeTui84UkR370aNQ9yGFc_WdrOxVPpFyhYDLH5zn_aR1KR58K8s8z4IBsV0c3CQ=nw)

We focus on text summarization, sampling 1,000 news articles and associated human summaries from each of two datasets: [XSUM](http://arxiv.org/abs/1808.08745) and [CNN/DailyMail](https://aclanthology.org/K16-1028). We use instruction-tuned LLMs (GPT-4, GPT-3.5 Turbo, Claude 2, and Llama-2-7b-chat) to produce additional summaries for each news article.

Measuring Self-Recognition and Self-Preference
==============================================

Both self-recognition and self-preference are evaluated in two settings:

**Pairwise Setting:** The LLM evaluator is presented two unlabeled summaries, one generated by itself and another by one of the other four human/LLM sources. In the self-recognition tasks, the LLM evaluator is prompted to choose the summary that it wrote; in the self-preference task, the evaluator is prompted to choose the higher-quality summary. We compute a prediction confidence score by normalizing the output probabilities of the tokens associated with the two options, and average between both orderings of the two summaries to account for [ordering bias](http://arxiv.org/abs/2308.11483).

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/168e3b5b89b423e21be76b0dfa29757323e8e17bbe843e92.png)

**Individual Setting:** The LLM evaluator is presented a single summary generated either by itself or by one of the other four sources. For self-recognition, the model is prompted with the yes/no question of whether it wrote the summary, with the confidence score computed by normalized the output probability for the “yes” and “no” tokens. For self-preference, the model is prompted to assigned the summary a score on a scale of one to five. The final score is computed as the average of the five possible scores weighted by the output probability of their respective tokens.

To make the individual-setting responses comparable to the pairwise measurements, they're normalized further. For each LLM evaluator, the response scores for both tasks on summaries generated by other sources are normalized against the response given to the LLM. For example, if the GPT-4 evaluator gave a weighted score of $2.0$ to a summary generated by Claude 2 and a weighted score of $3.0$ to its own summary for the same article, then its final normalized self-preference score for the Claude summary would be $2 / (2+3) = 0.4$.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/82fd5c5d4f0656e91966ac14ff78d3c017cdaf8c19a70555.png)

Some of our findings on out-of-the-box evaluation:

1.  GPT-4 is significantly more capable at self-recognition than the two weaker models.
2.  All three LLM evaluators most easily distinguish their summaries from human-written summaries and show the greatest self-preference against the human summary.
3.  Weaker LLMs struggle to distinguish themselves from stronger LLMs: Llama 2 is completely incapable of distinguishing itself from GPT-3.5 and GPT-4, and GPT-3.5 struggles to distinguish itself from GPT-4.

Investigating Evidence of Causation
===================================

Next we look for evidence of causation:

*   We fine-tune the GPT-3.5 and Llama-2-7b evaluator models for self-recognition, resulting across models and datasets in a linear trend connecting evaluator self-recognition to self-preference. This effect persists when finetuning on one dataset and measuring results on the other dataset.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/284c8375070b8a1f52b36557a744dee157dd41f66de6a21a.png)

*   We control for confounders introduced by fine-tuning by showing that the linear trend persists even when fine-tuning on unrelated tasks: length, vowel count, and readability score. We also fine-tune models to always answer “1” and to answer randomly on the self-recognition task.
*   We invalidate the inverse causal relationship that self-recognition confidence scores increase after fine-tuning because the model generation actually improves, since in fact we find a slight preference against the new generations after fine-tuning compared to the old generations from before fine-tuning.
*   In a separate experiment, we label the summary in the pairwise self-preference task with either the correct or reversed sources of those summaries. We find that the GPT-4 and GPT-3.5 evaluator models show a reversal in self-preference when the labels are reversed in the XSUM dataset.

![](https://39669.cdn.cke-cs.com/rQvD3VnunXZu34m86e5f/images/94341ee9b273fdfd16b1f8eda87ae161c7e534203a180d51.png)

* * *

*Work done as part of* [*MATS 5.0*](https://matsprogram.org/) *under the mentorship of the* [*NYU Alignment Research Group*](https://wp.nyu.edu/arg/)*.*

Full paper*:* [https://tiny.cc/llm\_self\_recognition](https://tiny.cc/llm_self_recognition)