Elamur Research

Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task

Paper · 2022 · Kenneth Li, Aspen K. Hopkins, David Bau et al.

Summary

An Othello transcript records where players put their discs. It leaves out what happens to the other discs after each move, even though those changes determine which moves are legal later. The authors use this gap to study a question about language models. When a network learns to continue a sequence, does it also learn something about the process that produced it? They train Othello-GPT, a transformer with 8 layers, 8 attention heads and a 512-dimensional hidden space, to predict the next square in a game. Its input consists of square identifiers. The rules and the arrangement of squares on the board are absent from that input.

On held-out games, the highest-ranked prediction is illegal in 0.01% of cases for the network trained on synthetic games and 5.17% for the version trained on championship games. The randomly initialized network has an error rate of 93.29% on the same legality measure. In a separate test, the authors withhold every transcript beginning with C5 from training. The resulting network has an error rate of 0.02% on games from that opening branch, where it cannot rely on having seen the same move sequences during training.

The authors then train classifiers called probes to read the color or vacancy of each square from the network’s intermediate calculations. The nonlinear classifiers recover the board much more accurately than the linear classifiers tested on the same trained networks. To find out whether the recovered information matters for prediction, the authors change the activations so that a probe reads a different state for a chosen square. The resulting predictions closely follow the legal moves of the edited position, even on a benchmark of positions that legal play cannot produce. The paper’s main results give mean errors of 0.12 on the reachable-position benchmark and 0.06 on the unreachable-position benchmark, measured against the edited legal-move sets. The corresponding errors with the original predictions are 2.68 and 2.59.

The authors also use these edits to make latent saliency maps, a tool for interpretability. Each map shows how much a predicted move’s probability responds to changes in individual squares of the internally represented board. The synthetic network’s maps tend to highlight the squares needed to make the move legal. The championship network’s maps frequently highlight additional squares. Together, the experiments support a causal role for information about the board in this particular sequence predictor, with the form of that information and its relevance to natural language remaining open questions.

Deep dive: Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task

Research on how Othello-GPT learns from move transcripts, what its activations reveal about the board, and how editing them changes predictions. · about 35 minutes to read

The problem and its context

What a successful continuation can tell us

A player who hears a game described move by move can reconstruct the position and use it to judge a proposed continuation. A system that predicts from the same transcript could succeed for several reasons. It might recognize that certain sequences usually continue in certain ways. It might work out which discs occupy the board and use that information to constrain its choice. It might combine regularities about familiar openings with information about the current position. An observed prediction offers limited grounds for choosing among these accounts, especially when each account predicts the same move.

The paper starts from a similar puzzle about next-word training. The authors point to behavior such as producing simple code and answering logic puzzles, with the breadth of those observations documented in Beyond the Imitation Game. The training task makes it possible to measure how well a system predicts continuations. It leaves a separate question about what the system learned in order to make them. The authors are interested in whether any of the internal calculations describe features of the process behind the examples, and whether those features help produce the observed behavior.

The paper situates that question alongside arguments about learning from form. Climbing towards NLU addresses the relationship between linguistic form and meaning. Provable Limitations of Acquiring Meaning from Ungrounded Form provides a mathematical strand of the debate as the authors describe it. The concern that matters to the Othello experiment is that patterns with strong predictive value in familiar data can arise without following the process that produced the data. A system depending on those patterns may behave differently when the input distribution changes. Studying a case with a known process makes it possible to ask specifically what the system has recovered.

Earlier work had already given the authors grounds for looking inside the network. They describe experiments that adapted language predictors to synthetic language tasks based on work such as Simpler Context-Dependent Logical Forms. In those experiments, the activations contained some information about the underlying situation. The authors also discuss an investigation into whether representations of color in BERT reflect the geometry of a standard color space. Other work they cite used prompts to relate domains such as color and direction to grounded concepts. In the Othello paper’s account, these studies dealt with comparatively simple representations. A changing game position offers a setting where several parts of a state must be tracked together. Can Language Models Encode Perceptual Structure Without Grounding?

Why use a game transcript?

The chess study that directly motivated the paper treated move records as sequences and examined how well a predictor could continue them. According to the Othello authors, the predictions gave evidence of state tracking, particularly through the ability to produce valid chess moves. The study left the form of any internal state representation uninvestigated. Othello provides a simpler board and rule system for investigating that question, while its game tree still contains a wide range of distinct histories.

The strongest game players discussed in the paper start from different information. The authors use AlphaZero as an example of a system given basic game structure and rules, with training directed towards competitive play. They also note earlier studies of the strategic concepts that such systems develop. In the Othello study, the researchers know the rules and can run them to evaluate a prediction. Othello-GPT receives a sequence of identifiers and learns by trying to predict the next identifier. Any organization it develops around the board has to arise within that training arrangement.

This makes the meaning of “world” unusually precise. After a partial game, each square is empty or occupied by a disc of a known color. An earlier placement can still matter through a color change that never appears as a separate item in the transcript. A current board can also be reached through different histories. The researcher can therefore compare the record the network sees, the current arrangement obtained by replaying that record, and the legal moves that follow from the arrangement. The distinction makes knowledge representation an experimental question about identifiable quantities.

There is also a straightforward way to produce a hypothetical position. Changing the color of a disc can make a neighboring placement legal, remove an opportunity elsewhere, or affect several candidates at once. The rules give a way to calculate those consequences in advance. Some edited arrangements are compatible with legal play and others are unreachable. In either case, a researcher can examine which placements meet the local requirements in the hypothetical position. This gives a more specific prediction for an activation edit than the general expectation that perturbing a network will change its output.

Reading a representation and testing its role

The paper borrows probing from earlier work on neural representations. A probe learns to predict a property from an intermediate activation, the vector that a network computes partway through processing an input. Earlier applications discussed by the authors include reading linguistic properties and investigating syntactic structure. In Othello the corresponding property is the state of a square, which can be labeled by replaying the game. Probe training is separated from the sequence training that created the activations. Understanding Intermediate Layers Using Linear Classifier Probes · BERT Rediscovers the Classical NLP Pipeline · A Structural Probe for Finding Syntax in Word Representations

