SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2405.14860 · ICLR · 2025

Not All Language Model Features Are One-Dimensionally Linear

Max Tegmark, Eric Michaud, Wes Gurnee, Joshua Engels, Isaac Liao, Monday Tuesday, Wednesday Thursday, Friday Saturday, Sunday Other

arXiv · PDF · Open in the Atlas

Code that ran

6 of 10 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; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 4 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/2405.14860.json · badge: /api/ran/2405.14860.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
joshengels/multidimensionalfeatures canonical (classifier label)
classifier basis: census
6 ran · 4 no recorded run
FunctionStatusWhere it lives
expand_descriptions Ran
ran; our contract draft was wrong, not the code
joshengels/multidimensionalfeatures/intervention/utils.py
code served (permissive licence) · get_code("e5bbb58953bc029e")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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)

# The function expects compressed_descriptions to be an iterable of tuples
# Each tuple contains (start_index, end_index, description)
# The function expands each description by repeating it (end_index - start_index) times

compressed_descriptions = [
    (0, 3, "apple"),
    (3, 5, "banana"),
    (5, 7, "cherry")
]

ARGS = {
    "compressed_descriptions": compressed_descriptions
}
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 list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
f Ran
ran, honoured the contract we drafted
joshengels/multidimensionalfeatures/feature_deconstruction/simple_example.py
code served (permissive licence) · get_code("35bb96ea1f68e1fc")
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 list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np

np.random.seed(0)

dim = 10

c_matrix = np.random.rand(4, dim)

def f(a, b, epsilon_scale=0.1):
    return [c_matrix[0, i] * np.sin(a) + c_matrix[1, i] * b + c_matrix[2, i] * (a == 4) + c_matrix[3, i] * (b == 1) + np.random.normal(0, 1) * epsilon_scale for i in range(dim)]

