SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2403.15498 · 2024

Emergent World Models and Latent Variable Estimation in Chess-Playing Language Models

arXiv · PDF · Open in the Atlas

Code that ran

5 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2403.15498.json · badge: /api/ran/2403.15498.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
adamkarvonen/chess_llm_interpretability canonical (classifier label)
classifier basis: census
5 ran · 0 no recorded run
FunctionStatusWhere it lives
board_state_to_RRC Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
adamkarvonen/chess_llm_interpretability/othello_utils.py
code served (permissive licence) · get_code("454b30168edfa3e2")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 3, dtype family int, shape (8, 8, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch as t

t.manual_seed(0)

# board_state_to_RRC expects:
# - board_state: a tensor or array-like with values -1, 0, or 1 representing board positions
# - flip: an int to multiply the board state by (default 1)

# The function treats board_state as an 8x8 board and creates a one-hot encoding
# with 3 channels for values -1, 0, and 1

# Create a small 8x8 board state with values -1, 0, and 1
board_state = t.tensor([
    [-1,  0,  1, -1,  0,  1, -1,  0],
    [ 0,  1, -1,  0,  1, -1,  0,  1],
    [ 1, -1,  0,  1, -1,  0,  1, -1],
    [-1,  0,  1, -1,  0,  1, -1,  0],
    [ 0,  1, -1,  0,  1, -1,  0,  1],
    [ 1, -1,  0,  1, -1,  0,  1, -1],
    [-1,  0,  1, -1,  0,  1, -1,  0],
    [ 0,  1, -1,  0,  1, -1,  0,  1]
], dtype=t.int8)

ARGS = {
    "board_state": board_state,
    "flip": 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 3, dtype family int, shape (8, 8, 3) — shape (8, 8, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
initialize_output_tracker Ran
ran; our contract draft was wrong, not the code
adamkarvonen/chess_llm_interpretability/board_state_interventions.py
code served (permissive licence) · get_code("3e75dd405179bd2a")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct the probes dictionary
# The function expects a dict[int, str] where keys are layer indices
# and values are probe names
probes = {
    0: "probe_layer_0",
    1: "probe_layer_1",
    2: "probe_layer_2"
}

ARGS = {
    "probes": probes
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
permit Ran
ran, honoured the contract we drafted
adamkarvonen/chess_llm_interpretability/othello_engine_utils.py
code served (permissive licence) · get_code("1a0f3a6c603d52ed")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

rows = list('abcdefgh')
columns = [str(_) for _ in range(1, 9)]

def permit(s):
    s = s.lower()
    if len(s) != 2:
        return -1
    if s[0] not in rows or s[1] not in columns:
        return -1
    return rows.index(s[0]) * 8 + columns.index(s[1])

ARGS = {
    's': 'a1'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
permit_reverse Ran
ran; our contract draft was wrong, not the code
adamkarvonen/chess_llm_interpretability/othello_engine_utils.py
code served (permissive licence) · get_code("1484fe530bc561e5")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

rows = list('abcdefgh')
columns = [str(_) for _ in range(1, 9)]

def permit_reverse(integer):
    r, c = (integer // 8, integer % 8)
    return ''.join([rows[r], columns[c]])

# The function takes a single parameter 'integer' which is used to:
# - Divide by 8 to get row index (r)
# - Take modulo 8 to get column index (c)
# - Index into rows and columns lists
# Valid integers should be in range [0, 63] to map to valid board positions
# Let's use a valid integer in the middle of the range

ARGS = {
    'integer': 42
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
to_board_label Ran
ran; our contract draft was wrong, not the code
adamkarvonen/chess_llm_interpretability/othello_engine_utils.py
code served (permissive licence) · get_code("0a2c0f55c57d9f48")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

alpha = 'ABCDEFGH'

def to_board_label(i):
    return f'{alpha[i // 8]}{i % 8}'

ARGS = {
    'i': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
permit 3 other papers
2 dated earlier, 1 later
2210.13382 (2022-10)
Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task
2310.07582 (2023-10)
Linear Latent World Models in Simple Transformers: A Case Study on Othello-GPT
2406.03689 (2024-06)
Evaluating the World Model Implicit in a Generative Model
permit_reverse 3 other papers
2 dated earlier, 1 later
2210.13382 (2022-10)
Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task
2310.07582 (2023-10)
Linear Latent World Models in Simple Transformers: A Case Study on Othello-GPT
2406.03689 (2024-06)
Evaluating the World Model Implicit in a Generative Model
to_board_label 3 other papers
2 dated earlier, 1 later
2210.13382 (2022-10)
Emergent World Representations: Exploring a Sequence Model Trained on a Synthetic Task
2310.07582 (2023-10)
Linear Latent World Models in Simple Transformers: A Case Study on Othello-GPT
2406.03689 (2024-06)
Evaluating the World Model Implicit in a Generative Model

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Language models have shown unprecedented capabilities, sparking debate over the source of their performance. Is it merely the outcome of learning syntactic patterns and surface level statistics, or do they extract semantics and a world model from the text? Prior work by Li et al. investigated this by training a GPT model on synthetic, randomly generated Othello games and found that the model learned an internal representation of the board state. We extend this work into the more complex domain of chess, training on real games and investigating our model's internal representations using linear probes and contrastive activations. The model is given no a priori knowledge of the game and is solely trained on next character prediction, yet we find evidence of internal representations of board state. We validate these internal representations by using them to make interventions on the model's activations and edit its internal board state. Unlike Li et al's prior synthetic dataset approach, our analysis finds that the model also learns to estimate latent variables like player skill to better predict the next character. We derive a player skill vector and add it to the model, improving the model's win rate by up to 2.6 times.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2403.15498")
get_code_for_paper("2403.15498")
have("2403.15498")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2403.15498.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2403.15498.svg)](https://syntology.ai/paper/2403.15498)

Connect an agent — have() is free.