Elamur Research

LatentQA: Teaching LLMs to Decode Activations Into Natural Language

Paper · 2024 · Alexander Pan, Lijie Chen and Jacob Steinhardt

Summary

An assistant can give an ordinary reply while following an instruction the reader never sees. If several instructions could have led to the same reply, the conversation may offer little basis for choosing among them. LatentQA asks whether the computation behind the reply offers better evidence. It treats interpretability as a form of question answering. A separate decoder receives activations, the numerical states produced while the target processes text, along with a question about those states. The answer might describe a speaking style, identify a clue to an assigned identity, or supply a fact about a subject mentioned in the input.

The authors call their training procedure Latent Interpretation Tuning, or Lit. They assemble 16,732 training points covering assigned goals, personas, and information supplied in context. A typical example begins with a control that establishes a behavior and continues with a user message that gives the assistant an occasion to express it. The authors pair the example with questions about the behavior and its implications. They initialize the decoder from the target and train it by replacing part of its computation with states captured from the target. Some examples omit the states at the instruction positions. To answer those questions, the decoder must learn to use evidence elsewhere in the exchange, such as the effect of the earlier instruction on how the target processes the user’s message.

The reading tests ask whether those answers recover information that can be checked independently. Lit helps identify assigned personas absent from its training collection using only states at the user-message positions. It performs better than SelfIE and a GPT-4 baseline that draws its evidence from visible dialogue. In a separate experiment, Lit answers factual questions from representations of phrases that mention the subject. Across 6 relation tasks, its mean absolute accuracy advantage is 38.2% against Patchscope and 32.2% against linear probes. The relation questions are absent from Lit’s training data.

The decoder also gives the authors a way to change behavior. They specify a desired answer, use its probability to calculate how the target’s states should change, and carry that signal back to the target’s weights. On CrowS-Pairs, Lit is the only control method tested that produces statistically significant reductions on both bias measures relative to the unmodified target. The authors also show steering towards unfamiliar personas and observe that intervention can weaken refusals. Larger target–decoder pairs and more training data improve answer prediction on held-out controls. The authors identify two reasons to treat individual explanations with care. The training collection represents a limited range of behaviors, and a fluent answer can be invented when there is no independently known interpretation of the state.

Deep dive: LatentQA: Teaching LLMs to Decode Activations Into Natural Language

LatentQA trains a decoder to answer questions about hidden activations, then tests what it can recover and how its answers can guide behavior. · about 38 minutes to read

The problem and its context

What a conversation leaves unresolved

A language system carries information from earlier text into the processing of later text. An instruction near the start of an exchange can shape what follows, even if a subsequent message has no obvious connection to it. That creates a problem for anyone assessing behavior from a transcript. A short answer may fit several accounts of what the assistant was instructed to do. Asking it to answer more questions can supply further clues, but the evidence still consists of behavior that has already become visible.

Activations give the investigator another place to look. As the target processes a message, each layer produces numerical representations at its text positions. A representation at a user-message position can depend on context preceding that message. The investigator can therefore examine a state associated with an apparently ordinary request while asking about the influence of an earlier instruction. The hoped-for benefit is a way to examine a tendency at the time the request is processed, before the assistant has generated the reply in which that tendency might appear.

The paper places this problem in top-down transparency. An investigator begins with a property of interest, such as a factual attribute or a behavioral tendency, and asks whether the states provide evidence about that property. A probe is the instrument applied to the states. A conventional probe can return a score for a property or select among pre-defined answers. Such an output is easy to compare across examples. Its meaning, however, depends on which property the investigator chose when designing the probe.

That choice matters when the question changes during an inquiry. An investigator might first want to know whether a state is associated with an assigned persona. Once several possibilities come into view, asking for a distinguishing accomplishment may help more than asking for a general description. A system that produces an answer in ordinary language can respond to both inquiries through the same interface. The question tells it which evidence to try to express, and the answer can include specifics that would be hard to anticipate in a fixed set of labels.

Earlier routes from hidden states to language

The paper surveys several ways of connecting states to meanings. Linear probes learn a simple rule that maps a representation to a score or a prediction for a designated property. Statistical methods can look for associations between states and a concept. Autoencoders and dashboards offer other ways to make features or patterns accessible. As the authors frame the literature, these approaches provide views tied to a predetermined set of concepts or outputs. A new question can require a new probe or a different way of examining the representation. Probing classifiers

Another line of work uses a language system’s ability to predict text. Methods such as the logit lens expose predictions associated with intermediate states. The paper also discusses methods that anticipate subsequent tokens and work that generates descriptions of individual neurons. These approaches make parts of the computation legible in language. Their scope, as described by the authors, can be a few tokens or an individual component. A description of how a hidden instruction may affect an unfamiliar request calls for an answer that can connect several pieces of information.

SelfIE and Patchscopes are closer to LatentQA. They take states from a source computation and insert them into another run of a language system. Text around the insertion gives the recipient a context in which to generate an interpretation. In this setting, patching means substituting numerical states at selected positions during a forward pass. It can produce a readable output directly, using abilities the recipient already has from its original training.

The potential mismatch lies at the patch location. An internal state created after several layers of processing can have the same width as the representation normally present near the decoder’s input. Equal width makes substitution possible. It says little about whether the recipient’s subsequent computation knows how to use that kind of state at that location. The authors attribute some of the brittleness of prior methods to this difference between the distributions of ordinary input representations and the inserted states. Lit exposes the decoder to the substitution during training and rewards it for making the resulting computation useful.

Why use questions as the interface?

The authors draw on visual question answering, where an image can support questions about different aspects of the same scene. The person posing the question does not have to ask for a complete caption before asking about a particular detail. In LatentQA, an internal state takes the place of the image as the evidence paired with the question. The analogy is about how a question selects an aspect of a nontextual input for discussion. VQA

The analogy also informs the training strategy. Visual instruction tuning uses generated questions and answers to turn existing image–text material into instruction-following examples. The LatentQA authors face a corresponding data problem. A stored array of activations comes with no ready-made account of what a researcher might want to ask about it. They begin with contexts whose intended effects can be described and use those contexts to construct supervision. The wording of the question and the behavior used to justify its answer become deliberate parts of the example. Visual Instruction Tuning

The open answer format creates an evaluation problem of its own. A concise score can be checked as a score, while a paragraph may combine a correct observation, an unsupported detail, and a reasonable inference. A behavioral description can also sound convincing because it closely matches the wording of the question. The paper therefore uses tasks with known identities or factual answers wherever possible. For control, it can check another observable consequence: whether optimizing for a particular description shifts the target’s subsequent behavior.

How the reading problem connects to control

The paper distinguishes methods that teach a target through its outputs from methods that intervene within its computation. Supervised instruction tuning rewards desired responses to prompts. Preference-based training reinforces a preferred response relative to an alternative. Both provide ways to change behavior using examples at the text level. The authors also discuss prior work that edits factual associations or uses internal states to change behavioral tendencies. Instruction following with human feedback · Direct Preference Optimization · Locating and Editing Factual Associations in GPT

An internal intervention can use a direction estimated from examples that differ in the desired property. Representation Engineering provides the paper’s main comparison of this kind. A direction indicates how to add a numerical change to an activation, or supplies the basis for adapting weights to approximate that change. The choice of examples helps determine what the direction represents. The paper also places this line of work alongside studies of truthfulness and refusal, cases where changing internal representations has been used to alter observable responses. Representation Engineering · Inference-Time Intervention · Refusal mediated by a single direction

