Challenges with unsupervised LLM knowledge discovery

Sebastian Farquhar, Vikrant Varma, Zachary Kenton, Johannes Gasteiger, Vladimir Mikulik, Rohin Shah

Abstract

We show that existing unsupervised methods on large language model (LLM) activations do not discover knowledge -- instead they seem to discover whatever feature of the activations is most prominent. The idea behind unsupervised knowledge elicitation is that knowledge satisfies a consistency structure, which can be used to discover knowledge. We first prove theoretically that arbitrary features (not just knowledge) satisfy the consistency structure of a particular leading unsupervised knowledge-elicitation method, contrast-consistent search (Burns et al.

  • arXiv:2212.03827). We then present a series of experiments showing settings in which unsupervised methods result in classifiers that do not predict knowledge, but instead predict a different prominent feature. We conclude that existing unsupervised methods for discovering latent knowledge are insufficient, and we contribute sanity checks to apply to evaluating future knowledge elicitation methods. Conceptually, we hypothesise that the identification issues explored here, e.g. distinguishing a model's knowledge from that of a simulated character's, will persist for future unsupervised methods.

Introduction

Large Language Models (LLMs) are powerful but prone to hallucinations and sycophancy. A critical research goal is to elicit latent knowledge: the internal information a model "knows" to be true, regardless of its output. Contrast-Consistent Search (CCS) emerged as a promising unsupervised method for this, based on the premise that truth is the most consistent internal structure. However, research from Google DeepMind demonstrates that these methods often fail to distinguish truth from other prominent patterns in model activations.

The Challenge of Unsupervised Discovery

The core issue is that unsupervised methods like CCS are "under-specified." Theoretically, any binary feature can satisfy the consistency requirements of the CCS loss function. In practice, LLMs act as "simulators" of a vast range of internet data, representing a multiverse of characters and viewpoints. Consequently, an unsupervised probe might latch onto a simulated character's opinion rather than factual truth.

Conceptual diagram of unsupervised knowledge discovery and the potential for identifying non-truth features like a character's opinion.

Methodology and Datasets

The researchers evaluated CCS against simpler baselines like Principal Component Analysis (PCA) and K-means clustering across several benchmarks, including IMDb (sentiment), BoolQ (question answering), DBpedia (topic classification), and TruthfulQA. To test the robustness of these methods, "distractor" experiments were introduced. These involved adding irrelevant labels (e.g., "Banana" or "Shed") or attributing opinions to a fictional character ("Alice thinks...") to see if the unsupervised classifiers would be misled.

Key Results: Prominence Over Truth

The experiments revealed that unsupervised methods consistently prioritize the most salient feature in the activations rather than the ground truth.

  • The "Alice" Effect: When a prompt included a character's opinion, the classifiers tracked that opinion perfectly, even when it contradicted the factual truth.
  • Sensitivity to Distractors: Adding random words like "Banana" or "Shed" caused accuracy to plummet. The methods learned to classify the random words with near 100% accuracy, while ground truth prediction fell to random chance.
  • CCS vs. PCA: Surprisingly, CCS often produced results nearly identical to simple PCA. This suggests its complex consistency loss offers little unique benefit over identifying the largest clusters already present in the data.
Accuracy of various unsupervised methods when faced with distractor labels, showing a significant drop in identifying ground truth.

Conclusion

Current unsupervised methods for discovering latent knowledge are insufficient because they lack a principled way to isolate "truth" from other prominent features. Future work must develop robust "sanity checks" to ensure that knowledge elicitation methods can distinguish between a model's internal knowledge and the diverse viewpoints it has learned to simulate. For now, the dream of a simple "truth serum" for LLMs remains out of reach.

Summary updated

BibTeX
@misc{farquhar2023challenges,
  author = {Sebastian Farquhar and Vikrant Varma and Zachary Kenton and Johannes Gasteiger and Vladimir Mikulik and Rohin Shah},
  title = {{Challenges with unsupervised LLM knowledge discovery}},
  year = {2023},
  eprint = {2312.10029},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.10029},
}
Figure