A well-trained probe establishes that a property can be read out under the conditions of the test. The rest of the network might use that property, use some of the information from which the probe derives it, or produce it incidentally while pursuing another computation. The authors address this distinction by changing an intermediate activation according to the probe and observing how the remaining computation responds. The board rules supply an independent prediction of what that response should look like.

The authors relate this procedure to earlier work on controlling text generation while holding a trained network’s weights fixed. Their account of those methods describes the problem of balancing a desired attribute with fluent text. An Othello intervention has a target in the form of a particular square state. The authors also relate their maps to concept-based attribution through directional derivatives, which they describe as a linear approximation to the kind of gradient-based edit used here. Plug and Play Language Models · GeDi · Diffusion-LM Improves Controllable Text Generation

The method, step by step

From a board to a sequence

Othello starts with black and white discs in the center of an 8x8 board. Black plays first. A player places a disc on a vacant square so that a line of opposing discs is enclosed between the new disc and another disc of the player’s own color. The enclosed discs change color. A placement must flip an opponent’s disc, and the game ends when legal moves run out. The aim for a player is to finish with a majority of discs of their color.

A move record gives the location of each placement. Consider the information available when a particular square enters that record. The fact that a disc was put there remains visible directly in the prefix. Its color later in the game depends on intervening plays, possibly at sites some distance away. To label the square at a later time, a program must apply the rules in sequence and account for the flips. For the authors, the color label therefore makes a stronger test of state tracking than occupancy alone. The paper gives a reason for using all three labels (empty, black and white): occupancy is a linear function of the input sequence.

The game record becomes a series of tokens. Here a token is an identifier for a square that players can choose for a placement. The vocabulary has 60 entries and excludes the 4 center squares occupied at the start. For instance, A4 is assigned the 4th vocabulary entry and H6 the 58th. Those are lookup positions for learned vectors. A lookup tells the network which symbol appeared, and training determines what the symbol’s vector comes to represent. The spatial relationship that an Othello player would read from a coordinate such as A4 is absent from the encoding supplied to the network.

From game transcripts to board-level interventions

The steps in order.

From game transcripts to board-level interventionsStep 1: Encode played squares as tokens1. Encode played squares as tokensStep 2: Train Othello-GPT to predict the next token2. Train Othello-GPT to predict the next tokenStep 3: Save activations for partial games3. Save activations for partial gamesStep 4: Replay those games to label square states4. Replay those games to label square statesStep 5: Train probes to decode square states5. Train probes to decode square statesStep 6: Edit activations to target a different state6. Edit activations to target a different stateStep 7: Compare predictions with the edited board’s legal moves7. Compare predictions with the edited board’s legal movesStep 8: Map each square’s effect on a prediction8. Map each square’s effect on a prediction

Two sources of games

The championship data come from collections containing 7,605 and 132,921 games. The authors pool the collections and randomly divide them into training and validation sets in an 8:2 split. These transcripts reflect decisions made by human players in competition. The move appearing next in a particular transcript reflects the choice of a particular player in a particular match. It provides training evidence about both which moves are legal and which legal moves players tend to select.

The synthetic data consist of 20 million training games and 3,796,010 validation games. The authors describe generating these games by uniformly sampling leaves of the Othello game tree. A leaf denotes a completed branch, while a partial game lies on the path to that leaf. The sampling description concerns whole games. The distribution of next moves given an arbitrary prefix can also depend on how many sampled continuations extend through each branch. The important distinction for this design is that synthetic game generation uses the rules without a player trying to select strong moves.

Both sources yield the same form of training example, a partial game followed by the actual next square in the record. The authors use them to train separate versions of Othello-GPT. They describe the smaller championship collection as offering the behavior of expert players and the much larger synthetic collection as offering quantity. The random initialization gives the architecture a starting point with no learned board representation. The later comparisons can then ask what can be recovered from each trained version and what can already be recovered from the architecture with its initial weights.

Learning to continue a game

Othello-GPT uses 8 attention layers with 8 heads and a hidden space of 512 dimensions. A hidden space is the vector space in which the network stores its intermediate calculations. Attention lets the representation at a given position draw on representations from other positions, and the heads perform parallel attention calculations within a layer. A causal mask, which is a restriction on those connections, keeps a position from consulting moves that appear later in the transcript. The network is trained autoregressively, meaning that the next move is predicted from the prefix available at that point.

The paper writes the input and its embedding lookup as sequences. In the formulas below, the left and right endpoints of an index range specify where the sequence begins and ends.

(yₜ)ₜ₌₀…T₋₁  →  (xₜ⁰)ₜ₌₀…T₋₁

Here yₜ is the token at position t of a partial game, and T is the length of that partial game. The range begins at 0 and ends at T−1, the index of the last move in the prefix. The arrow denotes looking up the embedding for each token. The resulting xₜ⁰ is the embedding at position t, with the superscript 0 indicating that it precedes attention-layer processing. Parentheses group the tokens and vectors into their respective sequences.

xₜˡ uses xᵢˡ⁻¹ for i ≤ t

The vector xₜˡ is the activation at position t after layer l, shown as a superscript. The symbol i indexes a position in the preceding layer, whose index is l−1. The inequality i ≤ t specifies that the calculation has access to the preceding layer at the current position and at earlier ones. As the computation passes through the layers, the vector at the last position can incorporate information from the prefix as a whole.

xₜˡ at t = T−1 and l = 8  →  logits for ŷₜ at t = T

The vector xₜˡ at the specified position and layer supplies the final move classifier. The arrow denotes application of that linear classifier, which produces logits, or numerical scores for the candidate move tokens. The symbol ŷₜ denotes the prediction at position t, and t = T identifies the next position after the input prefix. The authors train the weights by gradient descent on cross-entropy between the observed move and the predicted scores. In this use, cross-entropy charges a larger loss when the network assigns the observed move a smaller probability.

