Factual Self-Awareness in Language Models: Representation, Robustness, and Scaling

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Tamoyan, Hovhannes, Dutta, Subhabrata, Gurevych, Iryna
Natura: Preprint
Pubblicazione: 2025
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915307699830784
author Tamoyan, Hovhannes
Dutta, Subhabrata
Gurevych, Iryna
author_facet Tamoyan, Hovhannes
Dutta, Subhabrata
Gurevych, Iryna
contents Factual incorrectness in generated content is one of the primary concerns in ubiquitous deployment of large language models (LLMs). Prior findings suggest LLMs can (sometimes) detect factual incorrectness in their generated content (i.e., fact-checking post-generation). In this work, we provide evidence supporting the presence of LLMs' internal compass that dictate the correctness of factual recall at the time of generation. We demonstrate that for a given subject entity and a relation, LLMs internally encode linear features in the Transformer's residual stream that dictate whether it will be able to recall the correct attribute (that forms a valid entity-relation-attribute triplet). This self-awareness signal is robust to minor formatting variations. We investigate the effects of context perturbation via different example selection strategies. Scaling experiments across model sizes and training dynamics highlight that self-awareness emerges rapidly during training and peaks in intermediate layers. These findings uncover intrinsic self-monitoring capabilities within LLMs, contributing to their interpretability and reliability.
format Preprint
id arxiv_https___arxiv_org_abs_2505_21399
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Factual Self-Awareness in Language Models: Representation, Robustness, and Scaling
Tamoyan, Hovhannes
Dutta, Subhabrata
Gurevych, Iryna
Computation and Language
Artificial Intelligence
Machine Learning
Factual incorrectness in generated content is one of the primary concerns in ubiquitous deployment of large language models (LLMs). Prior findings suggest LLMs can (sometimes) detect factual incorrectness in their generated content (i.e., fact-checking post-generation). In this work, we provide evidence supporting the presence of LLMs' internal compass that dictate the correctness of factual recall at the time of generation. We demonstrate that for a given subject entity and a relation, LLMs internally encode linear features in the Transformer's residual stream that dictate whether it will be able to recall the correct attribute (that forms a valid entity-relation-attribute triplet). This self-awareness signal is robust to minor formatting variations. We investigate the effects of context perturbation via different example selection strategies. Scaling experiments across model sizes and training dynamics highlight that self-awareness emerges rapidly during training and peaks in intermediate layers. These findings uncover intrinsic self-monitoring capabilities within LLMs, contributing to their interpretability and reliability.
title Factual Self-Awareness in Language Models: Representation, Robustness, and Scaling
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2505.21399