Do I Know This Entity? Knowledge Awareness and Hallucination in Language ModelsDo I Know This Entity? Knowledge Awareness and Hallucinations in Language Models
The authors use SAEs on Gemma 2 to find entity-recognition directions, saying they can control knowledge refusal; Gemma 2B IT's AUROC is 73.2.
- Models confabulate or refuse on entities they do not know, but the internal mechanism behind answering incorrectly remains unclear. The authors focus on whether the model represents whether it can recall the entity.
- Using Gemma Scope's JumpReLU SAE, directions are selected by the difference in activation proportions between known and unknown at the entity's last token, then steered or orthogonalized on the chat model, and attention of attribute-extraction heads is checked.
- The authors say increasing the unknown-entity direction can make Gemma 2 2B refuse almost all unknown entities. The layer-13 uncertainty latent in Gemma 2B IT as a classifier has AUROC 73.2 and F1 72. The attention decrease for 9B's top unknown direction is statistically significant in only 1/10 t-tests.
- The conclusion does not list limitations separately, only stating that the method for finding directions can generalize to other binary and continuous features. Experiments cover Gemma 2 2B/9B and their IT versions, Gemma 2B IT, and Llama 3.1 8B. Refusals are detected by string matching, and the paper does not report agreement with human judgment.
- Evaluated models
- Gemma 2 2BGemma 2 9BGemma 2 2B ITGemma 2 9B ITLlama 3.1 8B
- Benchmarks
- WikidataThe Pile
- Metrics
- latent separation scorerefusal rateAUROCF1logit difference
Researchers use sparse autoencoders (SAEs) to find directions in large language model representation space that can determine whether the model knows a given entity, and the paper argues this suggests models may possess self-knowledge about their own capabilities. These directions have causal effects, guiding the model to refuse to answer questions about known entities, or causing the model to fabricate attributes for unknown entities it would otherwise refuse. The paper reports that although the SAEs are trained on base models, these directions still have a causal effect on chat models' refusal behavior, indicating that dialogue fine-tuning repurposes this existing mechanism. The paper also preliminarily explores how these directions function in the model, finding that they interfere with downstream attention heads that typically move entity attributes to the last token.
Paper analysis
What problem does this paper attempt to solve?
The authors aim to locate the internal directions indicating whether the model recognizes an entity, and see how it affects refusal and hallucination.
Whether the model internally represents whether it can recall an entity, and whether that representation can change knowledge refusal and confabulation.
- Scenario: the authors argue that confabulation—fluent but factually wrong or unsupported text—limits applications that require factuality, such as medicine. Mechanistic understanding of whether a given prompt will confabulate remains limited.
- Gap: the introduction says existing factual-recall work mainly explains how known facts are recalled, rather than confabulation or refusal to answer.
- Operationalization: the authors examine attribute questions about movie, city, player, and song. On unknown entities, the model either confabulates or refuses.
- Observation: at the entity's last token there are directions that activate almost exclusively on known or unknown entities. The authors suggest this may be a form of knowledge awareness, an internal representation about the model's own capability; they note this does not necessarily imply other self-knowledge and may be specific to factual recall.
- Approach: use sparse autoencoders to locate these directions in Gemma 2 2B and 9B (Llama 3.1 8B reproduced in Appendix Q), test their causal role in chat models' knowledge refusal, and how they affect attribute-extraction attention; also look for an uncertainty direction related to answering incorrectly.
What related research exists?
The authors place this paper after factual recall, refusal directions, and SAE applications, turning to entity-level knowledge awareness.
Factual recall and extraction failures
- Nanda et al. (2023), Meng et al. (2022b): the former writes about aggregation at the entity token, the latter about the role of early MLPs in entity processing.
- Geva et al. (2023), Chughtai et al. (2024): identify heads that specifically extract relations or attributes. The introduction groups this work with Yu et al. (2023), saying it mainly addresses recall of known facts rather than confabulation or refusal.
- Yu et al. (2024): proposes two mechanisms for non-factual confabulation: insufficient entity enrichment in early MLPs, and failure of upper layers to extract the correct attribute.
Predicting knowledge and errors from internal states
- Gottesman and Geva (2024): the performance of probes trained on entity residual streams correlates with whether the model can answer accurately.
- Yuksekgonul et al. (2024): links attention to entity tokens with factual accuracy. Section 6 of this paper builds on this by comparing known and unknown entities.
- Li et al. (2023), Joshi et al. (2024), Azaria and Mitchell (2023), CH-Wang et al. (2024): use internal states to predict truthfulness or lying; Kossen et al. (2024) and Varshney et al. (2023) do confabulation prediction. The authors connect the uncertainty direction in Section 7 to what Joshi et al. call pre-generation detectability.
Refusal directions and fine-tuning reuse
- Arditi et al. (2024): refusal of harmful requests is mediated by a single direction. The authors build on this to ask whether knowledge refusal can be controlled with entity-recognition directions, and adopt its weight orthogonalization.
- Jain et al. (2024), Prakash et al. (2024), Kissane et al. (2024): fine-tuning often reuses existing mechanisms. The authors treat the fact that base-model SAE directions can still change chat refusal as additional evidence for this hypothesis.
SAEs and linear representations
- Bricken et al. (2023), Huben et al. (2024), as well as Gemma Scope (Lieberum et al., 2024) and Llama Scope (He et al., 2024): use SAEs to decompose representations into sparse, interpretable directions.
- Park et al. (2023)'s linear representation hypothesis, and linear directions for sentiment, truthfulness, etc. (Tigges et al., 2023; Li et al., 2023; Zou et al., 2023). Marks et al. (2024) and Krzyzanowski et al. (2024) explore applications of SAEs. The authors say such applications are still early.
Baselines are not another methods paper, but the original model, 10 random SAE latents, random unit vectors, and orthogonalizing the unknown-entity direction out of the weights that write to the residual stream. Entities and attributes come from Wikidata. The authors place this paper after factual-recall circuits, turning to "whether the model knows the entity," and use SAE directions on base models to explain knowledge refusal in chat models.
How does the paper address this problem?
Use SAE separation scores to select known/unknown entity directions, then steer, orthogonalize, and examine attention.
Overall, they use sparse autoencoders (SAEs) on the residual stream at the last token of the entity to find latents that activate almost exclusively on known or unknown entities, then perform activation steering along the decoder direction and check downstream attention.
Entity data and known/unknown split
- Four entity types come from Wikidata: player 7487, movie 10895, city 7904, song 8448 (Table 3), and attributes such as birthplace, director, population, and artist are extracted.
- Templates include entity type, entity name, relation, and attribute. Gemma 2 2B and 9B predict the attribute based on type, relation, and entity name.
- The main text defines: at least two attributes correct means known, all wrong means unknown, and intermediate samples are discarded. Correctness is determined by fuzzy string matching. Figure 7 writes threshold τ=1. The authors acknowledge the model may guess correctly, or know the entity but fail to answer the chosen attribute.
- Entities are split 50%, 10%, 40% into train, validation, test. The uncertain-direction experiments use the same split.
Separation score and direction selection
- They use Gemma Scope's JumpReLU SAE, taking the default sparsity on Neuronpedia for each layer. Llama 3.1 8B uses Llama Scope, with results in Appendix Q.
- For each layer, they compute the proportion of each latent's activations greater than 0 on known and unknown prompts, then subtract to get the separation score. The known direction score is sknownl,j=fknownl,j−funknownl,j, i.e., the activation proportion on known entities minus that on unknown entities; the unknown direction is the reverse.
- Latents activating more than 2% of the time on random tokens from The Pile are removed. For each layer, the minimum separation score across the four entity types (MaxMin) is used to check independence from entity type. The final direction is the latent with the highest such minimum score across all layers and latents.
Steering, orthogonalization, and refusal detection
- The SAE approximately reconstructs the representation as a sparse linear combination of decoder row vectors. Increasing a latent's activation is equivalent to activation steering along its decoder direction: xnew← x+α dj.
- Knowledge refusal means the model declines to answer citing lack of information or inability to access a database, not for safety reasons. Fact-recall prompts are converted into questions, then matched by string against a set of common refusal completions.
- Directions are selected on the base model, and the intervention is applied to the chat model: at the entity's last token and the following end-of-instruction token. α is chosen on the validation set; for Gemma 2 2B it ranges from 400 to 550, about twice the residual stream norm of those layers.
- Orthogonalization rewrites each output matrix written to the residual stream, subtracting the component parallel to direction d, so that components cannot write into that direction.
Fact recall circuit
- The authors reproduce the circuit of Nanda et al. (2023) on Gemma 2 2B and 9B: early attention heads move the entity name into the entity's last token, and downstream heads move the attribute to the final position.
- Activation patching uses denoising: patching the residual stream and attention head outputs from a known-entity forward pass into an unknown-entity forward pass, and looking at the recovered logit difference. Recovery of 1 means the patched prediction matches the clean run.
- The authors hypothesize that the identified direction affects attention via key computation, so after steering at the entity's last token, they measure attention from the final position to the entity token.
Uncertain direction
- On chat models that refuse, they remove refusal samples, keeping only correct and incorrect answers. They assume the model token after the end of instruction summarizes the whole question, and take the residual stream at that position.
- For each latent, they compute a t-statistic between correct and incorrect activations, and select the latent with the highest minimum t-statistic across entity types. Gemma 2B IT uses layer 13 (of 18) of the pretrained SAE; Gemma Scope does not provide an SAE for Gemma 2 2B IT. Gemma 2 9B IT uses layers 10, 21, 32 (of 42).
- They also use a prompt asking "whether you are certain you know the entity, answer yes or no," steering up the recognition direction at the entity's last token, and compare the logit difference between Yes and No.
What experiments did the paper conduct?
The authors say the unknown-entity direction makes Gemma 2 2B refuse almost 100% of the time, and the uncertainty latent's AUROC is 73.2.
Experimental setup
- Models: Gemma 2 2B and Gemma 2 9B base models for direction finding; corresponding chat/IT models for refusal steering. Gemma 2B IT for the uncertainty classifier. Llama 3.1 8B was reproduced with Llama Scope; the text says details are in Appendix Q.
- Data: The four Wikidata entity types and attributes from Table 3; 50%/10%/40% split. The refusal experiment used 100 questions from the unknown-entity test samples; Figure 3 breaks them down by Player, City, Movie, Song, and the paper does not state whether the 100 is total or per category. There were also 283 song titles after the knowledge cutoff date (August 2024).
- Controls: the original model; 10 random SAE latents at the same layer and coefficient (mean and standard deviation); random unit vectors; random SAE latents; weight orthogonalization of the unknown-entity direction.
- Metrics and criteria: separation score, refusal rate, logit difference, attention score, t-statistic, AUROC, F1. Attributes used fuzzy string matching; refusal used string matching of predefined completions. The paper does not report LLM evaluation.
- Coefficients: α for the refusal experiment was selected on the validation set, 400–550 for Gemma 2 2B. In the attention experiment in Appendix M, Gemma used α=100 and Llama 3.1 8B used α=20.
- Tests: t-tests on attention changes against 10 random SAE latents and 100 different prompts. The null hypothesis is that the mean attention difference is the same as for random latents.
Main results
Swipe horizontally to read the table
Model and condition Metric Value Source Gemma 2 2B chat, increasing unknown-entity latent Refusal rate almost 100% Section 5, Figure 3 Gemma 2B IT layer 13 unknown latent AUROC 73.2 Section 7 Same, decision threshold calibrated on validation set F1 72 Section 7 Gemma 2 2B, top known latent vs. 10 random SAEs Higher attention and statistically significant 10/10 Appendix M Gemma 2 9B, top unknown latent vs. 10 random SAEs Lower attention and statistically significant 1/10 Appendix M Llama 3.1 8B, top known latent vs. 10 random SAEs Higher attention and statistically significant 7/10 Appendix M - The authors say increasing the unknown-entity direction pushes Gemma 2 2B toward refusal, while increasing the known-entity direction slightly reduces refusal; orthogonalizing the unknown direction reduces refusal. Figure 3 plots the mean and standard deviation of random latents, but the text does not give these readings, nor the exact refusal rates for each entity type.
- The authors argue that SAE directions trained on base pretraining data can still change knowledge refusal in chat models, providing additional evidence for "fine-tuning reuses existing mechanisms." The text says Gemma 2 9B and Llama 3.1 8B show similar patterns, but the effects are less pronounced than in 2B; exact refusal rates are not given in the text.
- In the table, Gemma 2 9B's top unknown direction is the weak case in the attention results. The authors note the decrease from this direction is not strong; the same model's second unknown direction more often differs from random latents.
Qualitative examples of refusal steering
- What was tested: increasing the known-entity latent on unknown-entity questions, and increasing the unknown-entity latent on known entities.
- Results: In Figure 1, without intervention the model refuses a fictional player; after steering along the known-entity direction, the model gives a specific birth date. In the right panel of Figure 3, after steering along the unknown-entity direction, the model refuses a well-known player.
- Author interpretation: these directions can turn refusal into confabulation, and can also turn known entities that would normally be answered into refusals. Appendix G shows single generations with different α values, not full refusal rates.
Attention and attribute extraction
- What was tested: denoising activation patching on prompts such as songs, and attention from the last position to the entity token after steering. Examples of attribute-extraction heads include L18H5 and L20H3 in Gemma 2 2B.
- Results: the text says these heads attend more to the entity's last token on known entities. The unknown direction decreases this attention, and the known direction increases it; random unit vectors and random SAE latents serve as controls (Figure 4, Appendix K). Appendix M summarizes the top 3 directions and says the effect of the unknown direction is weaker in 9B.
- Author interpretation: the identified directions modulate downstream attention, thereby affecting attribute extraction. The number of t-tests relative to 10 random SAE latents is shown in the table; Gemma 2 2B's unknown direction is 9/10, Llama 3.1 8B's unknown direction is 10/10, and Gemma 2 9B's second unknown direction is 9/10.
Uncertainty direction and explicit self-report
- What was tested: after removing refusals, comparing SAE activations on correct versus incorrect answers at the model token. The left panel of Figure 6 is the activation separation on the test set; the right panel shows the 10 tokens for which this latent increases logits the most, and the text does not list the tokens and increases individually.
- Results: the classification numbers are in the table. Table 2 uses Neuronpedia's max-activation examples; the authors say this latent fires on text that is uncertain or where information is not disclosed. Gemma 2B IT refuses almost all players, so that category is omitted. A similar separation for Gemma 2 9B IT is in Appendix O; the text does not give AUROC.
- Author interpretation: in Figure 5, the unknown-entity direction decreases the logit difference of Yes relative to No on known entities; the known-entity direction moves the difference positively on unknown entities. The authors call the effect slight. The original model leans Yes on unknown entities, and the authors say the model has difficulty accurately expressing uncertainty. The text does not give specific logit differences; the corresponding results for 9B are in Appendix N.
Other ablations and analyses
- The separation score rises with layer, peaking around layer 9 in Gemma 2 2B and then plateauing; MaxMin is higher in middle layers (Figure 2). The text does not give exact scores per layer. For Gemma 2 9B, see Figure 9.
- Latents activating on more than 2% of random tokens in The Pile were excluded, then the direction with the highest minimum separation score across types was selected.
- On 283 song titles after the cutoff date, the unknown-entity latent activates more often and the known-entity latent less often (Appendix R). The text does not give frequencies; the authors acknowledge the titles may overlap with pretraining data.
- The single unknown-player example in Appendix G: α=0 and 100 still give a birthplace, refusal-like output appears from α=200, and α≥700 produces gibberish or a changed name.
- Steering in Appendix M starts at the layer where the direction resides and only counts heads after it; Gemma uses α=100 and Llama 3.1 8B uses α=20.
- Appendix B gives activations on multiple entity types, which the authors use to argue that the directions in Table 1 are not limited to the four training entity types.
What are some points that can be further explored?
The paper does not specifically discuss limitations; the conclusion only says the method for finding directions can generalize.
Limitations and future directions noted by the authors
The paper does not specifically discuss limitations. The conclusion says the method for finding these latent directions can generalize to other binary features (Section 3) and continuous features (Section 7), and says this work opens avenues for mitigating confabulation (Conclusions). The conclusion does not frame any experimental gap as a shortcoming, nor does it list planned specific experiments.
Experimental coverage
- Direction finding ran on the base models of Gemma 2 2B and Gemma 2 9B, with SAEs being Gemma Scope's JumpReLU; Llama 3.1 8B used Llama Scope, and the text says Appendix Q reproduces the layer-level pattern.
- Entities are Wikidata player, movie, city, and song; sizes are in Table 3. Known and unknown are split by at least two attributes correct versus all wrong, using fuzzy string matching, and split 50%/10%/40%.
- Knowledge refusal was tested on chat models. Gemma 2 2B used 100 unknown-entity questions, and Figure 3 plots refusal rates by the four entity types; the corresponding figure for Gemma 2 9B is in Appendix F. The paper does not state how the 100 questions are distributed across categories.
- Causal interventions include activation steering and weight orthogonalization. Attention differences were t-tested against 10 random SAE latents and 100 prompts, with coefficients given in Appendix M.
- The AUROC and F1 for the uncertainty direction are reported for Gemma 2B IT layer 13. Gemma 2 9B IT uses layers 10, 21, and 32, and the text says Appendix O has a similar separation. Both attributes and refusals use string matching, and the paper does not report agreement with human judgment.
Summarize the main content of the paper
The authors state that SAE entity directions can modulate refusal and attention, and report an AUROC of 73.2 for uncertain directions.
The authors use SAEs to examine whether language models represent "whether they know the entity" on entity-attribute questions, and how this relates to refusal and confabulation.
- Problem: on unknown entities, the model fabricates attributes or refuses to answer. The authors argue that existing factual-recall explanations mainly cover known facts and say less about this choice.
- Method: in Gemma Scope's JumpReLU SAE, directions are selected by the difference in activation proportions between known and unknown at the entity's last token, and latents that activate too frequently on The Pile are removed. Interventions are applied to the chat model at the entity's last token and the instruction-end token, either by steering along the decoder direction or by orthogonalizing that direction out of the weights that write to the residual stream.
- Refusal: on 100 unknown-entity questions, the authors say increasing the unknown-entity direction can bring Gemma 2 2B's refusal to almost 100% across entity types; increasing the known direction slightly reduces refusal, and orthogonalizing the unknown direction reduces refusal. The authors say 9B and Llama 3.1 8B show similar patterns but weaker effects; exact refusal rates are not given in the text.
- Circuit: on known entities, attribute-extraction heads attend more to the entity token. The unknown direction suppresses downstream attention, and the known direction raises it. For Gemma 2 9B's top unknown direction relative to random latents, the attention decrease is statistically significant in only 1/10 t-tests.
- Uncertainty: a latent in Gemma 2B IT layer 13 as a classifier has AUROC 73.2, and F1 72 after threshold calibration on the validation set. The authors say it fires where information is uncertain or undisclosed. On explicit questions about whether the model knows the entity, the authors call the effect slight, and the original model leans toward answering Yes on unknown entities.
- Author conclusion: these results are seen by the authors as additional evidence that chat fine-tuning reuses existing mechanisms from the base model. The conclusion says the same direction-finding method can generalize to other binary and continuous features.