The target is the move that occurred in the particular training game. The training objective can therefore favor the selected move even when several other moves would also be legal. This distinction matters when the researchers later evaluate the predictor. The legality test counts any permitted continuation as a success. It asks whether the predictor respects the constraints of the position without requiring it to duplicate the player’s decision or the synthetic generator’s sampled move.

Teaching a classifier to read the board

Once Othello-GPT is available, the authors extract the activation for the last move of a prefix at a chosen layer. They obtain the state of the corresponding board from the game rules. Those states are targets for the probe. In a particular square’s classification problem, the probe is given the activation vector and asked to assign probabilities to black, white and empty. Applying the classifiers for the different squares gives a decoded board. Applying them to activations from different layers lets the authors compare how accessible the same information is at different depths of the predictor.

The authors split activation and square-state pairs at random in an 8:2 ratio for probe training and validation. This split concerns examples for the classifiers. The game-level validation used to check the move predictor answers a different question. In the probe experiment, labels from the game program train the reader while the underlying network supplies the activations being read. The authors also train probes on activations from the randomized network. That version processes the same kind of input, so its activations can preserve aspects of the move history even before sequence training.

The linear probe transforms an activation into class scores and converts those scores into probabilities.

pθ(xₜˡ) = softmax(Wxₜˡ)

Here pθ is the probe’s categorical probability distribution, and θ denotes its fitted parameters, which in this case consist of W. The symbol xₜˡ is the activation for token position t at layer l. The weight matrix W is a linear map from F input components, where F is the dimensionality of the activation, to 3 class scores. The softmax function turns those scores into probabilities by exponentiating them and normalizing by their total. The predicted class is the state with the highest probability.

The nonlinear probe uses a 2-layer multilayer perceptron, or MLP. Its first transformation is followed by a rectifier. A second transformation turns the resulting hidden values into class scores.

pθ(xₜˡ) = softmax(W₁ ReLU(W₂xₜˡ))

Here pθ again denotes the probability distribution over the square’s possible states. The parameters θ now consist of W₂ and W₁. The subscripts identify the matrices as named in the paper. In calculation order, W₂ maps the F input components of xₜˡ into H hidden components, where H is the probe’s hidden width. ReLU, the rectified linear unit, sets negative components to zero and leaves positive ones unchanged. W₁ maps the H hidden components to 3 scores, and softmax normalizes them into probabilities. The indices t and l again specify the position and layer from which the activation was taken.

The nonlinear classifier can draw decision boundaries that bend across the activation space. Its width controls how many hidden quantities it can combine. The paper uses that additional capacity as an experimental variable. At fixed depth in Othello-GPT, changing the width asks how much decoding capacity helps. At fixed probe capacity, changing depth asks where the target is easier to extract. In each case, prediction of a square’s state is the result of a supervised classification problem built on top of the frozen sequence predictor.

Changing a square while keeping the transcript fixed

An intervention starts with a partial game, a square to change and a desired state for that square. The authors run the network on the partial game and record its ordinary prediction. They use the probe to read the starting board B from the activation and define an edited board B′ that differs at the chosen square. One illustration targets E6 and changes its label from white to black. An Othello rule calculation determines which moves the edited board would allow. The original prefix still enters the network as before, placing the manipulation inside its computation.

The intervention is guided by the error the probe would make relative to the desired state. When training the probe, gradient descent adjusts the classifier’s weights. During intervention, the classifier’s weights are held fixed and the gradient is used to change the input activation to the classifier. The network’s parameters are also held fixed. The altered activation is substituted for the original one and takes its place in the subsequent computation.

x′ ← x − α ∂ℒCE(pθ(x), B′)/∂x

The variable x is the original activation for the selected position and layer, and x′ is the edited version assigned by the arrow. The symbol α is the step size, or learning rate, for the edit. The probe with fixed parameters θ produces pθ(x), the predicted probabilities from x. The target board is B′, with the desired state at the selected square. The function ℒCE is cross-entropy. In the targeted update, it penalizes the probe for assigning low probability to that desired state. The partial derivative with respect to x gives the gradient of the loss across the activation’s components. Subtracting the scaled gradient moves the activation towards a lower loss for the target.

The edits take place at the last token of the prefix, at which the network is preparing the next-move prediction. The authors select a starting layer and intervene there, then let the network compute the next layer. They repeat the procedure on the new activation at the last position. The process continues until the output layer’s activation has been edited. The authors give a reason for this design. Causal attention allows higher layers to use earlier token positions, where the activations still reflect the original history. The computation can therefore pull the decoded state back toward its original value as it proceeds.

(xᵀᵃʳᵍₗ)ₗ₌Lₛ…L = (xₜˡ at t = T−1)ₗ₌Lₛ…L

In this notation xᵀᵃʳᵍₗ names the activation selected for intervention at layer l. It is the vector xₜˡ with the position t fixed at T−1, the last token of the T-token prefix. The range begins at Lₛ, the chosen starting layer, and ends at L, the final layer. The equality identifies the list of vectors to be edited as the computation advances. It involves a fresh layer computation between successive edits.

The paper describes the procedure as working within one forward pass of Othello-GPT. The activation update nevertheless uses gradients of the probe loss. The distinction is between how frequently the whole move predictor processes the prefix and what calculations are carried out at the points where an activation is adjusted. The authors also investigate how to discourage an edit aimed at one square from changing the probe’s readings for other squares. They express this as an optional penalty.

ℒCE(pθ(x), B′) =
  ∑ₛ: B(s) ≠ B′(s) ℒCE(pθˢ(x), B′(s))
  + β ∑ₛ: B(s) = B′(s) ℒCE(pθˢ(x), B(s))

The symbol s indexes a square, and B(s) and B′(s) give its state on the original and edited boards. The inequalities and equalities specify which squares enter each sum, denoted by ∑. The square-specific probe pθˢ uses fixed parameters θ to read square s from activation x. Cross-entropy ℒCE compares that probability distribution with the relevant square state. The first sum pushes the readings of changed squares toward their edited targets. The second sum favors the original readings for squares where the target agrees with the original board. The coefficient β determines how much influence this second term has on the update.

Building a map for a particular move