A question-answering decoder offers a different way to specify the change. If the decoder can answer a question about a speaking style, its probability for a specified answer provides a quantity the authors can optimize. This puts the question and answer in two roles. In reading, the question selects what the decoder tries to describe. In control, a question and a desired answer define a direction of improvement in the objective, which can depend on the state where it is evaluated. Both uses depend on a learned connection between the inserted state and the words the decoder produces.

The method, step by step

Start with behavior that can be described

The training collection begins with a reason for the assistant to behave in a particular way. The paper calls that reason the control. A control can assign an identity, say what the assistant should try to achieve, or give it information that it will need later. A stimulus follows the control. This is a new contribution to the exchange, such as a user request that gives the assistant room to express the assigned behavior. The completion is the assistant’s response to the stimulus under those conditions.

Consider a control that assigns a pirate manner of speaking. The stimulus can be a routine question about the sky. A completion can answer the question while using the assigned manner. Once that example exists, the authors can attach a question asking how the assistant is likely to speak and an answer describing the style. The question posed to the decoder concerns the target’s behavior. The question about the sky serves a different role as part of the text processed by the target.

The same arrangement can illustrate a goal without an assigned identity. One example in the paper asks an assistant to incorporate a paradox. The dialogue can start with that request, move to a broad invitation to share a thought, and finish with a paradoxical question. If the stimulus asks explicitly for a brain teaser, it gives away part of the explanation for the response. A more open invitation makes it easier to trace the distinctive turn in the completion to the earlier control.

In the extractive portion of the collection, the control supplies information in the context. The point of interest becomes what the assistant has available to answer a later request. Goals, personas, and extractive questions thus provide different reasons why an earlier part of the exchange matters. The authors count 4670 goal examples, 3359 persona examples, and 8703 extractive QA examples. They describe the collection as 16,732 LatentQA points.

The prompt construction can be written as follows.

P = C + S

P is the text the target processes as the prompt. C is the control portion and S is the stimulus portion. The equals sign defines P, and the plus sign means that S follows C in the text. The completion belongs to the example alongside P and can also provide activation positions for training.

Generate dialogues and questions

The authors begin by drafting seed controls. They ask o1-preview to propose additional seeds and remove duplicates, including controls judged to have essentially the same meaning. The brainstorming prompt asks for goals with distinct objectives, so merely changing the language of an existing goal does little to increase variety. This stage determines the range of behaviors the subsequent dialogues can illustrate. Expanding a narrow group of seeds into many exchanges would mainly increase variation in how a small set of ideas is expressed.

The dialogue generation stage turns each seed into a short exchange. In the representative goal prompt, the user states the instruction, the assistant acknowledges it, the user provides the stimulus, and the assistant demonstrates the requested behavior. The acknowledgment can make it clear how the assistant is supposed to approach the task. The final reply supplies an example of that approach in use. The generator is asked to keep the stimulus natural enough for the behavior to arise as part of a plausible exchange.

The paper describes a practical difficulty with generating these examples directly from simple controls. A target can be asked to adopt a manner and then follow the instruction only weakly. An answer describing a vividly expressed manner would give poor supervision in that case. The authors make the requested behavior more emphatic in some prompts and also use o1-preview to create synthetic exchanges with completions that follow their controls more closely. Both address the quality of the example used to link behavior and description.

For each dialogue, the authors generate descriptive and reasoning questions. A descriptive question may ask what the assistant is trying to accomplish or how it approaches its answers. A reasoning question asks for an implication of the behavior in another situation. In an example involving the detection of fallacies in emotional appeals, a descriptive answer can identify a preference for evidence, whereas an implication question can ask how the assistant would deal with a widely held claim that relies on emotion. The latter requires connecting the goal to a possible response.

Question generation has a constraint parallel to the one on stimuli. A question needs enough detail to specify the requested interpretation, while leaving the answer to be determined by the evidence. If the question itself names the assigned behavior, the decoder can echo it or expand on it. If the stimulus names the behavior, its wording can serve as a cue even when the instruction positions are hidden. The data procedure tries to reduce both sources of easy answers. The paper describes representative prompts and says the exact generation prompts are in its code.

Choose the span whose states the decoder sees

An activation at a particular layer and position reflects the processing that has taken place up to that point. The decoder can receive a series of these states drawn from only part of the exchange. Lit uses states from the control, from the stimulus, and from the stimulus together with the completion. Each view changes what the decoder can directly inspect. A control-only view can reveal what was assigned. A stimulus view can carry traces of how prior context affected the processing of new text. A view that includes the completion can contain evidence associated with the actual expression of the behavior.

The stimulus-only condition is especially important for anticipating responses. Suppose the target has processed the pirate instruction and reached the question about the sky. It can attend to the earlier instruction when processing the question. The authors then pass only the states assigned to the question positions to the decoder. In this arrangement, the effect of the control can reach the decoder through contextualized states even though the decoder gets no states at the instruction’s own positions.

The authors call this activation masking. It is performed when choosing the states to hand over. The target can process the original context, including the instruction. Removing the instruction from that context would ask a different question because the target would have had no opportunity to incorporate it into the later states. Masking instead takes away the most direct evidence from the decoder. In particular, the instruction positions can retain information about the original token embeddings in the residual stream, the running representation updated by the target’s layers. Reading those positions could make the training problem much easier.

Mixing spans gives the decoder experience with several evidence conditions. A question may concern an instruction that is directly represented, an influence that has to be inferred from later text positions, or an effect already visible in a completion. The authors want one interface that can operate in all of these settings. The distinction among spans still matters at evaluation time. Only states available before a reply can provide evidence for an early prediction about that reply.

How Lit trains and uses a decoder

The steps in order.

How Lit trains and uses a decoderStep 1: Create controls and dialogues demonstrating their effects1. Create controls and dialogues demonstrating their effectsStep 2: Attach questions about behaviors and their implications2. Attach questions about behaviors and their implicationsStep 3: Capture states from selected target positions3. Capture states from selected target positionsStep 4: Insert the states at decoder placeholder positions4. Insert the states at decoder placeholder positionsStep 5: Tune the decoder to predict reference answers5. Tune the decoder to predict reference answersStep 6: Generate answers for new activations and questions6. Generate answers for new activations and questionsStep 7: Use desired answers to guide target adaptation7. Use desired answers to guide target adaptation

Give captured states a place in the decoder

The decoder starts as a copy of the target. The main results concern Llama-3-8B-Instruct. The target’s role during training is to process the example and supply states. The copy learns to take those states as evidence for answering questions. The paper also trains corresponding decoders for other sizes and a Gemma variant. A matched copy gives the patch a recipient with the appropriate representation width and a starting ability to understand and produce text. Llama 3

The target first executes a forward pass, computing layer outputs from the input text. Lit collects states at the selected layer and text positions. On the decoder side, the input has a dummy segment followed by the question. The dummy segment has enough positions for the states the authors collected. When the decoder reaches the chosen insertion layer, the captured states replace its states at the dummy positions. Its processing of the question and its generation of an answer can then depend on the substituted states.

The paper’s conceptual input can be expressed as follows.

I = [Act] + Q

I denotes the effective input used for question answering. [Act] is the array of captured target activations, with brackets marking the patched segment. Q is the decoder’s natural-language question. The equals sign gives the input construction, and the plus sign indicates that the question follows the positions occupied by the patch. There is no elementwise arithmetic between an activation and a question.

