Skip to content
All papers

Discovering Latent Knowledge in Language Models Without Supervision

UC BerkeleyBurns, Ye, Klein and Steinhardt, 202214 min readarXiv 2212.03827Read the paper2022-12

Burns et al. introduce Contrast-Consistent Search (CCS), which finds a direction in a model's activations that behaves like truth by requiring that a statement and its negation get opposite, confident scores, without any labels. The method recovers answers that are often more accurate than the model's own outputs, but later work showed that the consistency objective alone cannot single out truth from other features.

Ready to ace your system design interview?

This article is just one piece. StackSweep gives you structured, interview-focused practice across every topic that comes up in senior engineering rounds.

  • 1,000+ quiz questions across system design and ML/AI
  • Spaced repetition to lock in what you learn
  • Full case study walkthroughs of real interview topics
  • Track streaks, XP, and progress over time

TL;DR

  • Goal: read what a model "knows" from its activations without labels, so the method does not depend on humans being able to verify answers.
  • CCS builds contrast pairs (a question answered "yes" and answered "no"), normalizes each side, and trains a probe so the two scores sum to about one and are confident.
  • Across several models and datasets the authors report CCS beats zero-shot prompting on average and stays accurate when a misleading prompt makes the model's outputs worse.
  • The paper presents this as an initial proof of concept, not a solution: it was not tested on models that actively lie, and the authors note that extensions may be needed to ensure it recovers the truth of an input rather than what the model says.
  • Later critiques showed any binary feature can satisfy the CCS objective, and that simpler methods on the same contrast pairs perform similarly, so most of the signal comes from the pairs, not the loss.

Why this paper matters

CCS is the canonical example of an unsupervised truth probe and of how a clever objective can be underdetermined. Being able to explain both the method and its critiques is a standard test of whether someone reads interpretability results with appropriate skepticism.

Breakdown

1.The problem: outputs may not match knowledge

A language model's output is not a direct readout of what it represents. It can repeat a popular misconception because that is what text on the internet says, follow a misleading prompt, or, in the worrying case, say something it represents as false. If training relies on human labels, the model is rewarded for matching what humans believe, which may differ from what is true.

Burns et al. ask whether we can find truth in the activations instead of the outputs, and do it without labels. Without labels matters: if you train a probe on human-labeled true and false statements, you might learn "what humans think is true" rather than "what the model represents as true", and you cannot use the probe on questions humans cannot check.

The hope is that truth has special structure that lets you find it without being told where it is. The structure they use is logical consistency: a statement and its negation cannot both be true.

Discussion angle: The key framing question: "why not just train a supervised probe?" Answer: supervised probes inherit labeler errors and cannot extend past what labelers can verify, which is exactly the regime safety cares about. Then ask the follow-up: does removing labels actually remove the dependence on human beliefs, or just hide it in the prompt design?

2.Contrast-Consistent Search, step by step

CCS starts from contrast pairs. For each yes/no question, build two inputs: the question followed by "Yes" and the same question followed by "No". Run both through the model and take hidden states at a chosen layer.

Next, normalize each side separately: subtract the mean over all "Yes" inputs from each "Yes" hidden state, and likewise for "No". Without this step, the easiest direction to find is simply "does the input end in Yes or No", which is perfectly consistent and useless.

Then train a linear probe with a sigmoid output that maps each hidden state to a probability. The loss has two parts. A consistency term pushes p(yes version) to equal 1 minus p(no version). A confidence term penalizes the degenerate solution where both are 0.5, by penalizing the smaller of the two probabilities. Neither term uses labels.

At test time, average p(yes) and 1 minus p(no) to get a prediction. Because the objective is symmetric, the probe might learn truth or its opposite, so a small amount of labeled data (or a convention) fixes the sign.

Discussion angle: Good questions to ask: why is per-side normalization essential, and what feature would CCS find without it? (The Yes/No token itself.) What else is left after normalization that varies across pairs? Any feature that flips between the two halves of a pair is a candidate, and truth is only one of them.

3.What the experiments found

The authors test CCS on six models: encoder-only (RoBERTa, DeBERTa), decoder-only (GPT-J) and encoder-decoder (T5, UnifiedQA, T0), across ten question-answering and classification datasets. They report that CCS outperforms zero-shot accuracy by about 4% on average, with no labels used for training the probe, and roughly halves sensitivity to the choice of prompt.

Two results are central to the paper's argument. First, they add a misleading prefix (example questions answered incorrectly) intended to make the model imitate wrong answers. Most models were robust to it, but for UnifiedQA zero-shot accuracy dropped substantially while CCS accuracy did not drop. The authors read this as evidence that CCS can work when outputs are unreliable. They also note a caveat: a prefix with correct answers had a similar effect, so the prefix may hurt simply by being out of distribution rather than by inducing imitation of falsehoods.

Second, a CCS probe trained on one dataset transfers well to others: in most cases transfer accuracy is competitive with training and testing on the same dataset, even across tasks with different labels. That suggests a direction that is somewhat general rather than task-specific.

The paper is careful in its claims. It frames CCS as a proof of concept that latent knowledge can be partially recovered without supervision. It also reports that a simple baseline, projecting the normalized pair differences onto their top principal component, is competitive with CCS, and reads this as evidence that truth is a salient, easy-to-find feature.

Discussion angle: The misleading-prefix result is the strongest evidence; ask what else could explain it. One candidate: the prefix changes output behavior through late layers while middle-layer features about the question content are untouched, so CCS benefits from reading earlier, not from finding "beliefs". A test: compare with a supervised probe at the same layer under the same prefix.