A latent saliency map uses the same intervention to explain the probability of a chosen placement. The authors select the highest-ranked move in their examples and record its probability. They then make square-level edits and measure the change in probability assigned to that fixed move. Holding the move under investigation fixed makes the map a description of a particular prediction. A separate placement on the same board could depend on a different set of squares.

A square receives a higher contribution when changing its internally decoded state makes the chosen move less likely. An edit can also make the move more likely, which gives the measure a sign. The authors subtract the board-wide mean from the values for display, making the colors a guide to which sites matter more or less within the displayed board. The result can be read in terms of familiar game features such as the line of discs enclosed by a proposed placement. Its values come from changes in the network’s output following activation edits. The authors released the accompanying code as othello_world.

Experiments and results

Legality on held-out transcripts

For each position evaluated in a validation game, the network receives the moves preceding that position and supplies scores for the candidate squares. The authors check the highest-scored square against the Othello rules. A legal choice succeeds regardless of which move the held-out transcript actually records. This is a top-1 legality measure, with the error rate reporting the share of highest-ranked predictions that are illegal.

Top-1 illegal-move rates on Othello validation games

Both trained networks usually choose legal moves, with the synthetic-trained version making the fewest illegal choices.

Top-1 illegal-move rates on Othello validation gamesRandomly initialized Othello-GPT: 93.29Randomly initialized Othello-GPT93.29Championship-trained Othello-GPT: 5.17Championship-trained Othello-GPT5.17Synthetic-trained Othello-GPT (this paper): 0.01Synthetic-trained Othello-GPT (thispaper)0.01
The numbers
System or settingerror %
Randomly initialized Othello-GPT93.29
Championship-trained Othello-GPT5.17
Synthetic-trained Othello-GPT (this paper)0.01

The synthetic-trained version has a validation error rate of 0.01%, and the championship-trained version has a validation error rate of 5.17%. The 93.29% error for the untrained version gives a baseline for what the architecture with initial weights achieves on the legality check. The lower error after training on either collection shows that the learned predictor has acquired information that constrains its choice of next square. The championship and synthetic numbers describe predictions under their respective data regimes. The comparison includes differences in the volume of training data and the process that produced the games.

Randomly holding out games leaves open the possibility that a predictor frequently sees familiar prefixes. The authors make that possibility harder to exploit with a replacement training collection of 20 million games. The opening moves available in the paper’s setup are C5, D6, E3 and F4. The replacement collection excludes the C5 branch, which the paper describes as a quarter of the game tree. Every later prefix in a C5 game then begins with a move the network never encountered in that position during training.

On the games from the excluded branch, the skew-trained Othello-GPT has a top-1 illegality rate of 0.02%. The opening exclusion is particularly informative about memorizing full input patterns. A system that has learned to generalize from shorter patterns, shared geometry or similar positions could still have advantages on the excluded branch. The paper also points out that different transcripts can lead to an identical board. The test isolates novelty at the level of the input history, even where the resulting positions may overlap.

What can be decoded with the game predictor frozen?

The probe comparison uses classification error on the validation split of activation and tile-state pairs. The authors report 52.95% error for an always-empty guess in their general description of probe evaluation. They separately give 47% for an always-empty comparator in a footnote discussing probes on randomized activations. The paper does not reconcile those figures, so each belongs with the comparison in which it appears. Both illustrate the role of the distribution of square states in setting the difficulty of the classification task.

The linear probes have errors that the authors say never fall below 20%. The gain from using the activations of a trained predictor rather than a randomized one is described as marginal for this family of classifiers. Moving to a nonlinear probe changes that picture. For trained Othello-GPT, nonlinear probes yield substantially lower validation error than the linear probes. On the randomized backbone, the paper describes almost no improvement from adding the nonlinear probe. The advantage of the more flexible readout therefore depends strongly on what sequence training did to the activations.

The comparison with random activations matters because a randomized network is still fed the transcript. Signs of the past moves can survive the transformations that produce its vectors. A probe fitted to those vectors can exploit such signs, especially when some square states are easy to anticipate from whether the square appears in the history. The experiment asks whether the trained activations support a much better reconstruction of the richer color-and-vacancy target. The difference between trained and randomized activations under nonlinear decoding supports that interpretation.

Evaluating the response to an edited board

Each benchmark case specifies a partial game, a target square and a target state. The authors divide the benchmark into a natural subset and an unnatural subset, each containing 1000 intervention cases. An edited position in the natural subset can be reached through legal play. An edited position in the unnatural subset is unreachable through legal play. In the latter condition, the rule calculation can still identify placements that have the required outflanking pattern. The edited board’s history and the legality of a local placement are distinct matters in this experiment.

Let N be the number of legal moves in the edited position. The authors take the network’s top-N predictions as its predicted set of legal moves. A false positive is a chosen square that the edited rules exclude, and a false negative is a legal square missing from that set. The error count for a case adds the false positives and false negatives. Supplying N makes this a test of whether the network ranks legal moves ahead of illegal moves for the edited board. It leaves the number of legal candidates to the independent rule calculation.

The authors use the unedited network’s predictions as a baseline and score them against the edited board’s legal moves. This comparison is stricter than asking whether the probability of a move changes after an edit. The baseline and the intervened predictions have to answer the same question about which squares to select. A decline in error then captures movement toward the particular changes induced by the board edit.

Mean legal-move-set errors on reachable Othello interventions

The activation edit brings the predicted moves closer to the legal set of the reachable counterfactual board.

Mean legal-move-set errors on reachable Othello interventionsOriginal predictions scored on edited boards: 2.68Original predictions scored on editedboards2.68Layerwise activation intervention (this paper): 0.12Layerwise activation intervention (thispaper)0.12
The numbers
System or settingerrors per case
Original predictions scored on edited boards2.68
Layerwise activation intervention (this paper)0.12

Mean legal-move-set errors on unreachable Othello interventions

The activation edit also brings predicted moves closer to the legal set on positions unreachable through play.