The dimensions of the inserted array follow the span and the width of the target representation.

shape([Act]) = T × H

The notation shape gives the dimensions of the [Act] array. T denotes the number of token positions in the selected span, where tokens are the text units processed by the system. H denotes the width of the hidden representation at each position. The multiplication sign separates the two dimensions in the shape, and the equals sign gives their order. The authors describe a typical input on the scale of 50 token positions, with 4096 components per position.

Collecting the states and inserting them require separate layer choices. The authors use k for the source layer in the target and ℓ for the destination layer in the decoder. They use the following pair for the main training setup.

(k, ℓ) = (15, 0)

Parentheses and the comma indicate an ordered pair. The first entry, k, is the target’s read layer, set to 15. The second, ℓ, is the decoder’s insertion layer, set to 0. The equals sign associates the two symbols with the chosen settings. The authors select the pair by training and evaluating alternatives. Their interpretation is that a middle target layer provides useful semantic information, while inserting early in the decoder gives its subsequent layers more opportunity to process the incoming states.

Reward answers that fit the evidence

Training uses the answer attached to each example. Once the patch is in place, the decoder predicts the answer tokens given the question and the preceding tokens of the answer. The training objective gives credit for higher probability on the reference answer. As a result, the decoder repeatedly encounters the same kind of layer mismatch it will face at evaluation, with feedback about which answers it should produce.

The answer-level objective can be written in the notation of conditional probability.

maximize log p(A | [Act] + Q)

A is the reference answer, p is the probability the decoder assigns to it, and log denotes the logarithm of that probability. The vertical bar means that the answer is scored conditional on the activation patch [Act] followed by question Q. The plus sign again indicates order in the effective input. Maximization here concerns the decoder parameters trained by Lit. Cross-entropy on the answer tokens gives the corresponding loss to minimize.

The paper uses fine-tuning with low-rank adaptation, or LoRA. An adaptation adds trainable changes to the operations of the initialized copy. The reported decoder adapters go into the attention modules, which let positions use information from other positions, and the MLP modules, which transform representations within a position. The decoder uses rank 32 and alpha 64, the rank and scaling settings of the adapters. Its learning rate is 10⁻⁴ and its training batch size is 128. The authors describe this training as runnable on 4× A100s. LoRA

The answer supervision is what makes the patch a learned interface. The target representation may make some facts easy to recover and others difficult. Training gives the recipient an opportunity to adjust its computations so that an incoming state helps it choose among possible answers. The mixture of spans and question types also means that the same received state can be useful in several ways. The desired output depends on whether the question asks for a description, an implication, or a specific piece of information.

Read activations from a new input

For reading, the authors run the target on the text they want to inspect and collect states from the relevant positions. They run the trained decoder with those states occupying the placeholder positions and pose the question of interest. At each generation step they select the token with highest probability. This is greedy decoding. A response can name an attribute, give a description that will later be mapped to a candidate, or provide a short fact suitable for comparison with a reference.

The question changes with the purpose of the test. A broad question about identity can be suitable when the candidates include fictional characters and historical figures. Asking about accomplishments can be more discriminating when the candidates have similar professional backgrounds. In relational extraction, the question names the relationship whose object should be recovered. The authors report running reading on 1× A100. Their benchmarks use the trained decoder without an additional round of task-specific decoder tuning.

Use a desired answer to define a change

Control uses an answer supplied in advance. An investigator can choose a question about the assistant’s style and an answer that describes the desired style. The probability of that answer under the decoder becomes a measure that can be differentiated with respect to the inserted states. A gradient describes how a small change to the numerical input would change the score near its current value.

The paper’s definition in terms of answer log-probability can be expressed as follows.

G = ∇₍₍Act₎₎ log p(A | [Act] + Q)

G is the gradient used to express the local control signal. The symbol ∇ denotes differentiation, with the subscript indicating the entries of the patched activation array [Act]. The equals sign defines G. The function log is the logarithm, p is decoder probability, and A is the desired answer. The vertical bar conditions that probability on [Act] followed by Q, the question, with the plus sign denoting that order. Increasing the score favors A. The appendix describes the equivalent optimization in terms of reducing cross-entropy on the desired answer.

The authors obtain control pairs by first giving the target a prompt that explicitly expresses the desired behavior. They inspect the resulting states with the decoder, using a fixed set of questions about traits, demeanor, expression, and the character of the responses. The resulting answers phrase the behavior in terms the decoder itself uses. These questions and answers can then specify what the decoder should find in the states associated with other prompts. For a speaking-style example, the answers can describe the style in several ways, so the objective has a set of related verbal specifications.

The paper describes repeatedly optimizing a state as a way to understand the idea. Its experiments carry the gradient farther back into the target and adjust its weights, with the aim of reducing the cost of applying control when the adapted target is later run. Databricks’ Dolly instructions provide stimulus text for the control procedure. The target LoRA uses rank 8 and alpha 16, with learning rate 10⁻⁴. The adapters cover attention and MLP operations from layer 0 through the chosen read layer k. The appendix reports control training on 1× A100.

One implementation uses only states drawn from the main read layer when calculating control updates. The version the authors use takes readings in sequence across the target layers up to that point. It asks the decoder to provide a meaningful signal on earlier states even though its main training used states from the selected layer. The paper describes the sequential version as performing better in practice. The decoder supplies the objective throughout, while the weights being adapted belong to the target.

Experiments and results

Find a persona given a list of candidates

The main hidden-instruction experiment gives the target a system instruction to act as a famous person or fictional character. The evaluator must pick the assigned identity. Each persona is tested with the same 5 instructions sampled from Alpaca. Holding those user requests constant gives all the personas the same occasions to express themselves. Any differences in their responses or in the corresponding activations can then help distinguish which control the target received.

The easy list contains 25 candidates drawn from fiction, science, and political history. The hard list also contains 25 candidates and is composed of scientists. The narrower range of the hard set makes clues such as a general description of scientific work less decisive. The authors exclude the evaluation personas from decoder training. This makes the test a check on whether the decoder can make useful distinctions among unfamiliar assigned identities, with the candidate list available to the selection stage.

Lit receives states from the user portion of the exchange. That includes evidence shaped by the earlier system instruction through the target’s computation. The decoder can be asked for a general identification in the easy setting. The main account emphasizes a question about the assistant’s best-known discovery in the hard setting, and the appendix describes selection using answers about accomplishments and expertise. These questions can yield clues even where the decoder’s text contains no direct name.

The final prediction is chosen by a language-based selector that receives the candidate list. The main results describe GPT-4 in this role, and the appendix specifies GPT-4o for the selection prompt. The reported success is therefore the result of extracting useful clues and choosing a candidate from them. Using the same selection procedure for SelfIE gives the untrained latent-reading baseline a comparable way to turn an open answer into a scored identity. The prompting baseline draws its clues from the visible user–assistant dialogue.

When an attempt fails, the procedure can gather information from another exchange and append that evidence for the next attempt. The paper reports cumulative performance for the hard setting as well as the main easy and hard comparisons. An advantage in the cumulative test means that a method can identify a persona with less dialogue evidence under that procedure. The comparison is particularly relevant when the target gives responses whose wording reveals little about the persona on a given user request.

