Do Large Language Models Latently Perform Multi-Hop Reasoning?
Paper · 2024 · Sohee Yang, Elena Gribovskaya, Nora Kassner et al.
Summary
Who is the mother of the performer behind Superstition? The question gives neither the performer's name nor the answer. A reader who knows the relevant facts can identify Stevie Wonder, then recall that his mother was Lula. Yang and colleagues ask whether large language models can make the same connection internally, with no intermediate answer written out. A correct completion alone would leave the route uncertain. The system could have arrived at it through Stevie Wonder or retrieved a direct association between the song and the answer.
The authors test the proposed route in two parts. At the end of the description that points to Stevie Wonder, they use a technique called the logit lens to estimate how strongly an internal representation favors the opening token of his name. They compare that score with the score for a prompt whose description points elsewhere. Then they intervene in the internal representation to strengthen the signal for Stevie Wonder. If the response becomes more like the response to a direct question about his mother, the intervention supplies evidence that the system can use the intermediate identity. The direct question provides a reference for what the system would otherwise say about him, even when its answer is wrong.
TwoHopFact, their dataset, contains 45,595 pairs of direct and two-hop prompts across 52 ways of combining factual relations. The authors release the dataset under that name and publish the experimental code as latent-multi-hop-reasoning. Across LLaMA-2 7B, 13B and 70B, the aggregate results give the clearest evidence for the first hop. Restoring the intended description raises the recall score in about 70% of cases, and strengthening recall improves consistency in about 60%. Both tests succeed together in about 40% of cases against a chance reference of 25%. The averages leave room for sharply different behavior by question type. Up to 23% of composition types clear the paper’s joint-evidence threshold, and selected settings show joint success in more than 80% of prompts of a type.
The first-hop signal improves with size across LLaMA-2, while the second-hop signal stays in much the same range. The authors regard their measurements as a possible lower bound because the experiment follows a single route at a single layer at a time. The distinction matters for knowledge editing. If a complex answer is reconstructed from simpler facts, changing a simpler fact could change the answer downstream. If the answer comes from a separate association, it may persist after the underlying fact has been edited. The paper finds evidence that the first route is available, with large differences in how often the tests detect it.
Deep dive: Do Large Language Models Latently Perform Multi-Hop Reasoning?
Yang and colleagues test whether LLaMA-2 can identify an unnamed entity and use what it knows about that entity to answer a two-hop question. · about 37 minutes to read
The problem and its context
What a completed sentence can tell us
A direct factual prompt gives the system a named subject and asks for one of its attributes. Asking about Stevie Wonder's mother is an example. A composed prompt can request the same attribute while identifying the subject through a separate piece of knowledge. Asking about the mother of the person who performs Superstition introduces that extra requirement. The name Stevie Wonder connects the fact about the song to the fact about the parent. The authors call the person occupying that position the bridge entity.
The question belongs to multi-hop reasoning, where the result of one inference becomes part of the next. Prior work on question answering made this structure familiar. The paper cites the work on multi-hop reading across documents and HotpotQA as examples. In a reading task, the necessary facts can be present in the material the reader receives. Here, a two-hop prompt gives the starting entity and asks for the final attribute without stating either premise in full. The experiment asks how information acquired before the prompt is brought into the current computation.
As the paper describes it, earlier work established two reasons to take this possibility seriously. Factual probing showed that short prompts can elicit information stored in the parameters, the learned numerical weights that govern a system's predictions. Research on Language Models as Knowledge Bases? is part of that background. Other work showed that supplying facts or intermediate steps in the input can help systems solve problems that require multiple inferences. Work on chain-of-thought prompting and least-to-most prompting illustrates the paper's distinction between solving a problem with a written sequence of steps and doing the relevant work within a single completion.
Neither body of work settles what happens when the premises are implicit. Successful retrieval in a direct prompt shows that the system can produce a fact under a particular cue. It leaves open whether the system will find and use the same fact when its subject occurs only as a description. Conversely, supplying the connecting facts demonstrates what the system can do with information already in its input. The opportunity to use those facts in the input changes the task. In the example, spelling out who sings the song can take care of the first hop before the system has to answer. Spelling out the mother's name also makes it possible to get the answer by copying.
A correct final answer is compatible with several explanations. It could result from resolving the description and recalling the corresponding attribute. A direct cue involving the song and the requested relation could also be enough. A mistake is similarly ambiguous. The system could resolve the description correctly and still retrieve an incorrect parent. It could also show a weak signal for the right performer while another association has a greater effect on the final prediction. The paper treats that ambiguity as a problem for any evaluation that records only whether the last answer matches a reference.
From factual recall to a test of composition
As Yang and colleagues describe earlier work, pretrained systems can struggle with a composed question even when they can answer its component questions separately. They place that observation alongside work such as Faith and Fate. Knowing the component answers and connecting them in the original prompt are separate capabilities. One aim of the study is to distinguish a failure to resolve the intermediate reference from a failure to make that resolution useful.
The authors also draw on earlier interpretability research about how an internal representation carries information about a named subject. Locating and Editing Factual Associations in GPT and Dissecting Recall of Factual Associations inform their choice of where to look. In particular, the position of the last token in a subject expression can matter for the information encoded about that subject. Yang and colleagues apply that idea to a descriptive phrase whose referent must be recovered. They study a position where the description has just become complete, before the subsequent text has finished specifying the cue for the final answer.
The study concerns a Transformer, which develops a representation for each token through a series of layers. Earlier investigations of internal reasoning, as characterized by the paper, often examined a direct factual hop, used a controlled training setup, or sought the dominant circuit on a simple task. Those settings make it easier to isolate a computation. Yang and colleagues instead take pretrained systems as they are and look for one recognizable route across a collection of questions about real entities. They allow for several routes to contribute to a prediction. A small effect in the expected direction can then be informative, even in a case where the eventual answer remains the same.
Prior work on response consistency also helps explain the choice of experiment. The authors cite Measuring and Improving Consistency in Pretrained Language Models as part of a literature that measured inconsistent responses and sought to remedy them. Here, consistency is a sign to watch while changing the internal computation. If an intervention tied to the bridge leads the composed prompt to behave more like its direct counterpart, the experiment gains a way to ask what the information about the bridge is doing.
There is a practical reason to care about the difference. Earlier knowledge-editing studies cited by the authors found difficulty getting edits to individual facts to propagate to answers that depend on them. A route through the edited fact would offer a way for an updated answer to follow from the change. Separate associations for the component fact and the composed answer would instead permit them to disagree. Yang and colleagues investigate whether a route of the former kind can be detected during ordinary inference. An intervention during inference and an edit to factual knowledge are distinct operations, and the paper's experiment addresses the first of them.
The method, step by step
Turn a pair of facts into a matched pair of prompts
The procedure begins with facts that meet at an entity. The first fact connects a starting entity to a bridge. The second takes the bridge as its subject and assigns it an attribute. In the song example, the episodes of retrieval are finding the singer associated with Superstition and finding the singer's mother. Only the start of the chain appears by name in the composed prompt. The direct version gives the name of the bridge and asks for the same final attribute.
The matching is important. Consider a system that tends to give a particular answer when asked directly about Stevie Wonder's mother. The corresponding two-hop prompt gives the researchers a concrete reference for how that same system expresses its knowledge when it has access to the identity. Both prompts concern the same target attribute. The difference is whether the bridge identity is named in the input or must be inferred from a description.
Testing a latent path through a bridge entity
The steps in order.
The basic representation is a fact triple.
(e, r, e′)
Here e is the subject entity, r is the relation, and e′ is the object entity. The parentheses group the three fields, and the commas separate them. In a triple about Stevie Wonder's mother, Stevie Wonder is the subject, the mother relation specifies what is being asked, and Lula is the object.
e′ = r(e)
Here r(e) means applying relation r to subject e, and e′ is the selected result. The equals sign expresses the fact the prompt is intended to query. This function notation depends on the authors' selection of cases where the object can be treated as unique or as the best-known value. A relation can have many objects in the world, so the notation expresses a decision about which facts to include.
((e₁, r₁, e₂), (e₂, r₂, e₃))
Here e₁ is the starting entity and e₂ is the bridge, with r₁ connecting them. In the second triple, e₂ is the subject, r₂ is the requested relation, and e₃ is the final object. The outer parentheses group the two triples, while the inner parentheses enclose each fact. In the running example, the sequence of entities is the song, the singer and the singer's mother.
r₂(r₁(e₁)) = r₂(e₂) = e₃
Here r₁(e₁) is the bridge recovered by applying the first relation r₁ to the starting entity e₁. The result is e₂. Applying the outer relation r₂ to that result yields e₃, the same answer as when r₂ applies directly to e₂. The nested parentheses show the order of the operations, and the equals signs state that the composed and direct expressions share a target.
A pattern such as the mother of a song's performer defines a composition type. Prompts in the same type vary the entities while preserving the roles of the relations. Other composition types involve finding the exchange associated with a game's developer or identifying a university's founder through a former student. The taxonomy lets the researchers inspect results for related questions. It also gives them a source of alternatives that can change the reference while keeping the original pattern intact.
Build TwoHopFact from graph records
The authors gather the necessary facts from the Wikidata knowledge graph. A knowledge graph represents entities and the relations among them. Its structure makes it possible to search for pairs of triples that share the required middle entity. The researchers select relations manually and look for combinations with enough well-known examples. The graph is a source for assembling and checking the prompts. Its relevant records do not accompany the main prompts when those prompts are evaluated.
The relation design starts with 19 types of descriptions that can point to a bridge. A description can identify a singer by a song, a chief executive by an organization, or another sort of entity through an appropriate relation. The team then considers which attributes make sense for the resulting kind of bridge and can supply enough usable examples. A person can be the subject of a parent relation, and an organization can be the subject of a headquarters relation. The resulting 52 composition types specify both what kind of starting entity is used and how the two relations are connected.
The authors write a Wikidata query for each type. They seek individually identifiable entities with natural-language Wikipedia titles and favor records with more reference links. To handle queries that return too many results in the time allowed, they restrict some requests by their reference counts or through extra conditions. The selection procedure excludes cases in which the starting entity and bridge are identical, which could allow the system to copy the bridge name straight from the prompt. The authors also describe efforts to limit repeated bridge entities within a type and down-sample to reduce disparities in the sizes of the types.
A time-sensitive relation needs an additional convention. The person who leads an organization can change between the date at which a system learned about the organization and the date when a graph is queried. For relations of this kind, the authors ask for the value as of January 1, 2022, taking the training period of LLaMA-2 into account. The date governs the reference facts used for collection. The experimental sentence itself can still leave the date implicit, as an ordinary query about a current officeholder would.
Templates turn the graph records into language in two stages. An inner template takes the starting entity and describes the bridge. An outer template takes a mention of the bridge and asks for the final attribute. The outer template works with either the bridge's name or the description that points to it. In the music example, the description identifies someone by the performance of Superstition. The outer template asks for the mother of whoever the inserted expression identifies. The authors write one representative wording per description or outer relation template and check the resulting prompts for grammaticality. They use Wikidata page titles for entity names.
τ₂H = tᵣ₂(mᵣ₁(e₁))
Here τ₂H is the two-hop prompt. The template mᵣ₁ expresses relation r₁ as a description formed from the starting entity e₁. The template tᵣ₂ asks for the attribute given by relation r₂. The parentheses indicate which expression each template takes as input, and the equals sign defines the resulting prompt.
τ₁H = tᵣ₂(name(e₂))
Here τ₁H is the corresponding one-hop prompt. The expression name(e₂) is the written name of bridge entity e₂, and tᵣ₂ is the same outer template that asks for the attribute specified by relation r₂. The equals sign defines the direct prompt, with the parentheses showing how the name enters the template. The paper uses pretrained LLaMA-2 weights for these tests. Constructing the prompt pairs supplies experimental inputs and reference answers. It adds no training stage.
Read the first hop where the description ends
To measure whether the description calls up the bridge, the authors inspect the representation at its final token. A token is a unit of text recognized by the system and can be smaller than a written word. The closing position is a place where the whole description is available to the computation. In the example, the position belongs to the phrase that identifies the singer by the song. It is earlier than the end of the full prompt, where the system predicts the first token of the mother's name.
The authors use the logit lens, which applies the ordinary output projection to an internal state. The usual prediction process turns a final-layer representation into a vector of vocabulary scores called logits, then converts the logits to probabilities. A logit lens uses the same projection to ask which token an earlier representation would favor if it were read through that output machinery. To compute EntRec, their internal score for entity recall, the authors take the log probability assigned to the known bridge name’s opening token.
EntRecℓ(e₂, τ₂H) = log softmax(LN(hℓ) Wᵁ)[idx(ê₂)]
Here ℓ is the layer index, e₂ is the bridge entity and τ₂H is the composed prompt. The vector hℓ is the output of layer ℓ at the final token of the description identifying e₂. The function LN applies the normalization ordinarily used for the final layer's output. Multiplication by Wᵁ, the unembedding matrix, projects the normalized vector from its hidden dimension into vocabulary space. The function softmax converts the resulting vocabulary scores to probabilities. The brackets select the entry at idx(ê₂), the vocabulary index of the first token ê₂ of the bridge's name. The function log takes the logarithm of that probability, and the equals sign defines the score.
A higher EntRec means that this readout gives greater probability to the name's first token. The paper omits the output bias term because it can reflect token frequency, which the authors want to keep out of this measure. Using the final normalization also allows the corresponding final-layer projection to be read in next-token terms for a prefix ending at the description. Earlier layers are read through the same lens so that each layer can be tested with the same operation.
For the first-hop experiment, the main comparison is between the original prompt and a modified prompt that points away from the bridge. The authors make the modification in two ways. An entity substitution keeps the relation and replaces the starting entity, such as replacing Superstition with Thriller while still asking about a singer's mother. A relation substitution keeps the starting entity and replaces the way the description refers to someone, such as changing a singer description to one about a plagiarist. In both cases the target of the measurement remains the original bridge, Stevie Wonder.
The researchers randomly select one alternative starting entity from the same composition type and one alternative relation from a pre-defined set for the relevant description. They then ask whether replacing each control with the original prompt raises the bridge score. Choosing two constructions for the control matters because each holds different content fixed. The entity version preserves the relationship word and changes what it applies to. The relation version preserves the starting name and changes the relationship that determines the intended bridge.
EntRecℓ(e₂, τ₂H) > EntRecℓ(e₂, τ′₂H)
Here EntRecℓ is the internal recall score at layer ℓ, e₂ is the bridge whose name is measured on both sides, τ₂H is the original prompt and τ′₂H is one of the substituted controls. The greater-than sign specifies the event counted as a first-hop success. An equal score supplies no positive event. The outcome is counted for each prompt and layer, with the substitution families analyzed separately. The first-hop statistic is the frequency of the expected direction of change across cases. A large movement on an individual example counts once, just as a small movement in that direction does.
Measure which answer the system is moving toward
At the second hop the authors want to learn whether the bridge signal can influence what is said about the bridge. They compare the probability distributions for the next token at the end of the complete direct and composed prompts. The possibility of an incorrect direct response is central to this design. Suppose a system gives the same mistaken family association when asked about a named person and when asked about that person indirectly. That pattern might still arise from using the intermediate identity. A comparison based solely on the reference answer would miss the possibility.
The consistency score, or CnstScore, compares probabilities across the vocabulary. It can register a shift even if the most likely token stays in place. A categorical comparison of generated answers would miss a change in the distribution that leaves the winner unchanged. Using both directions of cross-entropy gives the direct and composed distributions symmetric roles in the score.
H(Q, P) = −∑ᵢ₌₀ⱽ⁻¹ Pᵢ log Qᵢ
Here H(Q, P) is cross-entropy with the weights supplied by distribution P and the logged probabilities supplied by distribution Q. The index i identifies a vocabulary entry, V is the vocabulary size, and Pᵢ and Qᵢ are the probabilities that the two distributions assign to entry i. The sum runs from 0 through V−1, multiplying each weight by the logarithm of the corresponding probability. The minus sign establishes the cross-entropy convention, and the equals sign defines H.
CnstScore(τ₂H, τ₁H) = −0.5 H(p₂H, p₁H) − 0.5 H(p₁H, p₂H)
Here CnstScore is the consistency score for the composed prompt τ₂H and the direct prompt τ₁H. The vectors p₂H and p₁H are their respective next-token probability distributions, and H is the cross-entropy just defined. Each coefficient 0.5 gives the two directions equal weight. The signs make the resulting score the negative of their average, so an increase indicates greater agreement by this measure. The equals sign defines CnstScore.
The paper favors this score over comparing completion strings and discusses why it chose cross-entropy over Kullback–Leibler or Jensen–Shannon divergence. The authors are interested in how probabilities line up across the two prompts. They argue that the entropy terms in those alternative measures can obscure the cross-entropy signal they wish to track. Their experiments use CnstScore as an operational measure of agreement. Its changes need to be understood in the context of that definition and the fixed direct-prompt reference.
Intervene in the earlier representation
EntRec is a measurement of a hidden state. The eventual answer distribution depends on the hidden state through the remaining computation. Increasing the number recorded as EntRec on a worksheet would have no effect on that computation. The intervention therefore modifies the vector from which the score is calculated. Its direction is chosen to make the bridge name's first token better supported under the lens.
For a given layer and prompt, the gradient tells the authors which local change in the hidden vector would raise EntRec most rapidly. They use activation patching, meaning that they replace the original vector at the chosen position with a modified one while evaluating the prompt. The edited state then participates in subsequent computation. The one-hop distribution is kept fixed as the reference, so any measured change in consistency arises through the two-hop branch of the comparison.
h̃ℓ(α) = hℓ + α ∇ₕℓ Eℓ(hℓ)
Here h̃ℓ(α) is the modified state at layer ℓ, and hℓ is the original state at the description boundary. The function Eℓ is EntRec for the fixed two-hop prompt and bridge, written as a function of the chosen state. The gradient ∇ₕℓ Eℓ(hℓ) gives the direction of steepest local increase with respect to hℓ. The scalar α gives the size of the step along that direction. The plus sign means the intervention adds this scaled vector to the original state, and the equals sign specifies the replacement.
(dCℓ(α)/dα)|α₌₀ > 0
Here Cℓ(α) is CnstScore after the replacement at layer ℓ, using the unchanged one-hop distribution. The expression dCℓ(α)/dα denotes the rate at which that score changes as the intervention strength α changes. The vertical bar with α₌₀ specifies evaluation at the original state, where α is 0. The greater-than sign defines a positive derivative, which is the event counted as evidence for the second hop.
This test asks about the immediate direction of change. It does not require choosing a large edit or seeing a different completion at the end. An intervention may increase consistency by shifting small amounts of probability across several tokens. The statistic counts a positive derivative as long as the expected direction is present. It therefore answers how frequently the output can be influenced in that direction near its current state. The absolute gain or the practical effect of a finite-strength intervention is a separate question.
For an answer at the end of the full prompt, a state at the earlier description position can matter through attention in later layers. Changing that earlier position after the last layer leaves no later layer through which the replacement can affect the output. The paper sets the plotted final-layer second-hop value to the neutral reference of 0.5 by convention. When plotting the corresponding joint result, it applies the same neutral factor to the first-hop frequency. Those endpoint values belong to the plotting convention.
Combine the two events on the same prompt
The authors record a first-hop and a second-hop outcome for each prompt at the same layer. A case can pass both tests, pass only the first, pass only the second, or pass neither. Passing the first alone means the description made the target name more readable but steering the state along that readout did not move the answer distribution in the expected direction. Passing the second alone means that steering can move the answer distribution toward the direct reference even though the original description did not raise the recall score over the selected control.
The joint count is the intersection of positive events on individual prompts. Taking a first-hop peak from one layer and a second-hop peak from another, or combining two aggregate frequencies, would answer a different question. The paper's joint event asks whether the descriptive cue raises the bridge score where an increase in the same score can influence the prediction in a compatible way. The authors use this co-occurrence as evidence that the system has a route through the bridge. Their test pairs a change to the input with a separate intervention on a hidden state, a distinction that matters when interpreting the result as evidence about an unperturbed answer.
Experiments and results
The data, systems and reference points
TwoHopFact supplies 45,595 unique one-hop and two-hop prompt pairs drawn from matching factual triples. The paper evaluates pretrained LLaMA-2 at 7B, 13B and 70B. Its technical appendix reports full precision for 7B and 13B and half precision for 70B. The weights come from the Hugging Face Transformers library. The experiments apply the same basic comparisons to each size, then examine patterns by layer and composition type.
The sampling makes the dataset more varied than a collection dominated by a single kind of query. The largest composition type, birth city of a novel's author, accounts for 7.41% of the prompt pairs. The dataset appendix reports that the largest share held by a most frequent bridge entity within any composition type is 15%. It also examines the most frequent final answers by type. For its type-level analyses, the team collects more than 30 prompts per type. These statistics describe the assembled benchmark. They help explain how the authors sought to keep a few templates or repeated names from determining an aggregate result.
The prompt controls for the first hop are the entity substitutions and relation substitutions. Their role is to provide a comparison for the same target token under alternative wording that changes the referent. The chance reference for a positive sign in either hop is 0.5. For the second hop, the authors also use a randomly initialized LLaMA-2 7B system to check that reference empirically. The joint analysis uses 0.25 as its random reference for both signs being positive. The chance references are guides for interpreting directional frequencies. They are separate from the fraction of questions answered correctly.
A result given as a maximum in this section is a peak over layers for the named size, metric and prompt set. A peak answers whether there is a layer at which the predicted pattern is relatively widespread. Its value can sit alongside weaker results elsewhere in the same system. The paper's layer-by-layer analyses show how the signal develops across the network, while the peak comparisons give a concise view of differences between sizes and between composition types.
The first hop becomes easier to detect with scale
On all of TwoHopFact, the 7B entity-substitution experiment shows clearer evidence in deeper layers. Its peak frequency of increased bridge recall is 0.71 in layer 31. The 7B result using relation substitutions varies more across layers and reaches its maximum of 0.63 in layer 20. Both results are above the 0.5 reference. The different peak layers illustrate why it is useful to have both controls. Changing a starting entity and changing a descriptive relation need not produce identical layer profiles, even if both alterations redirect the phrase away from the same bridge.
The first-hop maxima rise across the available LLaMA-2 sizes for each substitution family. With entity substitutions they are 0.71 for 7B, 0.72 for 13B and 0.78 for 70B. With relation substitutions they are 0.63 for 7B, 0.64 for 13B and 0.76 for 70B. These are frequencies at which the original descriptions raise the corresponding bridge scores over their controls. They quantify how regularly the score reacts in the direction the first-hop hypothesis predicts.
Peak first-hop recall-increase frequencies on TwoHopFact
Both prompt controls show a rise in the peak frequency as LLaMA-2 gets larger.
The numbers
| System or setting | relative frequency |
|---|---|
| Chance reference | 0.5 |
| 7B with entity substitution | 0.71 |
| 13B with entity substitution | 0.72 |
| 70B with entity substitution (this paper) | 0.78 |
| 7B with relation substitution | 0.63 |
| 13B with relation substitution | 0.64 |
| 70B with relation substitution | 0.76 |
By composition type, the first-hop evidence can be stronger than the dataset-wide result suggests. In size order from 7B through 13B to 70B, 18/25/34 of the 52 types exceed a peak frequency of 0.8 under entity substitution. Under relation substitution the corresponding counts are 21/27/38. The paper describes the strongest coverage as up to 73% of types. It also reports that 11 out of 52 types exceed the threshold at every size with both substitution designs. That last comparison isolates the types for which strong first-hop evidence survives changes in the size of the system and the construction of the negative prompt.
For the type that asks for a country's president after identifying the country by its anthem, the entity-substitution peaks are 0.97/0.92/1.0 in size order. The relation-substitution peaks for that type are 0.87/0.87/0.89. This individual type shows high recall frequencies with both controls. Its entity-substitution numbers also illustrate why the aggregate scaling pattern should be read as a result over the dataset. A particular type can start at a high level and vary differently across sizes.
The second hop has a weaker scaling pattern
In the 7B second-hop test, the authors find statistically significant frequencies above 0.5 in the middle and later layers. The maximum on TwoHopFact is 0.64 in layer 30. That value represents the frequency of positive consistency derivatives when the authors strengthen the bridge signal. The randomly initialized comparison supports 0.5 as the neutral directional reference. Together the comparisons show a directional effect for pretrained weights while giving a sense of how often it occurs.
The dataset-wide peaks are 0.64 for 7B, 0.65 for 13B and 0.61 for 70B. The largest system has the strongest first-hop peak under both controls, while its second-hop peak remains in the same range as the others. The two diagnostics are addressing different demands. In the first, the description needs to make the intended name more accessible to the readout. In the second, the altered state must influence a later prediction about an attribute of that entity. A stronger result on the earlier demand can coexist with modest progress through the later one.
Peak second-hop consistency-increase frequencies on TwoHopFact
The peak reaches its highest value at the middle LLaMA-2 size.
The numbers
| System or setting | relative frequency |
|---|---|
| Chance reference | 0.5 |
| LLaMA-2 7B | 0.64 |
| LLaMA-2 13B (this paper) | 0.65 |
| LLaMA-2 70B | 0.61 |
At the composition level, 10/7/5 of the 52 types exceed a maximum frequency of 0.8 in the 7B, 13B and 70B experiments respectively. The paper reports strong second-hop evidence in up to 19% of types under this rule. Two types are above the threshold at each size. For questions about the founder of a person's undergraduate university, the peaks are 0.86/0.81/0.82. For questions about the president of the country identified by its anthem, they are 0.84/0.89/0.82. The latter type is also strong in the first-hop comparisons. The joint measurement is still needed to establish how frequently the signals coincide on the same prompts and at the same layer.
The authors connect the scaling result to earlier work on the compositionality gap, which describes failures on a composed problem despite success on its component problems. As reported by the paper, direct factual performance can improve faster with size than performance on the composed task. A system may then have more individual facts available to it without a similar improvement in linking them. Yang and colleagues offer the gap between their first-hop and second-hop scaling patterns as a possible explanation for that behavioral observation.
Both signals sometimes occur together
For LLaMA-2 7B, the peak joint frequency across TwoHopFact is 0.46 with entity substitutions and 0.38 with relation substitutions. Both are above the paper's reference of 0.25. In later layers the frequency of at least one positive test exceeds 0.8. The at-least-one statistic includes all cases in which the description affects recall, as well as cases in which the recall intervention affects consistency, and includes their overlap. The joint frequency isolates the cases with both effects.
In the joint comparison with relation substitutions, the peak goes from 0.38 for 7B to 0.43 for 70B. The authors see a scaling trend for that substitution family. With entity substitutions, in contrast, they find no increasing joint trend across sizes. Thus the reported evidence for an improvement in the full pathway depends on how the first hop is tested. In particular, the clearest general scaling result remains the isolated first-hop pattern.
Peak joint success with relation substitution on TwoHopFact
The largest tested LLaMA-2 system has a higher joint peak than the smallest under the relation control.
The numbers
| System or setting | relative frequency |
|---|---|
| Joint chance reference | 0.25 |
| LLaMA-2 7B | 0.38 |
| LLaMA-2 70B (this paper) | 0.43 |
For the type-level joint analysis, the paper chooses a separate threshold. It sets that threshold by squaring the cutoff used to describe strong evidence for an individual hop.
0.8² = 0.64
Here 0.8 is the single-hop frequency cutoff used for the comparison, the superscript ² squares that value, and 0.64 is the resulting joint threshold. The equals sign states the authors' threshold convention. Joint frequencies themselves come from counting prompts that pass both tests.
With entity substitutions, 7/3/12 types exceed 0.64 in size order. With relation substitutions the counts are 3/3/9. The highest coverage is the basis for the reported figure of up to 23% of composition types. It refers to this 0.64 threshold. Within the breakdown there are also settings in which joint success exceeds 80% of prompts for a type. Those are stronger observations about particular settings.
The paper presents the type labeled anthem of a capital's country as an example with joint peaks above 0.64 across the tested sizes and controls. The entity-substitution peaks are 0.68/0.82/0.66 and the relation-substitution peaks are 0.74/0.82/0.68. The example helps locate the strength of the evidence. A type can support high joint frequencies with both controls, and the intermediate size can produce its highest peaks. The dataset-wide result averages over questions that present quite different opportunities for the proposed route. The result for one type cannot be inferred from the aggregate result alone.
What the ablations show
Does the recall score predict a possible use of the name?
The paper uses controlled prompt and activation comparisons to investigate its measurements. One concern is that a hidden state could give a higher score to part of a name through the logit lens without making that name useful elsewhere in the computation. The authors address this with an appositive-generation experiment. An appositive is a neighboring phrase that identifies or describes the same thing. After a phrase about the performer of Superstition, a comma can introduce the clarification Stevie Wonder. This setup gives the system a natural place to produce the bridge name as text.
The authors take the prefix through the descriptive phrase and append a comma. They increase the recall signal at the end of the description, then inspect the probability of the first token of the bridge name after the comma. The test uses LLaMA-2 7B. Its measurement position for the predicted token comes after the comma, so it differs from directly projecting the intervened-on vector and observing the intended gain. The authors exclude descriptive endings for which appending the comma changes the result of tokenization. This keeps those punctuation-dependent changes out of the experiment.
In most middle and later layers, a stronger bridge signal also increases the probability of beginning the appositive with the bridge name. This supports the interpretation of EntRec as an informative readout at those layers. The comparison is especially relevant because the effect crosses a token boundary, from the description position where the state was changed to the prediction after the comma. The check still concerns the beginning of a name, and the comma makes producing a name particularly natural. It provides indirect confirmation for the score without assigning a measure of fully recovered names across the main prompts.
What happens when the bridge or the answer is supplied?
The authors also ask whether their consistency score reacts as expected when the prompt offers different amounts of information. They compare the ordinary two-hop prompt against versions that supply the identity of the bridge or put the final answer in the input. In the first of those enriched conditions, the input gives the song's connection to Stevie Wonder but leaves the mother's name to be produced. In the conditions with the answer, the name can be reproduced using text already present. The authors compare each resulting distribution with that of the direct prompt.
For LLaMA-2 7B, consistency with the direct prompt is lower in the ordinary two-hop condition than in the conditions with added information. The condition that supplies the bridge identity while leaving the final attribute to recall has higher mean consistency than the conditions that give the answer explicitly. That ordering supports the authors' interpretation of the score. When only the identity is supplied, the system has a cue that allows it to draw on its own associations about the person. Providing the reference answer itself may instead concentrate probability on an answer that differs from its usual direct response, or affect the shape of the distribution through copying.
This comparison separates two ways that additional context can help. Naming the bridge helps establish what the prompt is asking about, while giving the final answer supplies a possible completion directly. Consistency with a direct query is particularly sensitive to the first option in this experiment. The change in wording and information also changes the prediction context, which is why the authors use this result as an indirect check on the metric rather than as a tracing experiment for the ordinary two-hop computation.
Would using the reference answer change the scaling result?
The paper repeats the second-hop analysis with an outcome tied to correctness. It selects the 17,231/45,595 composed prompts whose direct counterparts receive the reference answer from all tested sizes. This gives a shared subset for the comparison. It defines the alternative outcome as the log probability assigned to the reference answer’s first token when it follows the two-hop prompt. The intervention still strengthens the bridge signal and the statistic still counts positive derivatives. The change is which prediction outcome the authors measure.
On this subset, the peak positive-derivative frequencies under CnstScore are 0.64 in layer 30 for 7B, 0.65 in layer 14 for 13B and 0.62 in layer 40 for 70B. For log probability of the reference answer's first token, the peaks are 0.60 in layer 30, 0.62 in layer 13 and 0.59 in layer 40, in the same size order. The reference-token outcome gives slightly lower peaks. Both measures place their highest peak at the intermediate size. This comparison supports the claim that the second-hop scaling pattern survives an outcome definition based on the known answer in cases where that answer is available to the direct query.
The choice to require every size to succeed on the direct version matters for interpretation. The compared systems are evaluated against the same collection of composed queries, and the correct direct response makes reference-token probability a sensible alternative. The resulting peaks describe that subset. The full-dataset CnstScore results include cases in which the corresponding direct answer is incorrect and can therefore reveal a different aspect of knowledge use.
Does correct direct recall make the consistency effect stronger?
A further analysis uses two groups. In one, every size answers the one-hop prompt with an accepted reference answer. In the other, every size fails to produce an accepted answer to that prompt. The authors sample so that the groups have the same distribution of composition types. That step is important because some types produce stronger second-hop effects than others. With the type proportions aligned, a comparison between the groups has less opportunity to reflect a difference in which kinds of questions they contain.
Each group has 9,734 two-hop prompts after sampling. On the group with correct direct completions, the maximum frequency of positive consistency derivatives is 0.62 in layer 30 for 7B, 0.65 in layer 14 for 13B and 0.62 in layer 46 for 70B. On the group with incorrect direct completions, the peaks are 0.65 in layer 29, 0.65 in layer 20 and 0.61 in layer 46, respectively. The layer of peak effect can shift, while the frequencies remain broadly similar.
These results help explain what the consistency method adds. Its directional signal also appears in cases where the direct query produces a wrong accepted-answer outcome. The internal bridge can have consequences for the output even when the association elicited by the direct question is inaccurate. For analysis of the pathway, that possibility is worth detecting. For an application scored on correct final answers, the two phenomena would need to be assessed separately. The experiment reports the former and uses the reference-token comparison to check how the same intervention behaves in a case where the latter can be studied on common ground.
Limitations
Limits the authors state
The authors bound their claim to a particular way of connecting the hops. EntRec reads a state at the last token of a descriptive phrase through the system's output vocabulary, and the intervention changes one such state at a time. A bridge may also be represented over several positions or in a form that becomes useful after further processing. A successful first hop at one layer could therefore contribute to a second-hop computation at another. The paper's joint statistic asks for evidence at the same layer. The authors explicitly leave open how the effects propagate between layers and describe their frequencies as a possible lower bound on how much latent composition occurs.
A corresponding limit concerns the route's status in an actual answer. The authors designed the test to find a pathway even if other influences make a greater contribution to the output. They test the hops separately and combine the signs, which leaves open how much of the untouched prediction traveled through the proposed route. The claim of a possible lower bound refers to ways of reasoning their method could miss. It does not turn every positive case into an example of an exclusively or correctly executed deduction.
The authors also acknowledge misfit between the dataset's intended relations and real-world knowledge. Their collection aims for a unique or prominent object at each step. Wikidata can still contain noisy records, and the selected value can be one of several valid values outside the collection. Some answers also change over time. Choosing a date for mutable relations helps align collection with the experimental setting while leaving ordinary ambiguity about offices, organizations and the timing of facts. This matters both for the target identity of a descriptive phrase and for the reference answer associated with that identity.
EntRec is itself an approximation. A first token can occur in multiple names and can reflect only part of what is encoded about the entity. The authors also note known difficulties with logit-lens readouts. Internal representations can change across layers, the readout can be biased, and its behavior can be brittle. Their argument is that their research question concerns changes in existing states, so the lens need not produce a fully accurate standalone prediction from an early layer. The appositive result supports that use of the measurement at some layers. It leaves the limits of the chosen token and readout in place.
Finally, the study's scaling evidence comes from one family through 70B. The paper discusses training data, losses and architectures as possible sources of improvements in internal knowledge use. Its experiments compare existing weights and do not manipulate those choices independently. The observed divergence between first-hop and second-hop trends raises a question about scaling under the tested conditions. The evidence is too specific to establish how the same diagnostics would behave in a differently trained system or elsewhere in the range of possible sizes.
Further limits visible in the design
The two interventions support different kinds of inference. In the first hop, changing the prompt also changes its lexical content and associated facts. The two substitution families make it less plausible that a single kind of prompt alteration explains the whole pattern. Even so, the strict comparison tells us that the original description gives a stronger bridge readout than the selected alternative. It is a relative test with one sampled alternative of each kind for a prompt. A weak contrast might indicate weak recall in the original or unexpectedly strong evidence for the same name in the control. A positive contrast does not on its own establish how the effect would hold across all alternative phrasings.
The gradient intervention is precise about which score it increases. In a distributed representation, changing a vector can affect other features besides the readout that defined the direction. An increase in consistency gives causal evidence about the consequences of this particular state perturbation. It does not uniquely identify what all the changed coordinates represent. A stronger account of natural use would also need to trace the information carried away from the description, or show what happens when the relevant route is interrupted during the original computation. The paper's one-coordinate-in-the-sequence intervention is a way of posing a constrained question about that broader process.
The outcome metric is also deliberately local to the next-token prediction. Two outputs can start with the same token and diverge later, and an increase in CnstScore can leave the final generation unchanged. Similar distributions can represent the same wrong answer or reflect similar uncertainty. The accuracy-based control shows that the scaling pattern holds for a related reference-token signal on a subset. The main results still have the meaning assigned by the two proxies. The reported joint frequency is a rate of co-occurring directional effects and should be read at that level.
A peak over layers is suited to the authors' question of where a signal can be found. As a description of typical behavior throughout a system, a peak leaves information out. The fact that different settings can peak at different layers is itself consequential when reading the joint results or comparing scales. The figures' neutral values at the last layer are another place where the measurement design governs the reading. At that layer the intervention is disconnected from the final prediction, so the plotted endpoint supplies no measured effect.
TwoHopFact also defines a specific slice of factual composition. Its items use manually chosen relations, a representative template for each template role and graph facts selected for recognizability and usable sample sizes. Those decisions make the comparisons reproducible and provide a direct counterpart for the composed prompts. They also limit what can be inferred about untemplated questions, ambiguous descriptions, less prominent entities, and chains extending beyond the two relations under study. Variation across the dataset's own composition types already shows that the form of the question matters.
The same caution applies to the editing motivation. A local change to an activation during inference differs from changing what the weights store about an entity. Discovering that the bridge signal can affect the composed response identifies one possible route for an edit to matter. Whether a persistent edit propagates depends on which knowledge it changes and which route subsequently contributes to the response. The paper measures the availability of a connection under its intervention and leaves the propagation of specific edits to be tested separately.
What came after
Following the intermediate computation
The later citing work spans several questions that Yang and colleagues' split between recall and use brings into focus. The titles establish those directions and the citation establishes a connection to the paper. The precise reuse of a metric, prompt set or intervention varies independently of that connection. The clearest comparisons are therefore between the questions that the works take up.
Hopping Too Late puts the timing of computation at the center of an investigation of limitations on multi-hop queries. Yang and colleagues provide a reason for treating timing as significant by locating recall at a description boundary and testing whether that state can affect the later prediction. A bridge signal is useful for composition only if it reaches computation that can act on it. The later title frames failure around when a hop happens, a narrower question than whether an intermediate entity is decodable somewhere in the network.
Do LLMs Really Think Step-by-step In Implicit Reasoning? asks whether implicit reasoning has an ordered sequence of steps. This is close to the distinction between Yang and colleagues' evidence for a usable local route and the stronger claim that a natural computation executes an ordered chain. Internal Chain-of-Thought takes up the related topic of how subtasks are scheduled across layers. Together these questions extend the emphasis from whether an intermediate representation can influence the answer to where and in what order the necessary operations are carried out.
Back Attention makes attention the focus of a study of how to understand and improve multi-hop reasoning. In the original experiment, later attention gives the patched state at the description boundary a route to influence a different token position. All for One explores information transfer across token positions in the distinct setting of mental arithmetic. Its title places the solution at the last token and highlights information arriving from other tokens. Both questions help specify what a bridge-based explanation would ultimately need to account for, including where information originates and where it is used.
Separating stored knowledge, inference and evaluation
Disentangling Memory and Reasoning Ability makes the distinction between stored information and the ability to reason with it its organizing problem. In Yang and colleagues' setup, the direct prompt samples what the system says when it is given the bridge name, while the paired composed prompt tests a setting in which that name is missing. The later work's framing widens the distinction beyond a particular bridge readout. Failure Modes in Multi-Hop QA narrows in on named failure mechanisms, including recognition and the weakest link in a chain. That framing carries forward the idea that an aggregate error can obscure where the computation became unreliable.
Other citing work takes the issue into benchmark design. Functional Benchmarks for Robust Evaluation of Reasoning Performance addresses robust evaluation and a reasoning gap. CRiT-QA uses counterfactual chains and distractor traps in multi-hop assessment. These directions are relevant to the ambiguity at the start of Yang and colleagues' paper. When a system knows ordinary associations between the entities, a correct final answer can be reached in several ways. A counterfactual chain tests behavior when a familiar association and the chain specified by the task can pull in different directions. Distractors likewise bring the question of choosing the relevant connection into the test design.
The distinction between written reasoning and reasoning in internal states also carries into later work on what can be observed and what can be changed. Measuring Chain of Thought Faithfulness by Unlearning Reasoning Steps approaches the relation between a reported step and the actual answer through unlearning. Its target is faithfulness of a written chain, whereas the original study begins with no written intermediate step. Soft Thinking takes continuous concept space as the setting for reasoning, pursuing internal representations as a means of computing intermediate steps. A Survey on Latent Reasoning and Implicit Reasoning in Large Language Models place such questions in broader surveys. Yang and colleagues' experiment gives that literature a concrete distinction to preserve between detecting information about a bridge and demonstrating that the information can influence the answer.
Cite
Cite as Sohee Yang, Elena Gribovskaya, Nora Kassner, Mor Geva and Sebastian Riedel. 2024. Do Large Language Models Latently Perform Multi-Hop Reasoning?. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{yang2024do,
title = {{Do Large Language Models Latently Perform Multi-Hop Reasoning?}},
author = {Sohee Yang, Elena Gribovskaya, Nora Kassner, Mor Geva and Sebastian Riedel},
booktitle = {Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2024},
doi = {10.18653/v1/2024.acl-long.550},
eprint = {2402.16837},
archivePrefix = {arXiv},
url = {https://doi.org/10.18653/v1/2024.acl-long.550}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/yang-2024-do-large-language-models-latently/
References
- Ekin Akyürek, Dale Schuurmans, Jacob Andreas, Tengyu Ma, and Denny Zhou. 2023. What learning algorithm is in-context learning? investigations with linear models. In ICLR. our card
- Zeyuan Allen-Zhu and Yuanzhi Li. 2023a. Physics of language models: Part 3.1, knowledge storage and extraction. arXiv. our card
- Zeyuan Allen-Zhu and Yuanzhi Li. 2023b. Physics of language models: Part 3.2, knowledge manipulation. arXiv. our card
- Akari Asai and Hannaneh Hajishirzi. 2020. Logic-guided data augmentation and regularization for consistent question answering. In ACL. our card
- Nora Belrose, Zach Furman, Logan Smith, Danny Halawi, Igor Ostrovsky, Lev McKinney, Stella Biderman, and Jacob Steinhardt. 2023. Eliciting latent predictions from transformers with the tuned lens. arXiv. our card
- Lukas Berglund, Asa Cooper Stickland, Mikita Balesni, Max Kaufmann, Meg Tong, Tomasz Korbak, Daniel Kokotajlo, and Owain Evans. 2023. Taken out of context: On measuring situational awareness in llms. arXiv. OpenAlex ↗ · Scholar ↗
- Lukas Berglund, Meg Tong, Max Kaufmann, Mikita Balesni, Asa Cooper Stickland, Tomasz Korbak, and Owain Evans. 2024. The reversal curse: LLMs trained on “a is b” fail to learn “b is a”. In ICLR. OpenAlex ↗ · Scholar ↗
- Jannik Brinkmann, Abhay Sheshadri, Victor Levoso, Paul Swoboda, and Christian Bartelt. 2023. A mechanistic analysis of a transformer trained on a symbolic multi-step reasoning task. OpenAlex ↗ · Scholar ↗
- Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, Sandhini Agarwal, Ariel Herbert-Voss, Gretchen Krueger, Tom Henighan, Rewon Child, Aditya Ramesh, Daniel M Ziegler, Jeffrey Wu, Clemens Winter, Christopher Hesse, Mark Chen, Eric Sigler, Mateusz Litwin, Scott Gray, Benjamin Chess, Jack Clark, Christopher Berner, Sam McCandlish, Alec Radford, Ilya Sutskever, and Dario Amodei. 2020. Language models are few-shot learners. In NeurIPS. our card
- Stephanie Chan, Adam Santoro, Andrew Lampinen, Jane Wang, Aaditya Singh, Pierre Richemond, James McClelland, and Felix Hill. 2022. Data distributional properties drive emergent in-context learning in transformers. In NeurIPS. OpenAlex ↗ · Scholar ↗
- David Chanin, Anthony Hunter, and Oana-Maria Camburu. 2023. Identifying linear relational concepts in large language models. arXiv. OpenAlex ↗ · Scholar ↗
- Roi Cohen, Eden Biran, Ori Yoran, Amir Globerson, and Mor Geva. 2023. Evaluating the ripple effects of knowledge editing in language models. arXiv. OpenAlex ↗ · Scholar ↗
- Arthur Conmy, Augustine N Mavor-Parker, Aengus Lynch, Stefan Heimersheim, and Adrià Garriga-Alonso. 2023. Towards automated circuit discovery for mechanistic interpretability. In NeurIPS. our card
- Damai Dai, Yutao Sun, Li Dong, Yaru Hao, Zhifang Sui, and Furu Wei. 2023. Why can GPT learn in-context? language models secretly perform gradient descent as meta-optimizers. In Findings of ACL. our card
- Nicola De Cao, Wilker Aziz, and Ivan Titov. 2021. Editing factual knowledge in language models. In EMNLP. our card
- Alexander Yom Din, Taelin Karidi, Leshem Choshen, and Mor Geva. 2023. Jump to conclusions: Short-cutting transformers with linear transformations. arXiv. OpenAlex ↗ · Scholar ↗
- Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jiang, Bill Yuchen Lin, Sean Welleck, Peter West, Chandra Bhagavatula, Ronan Le Bras, Jena D Hwang, Soumya Sanyal, Xiang Ren, Allyson Ettinger, Zaid Harchaoui, and Yejin Choi. 2023. Faith and fate: Limits of transformers on compositionality. In NeurIPS. our card
- Yanai Elazar, Nora Kassner, Shauli Ravfogel, Abhilasha Ravichander, Eduard Hovy, Hinrich Schütze, and Yoav Goldberg. 2021. Measuring and improving consistency in pretrained language models. TACL. our card
- Jiahai Feng and Jacob Steinhardt. 2024. How do language models bind entities in context? In ICLR. OpenAlex ↗ · Scholar ↗
- Mor Geva, Jasmijn Bastings, Katja Filippova, and Amir Globerson. 2023. Dissecting recall of factual associations in auto-regressive language models. In EMNLP. our card
- Mor Geva, Avi Caciularu, Kevin Ro Wang, and Yoav Goldberg. 2022. Transformer feed-forward layers build predictions by promoting concepts in the vocabulary space. In EMNLP. our card
- Mor Geva, Roei Schuster, Jonathan Berant, and Omer Levy. 2021. Transformer feed-forward layers are key-value memories. In EMNLP. our card
- Evan Hernandez, Arnab Sen Sharma, Tal Haklay, Kevin Meng, Martin Wattenberg, Jacob Andreas, Yonatan Belinkov, and David Bau. 2024. Linearity of relation decoding in transformer language models. In ICLR. our card
- Yifan Hou, Jiaoda Li, Yu Fei, Alessandro Stolfo, Wangchunshu Zhou, Guangtao Zeng, Antoine Bosselut, and Mrinmaya Sachan. 2023. Towards a mechanistic interpretation of multi-step reasoning capabilities of language models. In ACL. OpenAlex ↗ · Scholar ↗
- Myeongjun Jang, Bodhisattwa Prasad Majumder, Julian McAuley, Thomas Lukasiewicz, and Oana-Maria Camburu. 2023. Know how to make up your mind! adversarially detecting and alleviating inconsistencies in natural language explanations. In ACL. OpenAlex ↗ · Scholar ↗
- Nora Kassner, Oyvind Tafjord, Ashish Sabharwal, Kyle Richardson, Hinrich Schuetze, and Peter Clark. 2023. Language models with rationality. In EMNLP. OpenAlex ↗ · Scholar ↗
- Nora Kassner, Oyvind Tafjord, Hinrich Schütze, and Peter Clark. 2021. BeliefBank: Adding memory to a pre-trained language model for a systematic notion of belief. In EMNLP. our card
- Goro Kobayashi, Tatsuki Kuribayashi, Sho Yokoi, and Kentaro Inui. 2023. Transformer language models handle word frequency in prediction head. In ACL. OpenAlex ↗ · Scholar ↗
- Tao Li, Vivek Gupta, Maitrey Mehta, and Vivek Srikumar. 2019. A logic-driven framework for consistency of neural models. In EMNLP. our card
- Zhaoyi Li, Gangwei Jiang, Hong Xie, Linqi Song, Defu Lian, and Ying Wei. 2024. Understanding and patching compositional reasoning in llms. arXiv. OpenAlex ↗ · Scholar ↗
- Tom Lieberum, Matthew Rahtz, János Kramár, Neel Nanda, Geoffrey Irving, Rohin Shah, and Vladimir Mikulik. 2023. Does circuit analysis interpretability scale? evidence from multiple choice capabilities in chinchilla. arXiv. our card
- Thomas McGrath, Matthew Rahtz, Janos Kramar, Vladimir Mikulik, and Shane Legg. 2023. The hydra effect: Emergent self-repair in language model computations. arXiv. our card
- Kevin Meng, David Bau, Alex Andonian, and Yonatan Belinkov. 2022. Locating and editing factual associations in GPT. In NeurIPS. our card
- Eric Mitchell, Charles Lin, Antoine Bosselut, Chelsea Finn, and Christopher D Manning. 2022. Fast model editing at scale. In ICLR. our card
- Neel Nanda and Joseph Bloom. 2022. Transformerlens. https://github.com/neelnanda-io/TransformerLens. OpenAlex ↗ · Scholar ↗
- Neel Nanda, Lawrence Chan, Tom Lieberum, Jess Smith, and Jacob Steinhardt. 2022. Progress measures for grokking via mechanistic interpretability. In ICLR. our card
- nostalgebraist. 2020. interpreting gpt: the logit lens (https://www.lesswrong.com/posts/AcKRB8wDpdaN6v6ru/interpreting-gpt-the-logit-lens). OpenAlex ↗ · Scholar ↗
- Ofir Press, Muru Zhang, Sewon Min, Ludwig Schmidt, Noah Smith, and Mike Lewis. 2023. Measuring and narrowing the compositionality gap in language models. In Findings of EMNLP. OpenAlex ↗ · Scholar ↗
- Catherine Olsson, Nelson Elhage, Neel Nanda, Nicholas Joseph, Nova DasSarma, Tom Henighan, Ben Mann, Amanda Askell, Yuntao Bai, Anna Chen, Tom Conerly, Dawn Drain, Deep Ganguli, Zac Hatfield-Dodds, Danny Hernandez, Scott Johnston, Andy Jones, Jackson Kernion, Liane Lovitt, Kamal Ndousse, Dario Amodei, Tom Brown, Jack Clark, Jared Kaplan, Sam McCandlish, and Chris Olah. 2022. In-context learning and induction heads. arXiv. our card
- Yasumasa Onoe, Michael J Q Zhang, Shankar Padmanabhan, Greg Durrett, and Eunsol Choi. 2023. Can LMs learn new entities from descriptions? challenges in propagating injected knowledge. In ACL. our card
- OpenAI, :, Josh Achiam, Steven Adler, Sandhini Agarwal, Lama Ahmad, Ilge Akkaya, Florencia Leoni Aleman, Diogo Almeida, Janko Altenschmidt, Sam Altman, Shyamal Anadkat, Red Avila, Igor Babuschkin, Suchir Balaji, Valerie Balcom, Paul Baltescu, Haiming Bao, Mo Bavarian, Jeff Belgum, Irwan Bello, Jake Berdine, Gabriel Bernadett-Shapiro, Christopher Berner, Lenny Bogdonoff, Oleg Boiko, Madelaine Boyd, Anna-Luisa Brakman, Greg Brockman, Tim Brooks, Miles Brundage, Kevin Button, Trevor Cai, Rosie Campbell, Andrew Cann, Brittany Carey, Chelsea Carlson, Rory Carmichael, Brooke Chan, Che Chang, Fotis Chantzis, Derek Chen, Sully Chen, Ruby Chen, Jason Chen, Mark Chen, Ben Chess, Chester Cho, Casey Chu, Hyung Won Chung, Dave Cummings, Jeremiah Currier, Yunxing Dai, Cory Decareaux, Thomas Degry, Noah Deutsch, Damien Deville, Arka Dhar, David Dohan, Steve Dowling, Sheila Dunning, Adrien Ecoffet, Atty Eleti, Tyna Eloundou, David Farhi, Liam Fedus, Niko Felix, Simón Posada Fishman, Juston Forte, Isabella Fulford, Leo Gao, Elie Georges, Christian Gibson, Vik Goel, Tarun Gogineni, Gabriel Goh, Rapha Gontijo-Lopes, Jonathan Gordon, Morgan Grafstein, Scott Gray, Ryan Greene, Joshua Gross, Shixiang Shane Gu, Yufei Guo, Chris Hallacy, Jesse Han, Jeff Harris, Yuchen He, Mike Heaton, Johannes Heidecke, Chris Hesse, Alan Hickey, Wade Hickey, Peter Hoeschele, Brandon Houghton, Kenny Hsu, Shengli Hu, Xin Hu, Joost Huizinga, Shantanu Jain, Shawn Jain, Joanne Jang, Angela Jiang, Roger Jiang, Haozhun Jin, Denny Jin, Shino Jomoto, Billie Jonn, Heewoo Jun, Tomer Kaftan, Łukasz Kaiser, Ali Kamali, Ingmar Kanitscheider, Nitish Shirish Keskar, Tabarak Khan, Logan Kilpatrick, Jong Wook Kim, Christina Kim, Yongjik Kim, Hendrik Kirchner, Jamie Kiros, Matt Knight, Daniel Kokotajlo, Łukasz Kondraciuk, Andrew Kondrich, Aris Konstantinidis, Kyle Kosic, Gretchen Krueger, Vishal Kuo, Michael Lampe, Ikai Lan, Teddy Lee, Jan Leike, Jade Leung, Daniel Levy, Chak Ming Li, Rachel Lim, Molly Lin, Stephanie Lin, Mateusz Litwin, Theresa Lopez, Ryan Lowe, Patricia Lue, Anna Makanju, Kim Malfacini, Sam Manning, Todor Markov, Yaniv Markovski, Bianca Martin, Katie Mayer, Andrew Mayne, Bob McGrew, Scott Mayer McKinney, Christine McLeavey, Paul McMillan, Jake McNeil, David Medina, Aalok Mehta, Jacob Menick, Luke Metz, Andrey Mishchenko, Pamela Mishkin, Vinnie Monaco, Evan Morikawa, Daniel Mossing, Tong Mu, Mira Murati, Oleg Murk, David Mély, Ashvin Nair, Reiichiro Nakano, Rajeev Nayak, Arvind Neelakantan, Richard Ngo, Hyeonwoo Noh, Long Ouyang, Cullen O'Keefe, Jakub Pachocki, Alex Paino, Joe Palermo, Ashley Pantuliano, Giambattista Parascandolo, Joel Parish, Emy Parparita, Alex Passos, Mikhail Pavlov, Andrew Peng, Adam Perelman, Filipe de Avila Belbute Peres, Michael Petrov, Henrique Ponde de Oliveira Pinto, Michael, Pokorny, Michelle Pokrass, Vitchyr Pong, Tolly Powell, Alethea Power, Boris Power, Elizabeth Proehl, Raul Puri, Alec Radford, Jack Rae, Aditya Ramesh, Cameron Raymond, Francis Real, Kendra Rimbach, Carl Ross, Bob Rotsted, Henri Roussez, Nick Ryder, Mario Saltarelli, Ted Sanders, Shibani Santurkar, Girish Sastry, Heather Schmidt, David Schnurr, John Schulman, Daniel Selsam, Kyla Sheppard, Toki Sherbakov, Jessica Shieh, Sarah Shoker, Pranav Shyam, Szymon Sidor, Eric Sigler, Maddie Simens, Jordan Sitkin, Katarina Slama, Ian Sohl, Benjamin Sokolowsky, Yang Song, Natalie Staudacher, Felipe Petroski Such, Natalie Summers, Ilya Sutskever, Jie Tang, Nikolas Tezak, Madeleine Thompson, Phil Tillet, Amin Tootoonchian, Elizabeth Tseng, Preston Tuggle, Nick Turley, Jerry Tworek, Juan Felipe Cerón Uribe, Andrea Vallone, Arun Vijayvergiya, Chelsea Voss, Carroll Wainwright, Justin Jay Wang, Alvin Wang, Ben Wang, Jonathan Ward, Jason Wei, CJ Weinmann, Akila Welihinda, Peter Welinder, Jiayi Weng, Lilian Weng, Matt Wiethoff, Dave Willner, Clemens Winter, Samuel Wolrich, Hannah Wong, Lauren Workman, Sherwin Wu, Jeff Wu, Michael Wu, Kai Xiao, Tao Xu, Sarah Yoo, Kevin Yu, Qiming Yuan, Wojciech Zaremba, Rowan Zellers, Chong Zhang, Marvin Zhang, Shengjia Zhao, Tianhao Zheng, Juntang Zhuang, William Zhuk, and Barret Zoph. 2023. Gpt-4 technical report. arXiv. our card
- Fabio Petroni, Tim Rocktäschel, Patrick Lewis, Anton Bakhtin, Yuxiang Wu, Alexander H Miller, and Sebastian Riedel. 2019. Language models as knowledge bases? In EMNLP. our card
- Ben Prystawski and Noah D Goodman. 2023. Why think step-by-step? reasoning emerges from the locality of experience. In NeurIPS. our card
- Marco Tulio Ribeiro, Carlos Guestrin, and Sameer Singh. 2019. Are red roses red? evaluating consistency of question-answering models. In ACL. OpenAlex ↗ · Scholar ↗
- Mansi Sakarvadia, Aswathy Ajith, Arham Khan, Daniel Grzenda, Nathaniel Hudson, André Bauer, Kyle Chard, and Ian Foster. 2023. Memory injections: Correcting multi-hop reasoning failures during inference in transformer-based language models. arXiv. OpenAlex ↗ · Scholar ↗
- Abulhair Saparov, Richard Yuanzhe Pang, Vishakh Padmakumar, Nitish Joshi, Seyed Mehran Kazemi, Najoung Kim, and He He. 2023. Testing the general deductive reasoning capacity of large language models using OOD examples. In NeurIPS. our card
- William Timkey and Marten van Schijndel. 2021. All bard and no bite: Rogue dimensions in transformer language models obscure representational quality. In EMNLP. OpenAlex ↗ · Scholar ↗
- Hugo Touvron, Louis Martin, Kevin Stone, Peter Albert, Amjad Almahairi, Yasmine Babaei, Nikolay Bashlykov, Soumya Batra, Prajjwal Bhargava, Shruti Bhosale, Dan Bikel, Lukas Blecher, Cristian Canton Ferrer, Moya Chen, Guillem Cucurull, David Esiobu, Jude Fernandes, Jeremy Fu, Wenyin Fu, Brian Fuller, Cynthia Gao, Vedanuj Goswami, Naman Goyal, Anthony Hartshorn, Saghar Hosseini, Rui Hou, Hakan Inan, Marcin Kardas, Viktor Kerkez, Madian Khabsa, Isabel Kloumann, Artem Korenev, Punit Singh Koura, Marie-Anne Lachaux, Thibaut Lavril, Jenya Lee, Diana Liskovich, Yinghai Lu, Yuning Mao, Xavier Martinet, Todor Mihaylov, Pushkar Mishra, Igor Molybog, Yixin Nie, Andrew Poulton, Jeremy Reizenstein, Rashi Rungta, Kalyan Saladi, Alan Schelten, Ruan Silva, Eric Michael Smith, Ranjan Subramanian, Xiaoqing Ellen Tan, Binh Tang, Ross Taylor, Adina Williams, Jian Xiang Kuan, Puxin Xu, Zheng Yan, Iliyan Zarov, Yuchen Zhang, Angela Fan, Melanie Kambadur, Sharan Narang, Aurelien Rodriguez, Robert Stojnic, Sergey Edunov, and Thomas Scialom. 2023. Llama 2: Open foundation and fine-tuned chat models. arXiv. our card
- Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In NeurIPS. our card
- Johannes Von Oswald, Eyvind Niklasson, Ettore Randazzo, João Sacramento, Alexander Mordvintsev, Andrey Zhmoginov, and Max Vladymyrov. 2023. Transformers learn in-context by gradient descent. In ICML. our card
- Denny Vrandečić and Markus Krötzsch. 2014. Wikidata: a free collaborative knowledgebase. Communications of the ACM. our card
- Kevin Ro Wang, Alexandre Variengien, Arthur Conmy, Buck Shlegeris, and Jacob Steinhardt. 2023. Interpretability in the wild: a circuit for indirect object identification in GPT-2 small. In ICLR. OpenAlex ↗ · Scholar ↗
- Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. 2022a. Emergent abilities of large language models. TMLR. our card
- Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Ed Chi, Quoc Le, and Denny Zhou. 2022b. Chain of thought prompting elicits reasoning in large language models. In NeurIPS. our card
- Johannes Welbl, Pontus Stenetorp, and Sebastian Riedel. 2018. Constructing datasets for multi-hop reading comprehension across documents. TACL. our card
- Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Clement Delangue, Anthony Moi, Pierric Cistac, Tim Rault, Rémi Louf, Morgan Funtowicz, Joe Davison, Sam Shleifer, Patrick von Platen, Clara Ma, Yacine Jernite, Julien Plu, Canwen Xu, Teven Le Scao, Sylvain Gugger, Mariama Drame, Quentin Lhoest, and Alexander M. Rush. 2020. Huggingface's transformers: State-of-the-art natural language processing. arXiv. our card
- Zhilin Yang, Peng Qi, Saizheng Zhang, Yoshua Bengio, William W Cohen, Ruslan Salakhutdinov, and Christopher D Manning. 2018. HotpotQA: A dataset for diverse, explainable multi-hop question answering. In EMNLP. our card
- Ningyu Zhang, Yunzhi Yao, Bozhong Tian, Peng Wang, Shumin Deng, Mengru Wang, Zekun Xi, Shengyu Mao, Jintian Zhang, Yuansheng Ni, Siyuan Cheng, Ziwen Xu, Xin Xu, Jia-Chen Gu, Yong Jiang, Pengjun Xie, Fei Huang, Lei Liang, Zhiqiang Zhang, Xiaowei Zhu, Jun Zhou, and Huajun Chen. 2024. A comprehensive study of knowledge editing for large language models. arXiv. OpenAlex ↗ · Scholar ↗
- Zexuan Zhong, Zhengxuan Wu, Christopher D Manning, Christopher Potts, and Danqi Chen. 2023. MQAKE: Assessing knowledge editing in language models via multi-hop questions. In EMNLP. OpenAlex ↗ · Scholar ↗
- Denny Zhou, Nathanael Schärli, Le Hou, Jason Wei, Nathan Scales, Xuezhi Wang, Dale Schuurmans, Claire Cui, Olivier Bousquet, Quoc V Le, and Ed H Chi. 2022. Least-to-most prompting enables complex reasoning in large language models. In ICLR. our card