Mean legal-move-set errors on unreachable Othello interventionsOriginal predictions scored on edited boards: 2.59Original predictions scored on editedboards2.59Layerwise activation intervention (this paper): 0.06Layerwise activation intervention (thispaper)0.06
The numbers
System or settingerrors per case
Original predictions scored on edited boards2.59
Layerwise activation intervention (this paper)0.06

In the main intervention results, the best starting setting is given as Lₛ = 4, covering 5 layers. The reported means are 0.12 errors per case on the natural subset and 0.06 on the unnatural subset. The original predictions, judged against the same edited targets, have means of 2.68 and 2.59, respectively. The figure indicates 95% confidence intervals. The appendix uses a different layer designation for settings it calls best, an ambiguity that matters when interpreting the starting-layer sweep.

The benchmark’s typical edit changes only a small part of the answer set. The appendix reports that the legal sets differ by 2.12 squares on average. A top-1 measure could overlook the effect when the highest-ranked move remains legal across the edit. The authors therefore also report F₁, which reflects both the precision and the recall of the predicted move set, and KL divergence, which compares the next-move probability distribution with a uniform distribution over the edited board’s legal moves. Their baseline scores for these measures are means of scores calculated separately for the 1000 cases in a subset. Both alternative metrics show the same broad pattern across the intervention conditions as the error count.

The KL comparison asks a related question about probability allocation. A predictor can gather the legal moves near the top of its ranking while assigning them markedly different probabilities. The uniform reference gives equal weight to the permissible placements, so agreement with it reflects how probability is distributed as well as which placements the network ranks highly. The agreement of the metric trends indicates that the intervention’s effect is visible through both the predicted set and the probability distribution.

Reading the probability maps

A supplementary example shows predicted move probabilities on the board before and after editing. Evaluated against their corresponding legal-move sets, the original and edited predictions each have 0 errors in that example. The value of the example lies in pairing the probabilities with the rules for each board. A move can gain or lose probability for the particular reason that the changed square creates or removes a legal placement.

The saliency maps apply this logic repeatedly, keeping the move whose probability is being explained fixed. For examples from the synthetic-trained version, the strongest contributions tend to be located on the squares that make the move legal. Squares away from the relevant lines tend to be less salient. In examples from the championship-trained version, legality-related squares frequently still stand out, alongside more distant squares with large contributions. The authors relate the wider pattern to expert play, where players’ choices can depend on features distributed across a position. The maps show differences in sensitivity for the displayed moves, while playing strength remains a separate outcome.

What the ablations show

A probe’s width and the layer it reads

The authors vary the number of hidden units in the nonlinear probe and the layer of Othello-GPT from which its input is taken. Increasing the width improves decoding accuracy in the reported sweeps. A wider probe can combine more intermediate features when discriminating among the square states. The result shows that the ability to recover the state depends partly on how much capacity the researcher gives the reader.

The layer sweep places the strongest decoding around the middle of the network. Early representations have been through less processing of the move history. Late representations participate more directly in producing move scores. The result identifies a portion of the network from which the tested probe can recover the square states especially well. It leaves open whether other layers retain related information in a form the probe finds more difficult to read. The authors connect this middle-layer peak to earlier observations about probing linguistic properties.

The paper checks whether the separation between probe types is sensitive to random initialization in the experiments. The authors repeat the experiments 100 times with different random seeds, which control random choices in a run. They report standard deviations of the probe error rates and describe the differences between the trained and randomized cases, and between the linear and nonlinear readers, as robust to this variation. Repeating the experiment under different seeds addresses variability in the chosen setup. Changing the representation being decoded or the classifier’s target would raise a separate question.

How long a square has been in its current state

The authors also group validation examples according to how many moves have passed since a square took on its current state. A recently changed square tests whether the newest information is easy to read. A square that has stayed in the same state through more play tests whether that information remains easy to retrieve after further moves have entered the prefix. This grouping tracks the age of the state of a particular square. Squares on the same board can contribute examples to different groups.

With a moderate probe width, the paper reports a curved pattern. States of intermediate age are decoded more accurately than very recent or long-standing states. The authors interpret the decline for old states as possible forgetting and the difficulty of fresh states as possible uncertainty about updates. Those interpretations concern the accessibility of the state to the chosen reader. The age analysis groups naturally occurring examples, so patterns in the kinds of squares or positions represented at different ages can also influence the curves.

Which layers an intervention needs to reach

Changing the starting layer changes both the depth at which the first edit is made and how many later stages receive an edit. Starting early brings in layers where the probes are less reliable. In the authors’ explanation, this makes the direction of the update less well anchored to the targeted square state. Starting late can successfully change what a probe reads, while leaving little remaining computation in which the edited information can affect the calculation of the move set. The sweep consequently favors a start in the middle portion of the network.

An appendix example makes the reason for repeated edits concrete. The authors edit C4 and report a successful change in its decoded color at the starting layer. After the next layer is computed, the probe initially reads the original color again. Further interventions later in the network make the targeted color persist in the probe’s reading. The example shows that reading a new state immediately after an edit and having that state persist as the network continues are separate events. It is consistent with the network continuing to draw on context at earlier positions that still reflect the original game.

The paper uses two designations for the middle starting setting. The main benchmark gives Lₛ = 4 and says the procedure edits 5 layers. The appendix’s regularization sweep calls its setting Lₛ = 5, and the worked example describes starting at the 5th layer. This may reflect a difference between an index and an ordinal layer name, but the paper leaves their correspondence unresolved. The reported benchmark errors attach to the main text’s designation, while the appendix’s comparisons retain its own designation.

The authors describe the intervention as robust to different optimizers, learning rates and numbers of update steps. They also vary β, the penalty for changing the probe’s readings on squares outside the intended edit. This sweep uses the natural benchmark at the appendix’s Lₛ = 5 setting. The paper reports no clear gain on average move-set error from the penalty. That outcome addresses whether the added constraint improves that evaluation metric. A change in what happens to other square readings could still matter even if it leaves the ranked legal set unchanged.

Geometry in the probe weights