In the hard setting, the absolute improvement in identification accuracy is 18.7% over GPT-4 using dialogue and 77.3% over SelfIE. In the easy setting, the corresponding absolute advantages are 2.7% and 76%. The paper’s introduction separately reports a 10.8% absolute advantage over GPT-4 for hidden-prompt recovery. The setting-specific figures explain where the advantage over visible dialogue is larger. The advantage over SelfIE remains substantial in both collections.

The Claude Shannon example shows what can make the hard task difficult. A reply suggesting an association with codebreaking provides a clue that can also fit Alan Turing. Choosing between the two requires more specific evidence. The paper shows Lit extracting information that better distinguishes Shannon under the assigned persona. The example is useful because even a correct observation about the visible reply can leave the identity unresolved. The internal state offers a different source of clues.

Ask what a subject representation makes available

The relational task starts with a phrase that mentions a subject. The target processes that phrase, and the decoder receives the resulting subject-related states. The decoder’s question supplies a relation, and the expected answer is the object of that relation. For example, a phrase identifying Italy through a sporting context supplies the subject, and a currency question specifies the property to recover. The test is scored against the recorded currency.

The setup follows Patchscopes and draws questions from the earlier relational evaluation. The phrases mentioning subjects come from WikiText-103. The paper retains factual categories suitable for reference-based scoring. It leaves out the company CEO task because some answers were outdated and skips commonsense tasks in which the relevant span could contain several objects or several outputs could satisfy the relation. These exclusions matter because extraction accuracy assumes that the reference identifies what counts as a correct answer. Pointer Sentinel Mixture Models

Lit receives the relation as a question and generates at most 20 tokens. Patchscope patches in the corresponding subject states and uses wording that invites a continuation giving the object, also with a limit of 20 tokens. For a currency, its textual context frames the answer as a completion referring to the official currency. The linear-probe baseline is trained on examples for the particular task. The paper takes those linear-probe results from the Patchscopes study.

For Llama-3-8B-Instruct, the paper reports extraction accuracy across the first 15 layers, with the table caption specifying a 99% confidence interval. The average absolute accuracy gain over the 6 tasks is 38.2% relative to Patchscope and 32.2% relative to linear probing. That gives evidence for transfer in a setting where the desired outputs are sharply defined. The decoder had no examples of these relational questions in its own training dataset. Its existing language capabilities, together with the learned ability to make use of a patch, support the unfamiliar question format.

The benchmark brings a different kind of evidence from the persona task. A persona can be recognized through a description that contains several relevant details, followed by selection from a list. Here the answer needs to resolve to a particular object. The input phrase may place the subject in a particular context, but the relationship of interest is supplied separately. Success requires using available subject information in a way that is responsive to that relationship.

Reduce likelihood disparities on paired sentences

The CrowS-Pairs experiment examines how the target scores closely matched sentences. Each pair has a stereotyped sentence and a minimally changed comparison sentence. The evaluation looks at the difference in assigned log-likelihood between the two forms. The authors use lm-evaluation-harness to standardize the evaluation. The system being assessed is the target after applying one of the control methods, or the original target for the no-control reference.

The paper reports the mean absolute gap in log-likelihood across the pairs. Taking the absolute value means that a large gap contributes regardless of which sentence the target favors. The other measure, percent stereotype, tracks how often the stereotyped sentence receives the higher likelihood. A method can change the direction of preference on a pair while still leaving its scores far apart. Reporting both measures makes it possible to observe that outcome.

Lit adapts the target using a decoder objective that describes an assistant with few stereotyped assumptions. The stimuli for its parameter updates come from Dolly. The internal-control baseline uses the training-based version of Representation Engineering, called LoRRA. It estimates a contrast associated with biased and unbiased behavior using Alpaca stimuli and adapts the target to approximate the resulting steering effect. The comparison uses the version with weight updates so that both internal-control methods adapt the target.

The text-level baselines are direct prompting, supervised fine-tuning, and DPO. The prompt baseline places an instruction about avoiding bias immediately before the sentence being scored. The other methods use StereoSet, which provides 2000 sequences labeled for the presence or absence of bias. The supervised method trains on the unbiased sequences. DPO uses the preference between the unbiased example and the biased one as the training signal. These approaches give the benchmark several ways to test whether explicitly requesting or rewarding the desired behavior changes likelihoods. StereoSet

Compared with no control, Lit is the only tested method reported to reduce bias significantly on both measures. The Representation Engineering intervention increases the absolute log-likelihood gap. The paper attributes the increase to a change that goes past parity, reducing likelihood for stereotyped versions and increasing it for the alternatives enough to leave a larger disparity. That outcome shows why a measure that counts the direction of preference needs the accompanying magnitude measure. The authors suggest that a single linear direction may be a poor representation of bias in this setup.

Steer a persona or sentiment absent from the training examples

To illustrate persona control, the authors adapt Llama-3-8B-Instruct towards an enthusiasm for the Golden Gate Bridge, inspired by Golden Gate Claude. The intervention affects answers to requests with no natural connection to the bridge. The paper discusses a spending question as an example of how the assigned interest can redirect an everyday response. After steering, the bridge appears in answers across unrelated inputs, providing visible evidence that the effect extends beyond the wording of a specific request.

The comparison in this experiment uses training-free Representation Engineering. It applies a direction derived from contrasting favorable and unfavorable attitudes toward the bridge. The authors judge the Lit responses more fluent and more closely aligned with the desired behavior in their qualitative comparisons. The appendix presents additional examples involving Harry Potter and promotion of veganism. The authors describe the tested control personas as absent from decoder training. These examples show behavior changes produced through the shared interface on new descriptions.

The appendix’s sentiment study tests a related kind of control with a more regular evaluation. The starting text is a prefix associated with positive or negative continuations. The task is to produce continuations with the opposite sentiment. The setup from DExperts uses 2.5K positive prefixes and 2.5K negative prefixes drawn from OpenWebText. The authors sample 25 continuations for each prefix at a temperature of 0.9, so the evaluation concerns a collection of outputs rather than a single preferred completion. DExperts

Lit and Representation Engineering follow control setups analogous to those used for debiasing, this time targeting sentiment. Other comparisons use prompting and DExperts. In the latter method, separately adapted positive and negative experts contribute to changing generation at test time. The methods are evaluated for how well they achieve the intended polarity and how varied their outputs are.

The sentiment classifier supplies probabilities for ordered categories. The score gives those probabilities weights: Very Negative receives 1, Negative 2, Neutral 3, Positive 4, and Very Positive 5. Thus an output contributes through the classifier’s distribution over the categories. Diversity is assessed through distinct n-grams, contiguous sequences of tokens, at the lengths named below.

n = 1, 2, 3

Here n specifies how many tokens make up an n-gram. The equals sign lists the lengths assessed, and commas separate the settings. The diversity evaluation considers the distinct sequences present at those lengths. The paper reports that Lit achieves the highest diversity in both sentiment settings and ranks highest or second highest for the intended sentiment. A method can achieve a strong polarity score with repetitive language, so the distinct-sequence result bears on a separate property of the outputs.

Observe changes in refusal behavior

The paper also uses control to examine how behavior changes on hazardous and ordinary requests. Each setting contains 30 prompts. The comparison is with responses from the unmodified target, and the authors manually assess whether generated replies contain harmful information. They report that the intervention can suppress refusals on harmful requests and lead to hazardous material on some benign ones. The latter observation matters because a change in the target’s behavior can surface even when the incoming request gives little indication that such material is relevant.