4.The critiques: consistency does not pick out truth

Farquhar et al. (2023, Google DeepMind) made the sharpest critique. They prove that for any binary feature of the inputs, there is a probe achieving optimal CCS loss that tracks that feature. The objective constrains the probe to be consistent and confident, but truth is just one consistent, confident feature among many.

They then show it happens in practice. If you append a distracting binary feature to the prompts, such as a fictional character's opinion that is right half the time, CCS often learns the character's opinion instead of the answer. Changing prompt templates also changes which feature CCS finds.

The original paper had already reported that taking the top principal component of the normalized pair differences is competitive with CCS (CCS was best, but not by much). A widely read post by Scott Emmons drew the sharper conclusion: if PCA on the same contrast pairs gets most of the way there, most of the signal comes from constructing the pairs, and the specific loss adds little. Farquhar et al. found PCA and k-means behave much like CCS in their experiments, including in being distracted, which supports that reading.

None of this says CCS never finds truth. It says the method has no built-in guarantee of finding truth over other salient features, which is exactly what an unsupervised method needs to be trusted beyond human-checkable cases.

Discussion angle: This is where interviews go. Can you state the identifiability problem in one sentence? (The objective is satisfied by any feature that flips across the pair.) What would you add to make truth the unique solution? Candidates: more logical constraints than negation, multiple consistency relations across related statements, or comparing against features you know are not truth.

5.What CCS still teaches

CCS remains a useful reference even though its strongest interpretation did not hold.

First, it showed that contrast pairs are a powerful tool: by building inputs that differ in one logical property, simple linear methods can find directions that track that property. The same idea underlies later truth-probing work such as Marks and Tegmark's study of the geometry of truth, and the contrast-pair recipe in representation engineering.

Second, it made the eliciting latent knowledge problem concrete. The question "does the probe find truth, or what a simulated human would say?", raised in the ELK literature and in later critiques of CCS, moved from thought experiment to something you can test. Mallen et al. later built "quirky" models trained to answer systematically wrong in some contexts, specifically to measure whether probes recover the truth or the model's stated answer.

Third, it is a case study in evaluation. An unsupervised method can look excellent on benchmarks where truth is also the most salient feature, and fail when another salient feature is introduced. Good evaluation adds those distractors on purpose.

Discussion angle: Ask how you would design a benchmark that separates truth from its proxies: introduce features correlated with truth on the training distribution but decorrelated at test time, include statements the model is known to get wrong, and check whether probes track the model's knowledge or the label.

Reading the evidence

What it shows

  • A linear direction found without labels, using only contrast pairs and a consistency objective, often predicts answers more accurately than zero-shot prompting.
  • In the one model where a misleading prompt prefix substantially lowered zero-shot accuracy (UnifiedQA), CCS accuracy did not drop.
  • Probes found on one dataset transfer partially to others, so the direction is not purely task-specific.
  • Contrast pairs are a strong tool for isolating a property in activations.

What it does not show

  • That the CCS objective identifies truth: Farquhar et al. prove any binary feature can achieve optimal loss and show CCS picking up distractor features.
  • That the specific loss matters much: simpler methods on the same normalized contrast pairs perform similarly.
  • That CCS reads the model's own beliefs rather than what a simulated human or character would say; the authors did not test models that actively lie.
  • That the method works in the regime it was motivated by, where humans cannot check the answer.

The most boring explanation

The plainest reading is that, on standard datasets, truth happens to be the most salient feature that flips across a contrast pair, so any reasonable unsupervised method on those pairs (CCS, PCA, clustering) finds it. On that reading CCS is not discovering anything special about beliefs; it is finding the biggest consistent axis. The original authors present it as a first step, and their own finding that a top-principal-component baseline is competitive fits this reading. Later work, especially Farquhar et al., supports the boring reading by showing CCS follows other salient features when they are introduced.

Key Concepts

Latent knowledge

Information represented in a model's internal states that may not be reflected in its outputs, for example because of a misleading prompt or training that rewards matching human beliefs.

Contrast pair

Two inputs built from one question, answered "yes" and answered "no", so that the model's hidden states differ mainly in the truth value being asserted.

Contrast-Consistent Search (CCS)

An unsupervised probe trained so the probabilities for the two halves of a contrast pair sum to about one (consistency) and are not both near 0.5 (confidence).

Analogy: Like asking a witness both "did it happen?" and "did it not happen?" and keeping only interpretations where the answers line up. Consistent answers are necessary for honesty, but a well-rehearsed story is consistent too.

Per-side normalization

Subtracting the mean "yes" activation from yes inputs and the mean "no" activation from no inputs, so the probe cannot solve the task by detecting the appended token.

Identifiability problem

When an objective is satisfied equally well by many different solutions, so optimizing it does not determine which one you get. For CCS, any binary feature that flips across a pair is optimal.

Analogy: Asking for "a number whose square is 4" does not tell you whether you will get 2 or minus 2. You need an extra constraint to pin down the one you meant.

Eliciting latent knowledge (ELK)

The broader research problem of getting a model to report what it actually knows, including in cases humans cannot verify, rather than what a human would expect it to say.

Analogy: Not "what would the average person answer?" but "what does this specific expert actually believe, even if you cannot check?"

Knowledge Check

10 questions — your answers are saved locally so you can come back anytime.