The authors examine the geometry of the fitted readers by associating a vector with the classifier for each square. For the linear probes they use the direction associated with the separating boundary. For the nonlinear probes they look at the output layer, which acts linearly on the probe’s own hidden units. They project these vectors with principal component analysis, a method that displays prominent directions of variation using a smaller set of coordinates. They draw connections between points representing neighboring squares to see whether the layout reflects the board.

The projected points from trained networks have a clearer resemblance to the grid than those from the randomized network. Even the randomized comparison exhibits some organization. This sits alongside the randomized network’s above-baseline probe behavior in the authors’ discussion. A learned readout can exploit regularities in how moves and square labels relate to each other, and the probe weights can reflect those regularities. The figure describes geometry in the fitted readers. Recovering a spatial arrangement directly from the network’s activations would be a different measurement.

What the attribution comparisons isolate

A saliency map asks whether altering a particular square changes the probability of a particular move. When that move depends on a single line of discs, some states along the line can be decisive. The paper explains that the rule combines requirements within the line. Opponent discs must occur between the placement and an enclosing disc of the moving color. An intervention can break the arrangement and reveal the candidate’s sensitivity to a square that sustains it.

A move can also flip discs along several lines. A change in one line can leave a different legal line intact, which allows the move to retain probability in spite of the edited disc’s role in the original board. In another pattern the authors discuss, the map highlights the first disc of a line while others that would also flip may have little visible contribution. Varying those other discs can preserve a legal configuration. The maps can therefore expose the conditions a move depends on under the tested edits, while redundant ways of remaining legal can hide other relevant relationships. The authors leave the extraction of those more complex relationships to future work.

Limitations

Limits identified by the authors

The authors distinguish a new transcript from a new board position in their withheld-opening experiment. Excluding the C5 opening removes those prefixes from training, but separate move orders can arrive at a shared position. The experiment therefore supports generalization beyond exact histories. Whether the predictor can recover its legality performance on states with controlled novelty at the level of board configurations remains a separate question. The authors chose to control exposure to the sequences because those are the network’s actual inputs.

The authors also distinguish their training task from winning at Othello. The championship records reflect the decisions of people trying to win, and the paper relates the championship maps’ broader patterns to the strategic information in those records. The method still trains the network by move prediction. Its reported legality metric accepts any valid choice, including a weak one. The authors propose a future comparison with a system given prior knowledge of Othello and suggest comparing the latent maps with ordinary saliency maps for a program that receives the board directly.

The handling of several simultaneously useful lines is a stated limit on the attribution procedure. Individual edits can have small effects in the presence of redundant ways to make a move legal. Describing the collective role of those lines would require a way to interpret interactions among interventions. The paper’s maps show what the chosen edits reveal about a prediction’s sensitivity. The authors leave open how to recover a fuller rule from a wider range of counterfactual experiments.

The authors treat natural-language generalization as future work. They suggest testing systems whose training data contain game records to see whether a corresponding board representation can be found. They also propose using controllable language environments to generate sentences from specified situations. Tools such as TextWorld would make it possible to retain some of Othello’s experimental control while replacing square tokens with language. More complex games and more complex language tasks would each test a different aspect of generality. TextWorld

Limits of the inference from probes and interventions

The conclusion about nonlinearity rests on a comparison between particular classifiers trained on particular targets. In this study the target distinguishes absolute disc colors and empty squares. The ability to read a representation linearly can depend on which property is labeled and which coordinate system expresses it. Better performance with the nonlinear probe supports the claim that the linear probe used in the paper is an inadequate reader of these targets. The experiment leaves room for a useful linear readout of related information under a different choice of labels or representation.

A probe’s successful output can also combine information carried in the activation into a form required by the human label. The randomized baseline helps account for relevant traces of the input that survive without training. The intervention goes further by showing that directed changes guided by the trained probe affect the move predictor in the expected way. Neither measurement uniquely separates what the probe computes from what the original forward computation computes. A complete account would have to connect the natural network operations that produce the activations to the way later operations use them.

The causal manipulation acts on a whole vector. Its target names one square, and the desired board differs at that square. Moving the activation in a direction that reduces the target’s classification loss can also move other encoded properties. The paper recognizes this issue through its regularization experiment. The benchmark’s agreement with the edited legal set is good evidence of a functional response to the targeted change. It leaves the uniqueness and selectivity of that change open, especially when several properties of the activation are correlated.

Repeated edits add another distinction. The intervention demonstrates that the later layers can process activations steered towards the counterfactual state and produce move rankings appropriate to it. The procedure gives the target repeated influence as the computation proceeds. Where the unmodified network normally constructs that information, which components preserve it and which transformations turn it into scores are finer-grained questions than the intervention benchmark answers. The C4 example captures the gap between an edit’s immediate result and the state the network would carry forward by itself.

What the benchmarks make visible

The intervention metric obtains the size of the predicted set from the rule-based evaluator. A high score therefore shows that legal moves are well ranked when the required set size is supplied. Recovering the size from the scores or determining when every candidate is illegal would require a decision rule with its own evaluation. The KL divergence adds information about the distribution over placements. A uniform legal-move reference embodies a particular evaluation goal, and expert play may favor assigning different probabilities to different legal choices.

Likewise, success on unreachable boards has a defined scope. The unreachable benchmark consists of edits near boards derived from partial games, and the manipulation enters through the network’s activations. The legal-move calculation checks candidate placements on the modified arrangement. The experiment demonstrates that the network’s outputs can follow the expected rule-based change even when the modified arrangement could never arise in ordinary play. Its scope is these local edits. Handling arbitrary unreachable inputs, several successive changes or extended play from such positions would be further tests.

The synthetic and championship settings vary together in volume and in how the next moves were chosen. Those joint changes matter when interpreting both the error rates and the maps. A difference in how attention to board features appears in an attribution map is consistent with a difference in learned behavior. A comparison designed to identify the contribution of expert choices alone would also need to account for how much training material each version saw. The paper reports a comparison of the two training regimes as used.