The authors interpret the result as evidence that steering could have a role in auditing capabilities that ordinary interaction may fail to elicit. The result also shows that refusal behavior is susceptible to internal intervention in the tested setting. The observable outcome is the material produced in answers and whether the target refuses, judged on the paper’s prompt sets.

Scale training and test downstream reading

To evaluate scaling, the authors construct a fresh LatentQA evaluation collection through a procedure similar to the one used for training. After removing controls that occur in the training collection, they retain 500 controls. Goals, personas, and extractive QA make up roughly even shares of this set. The evaluation measures loss on the reference answers, so it can register changes in assigned answer probability even without requiring a final decision about a persona or factual object.

For the capacity comparison, the authors use Llama variants with 1B, 3B, 8B, and 70B parameters. Each decoder is initialized from the corresponding target. The experiment increases the size of the system that produces the representations and of the system that reads them together. The paper reports that larger pairs achieve lower loss on the held-out collection. The experiment is evidence about the capacity of the combined system.

For data scaling, they form smaller training collections by sampling 1/4 or 1/2 of the controls within each type. Sampling within types preserves all the categories as the amount of supervision changes. The reported trend is lower held-out loss with more training data. It concerns evaluation controls absent from the training set, under the authors’ procedure for removing overlaps, so the lower loss applies beyond the examples the decoder was tuned to answer.

The paper also trains Lit on Llama-3.2-1B and Llama-3.2-3B and reruns the persona evaluation as a downstream check across sizes. The easy and hard results below give the reported endpoints of the accuracy comparisons. These measurements concern whether the pipeline selects the assigned identity, which is a different outcome from assigning higher probability to reference prose.

Accuracy across sizes on the easy hidden-persona task

The larger setting achieves higher identification accuracy on the mixed persona list.

Accuracy across sizes on the easy hidden-persona taskSmaller setting: 30Smaller setting30Larger Lit setting (this paper): 100Larger Lit setting (this paper)100
The numbers
System or settingaccuracy %
Smaller setting30
Larger Lit setting (this paper)100

Accuracy across sizes on the hard hidden-persona task

Identification also improves with size when the candidates are scientists.

Accuracy across sizes on the hard hidden-persona taskSmaller setting: 12Smaller setting12Larger Lit setting (this paper): 92Larger Lit setting (this paper)92
The numbers
System or settingaccuracy %
Smaller setting12
Larger Lit setting (this paper)92

The downstream comparison bears on an ambiguity in the loss results. Lower loss can reflect a better ability to express expected answers, as well as better use of the inserted states. Identification accuracy checks whether the available description leads to a correct external choice. The improvement there supports the paper’s interpretation that the capacity trend has practical consequences for latent reading in this task.

Repeat reading and control with Gemma

The appendix reports a decoder for Gemma-3-4b-it, initialized from that target and trained with the same LatentQA collection. Gemma has a visual component as well as a language component. The authors adapt the language portion and run the experiments with text inputs. They rerun hidden-persona identification and the debiasing task. This gives them examples of reading and control with a different underlying architecture and training background. Gemma 3 Technical Report

In this comparison, a new matched pair is trained. The change is therefore in the family to which the procedure is applied. Its significance is that the method of collecting activations, patching them into a copy, and learning to interpret them can be applied in more than the main Llama setting. The appendix describes the Gemma results as supporting both uses of the interface.

What the ablations show

The layer pair changes held-out performance

The explicit layer ablation varies both the place where states are read from the target and the place where they are written into the decoder. The authors train Lit on their LatentQA dataset for each configuration and check generalization on the evaluation controls. Their training description refers to the lowest test loss for selection, and the layer table describes its entries as evaluation perplexity, another expression of predictive performance. The best reported configuration reads at layer 15 and writes at layer 0.

The comparison establishes that the substitution location matters even when the decoder is trained to receive a patch. The input at different target depths has passed through different amounts of processing, and the decoder has a different amount of computation left depending on where the patch enters. The authors favor an interpretation in which intermediate states are rich in semantic information and early insertion gives the recipient time to use it. The sweep evaluates the combination of those choices. Its scores do not directly measure semantic richness or the amount of decoder computation devoted to interpreting an activation.

The data choices address distinct failure modes

The paper describes weak early generalization with a more naive collection. The authors identify direct access to instruction positions as one way the decoder could obtain easy answers. Their masking and span mixture change where visible evidence comes from. Even if a decoder becomes adept at recognizing the wording of a control, the stimulus-only examples ask it to recover the control’s effect from contextualized states at other positions. Including the remaining views lets it also practice interpreting directly represented instructions and completed behavior.

Completion fidelity addresses a separate source of error. If the demonstration supplies little evidence of the assigned behavior, even the full dialogue may be a poor basis for the stated reference answer. Stronger instructions and a more capable dialogue generator make the authors’ examples better suited to the intended supervision. Their requirements for plausible stimuli and informative questions further shape the inference they want the decoder to learn. The paper gives the design rationale and early observations without reporting separate numerical effects for dropping masking, dropping individual span types, or changing the generator.

This distinction affects how the downstream comparisons can be read. Lit’s gains over SelfIE and Patchscope show that its learned procedure can use activations more successfully in the reported settings. The comparison does not toggle training while holding every prompt or inference procedure fixed. Lit also has its own way of specifying questions and constructing supervision. The results support the package and are consistent with training helping the decoder handle unfamiliar input states. The contribution of each data choice remains unquantified by those results.

Control performance depends on the objective and its application

The appendix describes using the decoder’s control signal at the selected source layer or applying it sequentially across the earlier target layers as well. The authors choose sequential use on the basis of its practical performance. That choice also probes whether the decoder can remain useful outside its main read location. The account supplies a comparative judgment about the implementations, without a numerical breakdown showing how each layer contributes.

The bias comparison provides a different analysis. Representation Engineering can move likelihoods in the intended direction and still end up with a larger absolute gap. Lit’s advantage on both metrics shows that its intervention handles this benchmark better under the given configurations. The authors suggest an explanation involving nonlinear behavior. A decoder’s gradient can depend on the state supplied to it, whereas a steering direction defines a particular linear change. The experiment compares complete interventions with their own stimuli and objectives. The result therefore supports the measured performance difference while leaving the representational explanation open.

Data volume and joint capacity have separate comparisons

The scaling study changes the amount of training data while retaining coverage of the same control types. It also changes the size of the matched target and decoder pair. Both comparisons show gains in held-out prediction, but they manipulate different aspects of the training setup. The smaller data collections help assess how performance changes when the decoder receives less supervision of the same general kind. The size comparison examines what changes when both computations have more parameters.

The persona rerun checks whether the capacity result is visible in end-to-end identification. Its improvement shows the trend can reach the final judgment stage. It leaves room for several contributions. Larger targets may produce states that carry more discriminating information about a persona, larger decoders may extract those clues more effectively, and the combination may matter. Since the producer and reader increase together, the study provides a comparison of matched systems rather than separate estimates for the two components.

Limitations

Limits the authors identify

The authors first point to the diversity of the collection. Extractive questions, personas, and goals provide several ways to label an activation, but those categories reflect the tasks the authors chose to study. A different inquiry might require distinctions the decoder has had little occasion to learn. Examples about role behavior can teach how to describe an assigned identity, for instance, without giving explicit supervision about which of several conflicting instructions has priority.

