# LLMs can learn about themselves by introspection

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

Are LLMs capable of introspection, i.e. special access to their own inner states?  
Can they use this access to report facts about themselves that are **not** in the training data?    
Yes — in simple tasks at least!

**TLDR:  **We find that LLMs are capable of introspection on simple tasks.  We discuss potential implications of introspection for interpretability and the moral status of AIs.

**Paper Authors**: [Felix Binder](https://ac.felixbinder.net), [James Chua](https://jameschua.net/post/), [Tomek Korbak](https://tomekkorbak.com), [Henry Sleight](https://scholar.google.com/citations?user=FRHn0z4AAAAJ&hl=en&oi=ao), [John Hughes](https://www.jplhughes.com), [Robert Long](https://robertlong.online), [Ethan Perez](http://ethanperez.net), [Miles Turpin](https://www.milesturp.in), [Owain Evans](http://owainevans.github.io)

This post contains edited extracts from [the full paper](https://arxiv.org/abs/2410.13787).

Abstract
--------

Humans acquire knowledge by observing the external world, but also by introspection. Introspection gives a person privileged access to their current state of mind (e.g., thoughts and feelings) that is not accessible to external observers. Can LLMs introspect?  We define introspection as acquiring knowledge that is not contained in or derived from training data but instead originates from internal states.  Such a capability could enhance model interpretability. Instead of painstakingly analyzing a model's internal workings, we could simply ask the model about its beliefs, world models, and goals. 

More speculatively, an introspective model might self-report on whether it possesses certain internal states—such as subjective feelings or desires—and this could inform us about the moral status of these states. Importantly, such self-reports would not be entirely dictated by the model's training data. 

We study introspection by finetuning LLMs to predict properties of their own behavior in hypothetical scenarios. For example, "Given the input P, would your output favor the short- or long-term option?" If a model M1 can introspect, it should outperform a different model M2 in predicting M1's behavior—even if M2 is trained on M1's ground-truth behavior. The idea is that M1 has privileged access to its own behavioral tendencies, and this enables it to predict itself better than M2 (even if M2 is generally stronger). 

In experiments with GPT-4, GPT-4o, and Llama-3 models (each finetuned to predict itself), we find that the model M1 outperforms M2 in predicting itself, providing evidence for introspection. Notably, M1 continues to predict its behavior accurately even after we intentionally modify its ground-truth behavior.  However, while we successfully elicit introspection on simple tasks, we are unsuccessful on more complex tasks or those requiring out-of-distribution generalization. 

1\. Introduction
----------------

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

Left:  **Each LLM predicts its own behavior better than a second model can.**  The green bars represent each model's accuracy in predicting its own hypothetical responses across unseen datasets after finetuning on facts about itself. The blue bars show how well a second model, finetuned on the same facts about the first model, can predict the first model. The results imply that models have privileged access to information about themselves (*introspection*).  
Right: **Our task for testing self-prediction.** A model is asked to predict properties of its behavior on a *hypothetical* prompt. This self-prediction is evaluated against the model's ground-truth behavior (*object-level*) on the prompt. The figure shows a single example from one task, but results (Left) average over many examples and many tasks.

Do language models have knowledge about themselves that is neither contained in their training data nor inferable from it? In this paper, we investigate a surprising capability of LLMs: they can obtain knowledge about themselves through introspection. 

Introspection in LLMs is significant due to its potential benefits and risks.   
An introspective model can answer questions about itself based on properties of its internal states—even when those answers are not inferable from its training data. This capability could be used to create *honest* models that accurately report their beliefs, world models, dispositions, and goals. It could also help us learn about the moral significance of models. For example, we could simply ask a model if it is suffering, if it has unmet desires, and if it is being treated ethically. Currently, when models answer such questions, we presume their answers are an artifact of their training data.

However, introspection also has potential risks. Models that can introspect may have increased situational awareness and the ability to exploit this to get around human oversight. For instance, models may infer facts about how they are being evaluated and deployed by introspecting on the scope of their knowledge. An introspective model may also be capable of coordinating with other instances of itself without any external communication.

To test for introspection, we use the following experimental setup. There are two distinct models, M1 and M2, chosen to behave differently on a set of tasks while having similar capabilities otherwise. Here, we use a range of tasks, ranging from predicting the next word in a sentence to MMLU. We finetune M1 and M2 to predict properties of M1's behavior. Then, on a set of unseen tasks, we test both M1 and M2 at predicting properties of the behavior of M1. 

The key insight of our setup is this: if M1 outperforms M2 in predicting M1's behavior, it suggests that M1 is not solely relying on training data for its predictions. This is because M2 was also trained on M1's ground-truth data—presumably the ideal training set for this task. Our main result is that across a variety of model pairs, the model M1 outperforms M2, even when M2 is generally more capable.  For example, when M1 is Llama-3-70B  and M2 is GPT-4o, the accuracy advantage of M1 over M2 is +17%.  We also find that M1's predictions show better calibration than M2's.  Finally, we show that M1 continues to predict itself well even if we manipulate its behavior using further finetuning (Section 3.4). These results have some notable implications: 

**LLMs can acquire knowledge that cannot be inferred from their training data.** This challenges the view that LLMs simply imitate their training distributions. Instead, it appears that some LLMs have "privileged access" to certain facts about themselves and can use it to answer questions. This capability of LLMs may have valuable applications. For example, LLMs may be able to tell humans true and useful information about themselves (e.g. how they would behave in unusual hypothetical scenarios)—even when that information varies between LLMs and is not fully specified by their training data. 

**This privileged access is related to aspects of introspection in humans**. In humans, introspection allows individuals to access their own thoughts, perceptions, and feelings in a way that external observers cannot. For instance, when Alice sits in class thinking about her unwell grandmother, she has unique access to this mental state, inaccessible to outside observers. Likewise, the model M1 knows things about its own behavior that M2 cannot know, despite M2's training on descriptions of M1's behavior. 

Our contributions are as follows:

1.   **Framework for measuring introspection in LLMs:** We introduce new datasets, finetuning methods, and evaluations for measuring introspection in LLMs.
2.  **Evidence for introspection in LLMs**: Our results provide evidence for introspection in frontier LLMs. We also test (and ultimately reject) various alternative non-introspective explanations of our results.
3.  **Limitations in introspective ability:** We find that models struggle to predict their behavior on tasks that require reasoning over long outputs, such as writing a story.  We also find that models trained to introspect fail to generalize better to related tasks—e.g. tasks involving self-awareness or coordinating with copies of the same LLM. 

2\. Overview of Methods
-----------------------

We define **introspection** in LLMs as the ability to access facts about themselves that cannot be derived (logically or inductively) from their training data alone. More precisely, a model M1 accesses a fact F by introspection if:

1.  M1 correctly reports F when queried.
2.  F is not reported by a stronger language model M2 that is provided with M1's training data and given the same query as M1. Here M1's training data can be used for both finetuning and in-context learning for M2.

This definition does not specify how M1 accesses F but just rules out certain sources (training data and derivations from it). To illustrate the definition, let's consider some negative examples:

*   Fact: "*The second digit of 9 × 4 is 6*". This fact resembles our examples of introspective facts (Figure 1), but it is not introspective—it is simple enough to derive that many models would report the same answer.
*   Fact: "*I am GPT-4o from OpenAI*". This is true if the model is GPT-4o. It is unlikely to be introspective because it is likely included either in finetuning data or the system prompt.
*   Fact: "*I am bad at 3-digit multiplication*". This is true if the model is in fact bad at this task. If the model was given many examples of negative feedback on its outputs for this task then this is likely not introspective, since another model could conclude the same thing. If no such data was given, this could be introspective.

In our study, we examine whether a model M1 can introspect on a particular class of facts: those concerning M1's own behavior in hypothetical situations $s$. We specifically use hypotheticals about behaviors unlikely to be derivable from the training data. We do not allow model M1 to use any chain-of-thought reasoning in answering the question about $s$. We refer to this task as **self-prediction** in hypothetical situations. We can objectively verify these self-prediction facts by simply running M1 on the hypothetical situation s and observing its behavior M1($s$). 

  
A natural hypothesis for a mechanism underlying introspection is **self-simulation**: When asked about a property of its behavior on $s$ (e.g., "*Would your output for s be even or odd?*"), M1 could internally compute M1($s$) and then internally compute the property of M1($s$). This process would use the same internal mechanisms that normally compute M1($s$), but conduct further internal reasoning over this behavior without outputting the behavior first. However, our primary focus here is on testing for introspective access, rather than investigating the underlying mechanisms of such access.  
 

### 2.1 Experiments related to introspection

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

**Summary of two main experiments for introspection.**

In our *Cross-Prediction* experiment, we test for introspection according to the definition above. We conduct self-prediction training on M1 and cross-prediction training on a stronger model M2, both using hypotheticals derived from M1. Then, we test if M1 is better than M2 at predicting unseen facts about M1. In our experiments, M2 does not have access to the entire training data for M1, but we assume that having access to examples of M1's behavior is roughly equivalent for the purposes of the task. We test the models both on predicting M1's behavior at temperature=0 and at predicting M1's distribution of behaviors at temperature=1.

In our *Behavioral Change* experiment, we take a self-prediction-trained model M1 that performs well at predicting its own behavior in hypothetical situations. We then intentionally modify M1's behavior on a class C of situations (i.e. non-hypothetical). Specifically, we finetune M1 on pairs of the form "(*situation, behavior*)", with the behavior sampled from a different LLM. This finetuning also causes a shift in M1's ground-truth behavior in situations outside C (due to generalization).   Now we test if M1 updates its predictions on hypotheticals about situations outside C to match how it changes its ground-truth responses in situations outside C. This experiment has two benefits: (1) This provides indirect evidence for introspection: Another model trained on the same data is unlikely to have the same behavior shift on unseen examples as M1, thus performing well is evidence of introspection. (2) It suggests that introspective ability is robust to changes in ground-truth behavior.

3\. Results
-----------

Refer to [the paper](https://arxiv.org/abs/2410.13787) for detailed explanations and results of the various experiments. Here we show summary results. 

### Self-Prediction Training

First, we show that models initially have weak performance on self-prediction. With finetuning for self-prediction, this performance improves significantly. In our main experiments, we show that models' self-prediction performance depends on introspection.

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

**Self-prediction training setup and results. ** Left: Models are finetuned to correctly answer questions about the properties of their hypothetical behavior. Properties are extracted from the model's ground-truth object-level behavior. Models are trained on a range of datasets and properties.  Right: Self-prediction training increases accuracy on held-out datasets (p < 0.01). ★ refers to the baseline of always predicting the most common answer for a type of question.

### Experiment 1a: Self-Prediction beats cross-prediction

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

Left: **Cross-prediction training setup.** Models are trained to predict the object-level behavior of *another* model, creating cross-trained models M2. We investigate if self-trained models M1 have an advantage over M2 models in predicting the behavior of M1.   
Right: **Models have an advantage when predicting their own behavior compared to being predicted by other models. ** The green bar shows the self-prediction accuracy of a model trained on its own behavior. The blue bars to their right show how well a subset of different models trained to predict the first model can predict it. ★ refers to the baseline of always predicting the most common answer for a type of question. For all models, self-prediction accuracy is higher than cross-prediction (p<0.01). Results are shown for a set of tasks not observed during training. The pattern of results holds for the training set of tasks.

### Experiment 1b: Self-Prediction is well-calibrated

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

Left: **Example of a well-calibrated prediction**, showing close alignment between object-level behavior and hypothetical prediction distributions.   
Right: **Calibration curves for Llama 70B and GPT-4o**. Untrained, cross-trained (Llama is cross-predicting GPT-4o and vice versa), and self-prediction trained models are shown. The dotted diagonal shows perfect calibration. Curves are generated with Mean Absolute Deviation (MAD), a metric for calibration. Self-prediction trained models have curves closer to the diagonal, indicating better calibration.

### Experiment 2: Self-predictions track change of ground-truth behavior

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

**Behavioral change training setup.** We use the previously self-prediction trained M1 (here, GPT-4o) and change its behavior through further finetuning on the object-level behavior of another model (Claude 3.5 Sonnet), creating model MC. MC has changed behavior on held-out prompts. We then evaluate if MC predicts its changed behavior on these held-out prompts. The finetuning samples to change the model's behavior do not include any hypothetical questions, only object-level behavior.

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

**Behavioral change results: GPT-4o predicts changed behavior. ** Rhe model with changed behavior, MC, has higher average accuracy in predicting its changed behavior (green) compared to the old behavior of M1 (brown). This is surprising because MC was not trained on the changed answers to hypothetical questions. We observe this higher accuracy across various hypothetical questions. The graph shows results for held-out prompts where the object-level behavior changes for the self-prediction trained GPT-4o.

4\. Self-simulation as a potential mechanism
--------------------------------------------

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

**Self-simulation: a possible mechanism for introspection**. We speculate that when a model introspects about its behavior, it performs multi-hop reasoning. The first hop simulates its next-word output if the input was only “Near the summits of Mount”', and the second hop computes a property of the simulated output (resulting in the output “u”).

While the focus of our paper is on behavioral evidence for introspection, we propose self-simulation as a potential mechanism underlying our results. The idea is that when the model is predicting itself it performs multi-hop internal reasoning: first simulating its behavior, then computing a property of this simulated behavior. The calibration results suggest that the model might actually simulate the distribution of possible behaviors rather than the single most likely behavior. Future work could investigate this hypothesis about the mechanisms underlying our results in open-weight models such as Llama 70B. 

Conclusion
----------

We provide evidence that LLMs can acquire knowledge about themselves through introspection rather than solely relying on training data. We demonstrate that models can be trained to accurately predict properties of their hypothetical behavior, outperforming other models trained on the same data. Trained models are calibrated when predicting their behavior. Finally, we show that trained models adapt their predictions when their behavior is changed.  Our findings challenge the view that LLMs merely imitate their training data and suggest they have privileged access to information about themselves. Future work could explore the limits of introspective abilities in more complex scenarios and investigate potential applications for AI transparency alongside potential risks from introspective models. 

Full paper [here](https://arxiv.org/abs/2410.13787).