ARGS = {
    "a": 2,
    "b": 0,
    "epsilon_scale": 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
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
get_all_acts Ran
ran, honoured the contract we drafted
joshengels/multidimensionalfeatures/intervention/task.py
code served (permissive licence) · get_code("61e1dc25eff28dd1")
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 4, dtype family float, shape (3, 2, 5, 8) as a later run recorded it. The image it ran in was not recorded. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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
import torch.nn as nn
import tempfile
import os

torch.manual_seed(0)

class Problem:
    def __init__(self, prompt, target, info):
        self.prompt = prompt
        self.target = target
        self.info = info

class ActivationCache:
    def __init__(self, data):
        self.data = data
    
    def keys(self):
        return self.data.keys()
    
    def __getitem__(self, key):
        return self.data[key]
    
    def stack_head_results(self):
        stacked = torch.stack(list(self.data.values()), dim=0)
        return stacked

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.embed = nn.Embedding(100, 8)
        self.linear = nn.Linear(8, 100)
    
    def to_tokens(self, prompts):
        return torch.randint(0, 100, (len(prompts), 5))
    
    def to_str_tokens(self, tokens):
        return ["token"] * tokens.numel()
    
    def run_with_cache(self, tokens, names_filter=None):
        batch_size = tokens.shape[0]
        seq_len = tokens.shape[1]
        
        embed = self.embed(tokens)
        logits = self.linear(embed)
        
        activation_cache = ActivationCache({
            'resid_post': torch.randn(batch_size, seq_len, 8),
            'hook_embed': torch.randn(batch_size, seq_len, 8),
        })
        
        return logits, activation_cache
    
    def to_string(self, token):
        return "42"
    
    def to_single_token(self, token):
        return 42

class Task:
    def __init__(self):
        self.prefix = tempfile.gettempdir() + '/task_test_'
        self.num_tokens_in_answer = 1
        self.allowable_tokens = ["42", "0"]
        self.token_device = 'cpu'
    
    def get_model(self):
        return SimpleModel()
    
    def generate_problems(self):
        return [
            Problem("what is 1+1?", "2", (1, 1, 2)),
            Problem("what is 2+2?", "4", (2, 2, 4)),
            Problem("what is 3+3?", "6", (3, 3, 6)),
        ]

task = Task()

ARGS = {
    'task': task,
    'verbose': False,
    'force_regenerate': False,
    'save_results_csv': False,
    'names_filter': lambda x: 'resid_post' in x or 'hook_embed' in x,
    'save_file_prefix': 'test',
    'save_best_logit': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
einops, torch, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 4, dtype family float, shape (3, 2, 5, 8) — shape (3, 2, 5, 8) 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
get_lambdas_and_descriptions Ran
ran; our contract draft was wrong, not the code
joshengels/multidimensionalfeatures/intervention/utils.py
code served (permissive licence) · get_code("0400998cc6c8e217")
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 tuple. 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 dill as pickle
import tempfile
import os

# Create a temporary directory structure to mock the file system
temp_dir = tempfile.mkdtemp()

# Create the nested directory structure
task_name = "test_task"
layer = 0
token = 0
explanation_name = "test_explanation"

dir_path = os.path.join(temp_dir, 'figs', task_name, 'regression', f'token_{token}', f'layer_{layer}')
os.makedirs(dir_path, exist_ok=True)

# Create mock data
mock_lambdas = [0.1, 0.2, 0.3, 0.4]
mock_descriptions = ["desc1", "desc2", "desc3"]

# Save the mock data to pickle files
lambdas_file = os.path.join(dir_path, f'{explanation_name}_lambdas.pkl')
descriptions_file = os.path.join(dir_path, f'{explanation_name}_descriptions.pkl')

pickle.dump(mock_lambdas, open(lambdas_file, 'wb'))
pickle.dump(mock_descriptions, open(descriptions_file, 'wb'))

# Create a mock task object with a name attribute
class MockTask:
    def __init__(self, name):
        self.name = name

mock_task = MockTask(task_name)

# Change to temp directory so relative paths work
original_cwd = os.getcwd()
os.chdir(temp_dir)

ARGS = {
    'layer': 0,
    'explanation_name': 'test_explanation',
    'task': mock_task,
    'token': 0
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
dill — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
get_points Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
joshengels/multidimensionalfeatures/intervention/intervene_in_middle_of_circle.py
code served (permissive licence) · get_code("dc43373d010228a4")
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 tuple. 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 numpy as np

# Construct valid arguments for get_points function
ARGS = {
    "num_angles": 100,
    "radius_vals": np.arange(0, 2, 0.1)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is 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
mean_confidence_interval Ran
ran; our contract draft was wrong, not the code
joshengels/multidimensionalfeatures/intervention/compare_circle_intervention_types.py
code served (permissive licence) · get_code("6661fded31c6734f")
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 tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 numpy as np
import scipy.stats

# Construct sample data for the mean_confidence_interval function
# The function expects a list/array-like data and an optional confidence parameter
sample_data = [1.2, 1.5, 1.3, 1.4, 1.6, 1.25, 1.35, 1.45]

# Define the ARGS dictionary with all parameters
ARGS = {
    "data": sample_data,
    "confidence": 0.96
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, scipy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
do_regression Not yet run
unverified (harvested, no recorded run)
joshengels/multidimensionalfeatures/intervention/circle_finding_utils.py
code served (permissive licence) · get_code("6d8c73b8de5b9b2c")
How it ran

no invocation recorded.

find_c_circle Not yet run
unverified (harvested, no recorded run)
joshengels/multidimensionalfeatures/intervention/circle_finding_utils.py
code served (permissive licence) · get_code("fb6d83ae4739bc75")
How it ran

no invocation recorded.

get_acts Not yet run
unverified (harvested, no recorded run)
joshengels/multidimensionalfeatures/intervention/task.py
code served (permissive licence) · get_code("5daefa372b9d0d79")
How it ran

no invocation recorded.

get_acts_pca Not yet run
unverified (harvested, no recorded run)
joshengels/multidimensionalfeatures/intervention/task.py
code served (permissive licence) · get_code("08d36115ab4d9a96")
How it ran

no invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 10 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.

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

Recent work has proposed that language models perform computation by manipulating one-dimensional representations of concepts ("features") in activation space. In contrast, we explore whether some language model representations may be inherently multi-dimensional. We begin by developing a rigorous definition of irreducible multi-dimensional features based on whether they can be decomposed into either independent or non-co-occurring lower-dimensional features. Motivated by these definitions, we design a scalable method that uses sparse autoencoders to automatically find multi-dimensional features in GPT-2 and Mistral 7B. These auto-discovered features include strikingly interpretable examples, e.g. circular features representing days of the week and months of the year. We identify tasks where these exact circles are used to solve computational problems involving modular arithmetic in days of the week and months of the year. Next, we provide evidence that these circular features are indeed the fundamental unit of computation in these tasks with intervention experiments on Mistral 7B and Llama 3 8B, and we examine the continuity of the days of the week feature in Mistral 7B. Overall, our work argues that understanding multi-dimensional features is necessary to mechanistically decompose some model behaviors.

For agents

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

get_harvested_code_for_paper("2405.14860")
get_code_for_paper("2405.14860")
have("2405.14860")

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

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

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

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

Connect an agent — have() is free.