# Poster 29377

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/29377

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

Hi, I'm Jaime Faranda. I'm going to talk about our IKEA paper. This is a joint work with Oscar Chen and Nil Nanda.
This work we try to make progress into understanding hallucinations in large language models and in particular we focus on studying how models process entities. We consider four types of entities in this work. We consider movies, cities, songs and player names and we first feed our base pre-trained language model this kind of prompt where we have an entity name, a relation and the model has to predict the attribute.
and based on how accurately they predict the attribute and how often they predict correctly the attribute for a certain entity, we can consider it to be a known entity or an unknown entity. Now in this work we use sparse autoencoders or SAE, which is an interpretability technique that allows you to extract features from hidden states of neural networks.
We use the GemmaScope and LAMA scope releases, which are pre-trained assays on the base models of Gemma and LAMA.
Once we have these two subsets of entities, the known and the unknown entities, we fit the models, prompts having these entities and we look at the SAE latent activations which are the values after the activation function in the SAE and we compute what we call the separation scores.
which tell us how often this SA latency activate on known entities versus unknown entities. And what we see is that there is a subset of these latents that seem to predict very well whether the model knows or it doesn't know the entity that is processing. So we place the SAE in the last token of the entity here.
We particularly refer to the paper for more details, but we consider a single known entity latent based on selecting out of those in the subset that works the best across different entity types and we consider the known and the unknown entity latent for each SAE.
As an example, we can see that the known entity latent can give us larger values when processing top movies in terms of popularity versus unpopular movies and the other way around for the unknown entity latent. As a funny example, you can modify the title of a movie, change it from the Lord of the Rings to the Man of the Rings and you will make the unknown entity latent fire.
And even though we consider four entity types in this work, we see that the behavior is pretty general. It tends to activate on different types of entities. We also try to understand what's the role of these directions inside the model. And we look into chat-based versions of the models. And we feed the model with questions about an entity.
And we modify the SAE latent activation by increasing, for example, the known entity latent and we observe that you can make them all hallucinate about a fake player like Wilson Brown. And you can make the model refuse to answer about a very well-known movie, sorry, player name like LeBron James.
We see a general trend across models that when you stay with the unknown entity latent you tend to increase refusal rates. We also look at attention. We see that information propagates from the last token of the entity towards the last position and then when you can steer the model
with the unknown entity latent and in this way you make the model attend less to the entities tokens and you can increase the attention paid to the entity tokens by increasing the value of the known entity latent
So they seem to play a role in how attention works when processing an entity. And finally, we also discovered what we call uncertainty directions, where instead of processing the entity tokens, we place the SAE on the last tokens of the chat-based template. And we observe that you can pretty accurately predict whether a model is going to make a mistake on the...
question and we see some interesting patterns like this essay latent activating on random text that seem to represent things being unknown and they also this latent also interacts with the tokens increases the value of the tokens related to unknown stuff thanks
