Where LLMs Store Facts
- 55Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What does the successful prediction of basketball after the prompt “Michael Jordan plays the sport of” suggest about a language model?
What does the successful prediction of basketball after the prompt “Michael Jordan plays the sport of” suggest about a language model?
55 questions
- 1
What does the successful prediction of basketball after the prompt “Michael Jordan plays the sport of” suggest about a language model?
- A
The model contains learned information associating a person with a sport
- B
The model determines the answer only from the grammatical structure
- C
The model accesses a live database about professional athletes
- D
The model generates the answer without using information from training
Correct answer
AThe model contains learned information associating a person with a sport
Explanation
A correct prediction suggests that the model has learned an association between Michael Jordan and basketball within its parameters.
- A
- 2
What remains unresolved about factual knowledge in large language models?
- A
The basic definition of a transformer architecture
- B
Whether model parameters can be adjusted during training
- C
The complete mechanistic explanation of how facts are stored
- D
Whether language models can process sequences of tokens
Correct answer
CThe complete mechanistic explanation of how facts are stored
Explanation
Researchers have found partial evidence about where facts may be stored, but a complete mechanistic understanding remains unsolved.
- A
- 3
Which component appears to contain a substantial part of the factual information in a transformer?
- A
The input text itself
- B
The final predicted token
- C
The multi-layer perceptron blocks
- D
The tokenization procedure
Correct answer
CThe multi-layer perceptron blocks
Explanation
Research discussed in the content suggests that facts seem to be represented in specific parts of the network, especially the multi-layer perceptrons, or MLPs.
- A
- 4
What is the primary task of the model described in the content?
- A
To predict the next token given preceding text
- B
To classify every document into a fixed topic category
- C
To translate every input sentence into another language
- D
To retrieve an exact paragraph from a stored database
Correct answer
ATo predict the next token given preceding text
Explanation
The model is trained to take a piece of text and predict what comes next.
- A
- 5
What is a token in the described language-model pipeline?
- A
A probability assigned only after the final prediction
- B
A small chunk of text, such as a word or word fragment
- C
A matrix containing all of the model's learned parameters
- D
A complete document represented by a single number
Correct answer
BA small chunk of text, such as a word or word fragment
Explanation
Input text is broken into tokens, which are typically words or smaller pieces of words.
- A
- 6
What happens to each token after tokenization?
- A
It is associated with a high-dimensional vector of numbers
- B
It is replaced by the final answer predicted by the model
- C
It is immediately converted into a single binary label
- D
It is removed unless it appears in the training data
Correct answer
AIt is associated with a high-dimensional vector of numbers
Explanation
Each token is associated with a vector, meaning a long list of numerical values.
- A
- 7
How do attention and MLP blocks differ in their basic roles?
- A
Attention processes vectors individually, while MLPs exchange information between tokens
- B
Attention stores all parameters, while MLPs contain no learned parameters
- C
Attention exchanges information between vectors, while MLPs process vectors individually
- D
Attention creates tokens, while MLPs convert tokens back into text
Correct answer
CAttention exchanges information between vectors, while MLPs process vectors individually
Explanation
Attention allows vectors to pass information between one another, whereas an MLP applies its operations independently to each vector.
- A
- 8
Why must the final vector representations contain more than the meaning of their individual words?
- A
They must represent the entire training dataset explicitly
- B
They must contain enough contextual and learned information to predict the next token
- C
They must preserve the original text without incorporating any context
- D
They must encode only the spelling and pronunciation of the current word
Correct answer
BThey must contain enough contextual and learned information to predict the next token
Explanation
As vectors move through the network, they incorporate context and model knowledge so that they can support next-token prediction.
- A
- 9
What does a direction in a high-dimensional embedding space represent in the gender example?
- A
A direction can encode a feature such as gender
- B
A direction specifies which attention head must be used
- C
A direction determines the order in which tokens are processed
- D
A direction always identifies exactly one complete sentence
Correct answer
AA direction can encode a feature such as gender
Explanation
The difference between the embeddings of woman and man illustrates how a direction can encode gender-related information.
- A
- 10
What does adding the woman-minus-man direction to the embedding of uncle illustrate?
- A
The resulting vector must represent a word unrelated to the original
- B
A semantic direction can transfer a feature to another related word
- C
Attention is required before any vector arithmetic can be performed
- D
Word embeddings cannot represent relationships between different words
Correct answer
BA semantic direction can transfer a feature to another related word
Explanation
The example illustrates that moving along a gender-related direction from uncle can lead near the corresponding feminine noun.
- A
- 11
What assumption is made about the directions for Michael, Jordan, and basketball in the toy MLP example?
- A
Each concept is represented by its own nearly perpendicular direction
- B
The three concepts are represented by scalar probabilities rather than directions
- C
Only basketball has a direction, while names have no vector representation
- D
All three concepts are represented by exactly the same direction
Correct answer
AEach concept is represented by its own nearly perpendicular direction
Explanation
The example assumes separate, nearly perpendicular directions for the first name Michael, the last name Jordan, and basketball.
- A
- 12
Under the toy assumptions, what does a dot product of one with the Michael direction indicate?
- A
The vector definitely represents the sport basketball
- B
The vector represents a token that follows Michael
- C
The vector aligns with the concept of the first name Michael
- D
The vector contains no information about the input names
Correct answer
CThe vector aligns with the concept of the first name Michael
Explanation
A dot product of one with the Michael direction is defined in the example as encoding the idea of a person with that first name.
- A
- 13
What dot-product pattern represents the full name Michael Jordan under the toy assumptions?
- A
A value of one with both the Michael and Jordan directions
- B
A value of one with basketball but negative values with both names
- C
A value of one with only the Jordan direction
- D
A value of zero with both the Michael and Jordan directions
Correct answer
AA value of one with both the Michael and Jordan directions
Explanation
A vector representing Michael Jordan must align with both the Michael direction and the Jordan direction.
- A
- 14
Why is an earlier attention block needed in the Michael Jordan example?
- A
Attention supplies the bias used in the first matrix multiplication
- B
Michael Jordan is split into two tokens, so information must reach the second vector
- C
Attention converts the MLP's output back into a sequence of tokens
- D
Attention is required to make the basketball direction perpendicular to the name directions
Correct answer
BMichael Jordan is split into two tokens, so information must reach the second vector
Explanation
Because Michael Jordan spans two tokens, the example assumes attention has passed information to the second vector so it encodes both names.
- A
- 15
What happens to a vector as it passes through an MLP block?
- A
It is combined with every other vector before being replaced by a scalar
- B
It is transformed into a vector with permanently doubled dimension
- C
It is converted into a token and removed from the sequence
- D
It is transformed into another vector of the same dimension, which is added to the original
Correct answer
DIt is transformed into another vector of the same dimension, which is added to the original
Explanation
The MLP produces another vector with the same dimension as the input, and that result is added to the original vector.
- A
- 16
How are MLP operations applied across the sequence of token vectors?
- A
The same type of operation is applied independently to every vector in parallel
- B
All vectors are merged into one vector before the MLP is applied
- C
Only the final token vector passes through the MLP
- D
Each vector must wait for the previous vector to finish its computation
Correct answer
AThe same type of operation is applied independently to every vector in parallel
Explanation
Every vector associated with an input token undergoes the MLP operations independently and in parallel.
- A
- 17
What is the first major operation inside the MLP?
- A
Multiplication of the input vector by a large matrix
- B
Conversion of the input vector into a probability distribution
- C
Comparison of the input vector with every other token vector
- D
Removal of all negative components from the input vector
Correct answer
AMultiplication of the input vector by a large matrix
Explanation
The first step is multiplication by the up-projection matrix.
- A
- 18
How can matrix multiplication be interpreted row by row?
- A
Each matrix row is copied directly into the output without using the input
- B
Each matrix row is multiplied only by the corresponding row of the input
- C
Each matrix row determines the position of a token in the input sequence
- D
Each matrix row forms a vector whose dot product with the input produces one output component
Correct answer
DEach matrix row forms a vector whose dot product with the input produces one output component
Explanation
Viewing the matrix row by row means interpreting each output component as a dot product between a matrix row and the input vector.
- A
- 19
If a row of the up-projection matrix equals the Michael direction, what does its output component measure?
- A
How strongly the input vector predicts the next token basketball
- B
How much information the input vector received from the bias
- C
How many tokens appear after Michael in the sequence
- D
How strongly the input vector aligns with the concept of Michael
Correct answer
DHow strongly the input vector aligns with the concept of Michael
Explanation
The dot product with the Michael direction is high when the input vector encodes the first name Michael.
- A
- 20
If a matrix row equals the sum of the Michael and Jordan directions, what does its dot product with the input represent?
- A
The difference between the Michael and Jordan concepts
- B
The combined alignment of the input with Michael and Jordan
- C
The number of independent tokens in the input sequence
- D
The alignment of the input with basketball alone
Correct answer
BThe combined alignment of the input with Michael and Jordan
Explanation
The dot product distributes over addition, so the result equals the Michael alignment plus the Jordan alignment.
- A
- 21
Under the toy assumptions, why can the Michael-plus-Jordan row produce a value of two?
- A
The basketball direction contributes two independent values
- B
The bias always adds one to each name-related component
- C
The input aligns with both name directions, each contributing one
- D
The matrix automatically doubles every input component
Correct answer
CThe input aligns with both name directions, each contributing one
Explanation
For a vector encoding both names, the dot product with the sum of the two directions is one plus one, producing two.
- A
- 22
What is the role of the up-projection bias in the toy example?
- A
It shifts the name-matching activation so it is positive only for the full name
- B
It forces every neuron to have the same activation
- C
It changes the input dimension so that attention can process the vector
- D
It adds the basketball direction directly to every token vector
Correct answer
AIt shifts the name-matching activation so it is positive only for the full name
Explanation
A bias of negative one changes the relevant component so that it is positive for Michael Jordan and zero or negative otherwise.
- A
- 23
What does each row of the up-projection matrix conceptually do?
- A
It determines the final vocabulary probability for one token
- B
It exchanges information between two different token positions
- C
It specifies the vector added whenever a particular neuron activates
- D
It asks whether the input vector contains a particular feature
Correct answer
DIt asks whether the input vector contains a particular feature
Explanation
Each row can be viewed as a probing direction that measures a feature of the input vector.
- A
- 24
Why is a nonlinear function needed after the first matrix multiplication?
- A
The nonlinear function is required to make all vectors have different dimensions
- B
A purely linear operation would respond to unrelated combinations of features
- C
Matrix multiplication cannot produce any numerical output without a nonlinear function
- D
A linear operation cannot include learned parameters
Correct answer
BA purely linear operation would respond to unrelated combinations of features
Explanation
A linear detector for Michael plus Jordan would also respond to combinations such as Michael plus Phelps or Alexis plus Jordan, so nonlinearity is needed to create a more selective response.
- A
- 25
What does the ReLU function do?
- A
It maps negative values to zero and leaves positive values unchanged
- B
It converts every input value into either negative one or positive one
- C
It replaces every value with its absolute value
- D
It maps positive values to zero and leaves negative values unchanged
Correct answer
AIt maps negative values to zero and leaves positive values unchanged
Explanation
ReLU, or the rectified linear unit, clips negative values to zero while preserving positive values.
- A
- 26
How does ReLU make the toy Michael Jordan detector resemble an AND gate?
- A
It preserves a positive response only when the combined name evidence exceeds the threshold
- B
It removes the need for the matrix row that combines the two names
- C
It guarantees a positive response for every pair of names
- D
It activates whenever either Michael or Jordan appears independently
Correct answer
AIt preserves a positive response only when the combined name evidence exceeds the threshold
Explanation
With the negative bias, the combined Michael-and-Jordan feature is positive, while incomplete or mismatched combinations are zero or negative and become zero after ReLU.
- A
- 27
What is the relationship between ReLU and GELU in the described models?
- A
GELU is used only to tokenize text while ReLU processes vectors
- B
GELU removes positive values while ReLU preserves them
- C
GELU is a matrix operation while ReLU is a bias vector
- D
GELU has a similar shape to ReLU but is smoother
Correct answer
DGELU has a similar shape to ReLU but is smoother
Explanation
GELU is described as a smoother modification with the same basic shape as ReLU.
- A
- 28
When is a transformer neuron considered active in the described terminology?
- A
When its corresponding input token is the final token
- B
When its post-activation value is positive
- C
When its post-activation value is exactly zero
- D
When its matrix column is perpendicular to every other column
Correct answer
BWhen its post-activation value is positive
Explanation
A neuron is called active when its value is positive and inactive when its value is zero.
- A
- 29
What is the purpose of the second matrix multiplication in an MLP?
- A
To calculate the loss used during model training
- B
To map the activated intermediate representation back to the embedding dimension
- C
To convert the input text into its initial tokens
- D
To allow different token vectors to exchange contextual information
Correct answer
BTo map the activated intermediate representation back to the embedding dimension
Explanation
The down-projection maps the high-dimensional neuron representation back down to the size of the embedding space.
- A
- 30
Why is it useful to interpret the down-projection matrix column by column?
- A
Each column corresponds to a different input token position
- B
Each column contains only bias values and no learned parameters
- C
Each column determines which row of the up-projection matrix is used
- D
Each column has the embedding dimension and represents a direction added by a neuron
Correct answer
DEach column has the embedding dimension and represents a direction added by a neuron
Explanation
The columns of the down-projection matrix have the same dimension as the embedding space, so they can be interpreted as directions in that space.
- A
- 31
In the toy example, what happens when the neuron associated with the first down-projection column is active?
- A
The Michael direction is removed from the input representation
- B
The column's basketball direction is added to the output representation
- C
All other neurons are forced to become inactive
- D
The input vector is replaced by the corresponding matrix row
Correct answer
BThe column's basketball direction is added to the output representation
Explanation
If the neuron is active, its corresponding column contributes to the output; in the example, that column includes the basketball direction.
- A
- 32
What happens when a neuron has value zero in the down-projection?
- A
Its corresponding column is added at full strength
- B
Its value is automatically converted into a negative direction
- C
Its corresponding row is used to create a new token
- D
Its corresponding column contributes nothing to the result
Correct answer
DIts corresponding column contributes nothing to the result
Explanation
A column multiplied by a zero neuron value contributes nothing to the sum.
- A
- 33
What does the down-projection bias contribute in every application of the MLP?
- A
It is added regardless of the values of the neurons
- B
It is added only when the basketball neuron is active
- C
It is added only when all neurons are inactive
- D
It determines whether the input is split into tokens
Correct answer
AIt is added regardless of the values of the neurons
Explanation
A bias in the down-projection is added every time, independently of the neuron activations.
- A
- 34
How does the toy MLP cause the output for Michael Jordan to encode basketball?
- A
The name detector activates a neuron whose output column includes the basketball direction
- B
The ReLU changes the Jordan direction into the basketball direction
- C
The down-projection removes both name directions and replaces them with basketball
- D
The attention block directly inserts basketball into every name representation
Correct answer
AThe name detector activates a neuron whose output column includes the basketball direction
Explanation
The combined name feature activates a neuron, and the corresponding down-projection column adds the basketball direction to the residual representation.
- A
- 35
What is the complete simplified structure of the MLP operation described?
- A
An up projection, a bias, a nonlinear activation, a down projection, and another bias
- B
An attention operation, a tokenization step, a probability calculation, and a decoder
- C
A convolution, a recurrent update, a lookup table, and a final classifier
- D
Two attention operations separated by a normalization step and a sampling operation
Correct answer
AAn up projection, a bias, a nonlinear activation, a down projection, and another bias
Explanation
The MLP consists essentially of two matrix products, each with an added bias, with a simple nonlinear clipping function between them.
- A
- 36
How many rows does the GPT-3 up-projection matrix have relative to the embedding dimension?
- A
It has approximately half as many rows as the embedding dimension
- B
It has approximately one-tenth as many rows as the embedding dimension
- C
It has exactly the same number of rows as the embedding dimension
- D
It has approximately four times as many rows as the embedding dimension
Correct answer
DIt has approximately four times as many rows as the embedding dimension
Explanation
The content states that GPT-3's up-projection has just under 50,000 rows and that this is exactly four times the embedding dimension.
- A
- 37
Why does the up-projection map into a higher-dimensional space?
- A
The larger space replaces the need for nonlinear activation
- B
The larger space ensures that all token vectors become identical
- C
The larger intermediate space provides many neuron units for probing features
- D
The larger space is needed to reduce the number of model parameters
Correct answer
CThe larger intermediate space provides many neuron units for probing features
Explanation
The up-projection expands the representation into a space with many neurons, each potentially probing a different feature.
- A
- 38
Approximately how many parameters are in one GPT-3 up-projection matrix?
- A
About 175 billion parameters
- B
About 604 million parameters
- C
About 12,288 parameters
- D
About 50,000 parameters
Correct answer
BAbout 604 million parameters
Explanation
Multiplying approximately 50,000 rows by 12,288 embedding dimensions gives about 604 million parameters.
- A
- 39
Approximately how many parameters are contained in the up- and down-projection matrices of one GPT-3 MLP?
- A
About 50 million parameters
- B
About 175 billion parameters
- C
About 604 thousand parameters
- D
About 1.2 billion parameters
Correct answer
DAbout 1.2 billion parameters
Explanation
The two projection matrices have the same number of parameters, so together they contain approximately 1.2 billion parameters.
- A
- 40
How many distinct MLP blocks does the GPT-3 configuration described contain?
- A
Four distinct MLP blocks
- B
One hundred seventy-five distinct MLP blocks
- C
Fifty thousand distinct MLP blocks
- D
Ninety-six distinct MLP blocks
Correct answer
DNinety-six distinct MLP blocks
Explanation
The described GPT-3 model has 96 distinct MLPs through which the sequence of vectors passes.
- A
- 41
Approximately how many total parameters are devoted to all of the MLP blocks in the described GPT-3 model?
- A
About 116 billion parameters
- B
About 604 billion parameters
- C
About 1.2 million parameters
- D
About 12.3 billion parameters
Correct answer
AAbout 116 billion parameters
Explanation
Multiplying the approximate parameter count per MLP by 96 gives roughly 116 billion parameters.
- A
- 42
What proportion of the total GPT-3 parameters do the MLP blocks represent in the description?
- A
Approximately all of the total parameters
- B
Approximately two-thirds of the total parameters
- C
Approximately one-tenth of the total parameters
- D
Approximately one-hundredth of the total parameters
Correct answer
BApproximately two-thirds of the total parameters
Explanation
The MLP blocks account for around two-thirds of the approximately 175 billion parameters.
- A
- 43
Which additional parameter groups are described as making only a trivial contribution to the total?
- A
The context words and the predicted continuations
- B
MLP biases and normalization parameters
- C
Token embeddings and attention projections
- D
The input tokens and the output vocabulary
Correct answer
BMLP biases and normalization parameters
Explanation
The biases and normalization parameters are acknowledged but described as a trivial proportion of the total parameter count.
- A
- 44
What mathematical fact connects up-projection rows and down-projection columns to feature representations?
- A
Rows and columns both function only as normalization constants
- B
Rows specify output directions, while columns measure token frequencies in the input
- C
Rows measure alignment with directions, while columns specify directions added to the output
- D
Rows exchange contextual information, while columns perform tokenization
Correct answer
CRows measure alignment with directions, while columns specify directions added to the output
Explanation
An up-projection row can be viewed as a direction tested by a dot product, while a down-projection column determines what is added when the associated neuron activates.
- A
- 45
What does the evidence suggest about individual neurons in real language models?
- A
They rarely represent one clean, isolated feature
- B
They contain no information about the input representation
- C
They never respond to more than one semantic concept
- D
They usually represent exactly one named person
Correct answer
AThey rarely represent one clean, isolated feature
Explanation
Although the toy example assigns one feature to one neuron, evidence suggests that individual neurons very rarely represent a single clean feature.
- A
- 46
What is the central idea of superposition in model interpretability?
- A
Every feature must be assigned its own exactly perpendicular neuron
- B
All features are stored in one scalar value shared by every layer
- C
Features can be represented only by increasing the number of tokens
- D
Many features can be represented using overlapping, nearly perpendicular directions
Correct answer
DMany features can be represented using overlapping, nearly perpendicular directions
Explanation
Superposition proposes that models may encode many features in overlapping combinations of directions that are not exactly perpendicular.
- A
- 47
In an exactly orthogonal representation within an n-dimensional space, what is the maximum number of mutually perpendicular feature directions?
- A
An unlimited number of directions
- B
At most n directions
- C
At most n2 directions
- D
At most 2n directions
Correct answer
BAt most n directions
Explanation
An n-dimensional space can contain at most n mutually perpendicular vectors, which is part of what dimension means mathematically.
- A
- 48
What changes when feature directions are allowed to be nearly rather than exactly perpendicular?
- A
The vectors become exactly orthogonal through ordinary matrix multiplication
- B
The number of possible feature directions becomes fixed at the dimension count
- C
The space can accommodate fewer features because all vectors become identical
- D
The space can accommodate far more feature vectors with some tolerated interference
Correct answer
DThe space can accommodate far more feature vectors with some tolerated interference
Explanation
Relaxing exact orthogonality and tolerating limited noise allows many more vectors to fit in a high-dimensional space.
- A
- 49
What pattern appears in the angles between many random high-dimensional vectors?
- A
The angles are always exactly one hundred eighty degrees
- B
The angles are heavily concentrated near ninety degrees
- C
The angles are uniformly concentrated at every possible value
- D
The angles are concentrated near zero degrees
Correct answer
BThe angles are heavily concentrated near ninety degrees
Explanation
Even random vectors in high dimensions tend to have angles close to 90 degrees rather than being evenly distributed across all angles.
- A
- 50
What happens when the randomly generated vectors are iteratively optimized to become more perpendicular?
- A
All vectors collapse into a single identical direction
- B
Their pairwise angles spread evenly from zero to one hundred eighty degrees
- C
The vectors become restricted to exactly two dimensions
- D
Their pairwise angles become concentrated in a narrow range around ninety degrees
Correct answer
DTheir pairwise angles become concentrated in a narrow range around ninety degrees
Explanation
The optimization nudges the vectors so their pairwise angles fall within a narrow interval around 90 degrees.
- A
- 51
What does the Johnson-Lindenstrauss lemma imply in the context described?
- A
The number of representable features must equal the number of neurons
- B
The number of nearly perpendicular vectors can grow exponentially with dimension
- C
The number of exactly perpendicular vectors grows exponentially with dimension
- D
High-dimensional vectors cannot preserve approximate distances
Correct answer
BThe number of nearly perpendicular vectors can grow exponentially with dimension
Explanation
The content connects the Johnson-Lindenstrauss lemma to the result that many nearly perpendicular vectors can fit into high-dimensional spaces, with capacity growing exponentially with dimension.
- A
- 52
Why could superposition help explain why language-model performance scales with model size?
- A
Increasing dimensions eliminates the need for training data
- B
Increasing dimensions forces every feature to be represented by a separate clean neuron
- C
Increasing dimensions makes attention unnecessary in every transformer
- D
Increasing dimensions can provide capacity for far more than a proportional increase in independent ideas
Correct answer
DIncreasing dimensions can provide capacity for far more than a proportional increase in independent ideas
Explanation
A space with ten times as many dimensions may store much more than ten times as many nearly independent ideas because capacity can grow dramatically with dimension.
- A
- 53
How would superposition affect the interpretation of the MLP neuron layer?
- A
Every meaningful feature must appear as exactly one neuron lighting up
- B
The neuron layer would contain only features already present in the input tokens
- C
No feature can influence more than one neuron at a time
- D
A meaningful feature may appear as a combination of several neurons rather than one active neuron
Correct answer
DA meaningful feature may appear as a combination of several neurons rather than one active neuron
Explanation
If features are stored in superposition, an individual feature may be encoded across a specific combination of neuron activations.
- A
- 54
What is a sparse autoencoder used for in the interpretability context described?
- A
It replaces the transformer with a tokenization algorithm
- B
It guarantees that each neuron represents exactly one feature during training
- C
It calculates the number of parameters in every attention block
- D
It can help extract underlying features that are superimposed across neurons
Correct answer
DIt can help extract underlying features that are superimposed across neurons
Explanation
Sparse autoencoders are identified as tools interpretability researchers use to recover underlying features even when those features are distributed across neurons.
- A
- 55
Why can superposition make a model difficult to interpret?
- A
The semantic feature may be distributed across overlapping patterns rather than isolated units
- B
The model uses only low-dimensional representations that cannot encode meaning
- C
The model stores no information in its parameters
- D
The model processes all tokens sequentially without any learned structure
Correct answer
AThe semantic feature may be distributed across overlapping patterns rather than isolated units
Explanation
Overlapping representations mean that a single neuron may not correspond cleanly to one concept, making the underlying features harder to identify.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.