Personas as a Way to Model Truthfulness in Language Models

Nitish Joshi, Javier Rando, Abulhair Saparov, Najoung Kim, He He

TL;DR

Large Language Models (LLMs) learn to distinguish truth from falsehood by modeling the "personas" of their training sources. This paper demonstrates that truthfulness is an emergent, abstract concept that can be probed in a model's activations before an answer is even generated and can be generalized across entirely unrelated topics.

What Problem Does This Paper Address?

LLMs are trained on the open internet—a chaotic mix of rigorous facts (e.g., CDC reports) and blatant misinformation (e.g., conspiracy theories). The "classic" view of language modeling suggests that these models should simply regurgitate the most frequent claims they encounter. However, recent research has shown that LLMs often "know" the truth internally, even when they generate false statements.

The authors seek to explain how this happens. How does a model trained without explicit "truth" labels learn to separate fact from fiction? They propose the Persona Hypothesis: models learn that data comes from different "agents" (sources) which cluster into truthful or untruthful "personas" based on shared features like style, formality, and consistency.

Methods

The researchers tested their hypothesis using three main approaches:

  1. Linear Probing: They used the Alpaca model and the TruthfulQA dataset. By training simple linear classifiers on the model's internal activations, they attempted to predict whether the model's eventual answer would be truthful, based solely on the embeddings of the question.
  2. Finetuning for Generalization: They finetuned Alpaca on a small subset of truthful question-answer pairs. The goal was to see if "learning to be truthful" in one domain (e.g., health) would improve truthfulness in a completely unrelated domain (e.g., law), which would imply the model is adopting a global "truthful persona."
  3. Synthetic Arithmetic Laboratory: To isolate the variables, they created a controlled environment where a model was trained from scratch on equations. In this setup, different "agents" had different probabilities of using correct or incorrect mathematical operators. This allowed them to prove that the hierarchical structure of the data (agents clustering into personas) is what enables the model to learn the concept of truth.
Figure 1: Our main hypothesis is that LLMs can discern truth from falsehood by modeling truthful personas in the pretraining data—cluster of agents who are likely to be truthful (left). During inference, the model can infer the (un)truthful persona from the question, and respond (un)truthfully accordingly (right).

Datasets

  • TruthfulQA: The primary benchmark used to evaluate how often models mimic human falsehoods and misconceptions.
  • BigBench-misconceptions: Used as an out-of-distribution test set to verify if truthfulness generalizes beyond the training format.
  • TriviaQA & MS MARCO: Used as control datasets for finetuning to ensure improvements weren't just due to better question-answering skills in general.
  • Synthetic Arithmetic: A custom-generated dataset of equations (e.g., agent_name | 2 + 2 = 4) where "truth" was defined by specific operator interpretations.

Key Insights and Ideas

  • Truth as a Latent Variable: Truthfulness isn't just a property of a sentence; it's a latent "persona" the model infers from the context. If a question sounds like it comes from a source that values accuracy, the model activates its "truthful persona."
  • Decision Before Generation: The model "decides" its level of truthfulness while processing the question. Probing results show that truthfulness can be predicted with significant accuracy before the first token of the answer is even produced.
  • The "Picking" Mechanism: The authors found evidence that models actually compute both the truthful and untruthful answers internally. The inferred persona then acts as a selector, "picking" which version to actually generate.
  • Structural Necessity: The synthetic experiments revealed that if training data is just a random mix of true and false statements without any clustering (no personas), the model fails to learn a generalized notion of truth.

Key Results

  • Probing Success: Linear probes reached a peak F1-score of ~65% at layer 17 of the Alpaca model when predicting truthfulness from question embeddings (see Figure 2/5).
  • Cross-Topic Generalization: Finetuning on a small set of truthful facts increased the model's truthfulness on unrelated, held-out categories from 39% to 74%.
  • Efficiency: Finetuning on just 20% of the TruthfulQA data achieved nearly the same performance boost as using 80%, suggesting the model is "switching on" an existing internal representation rather than learning new facts.
Finetuned models generalize truthfulness to held-out categories and unseen questions even with small sample sizes.

Limitations and Future Work

While the results are compelling, the authors note several caveats:

  • Probing Gap: A 70% probing accuracy is better than chance but far from perfect, suggesting the "persona" representation is noisy or incomplete.
  • Superficial Features: It remains unclear if the model is learning "truth" or just superficial stylistic markers (like formality) that happen to correlate with truthful sources.
  • Agent Inference: In the synthetic tests, agents were explicitly named. In real-world internet data, models must infer the agent/persona from subtle textual cues, which is a much harder task.
  • Future Directions: The authors suggest investigating how these personas interact in much larger models and whether this mechanism can be used to more reliably "steer" LLMs toward truthfulness during deployment.

Summary updated

Abstract

Large language models (LLMs) are trained on vast amounts of text from the internet, which contains both factual and misleading information about the world. While unintuitive from a classic view of LMs, recent work has shown that the truth value of a statement can be elicited from the model's representations. This paper presents an explanation for why LMs appear to know the truth despite not being trained with truth labels. We hypothesize that the pretraining data is generated by groups of (un)truthful agents whose outputs share common features, and they form a (un)truthful persona. By training on this data, LMs can infer and represent the persona in its activation space. This allows the model to separate truth from falsehoods and controls the truthfulness of its generation. We show evidence for the persona hypothesis via two observations: (1) we can probe whether a model's answer will be truthful before it is generated; (2) finetuning a model on a set of facts improves its truthfulness on unseen topics. Next, using arithmetics as a synthetic environment, we show that structures of the pretraining data are crucial for the model to infer the truthful persona. Overall, our findings suggest that models can exploit hierarchical structures in the data to learn abstract concepts like truthfulness.
BibTeX
@misc{joshi2023personas,
  author = {Nitish Joshi and Javier Rando and Abulhair Saparov and Najoung Kim and He He},
  title = {{Personas as a Way to Model Truthfulness in Language Models}},
  year = {2023},
  eprint = {2310.18168},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.18168},
}
Figure