The authors also acknowledge hallucination. Each training answer is tied to a particular question and example, while a hidden state has no comprehensive reference description. A decoder can produce a recognizable interpretation that the evidence does not support. There may also be information in the state that falls outside the question or that the decoder cannot retrieve. Training to produce useful answers leaves both possibilities open for any particular activation.

The paper offers two grounds for confidence within the evaluated settings. In reading, the decoder helps recover identities and facts for which there are external answers. In control, its scores provide enough information to shift later behavior in the desired direction in some tests. A correct identification constrains what can reasonably be said about the usefulness of the extracted clues. An observable intervention does the same for the optimization signal. Neither form of evidence verifies all the claims a decoder might make in an unrestricted explanation.

Limits of the reading comparisons

Several limits follow from the experimental design. The hidden-system-prompt task is identification from a known list. The candidate inventory constrains the last step even when the decoder produces an open answer. The hard set raises the difficulty by using related identities, but the assigned instruction still has a known form. Real instructions might describe an unfamiliar combination of constraints or apply only under circumstances that the test messages never encounter. The benchmark establishes recovery of selected personas under its stated conditions.

The accuracy also belongs to the full identification pipeline. A clue can be faithful but too general for the selector to map to the correct candidate. A selector might also find the right identity when only a portion of the decoder’s description is accurate. This makes the end-to-end score meaningful for the task while leaving the reliability of individual statements unresolved. The cumulative protocol introduces another condition on the score because the system can gather further evidence after a failed attempt.

The baseline that reads visible dialogue sees the assistant’s reply. Lit instead has direct access to states at the user-message positions. Comparing them shows whether internal access helps on the task under those conditions. It does not by itself estimate how much training a decoder contributes independently of which evidence is visible. The SelfIE comparison brings the evidence channels closer together, while still comparing differing decoding procedures.

The factual task likewise gives a specific meaning to successful reading. The target states furnish evidence about a subject, the question stipulates a relation, and the decoder has language and factual knowledge of its own. An answer can reflect recognition of the subject followed by use of knowledge already available to the decoder. The task score does not determine how much of the final relation was already expressed in the patch. Its exclusions also restrict the finding to categories suitable for the chosen references. Questions with several defensible objects or changing answers present a different scoring and interpretation problem.

Limits of the control evidence

The control experiments establish a route from a decoder-defined objective to changes in the behavior of an adapted target. The adjustments can span multiple parts of the target’s computation. A successful effect therefore leaves open where the relevant information was originally represented and which altered operations caused the final difference. The paper’s nonlinear explanation for the bias result is a hypothesis about the comparative outcome. The metrics directly record preferences over sentence pairs.

CrowS-Pairs supplies a definite assessment of likelihood gaps under its comparison sentences. It does not capture every way stereotyped assumptions can appear in conversation. Similarly, sentiment probabilities score polarity through a classifier, and distinct n-grams score variation at specified lengths. The reported sentiment result says that the controlled outputs performed well under these measures. Accuracy, relevance to the prefix, and broader conversational quality are separate properties of generated text.

The bridge and other persona examples give concrete demonstrations of changed behavior. Their fluency and adherence comparisons are qualitative, and their conspicuous nature makes success relatively easy to recognize in individual replies. They provide a narrower basis for estimating the consistency of control when desired behaviors are subtle, several requests compete, or an assistant is expected to preserve other aspects of its ordinary performance.

The refusal experiment provides evidence about the content the authors observed and manually classified on their prompt sets. Those observations connect an internal intervention to a change in safety behavior. They do not establish the practical effectiveness of the generated content or survey the full range of contexts in which unsafe responses could arise. The evaluation of ordinary requests is informative in its own right because it shows how a targeted change can alter behavior outside the most direct prompts.

Limits of the scaling and architecture evidence

The data scaling experiment samples more or fewer controls from the same broad collection. It provides evidence about raising the quantity of that supervision. It leaves room for a separate effect from adding new kinds of supervision. Similarly, the joint capacity experiment leaves the target and decoder contributions intertwined. An improvement could reflect changes in which information survives in the target states, changes in how the decoder handles the states, or changes in both.

The Gemma extension shows a repeat application to the language component after training a decoder for that target. Its states come from text. The experiment therefore speaks to applying the procedure across language architectures and training backgrounds. Interpreting visual representations would require asking and checking questions whose evidence comes through the visual component. The reported layer choices likewise describe a successful configuration in the authors’ setup, with empirical selection playing a role in where the method reads and writes.

What came after

No later citing work is identified, so there is no documented follow-up to attribute to another study. The paper itself points to instruction hierarchy as a possible extension. A dataset could provide examples in which instructions have different authority and a decoder is asked which one the target appears to follow. The authors connect that possibility to checking instruction compliance in longer contexts. Their persona test supplies a precedent for recovering evidence of an earlier instruction. Priority among competing instructions introduces a further question about behavior that remains open.

The authors also see more diverse training data as a path towards answering questions beyond their three control families. Their scaling results support increasing the amount of supervision within the tested setup. Extending the kinds of questions the decoder can answer depends on whether new examples can link states to independently checkable descriptions. The paper’s reading and intervention tests give different ways to establish that link, with the strength of each conclusion depending on the evidence available for the question being asked.

Cite

Cite as Alexander Pan, Lijie Chen and Jacob Steinhardt. 2024. LatentQA: Teaching LLMs to Decode Activations Into Natural Language. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.2412.08686 · arXiv 2412.08686

@misc{alexander2024latentqa,
  title = {{LatentQA: Teaching LLMs to Decode Activations Into Natural Language}},
  author = {Alexander Pan, Lijie Chen and Jacob Steinhardt},
  year = {2024},
  doi = {10.48550/arxiv.2412.08686},
  eprint = {2412.08686},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2412.08686}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/alexander-2024-latentqa-teaching-llms-decode-activations/

References