The study’s strongest claims stay close to what the game supplies. There is a known rule system, a replayable and compact state, an independent evaluator and a way to translate a square-level change into a predicted change in legal moves. Natural-language examples can differ in what they specify about a situation and in how easy it is to define a comparable counterfactual. The Othello experiments establish a case where sequence training produces behavior and activations compatible with state tracking, and where targeted editing changes that behavior in a way the rules predict.

What came after

The form of a world representation

Nanda and colleagues’ Emergent Linear Representations in World Models of Self-Supervised Sequence Models takes up the most direct question left by the probing comparison. The title places linear representations at the center of a study of learned worlds in sequence predictors. In the Othello paper, a linear and a nonlinear readout are compared for specific square labels. From the perspective of the later work’s question, the choice of what to recover is part of assessing the geometry of a world representation. This connection concerns the form in which state information can be accessed, and the title alone leaves the later paper’s experimental construction and results unspecified. Emergent Linear Representations in World Models

Language Models Represent Space and Time brings representation questions to spatial and temporal information in language predictors. Othello’s state is spatial in a concrete sense. Its squares have known relationships, and those relationships determine what a placement can do. The later title identifies space and time as the objects of study in a broader setting. The connection is the question of whether training on sequences gives rise to internal structure for things the sequences describe. Language Models Represent Space and Time

Entity Tracking in Language Models gives that question a different subject by making entities the things to be tracked. The Othello experiment offers a concrete version of the problem of updating state over a sequence. An earlier event can establish a fact about the position, and a later event can change it without directly repeating the original square token. Entity tracking in language provides another setting for asking how a system handles information that must persist or change as the input develops. Entity Tracking in Language Models

The Linear Representation Hypothesis puts the geometry of representations at the center of a broader question about language predictors. The Othello comparisons illustrate why that question calls for specifying both the property and the readout. A successful decoder describes a relationship between a chosen target and a coordinate system in an activation space. In the later work, the geometry itself is the named subject. The Linear Representation Hypothesis and the Geometry of Large Language Models

Reading activations and using them to steer output

Steering Language Models With Activation Engineering studies steering through activation changes. The connection to Othello is the intervention site. Othello-GPT’s transcript stays fixed while the authors alter intermediate vectors and observe the next-move scores. The later work’s title identifies activation engineering as a way to direct the behavior of language predictors more generally. Inference-Time Intervention names a specific behavioral objective, eliciting truthful answers. Where Othello supplies legality as an independent check on the edited behavior, truthfulness defines the outcome of interest in that later work. Steering Language Models With Activation Engineering · Inference-Time Intervention

Representation Engineering describes a top-down approach to transparency. This is related to the decision to start with a human-readable object, the board, and design a measurement around it. The Othello researchers choose the state of a square as the target of a probe and of an edit. The later work makes the broader approach to transparency its topic. The Tuned Lens paper also works at the level of intermediate transformer calculations, with latent predictions as its stated object. Board probes ask what situation can be reconstructed from an activation. A lens aimed at predictions addresses the related question of what the intermediate layers reveal about an eventual output. Representation Engineering · Eliciting Latent Predictions from Transformers with the Tuned Lens

Towards Best Practices of Activation Patching in Language Models focuses on intervention methods and metrics. The Othello benchmark gives a concrete example of why both matter. The authors vary where editing starts and evaluate the resulting scores against a rule-derived target using several measures. The later paper’s stated scope is how to study activation patching, a broader methodological question connected to how researchers interpret changes in behavior after manipulating an internal computation. Towards Best Practices of Activation Patching in Language Models

Cite

Cite as Kenneth Li, Aspen K. Hopkins, David Bau, Fernanda Viégas, Hanspeter Pfister and Martin Wattenberg. 2022. Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task. arXiv:2210.13382.

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

@misc{li2022emergent,
  title = {{Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task}},
  author = {Kenneth Li, Aspen K. Hopkins, David Bau, Fernanda Viégas, Hanspeter Pfister and Martin Wattenberg},
  year = {2022},
  doi = {10.48550/arxiv.2210.13382},
  eprint = {2210.13382},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.2210.13382}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/li-2022-emergent-world-representations-exploring-sequence/

References

