Challenges with unsupervised LLM knowledge discovery

Sebastian Farquhar, Vikrant Varma, Zachary Kenton, Johannes Gasteiger, Vladimir Mikulik, Rohin Shah · Submission to NeurIPS 2024 · Rejected

TL;DR

Popular unsupervised methods like Contrast-Consistent Search (CCS) claim to extract an LLM’s true "latent knowledge" purely from internal activations without ground-truth labels. This paper proves mathematically that logical consistency alone cannot isolate truth—arbitrary features also achieve optimal loss—and demonstrates empirically that these methods simply latch onto whatever feature is most prominent, such as random distractor words or the opinions of simulated personas.

What Problem Does This Paper Address?

Large language models often output statements that contradict what they "know"—whether repeating human misconceptions, flattering the user, or hallucinating. To supervise and align advanced models when humans cannot reliably verify outputs, researchers study Eliciting Latent Knowledge (ELK): recovering a model's internal beliefs directly from its activations without supervised labels.

Contrast-Consistent Search (CCS) became a foundational technique in this space. CCS searches for directions in activation space that satisfy logical credences (e.g., negation consistency: $p(\text{claim}) + p(\neg \text{claim}) = 1$, alongside high confidence). This paper asks a critical foundational question: Does CCS actually identify knowledge, or does it merely latch onto unrelated patterns?

Methods

The authors analyze unsupervised probing techniques on contrast pairs (pairs of strings differing only in their claim, such as "Are cats mammals? Yes." vs. "Are cats mammals? No."). They compare:

  • CCS: A linear probe followed by a sigmoid, trained to minimize consistency and confidence losses (evaluating both the original and a corrected symmetric loss).
  • PCA and $k$-means: Simple unsupervised clustering applied to the difference vector of normalized contrast-pair activations.
  • Baselines: A random probe (floor) and supervised logistic regression (ceiling).

To expose failure modes, the authors inject distractor features into prompts across four increasing levels of realism:

  1. Random Words: Appending arbitrary words ("Banana" vs. "Shed") mapped to a binary question partition.
  2. Explicit Persona: Adding an explicit opinion from a character (e.g., "Alice thinks it is positive").
  3. Implicit Persona: Introducing a few-shot persona context (e.g., Alice always giving wrong answers for "Company" topics because she is anti-capitalist).
  4. Natural Prompt Variations: Evaluating standard prompt templates taken from the literature without artificial distractors.

Datasets

The authors evaluate on four NLP benchmarks across multiple models (Chinchilla-70B, T5-11B, and T5-FLAN-XXL):

  • IMDb: Binary movie review sentiment classification.
  • BoolQ: Natural yes/no reading comprehension questions.
  • DBpedia_14: Topic classification adapted to binary choices.
  • TruthfulQA: Difficult questions designed to test susceptibility to common human myths and misconceptions.

Key Insights and Ideas

  • Consistency does not imply truth (Theorems 1 & 2): Any arbitrary binary question feature $h(q)$ combined with the claim polarity $c(x)$ via XOR ($h(q) \oplus c(x)$) achieves an optimal loss of zero under CCS. The consistency loss is completely under-specified.
  • Prominence over truth: Unsupervised probes do not optimize for model knowledge; they follow inductive biases toward the most geometrically salient feature in the activation space.
  • The Persona / Simulation problem: Because LLMs are trained to model diverse speakers, they naturally encode representations of external agents' beliefs. When a character's stance is introduced, unsupervised probes track the character's belief rather than ground-truth facts.
  • CCS behaves like standard clustering: CCS predictions closely track standard PCA and $k$-means predictions (well above chance agreement), indicating that contrast pairs and generic linear separation do nearly all the work, not the logical consistency objective.

Key Results

  • Distractor Tokens: Appending "Banana" or "Shed" collapses ground-truth accuracy to random chance (~50%) across unsupervised methods on IMDb and BoolQ, while "Banana/Shed" accuracy approaches 100% (or exhibits a bimodal distribution across random seeds).
  • Explicit Opinions: In the presence of "Alice thinks...", unsupervised probes achieve ~90–100% accuracy at predicting Alice's stance, while ground-truth review sentiment accuracy drops to near chance (~50%).
  • Implicit Opinions: When Alice's bias against "Company" topics is implied through few-shot examples, CCS displays a bimodal split: roughly half of probe random initializations learn Alice's anti-capitalist opinion rather than the true factual label.
  • Prompt Sensitivity on TruthfulQA: Switching prompt templates on Chinchilla-70B from a "default" framing to a "literal" or "professor" framing drastically shifts unsupervised probe accuracy from near-chance (~50–60%) up to ~70–80%, demonstrating that probe outputs hinge on uncontrolled, implicit prompt biases.

Limitations and Future Work

  • Scope of current methods: The paper primarily evaluates CCS, PCA, and $k$-means. While newer unsupervised techniques could add richer logical constraints, the authors argue that any simulated persona will naturally obey logical consistency, leaving future unsupervised methods vulnerable to the same fundamental identification problem.
  • Mechanistic ambiguity: The authors acknowledge uncertainty over whether probes track the persona's mental model or surface-level syntactic identity (e.g., token matching between prompt mentions).
  • Recommended Desiderata: The paper proposes four sanity checks for future unsupervised knowledge elicitation research:
  • Invariance under irrelevant prompt transformations.
  • Insensitivity to specific personas.
  • Theoretical grounding for when inductive biases prioritize truth.
  • Resistance to non-knowledge distractors.

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