SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1907.13528 · 2019

What BERT is not: Lessons from a new suite of psycholinguistic diagnostics for language models

arXiv · PDF · Open in the Atlas

Code that ran

5 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; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 5 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/1907.13528.json · badge: /api/ran/1907.13528.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
aetting/lm-diagnostics canonical (classifier label)
classifier basis: classifier_2025
4 ran · 5 no recorded run
text-machine-lab/extending_psycholinguistic_dataset extension (classifier label)
classifier basis: classifier_2025
1 ran · 0 no recorded run
FunctionStatusWhere it lives
convert_to_experiment_grouping Ran
ran; our contract draft was wrong, not the code
aetting/lm-diagnostics/sensitivity_tests.py
code served (permissive licence) · get_code("c7ea9c0d23888444")
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) 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
import numpy as np

torch.manual_seed(0)

# Construct a valid datadict argument
# The function expects a dict where each key maps to a dict with 'item' and 'cond' keys,
# plus optional keys like 'sent', 'tgt', 'tgtcloze', 'constraint', 'licensing', 'maxcloze', 'tgtprob', 'toppreds', 'topprobs'

datadict = {
    'entry1': {
        'item': 'item_A',
        'cond': 'condition_1',
        'sent': 'The quick brown fox',
        'tgt': 'jumps',
        'tgtcloze': 'The quick brown fox [MASK]',
        'constraint': 'verb',
        'licensing': 'subject-verb agreement',
        'maxcloze': 0.95,
        'tgtprob': 0.87,
        'toppreds': ['jumps', 'runs', 'walks'],
        'topprobs': [0.87, 0.08, 0.05]
    },
    'entry2': {
        'item': 'item_A',
        'cond': 'condition_2',
        'sent': 'The quick brown fox',
        'tgt': 'leaps',
        'tgtcloze': 'The quick brown fox [MASK]',
        'constraint': 'verb',
        'licensing': 'subject-verb agreement',
        'maxcloze': 0.92,
        'tgtprob': 0.72,
        'toppreds': ['jumps', 'leaps', 'runs'],
        'topprobs': [0.87, 0.72, 0.06]
    },
    'entry3': {
        'item': 'item_B',
        'cond': 'condition_1',
        'sent': 'The cat sat',
        'tgt': 'down',
        'tgtcloze': 'The cat sat [MASK]',
        'constraint': 'adverb',
        'licensing': 'verb-adverb modification',
        'maxcloze': 0.88,
        'tgtprob': 0.81,
        'toppreds': ['down', 'up', 'still'],
        'topprobs': [0.81, 0.12, 0.07]
    }
}

ARGS = {
    'datadict': datadict
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, 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
process_data Ran
ran; our contract draft was wrong, not the code
text-machine-lab/extending_psycholinguistic_dataset/src/evaluation.py
pointer only (licence: NONE) · get_code("1049fad948492b30")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, text-machine-lab/extending_psycholinguistic_dataset when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

process_fischler Ran
ran; our contract draft was wrong, not the code
aetting/lm-diagnostics/run_diagnostics_bert.py
code served (permissive licence) · get_code("fbc8f579aac35580")
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) 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 tempfile
import os

# Create a temporary file with test data in the expected format
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.tsv')
temp_file.write("item\taffirm_sent\tneg_sent\taffirm_tgt\tneg_tgt\n")
temp_file.write("1\tThe cat is sleeping (in the sun)\tThe dog is running (in the park)\tapple\tbanana\n")
temp_file.write("2\tAn elephant walks slowly (through the forest)\tA bird flies quickly (over the trees)\torange\tgrape\n")
temp_file.close()

infile_path = temp_file.name

ARGS = {
    'infile': infile_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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
process_fk Ran
ran; our contract draft was wrong, not the code
aetting/lm-diagnostics/run_diagnostics_bert.py
code served (permissive licence) · get_code("ea717e639e6df8cf")
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) 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 tempfile
import os

# Create a temporary file with test data
temp_file = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt')
temp_file.write("item\tsent1\tsent2\texp\twc\tbc\tconstraint\n")
temp_file.write("1\tThe cat sat.\tIt was happy.\tyes\tno\tyes\tconstraint1\n")
temp_file.write("2\tA dog ran.\tThe dog was fast.\tno\tyes\tno\tconstraint2\n")
temp_file.close()

ARGS = {
    'infile': temp_file.name
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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
process_rr Ran
ran; our contract draft was wrong, not the code
aetting/lm-diagnostics/run_diagnostics_bert.py
code served (permissive licence) · get_code("91c10b6209d86836")
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) 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 tempfile
import os

# Create a temporary CSV file with valid data
temp_csv = tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.csv', newline='')
csv_content = """item	sent	exp	maxcloze	tgt	tgtcloze	tgtcloze_strict
1-a	The cat which one the dog saw ran away	exp1|exp2	0.85	cat	0.90	0.88
2-b	The dog which other had the bone was happy	exp1|exp3	0.75	dog	0.80	0.78
3-a	The bird which one the tree sat on flew high	exp2|exp3	0.95	bird	0.92	0.91
"""
temp_csv.write(csv_content)
temp_csv.close()

ARGS = {
    'csvfile': temp_csv.name,
    'gen_obj': False,
    'gen_subj': False,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
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 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
cprag_sensitivity_test Not yet run
unverified (harvested, no recorded run)
aetting/lm-diagnostics/sensitivity_tests.py
code served (permissive licence) · get_code("d9cd894ddd324224")
How it ran

no invocation recorded.

role_sensitivity_test Not yet run
unverified (harvested, no recorded run)
aetting/lm-diagnostics/sensitivity_tests.py
code served (permissive licence) · get_code("ac1c3b07a675902f")
How it ran

no invocation recorded.

test_cprag_acc Not yet run
unverified (harvested, no recorded run)
aetting/lm-diagnostics/prediction_accuracy_tests.py
code served (permissive licence) · get_code("bc23445d491b4ec9")
How it ran

no invocation recorded.

test_neg_acc Not yet run
unverified (harvested, no recorded run)
aetting/lm-diagnostics/prediction_accuracy_tests.py
code served (permissive licence) · get_code("2af208405982a958")
How it ran

no invocation recorded.

test_role_acc Not yet run
unverified (harvested, no recorded run)
aetting/lm-diagnostics/prediction_accuracy_tests.py
code served (permissive licence) · get_code("d1163a4e501f8984")
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

Pre-training by language modeling has become a popular and successful approach to NLP tasks, but we have yet to understand exactly what linguistic capacities these pre-training processes confer upon models. In this paper we introduce a suite of diagnostics drawn from human language experiments, which allow us to ask targeted questions about the information used by language models for generating predictions in context. As a case study, we apply these diagnostics to the popular BERT model, finding that it can generally distinguish good from bad completions involving shared category or role reversal, albeit with less sensitivity than humans, and it robustly retrieves noun hypernyms, but it struggles with challenging inferences and role-based event prediction -- and in particular, it shows clear insensitivity to the contextual impacts of negation.

For agents

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

get_harvested_code_for_paper("1907.13528")
get_code_for_paper("1907.13528")
have("1907.13528")

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

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

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

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

Connect an agent — have() is free.