33 references, from the paper's own bibliography.

  1. Mostafa Abdou, Artur Kulmizev, Daniel Hershcovich, Stella Frank, Ellie Pavlick, and Anders Søgaard. Can language models encode perceptual structure without grounding? a case study in color. arXiv preprint arXiv:2109.06129, 2021. our card
  2. Guillaume Alain and Yoshua Bengio. Understanding intermediate layers using linear classifier probes. arXiv preprint arXiv:1610.01644, 2016. our card
  3. Yonatan Belinkov. Probing classifiers: Promises, shortcomings, and advances. Computational Linguistics, pp. 1–12, 2016. our card
  4. Emily M Bender and Alexander Koller. Climbing towards nlu: On meaning, form, and understanding in the age of data. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 5185–5198, 2020. our card
  5. Emily M Bender, Timnit Gebru, Angelina McMillan-Major, and Shmargaret Shmitchell. On the dangers of stochastic parrots: Can language models be too big? In Proceedings of the 2021 ACM Conference on Fairness, Accountability, and Transparency, pp. 610–623, 2021. OpenAlex ↗ · Scholar ↗
  6. Tom B Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. arXiv preprint arXiv:2005.14165, 2020. our card
  7. Steven Cao, Victor Sanh, and Alexander M Rush. Low-complexity probing via finding subnetworks. arXiv preprint arXiv:2104.03514, 2021. OpenAlex ↗ · Scholar ↗
  8. Alexis Conneau, German Kruszewski, Guillaume Lample, Loïc Barrault, and Marco Baroni. What you can cram into a single vector: Probing sentence embeddings for linguistic properties. arXiv preprint arXiv:1805.01070, 2018. our card
  9. Marc-Alexandre Côté, Akos Kádár, Xingdi Yuan, Ben Kybartas, Tavian Barnes, Emery Fine, James Moore, Matthew Hausknecht, Layla El Asri, Mahmoud Adada, et al. Textworld: A learning environment for text-based games. In Workshop on Computer Games, pp. 41–75. Springer, 2018. our card
  10. Sumanth Dathathri, Andrea Madotto, Janice Lan, Jane Hung, Eric Frank, Piero Molino, Jason Yosinski, and Rosanne Liu. Plug and play language models: A simple approach to controlled text generation. arXiv preprint arXiv:1912.02164, 2019. our card
  11. Luciano Floridi and Massimo Chiriatti. Gpt-3: Its nature, scope, limits, and consequences. Minds and Machines, 300 (4):0 681–694, 2020. OpenAlex ↗ · Scholar ↗
  12. Jessica Zosa Forde, Charles Lovering, George Konidaris, Ellie Pavlick, and Michael L Littman. Where, when & which concepts does alphazero learn? lessons from the game of hex. In AAAI Workshop on Reinforcement Learning in Games, volume 2, 2022. OpenAlex ↗ · Scholar ↗
  13. Amirata Ghorbani, James Wexler, James Y Zou, and Been Kim. Towards automatic concept-based explanations. Advances in Neural Information Processing Systems, 32, 2019. OpenAlex ↗ · Scholar ↗
  14. Karl Moritz Hermann, Felix Hill, Simon Green, Fumin Wang, Ryan Faulkner, Hubert Soyer, David Szepesvari, Wojciech Marian Czarnecki, Max Jaderberg, Denis Teplyashin, et al. Grounded language learning in a simulated 3d world. arXiv preprint arXiv:1706.06551, 2017. our card
  15. Evan Hernandez and Jacob Andreas. The low-dimensional linear geometry of contextualized word representations. arXiv preprint arXiv:2105.07109, 2021. OpenAlex ↗ · Scholar ↗
  16. John Hewitt and Christopher D Manning. A structural probe for finding syntax in word representations. In Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers), pp. 4129–4138, 2019. our card
  17. Been Kim, Martin Wattenberg, Justin Gilmer, Carrie Cai, James Wexler, Fernanda Viegas, et al. Interpretability beyond feature attribution: Quantitative testing with concept activation vectors (tcav). In International conference on machine learning, pp. 2668–2677. PMLR, 2018. OpenAlex ↗ · Scholar ↗
  18. Pang Wei Koh, Thao Nguyen, Yew Siang Tang, Stephen Mussmann, Emma Pierson, Been Kim, and Percy Liang. Concept bottleneck models. In International Conference on Machine Learning, pp. 5338–5348. PMLR, 2020. OpenAlex ↗ · Scholar ↗
  19. Ben Krause, Akhilesh Deepak Gotmare, Bryan McCann, Nitish Shirish Keskar, Shafiq Joty, Richard Socher, and Nazneen Fatema Rajani. Gedi: Generative discriminator guided sequence generation. arXiv preprint arXiv:2009.06367, 2020. our card
  20. Belinda Z Li, Maxwell Nye, and Jacob Andreas. Implicit representations of meaning in neural language models. arXiv preprint arXiv:2106.00737, 2021. our card
  21. Xiang Lisa Li, John Thickstun, Ishaan Gulrajani, Percy Liang, and Tatsunori B Hashimoto. Diffusion-lm improves controllable text generation. arXiv preprint arXiv:2205.14217, 2022. our card
  22. Reginald Long, Panupong Pasupat, and Percy Liang. Simpler context-dependent logical forms via model projections. arXiv preprint arXiv:1606.05378, 2016. our card
  23. Thomas McGrath, Andrei Kapishnikov, Nenad Tomašev, Adam Pearce, Demis Hassabis, Been Kim, Ulrich Paquet, and Vladimir Kramnik. Acquisition of chess knowledge in alphazero. arXiv preprint arXiv:2111.09259, 2021. OpenAlex ↗ · Scholar ↗
  24. William Merrill, Yoav Goldberg, Roy Schwartz, and Noah A Smith. Provable limitations of acquiring meaning from ungrounded form: What will future language models understand? Transactions of the Association for Computational Linguistics, 9:0 1047–1060, 2021. our card
  25. Roma Patel and Ellie Pavlick. Mapping language models to grounded conceptual spaces. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=gJcEM8sxHK. OpenAlex ↗ · Scholar ↗
  26. Lianhui Qin, Vered Shwartz, Peter West, Chandra Bhagavatula, Jena Hwang, Ronan Le Bras, Antoine Bosselut, and Yejin Choi. Back to the future: Unsupervised backprop-based decoding for counterfactual and abductive commonsense reasoning. arXiv preprint arXiv:2010.05906, 2020. our card
  27. Alec Radford, Karthik Narasimhan, Tim Salimans, Ilya Sutskever, et al. Improving language understanding by generative pre-training. 2018. OpenAlex ↗ · Scholar ↗
  28. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, Ilya Sutskever, et al. Language models are unsupervised multitask learners. OpenAI blog, 10 (8):0 9, 2019. OpenAlex ↗ · Scholar ↗
  29. David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, et al. A general reinforcement learning algorithm that masters chess, shogi, and go through self-play. Science, 3620 (6419):0 1140–1144, 2018. OpenAlex ↗ · Scholar ↗
  30. Aarohi Srivastava, Abhinav Rastogi, Abhishek Rao, Abu Awal Md Shoeb, Abubakar Abid, Adam Fisch, Adam R Brown, Adam Santoro, Aditya Gupta, Adrià Garriga-Alonso, et al. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615, 2022. our card
  31. Ian Tenney, Dipanjan Das, and Ellie Pavlick. Bert rediscovers the classical nlp pipeline. arXiv preprint arXiv:1905.05950, 2019. our card
  32. Shubham Toshniwal, Sam Wiseman, Karen Livescu, and Kevin Gimpel. Learning chess blindfolded: Evaluating language models on state tracking. arXiv preprint arXiv:2102.13249, 2021. OpenAlex ↗ · Scholar ↗
  33. Jason Weston, Antoine Bordes, Sumit Chopra, Alexander M Rush, Bart Van Merriënboer, Armand Joulin, and Tomas Mikolov. Towards ai-complete question answering: A set of prerequisite toy tasks. arXiv preprint arXiv:1502.05698, 2015. our card