SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2401.06416 · ACL · 2024

Mission: Impossible Language Models

Christopher Potts, Richard Futrell, Kyle Mahowald, Julie Kallini, Isabel Papadimitriou

arXiv · PDF · Open in the Atlas

Code that ran

10 of 12 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 2 no recorded run), measured 2026-11-22; 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/2401.06416.json · badge: /api/ran/2401.06416.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
jkallini/mission-impossible-language-models canonical (classifier label)
classifier basis: census
10 ran · 2 no recorded run
FunctionStatusWhere it lives
compute_surprisals Ran
ran; our contract draft was wrong, not the code
jkallini/mission-impossible-language-models/utils.py
code served (permissive licence) · get_code("a1988a1ab7fefaaf")
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 2, 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
import torch.nn as nn

torch.manual_seed(0)

class MockLanguageModel(nn.Module):
    def __init__(self, vocab_size=4, hidden_dim=8):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_dim)
        self.linear = nn.Linear(hidden_dim, vocab_size)
    
    def forward(self, input_ids):
        embedded = self.embedding(input_ids)
        logits = self.linear(embedded)
        
        class Output:
            pass
        
        output = Output()
        output.logits = logits
        return output

model = MockLanguageModel(vocab_size=4, hidden_dim=8)
input_ids = torch.randint(0, 4, (2, 3))

ARGS = {
    "model": model,
    "input_ids": input_ids,
}
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 2, 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
compute_token_probabilities Ran
ran; our contract draft was wrong, not the code
jkallini/mission-impossible-language-models/utils.py
code served (permissive licence) · get_code("5bf34dc8d206d531")
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 2, 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
import torch.nn as nn

torch.manual_seed(0)

class StandInModel(nn.Module):
    def __init__(self, vocab_size=10, hidden_size=4):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_size)
        self.linear = nn.Linear(hidden_size, vocab_size)
    
    def forward(self, input_ids):
        x = self.embedding(input_ids)
        logits = self.linear(x)
        
        class Output:
            pass
        
        output = Output()
        output.logits = logits
        return output

model = StandInModel(vocab_size=10, hidden_size=4)

batch_size = 2
seq_length = 5
vocab_size = 10

input_ids = torch.randint(0, vocab_size, (batch_size, seq_length))

token_id = 3

pad_token_id = 0

ARGS = {
    "model": model,
    "input_ids": input_ids,
    "token_id": token_id,
    "pad_token_id": pad_token_id
}
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 2, 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
create_attention_mask Ran
ran, honoured the contract we drafted
jkallini/mission-impossible-language-models/perplexities/perplexities.py
code served (permissive licence) · get_code("ff77cf33dcba8fb3")
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 2, dtype family int, shape (3, 4) 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

torch.manual_seed(0)

# token_lists should be a list of lists, where each inner list represents tokens
# The function iterates through token_lists, gets the length of each, and constructs
# a mask where 1 indicates a real token and 0 indicates padding
token_lists = [
    [1, 2, 3],
    [4, 5],
    [6, 7, 8, 9]
]

ARGS = {
    "token_lists": token_lists
}
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 2, dtype family int, shape (3, 4) — shape (3, 4) 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
create_input_ids Ran
ran, honoured the contract we drafted
jkallini/mission-impossible-language-models/perplexities/perplexities.py
code served (permissive licence) · get_code("547978906e547397")
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 2, dtype family int, shape (3, 5) 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
import itertools

torch.manual_seed(0)

# token_lists: a list of lists of token integers
# Each inner list represents tokens for one sequence
token_lists = [
    [101, 2054, 2003, 102],  # sequence 1: 4 tokens
    [101, 1045, 2572, 102, 2088],  # sequence 2: 5 tokens
    [101, 3231, 102]  # sequence 3: 3 tokens
]

# pad_token_id: an integer used for padding
pad_token_id = 0

ARGS = {
    "token_lists": token_lists,
    "pad_token_id": pad_token_id
}
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 2, dtype family int, shape (3, 5) — shape (3, 5) 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
extract_phrases Ran
ran; our contract draft was wrong, not the code
jkallini/mission-impossible-language-models/edge_probing/load_phrase_data.py
code served (permissive licence) · get_code("f954e3cc5ab8a96a")
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 2, 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.

from nltk.tree import Tree

# Create a small parse tree for testing
# The tree structure represents syntactic parsing with labels and leaf words
tree = Tree('S', [
    Tree('NP', [
        Tree('DET', ['The']),
        Tree('ADJ', ['quick']),
        Tree('NN', ['fox'])
    ]),
    Tree('VP', [
        Tree('VB', ['jumps']),
        Tree('PP', [
            Tree('IN', ['over']),
            Tree('NP', [
                Tree('DET', ['the']),
                Tree('NN', ['fence'])
            ])
        ])
    ])
])

# Categories we want to extract phrases for
categories = ['NP', 'VP', 'PP']