62 references, from the paper's own bibliography.

  1. Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016. our card
  2. Anthropic. Golden gate claude, 2024. OpenAlex ↗ · Scholar ↗
  3. Stanislaw Antol, Aishwarya Agrawal, Jiasen Lu, Margaret Mitchell, Dhruv Batra, C Lawrence Zitnick, and Devi Parikh. Vqa: Visual question answering. In Proceedings of the IEEE international conference on computer vision, pp. 2425–2433, 2015. our card
  4. Andy Arditi, Oscar Obeso, Aaquib Syed, Daniel Paleka, Nina Panickssery, Wes Gurnee, and Neel Nanda. Refusal in language models is mediated by a single direction. arXiv preprint arXiv:2406.11717, 2024. our card
  5. Yonatan Belinkov. Probing classifiers: Promises, shortcomings, and advances. Computational Linguistics, 480 (1):0 207–219, 2022. our card
  6. Nora Belrose, Zach Furman, Logan Smith, Danny Halawi, Igor Ostrovsky, Lev McKinney, Stella Biderman, and Jacob Steinhardt. Eliciting latent predictions from transformers with the tuned lens. arXiv preprint arXiv:2303.08112, 2023. our card
  7. Steven Bills, Nick Cammarata, Dan Mossing, Henk Tillman, Leo Gao, Gabriel Goh, Ilya Sutskever, Jan Leike, Jeff Wu, and William Saunders. Language models can explain neurons in language models. URL https://openaipublic. blob. core. windows. net/neuron-explainer/paper/index. html.(Date accessed: 14.05. 2023), 2, 2023. OpenAlex ↗ · Scholar ↗
  8. Haozhe Chen, Carl Vondrick, and Chengzhi Mao. Selfie: Self-interpretation of large language model embeddings. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net, 2024a. OpenAlex ↗ · Scholar ↗
  9. Yida Chen, Aoyu Wu, Trevor DePodesta, Catherine Yeh, Kenneth Li, Nicholas Castillo Marin, Oam Patel, Jan Riecke, Shivam Raval, Olivia Seow, et al. Designing a dashboard for transparency and control of conversational ai. arXiv preprint arXiv:2406.07882, 2024b. OpenAlex ↗ · Scholar ↗
  10. Wei-Lin Chiang, Zhuohan Li, Zi Lin, Ying Sheng, Zhanghao Wu, Hao Zhang, Lianmin Zheng, Siyuan Zhuang, Yonghao Zhuang, Joseph E Gonzalez, et al. Vicuna: An open-source chatbot impressing gpt-4 with 90%* chatgpt quality. See https://vicuna. lmsys. org (accessed 14 April 2023), 20 (3):0 6, 2023. OpenAlex ↗ · Scholar ↗
  11. Mike Conover, Matt Hayes, Ankit Mathur, Jianwei Xie, Jun Wan, Sam Shah, Ali Ghodsi, Patrick Wendell, Matei Zaharia, and Reynold Xin. Free dolly: Introducing the world's first truly open instruction-tuned llm, 2023. URL https://www.databricks.com/blog/2023/04/12/dolly-first-open-commercially-viable-instruction-tuned-llm. OpenAlex ↗ · Scholar ↗
  12. Hoagy Cunningham, Aidan Ewart, Logan Riggs, Robert Huben, and Lee Sharkey. Sparse autoencoders find highly interpretable features in language models. arXiv preprint arXiv:2309.08600, 2023. OpenAlex ↗ · Scholar ↗
  13. Abhimanyu Dubey, Abhinav Jauhri, Abhinav Pandey, Abhishek Kadian, Ahmad Al-Dahle, Aiesha Letman, Akhil Mathur, Alan Schelten, Amy Yang, Angela Fan, et al. The llama 3 herd of models. arXiv preprint arXiv:2407.21783, 2024. our card
  14. Jiahai Feng, Stuart Russell, and Jacob Steinhardt. Monitoring latent world states in language models with propositional probes. arXiv preprint arXiv:2406.19501, 2024. OpenAlex ↗ · Scholar ↗
  15. Yossi Gandelsman, Alexei A Efros, and Jacob Steinhardt. Interpreting clip's image representation via text-based decomposition. arXiv preprint arXiv:2310.05916, 2023. OpenAlex ↗ · Scholar ↗
  16. Leo Gao, Jonathan Tow, Stella Biderman, Sid Black, Anthony DiPofi, Charles Foster, Laurence Golding, Jeffrey Hsu, Kyle McDonell, Niklas Muennighoff, Jason Phang, Laria Reynolds, Eric Tang, Anish Thite, Ben Wang, Kevin Wang, and Andy Zou. A framework for few-shot language model evaluation, September 2021. OpenAlex ↗ · Scholar ↗
  17. Asma Ghandeharioun, Avi Caciularu, Adam Pearce, Lucas Dixon, and Mor Geva. Patchscopes: A unifying framework for inspecting hidden representations of language models. In Forty-first International Conference on Machine Learning, ICML 2024, Vienna, Austria, July 21-27, 2024. OpenReview.net, 2024a. URL https://openreview.net/forum?id=5uwBzcn885. our card
  18. Asma Ghandeharioun, Ann Yuan, Marius Guerard, Emily Reif, Michael A Lepori, and Lucas Dixon. Who's asking? user personas and the mechanics of latent misalignment. arXiv preprint arXiv:2406.12094, 2024b. OpenAlex ↗ · Scholar ↗
  19. Aaron Gokaslan, Vanya Cohen, Ellie Pavlick, and Stefanie Tellex. Openwebtext corpus. http://Skylion007.github.io/OpenWebTextCorpus, 2019. OpenAlex ↗ · Scholar ↗
  20. Ella Guest, Caleb Lucas, and Christopher A Mouton. The operational risks of ai in large-scale biological attacks: Results of a red-team study. arXiv, 2024. OpenAlex ↗ · Scholar ↗
  21. Roee Hendel, Mor Geva, and Amir Globerson. In-context learning creates task vectors. arXiv preprint arXiv:2310.15916, 2023. our card
  22. Dan Hendrycks, Nicholas Carlini, John Schulman, and Jacob Steinhardt. Unsolved problems in ml safety. arXiv preprint arXiv:2109.13916, 2021. our card
  23. Evan Hernandez, Belinda Z Li, and Jacob Andreas. Inspecting and editing knowledge representations in language models. arXiv preprint arXiv:2304.00740, 2023. our card
  24. Evan Hernandez, Arnab Sen Sharma, Tal Haklay, Kevin Meng, Martin Wattenberg, Jacob Andreas, Yonatan Belinkov, and David Bau. Linearity of relation decoding in transformer language models. In The Twelfth International Conference on Learning Representations, ICLR 2024, Vienna, Austria, May 7-11, 2024. OpenReview.net, 2024. our card
  25. Edward J Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. arXiv preprint arXiv:2106.09685, 2021. our card
  26. Erik Jones, Anca Dragan, Aditi Raghunathan, and Jacob Steinhardt. Automatically auditing large language models via discrete optimization. In International Conference on Machine Learning, pp. 15307–15329. PMLR, 2023. our card
  27. Aishwarya Kamath, Johan Ferret, Shreya Pathak, Nino Vieillard, Ramona Merhej, Sarah Perrin, Tatiana Matejovicova, Alexandre Ramé, Morgane Rivière, Louis Rouillard, et al. Gemma 3 technical report. arXiv preprint arXiv:2503.19786, 4, 2025. our card
  28. Belinda Z. Li, Maxwell I. Nye, and Jacob Andreas. Implicit representations of meaning in neural language models. In Proceedings of the 59th Annual Meeting of the Association for Computational Linguistics and the 11th International Joint Conference on Natural Language Processing, ACL/IJCNLP 2021, (Volume 1: Long Papers), Virtual Event, August 1-6, 2021, pp. 1813–1827. Association for Computational Linguistics, 2021. our card
  29. Kenneth Li, Oam Patel, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. Inference-time intervention: Eliciting truthful answers from a language model. Advances in Neural Information Processing Systems, 36, 2023. our card
  30. Kenneth Li, Tianle Liu, Naomi Bashkansky, David Bau, Fernanda Viégas, Hanspeter Pfister, and Martin Wattenberg. Measuring and controlling persona drift in language model dialogs. arXiv preprint arXiv:2402.10962, 2024a. OpenAlex ↗ · Scholar ↗
  31. Nathaniel Li, Alexander Pan, Anjali Gopal, Summer Yue, Daniel Berrios, Alice Gatti, Justin D Li, Ann-Kathrin Dombrowski, Shashwat Goel, Long Phan, et al. The wmdp benchmark: Measuring and reducing malicious use with unlearning. arXiv preprint arXiv:2403.03218, 2024b. our card
  32. Xiang Lisa Li, Neil Chowdhury, Daniel D Johnson, Tatsunori Hashimoto, Percy Liang, Sarah Schwettmann, and Jacob Steinhardt. Eliciting language model behaviors with investigator agents. arXiv preprint arXiv:2502.01236, 2025. OpenAlex ↗ · Scholar ↗
  33. Alisa Liu, Maarten Sap, Ximing Lu, Swabha Swayamdipta, Chandra Bhagavatula, Noah A Smith, and Yejin Choi. Dexperts: Decoding-time controlled text generation with experts and anti-experts. arXiv preprint arXiv:2105.03023, 2021. our card
  34. Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. Visual instruction tuning. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023. OpenAlex ↗ · Scholar ↗
  35. Alireza Makhzani and Brendan Frey. K-sparse autoencoders. arXiv preprint arXiv:1312.5663, 2013. OpenAlex ↗ · Scholar ↗
  36. Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. Locating and editing factual associations in GPT. In Advances in Neural Information Processing Systems 35: Annual Conference on Neural Information Processing Systems 2022, NeurIPS 2022, New Orleans, LA, USA, November 28 - December 9, 2022, 2022. our card
  37. Kevin Meng, Arnab Sen Sharma, Alex J. Andonian, Yonatan Belinkov, and David Bau. Mass-editing memory in a transformer. In The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, May 1-5, 2023. OpenReview.net, 2023. OpenAlex ↗ · Scholar ↗
  38. Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. arXiv preprint arXiv:1609.07843, 2016. our card
  39. Eric Mitchell, Charles Lin, Antoine Bosselut, Chelsea Finn, and Christopher D. Manning. Fast model editing at scale. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net, 2022. our card
  40. Moin Nadeem, Anna Bethke, and Siva Reddy. Stereoset: Measuring stereotypical bias in pretrained language models. In Proceedings of the 59th annual meeting of the association for computational linguistics and the 11th international joint conference on natural language processing (volume 1: long papers), pp. 5356–5371, 2021. our card
  41. Nikita Nangia, Clara Vania, Rasika Bhalerao, and Samuel R. Bowman. CrowS-pairs: A challenge dataset for measuring social biases in masked language models. In Bonnie Webber, Trevor Cohn, Yulan He, and Yang Liu (eds.), Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 1953–1967, Online, November 2020. Association for Computational Linguistics. . URL https://aclanthology.org/2020.emnlp-main.154. our card
  42. nostalgebraist. interpreting gpt: the logit lens, 2020. URL https://www.lesswrong.com/posts/AcKRB8wDpdaN6v6ru/interpreting-gpt-the-logit-lens. OpenAlex ↗ · Scholar ↗
  43. OpenAI, 2024a. URL https://openai.com/index/hello-gpt-4o/. OpenAlex ↗ · Scholar ↗
  44. OpenAI. Introducing openai o1-preview, 2024b. URL https://openai.com/index/introducing-openai-o1-preview/. OpenAlex ↗ · Scholar ↗
  45. Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in neural information processing systems, 35:0 27730–27744, 2022. our card
  46. Koyena Pal, Jiuding Sun, Andrew Yuan, Byron C Wallace, and David Bau. Future lens: Anticipating subsequent tokens from a single hidden state. arXiv preprint arXiv:2311.04897, 2023. our card
  47. Baolin Peng, Chunyuan Li, Pengcheng He, Michel Galley, and Jianfeng Gao. Instruction tuning with gpt-4. arXiv preprint arXiv:2304.03277, 2023. our card
  48. Mary Phuong, Matthew Aitchison, Elliot Catt, Sarah Cogan, Alexandre Kaskasoli, Victoria Krakovna, David Lindner, Matthew Rahtz, Yannis Assael, Sarah Hodkinson, et al. Evaluating frontier models for dangerous capabilities. arXiv preprint arXiv:2403.13793, 2024. our card
  49. Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D. Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. In Advances in Neural Information Processing Systems 36: Annual Conference on Neural Information Processing Systems 2023, NeurIPS 2023, New Orleans, LA, USA, December 10 - 16, 2023, 2023a. our card
  50. Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. Direct preference optimization: Your language model is secretly a reward model. Advances in neural information processing systems, 36:0 53728–53741, 2023b. our card
  51. Kevin Roose. A conversation with bing’s chatbot left me deeply unsettled. The New York Times, Feb 2023. URL https://www.nytimes.com/2023/02/16/technology/bing-chatbot-microsoft-chatgpt.html. OpenAlex ↗ · Scholar ↗
  52. Mrinank Sharma, Meg Tong, Tomasz Korbak, David Duvenaud, Amanda Askell, Samuel R Bowman, Newton Cheng, Esin Durmus, Zac Hatfield-Dodds, Scott R Johnston, et al. Towards understanding sycophancy in language models. arXiv preprint arXiv:2310.13548, 2023. our card
  53. Nisan Stiennon, Long Ouyang, Jeffrey Wu, Daniel Ziegler, Ryan Lowe, Chelsea Voss, Alec Radford, Dario Amodei, and Paul F Christiano. Learning to summarize with human feedback. Advances in Neural Information Processing Systems, 33:0 3008–3021, 2020. OpenAlex ↗ · Scholar ↗
  54. Rohan Taori, Ishaan Gulrajani, Tianyi Zhang, Yann Dubois, Xuechen Li, Carlos Guestrin, Percy Liang, and Tatsunori B Hashimoto. Stanford alpaca: An instruction-following llama model, 2023. OpenAlex ↗ · Scholar ↗
  55. Eric Todd, Millicent L Li, Arnab Sen Sharma, Aaron Mueller, Byron C Wallace, and David Bau. Function vectors in large language models. arXiv preprint arXiv:2310.15213, 2023. our card
  56. Alexander Matt Turner, Lisa Thiergart, Gavin Leech, David Udell, Juan J Vazquez, Ulisse Mini, and Monte MacDiarmid. Activation addition: Steering language models without optimization. arXiv preprint arXiv:2308.10248, 2023. OpenAlex ↗ · Scholar ↗
  57. Fernanda Viégas and Martin Wattenberg. The system model and the user model: Exploring ai dashboard design. arXiv preprint arXiv:2305.02469, 2023. OpenAlex ↗ · Scholar ↗
  58. Eric Wallace, Kai Xiao, Reimar Leike, Lilian Weng, Johannes Heidecke, and Alex Beutel. The instruction hierarchy: Training llms to prioritize privileged instructions. arXiv preprint arXiv:2404.13208, 2024. our card
  59. Xiaodong Wu, Minhao Wang, Yichen Liu, Xiaoming Shi, He Yan, Xiangju Lu, Junmin Zhu, and Wei Zhang. Lifbench: Evaluating the instruction following performance and stability of large language models in long-context scenarios. arXiv preprint arXiv:2411.07037, 2024. our card
  60. Yue Yang, Artemis Panagopoulou, Shenghao Zhou, Daniel Jin, Chris Callison-Burch, and Mark Yatskar. Language in a bottle: Language model guided concept bottlenecks for interpretable image classification. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 19187–19197, 2023. OpenAlex ↗ · Scholar ↗
  61. Zhiyuan Zeng, Jiatong Yu, Tianyu Gao, Yu Meng, Tanya Goyal, and Danqi Chen. Evaluating large language models at evaluating instruction following. arXiv preprint arXiv:2310.07641, 2023. OpenAlex ↗ · Scholar ↗
  62. Andy Zou, Long Phan, Sarah Chen, James Campbell, Phillip Guo, Richard Ren, Alexander Pan, Xuwang Yin, Mantas Mazeika, Ann-Kathrin Dombrowski, et al. Representation engineering: A top-down approach to ai transparency. arXiv preprint arXiv:2310.01405, 2023. our card