ARGS = {
    'tree': tree,
    'categories': categories
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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_perplexities Ran
ran, honoured the contract we drafted
jkallini/mission-impossible-language-models/perplexities/perplexities.py
code served (permissive licence) · get_code("50924a7f63ced3d3")
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. 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 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
import torch.nn as nn

torch.manual_seed(0)

class MockLanguageModel(nn.Module):
    def __init__(self, vocab_size=100, hidden_size=4):
        super().__init__()
        self.embedding = nn.Embedding(vocab_size, hidden_size)
        self.lm_head = nn.Linear(hidden_size, vocab_size)
    
    def forward(self, input_ids, labels=None, attention_mask=None):
        embedded = self.embedding(input_ids)
        logits = self.lm_head(embedded)
        
        class Output:
            def __init__(self, logits):
                self.logits = logits
        
        return Output(logits)

model = MockLanguageModel(vocab_size=100, hidden_size=4)
model.eval()

token_lists = [
    [5, 10, 15, 20],
    [7, 12]
]

pad_token_id = 0

ARGS = {
    'model': model,
    'token_lists': token_lists,
    'pad_token_id': pad_token_id,
    'device': 'cpu'
}
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
get_span Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jkallini/mission-impossible-language-models/edge_probing/load_phrase_data.py
code served (permissive licence) · get_code("74f6c2941d16cfcf")
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 int; 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 get_span takes two parameters: tokens and sub_tokens
# It searches for sub_tokens as a contiguous subsequence in tokens
# Both parameters should be lists (or list-like sequences) that support slicing and equality comparison

tokens = [1, 2, 3, 4, 5, 6, 7, 8]
sub_tokens = [4, 5, 6]

ARGS = {
    "tokens": tokens,
    "sub_tokens": sub_tokens
}
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 tuple, ndim 1, dtype family int — 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
max_pooling Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jkallini/mission-impossible-language-models/edge_probing/edge_probing.py
code served (permissive licence) · get_code("bdb37b344c1fbfc5")
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 2, dtype family float, shape (2, 4) 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

torch.manual_seed(0)

# Construct a small tensor with shape (batch_size=2, max_sequence_length=5, embedding_dim=4)
tensor = torch.randn(2, 5, 4)

# Construct index_tuples - list of (start, end) tuples for each batch item
# These specify which sequence positions to pool over
index_tuples = [
    (0, 3),   # For batch item 0, pool positions 0-2
    (1, 4),   # For batch item 1, pool positions 1-3
]

ARGS = {
    "tensor": tensor,
    "index_tuples": index_tuples,
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) 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
mean_pooling Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
jkallini/mission-impossible-language-models/edge_probing/edge_probing.py
code served (permissive licence) · get_code("7b8787922f993a93")
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 2, dtype family float, shape (2, 4) 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

torch.manual_seed(0)

# Create a small tensor: batch_size=2, seq_len=3, embedding_size=4
tensor = torch.randn(2, 3, 4)

# Create index_tuples: for each batch element, specify start and end indices
# Batch 0: pool positions 0:2 (first 2 embeddings)
# Batch 1: pool positions 1:3 (last 2 embeddings)
index_tuples = [(0, 2), (1, 3)]

ARGS = {
    "tensor": tensor,
    "index_tuples": index_tuples,
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) 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
process_file Ran
ran; our contract draft was wrong, not the code
jkallini/mission-impossible-language-models/edge_probing/load_phrase_data.py
code served (permissive licence) · get_code("2dfc460bf3c3be3c")
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 2, 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 tempfile
import os
from nltk import Tree

# Create a temporary file with valid parse tree data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_filename = temp_file.name

# Write sample sentences and their parse trees
sample_data = """The quick brown fox jumps over the lazy dog
(S (NP (DET The) (ADJ quick) (ADJ brown) (NN fox)) (VP (VBZ jumps) (PP (IN over) (NP (DET the) (ADJ lazy) (NN dog)))))
She enjoys reading books in the library
(S (NP (PRP She)) (VP (VBZ enjoys) (VP (VBG reading) (NP (NNS books)) (PP (IN in) (NP (DET the) (NN library))))))
The red car is very fast
(S (NP (DET The) (ADJ red) (NN car)) (VP (VBZ is) (ADJP (RB very) (JJ fast))))
"""

temp_file.write(sample_data)
temp_file.close()

ARGS = {
    'file': temp_filename
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
nltk, tqdm — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 2, 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_gpt2_tokenizer_with_markers Not yet run
unverified (harvested, no recorded run)
jkallini/mission-impossible-language-models/utils.py
code served (permissive licence) · get_code("6b2f4c65ccfed139")
How it ran

no invocation recorded.

get_layer_embedding Not yet run
unverified (harvested, no recorded run)
jkallini/mission-impossible-language-models/edge_probing/edge_probing.py
code served (permissive licence) · get_code("63f2e3ec2da6c808")
How it ran

no invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 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 12 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-22.

Repositories linked to this paper

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

Abstract

Chomsky and others have very directly claimed that large language models (LLMs) are equally capable of learning languages that are possible and impossible for humans to learn. However, there is very little published experimental evidence to support such a claim. Here, we develop a set of synthetic impossible languages of differing complexity, each designed by systematically altering English data with unnatural word orders and grammar rules. These languages lie on an impossibility continuum: at one end are languages that are inherently impossible, such as random and irreversible shuffles of English words, and on the other, languages that may not be intuitively impossible but are often considered so in linguistics, particularly those with rules based on counting word positions. We report on a wide range of evaluations to assess the capacity of GPT-2 small models to learn these uncontroversially impossible languages, and crucially, we perform these assessments at various stages throughout training to compare the learning process for each language. Our core finding is that GPT-2 struggles to learn impossible languages when compared to English as a control, challenging the core claim. More importantly, we hope our approach opens up a productive line of inquiry in which different LLM architectures are tested on a variety of impossible languages in an effort to learn more about how LLMs can be used as tools for these cognitive and typological investigations.

For agents

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

get_harvested_code_for_paper("2401.06416")
get_code_for_paper("2401.06416")
have("2401.06416")

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

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

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

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

Connect an agent — have() is free.