SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2303.13716 · 2023

ReCOGS: How Incidental Details of a Logical Form Overshadow an Evaluation of Semantic Interpretation

arXiv · PDF · Open in the Atlas

Code that ran

17 of 17 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 13 have no contract verdict; 2 failures of our instrument; 0 no recorded run), measured 2026-11-24; 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/2303.13716.json · badge: /api/ran/2303.13716.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
frankaging/recogs canonical (classifier label)
classifier basis not recorded on the link
17 ran · 0 no recorded run
FunctionStatusWhere it lives
batch_seqs Ran
ran on a synthesized input
frankaging/recogs/model/utils.py
code served (permissive licence) · get_code("7841344d2c132f93")
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 (4, 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 numpy as np
import torch

torch.manual_seed(0)

# Construct valid arguments for batch_seqs
# The function expects 'seqs' - a sequence of sequences (iterables with len())
# Each sequence will be converted to a numpy array and padded

seq1 = np.array([1, 2, 3, 4], dtype=np.int64)
seq2 = np.array([5, 6], dtype=np.int64)
seq3 = np.array([7, 8, 9], dtype=np.int64)

seqs = [seq1, seq2, seq3]

ARGS = {
    "seqs": seqs
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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 (4, 3) — shape (4, 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
check_equal Ran
ran on a synthesized input
frankaging/recogs/utils/train_utils.py
code served (permissive licence) · get_code("08a756eeb043f7aa")
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 bool, ndim 0, dtype family float, 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.

import torch

torch.manual_seed(0)

# Analyzing the function:
# - check_equal takes two parameters: left_lf and right_lf
# - Both are used with .split() method, so they must be strings
# - The function splits them, processes numeric tokens and other tokens
# - It normalizes the index mapping for both sides and compares the results

# Create valid test cases
left_lf = "the 0 cat 1 sat 0"
right_lf = "the 0 dog 1 ran 0"

ARGS = {
    "left_lf": left_lf,
    "right_lf": right_lf,
}
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 bool, ndim 0, dtype family float, 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
convert_to_unicode Ran
ran; our contract draft was wrong, not the code
frankaging/recogs/utils/cogs_utils.py
pointer only (licence: MIT); the stored copy get_code serves, from huawei-noah/Pretrained-Language-Model, is pointer only (licence: NONE) · get_code("1923fc05163d207d")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from huawei-noah/Pretrained-Language-Model, and GitHub detected no licence in that repository 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.

convert_tokens_to_ids Ran
ran on a synthesized input
frankaging/recogs/utils/cogs_utils.py
code served (permissive licence) · get_code("77cd2351bbed5eb8")
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 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
import numpy as np

torch.manual_seed(0)

# Create a simple vocabulary dict
# The function uses:
# - vocab.keys() to check if token exists
# - vocab[token] to get the id for a token
# - vocab['[UNK]'] to get the unknown token id
vocab = {
    'hello': 0,
    'world': 1,
    'python': 2,
    'code': 3,
    '[UNK]': 4
}

# Create a sequence of tokens
# Mix known tokens and unknown tokens to test both branches
tokens = ['hello', 'world', 'unknown_word', 'python', 'another_unk', 'code']

ARGS = {
    'vocab': vocab,
    'tokens': tokens
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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 int — 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
count_parameters Ran
ran, honoured the contract we drafted
frankaging/recogs/utils/train_utils.py
code served (permissive licence) · get_code("f6b944f50d3f15ae")
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 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.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 3)
        self.linear2 = nn.Linear(3, 2)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — 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
find_partition_name Ran
ran on a synthesized input
frankaging/recogs/utils/train_utils.py
code served (permissive licence) · get_code("d2f4c731ba69dd87")
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
import numpy as np

def find_partition_name(name, lf):
    if lf == 'cogs':
        return name
    else:
        return name + f'_{lf}'

ARGS = {
    'name': 'partition_0',
    'lf': 'cogs'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
get_variables Ran
ran on a synthesized input
frankaging/recogs/utils/compgen.py
code served (permissive licence) · get_code("9fdcd9a413fc4474")
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 re

def get_variables(phi):
    variable_re = re.compile('(\\d+)')
    return variable_re.findall(phi)

# The function takes a string parameter 'phi' and uses regex to find all digit sequences
# It returns a list of strings matching the pattern

ARGS = {
    'phi': 'x1 + y2 - z3 * w4'
}
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 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
glove2dict Ran
ran on a synthesized input
frankaging/recogs/utils/cogs_utils.py
code served (permissive licence) · get_code("391e25f784c4b3ab")
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 numpy as np
import tempfile
import os

# Create a temporary GloVe-like file
temp_dir = tempfile.mkdtemp()
glove_file = os.path.join(temp_dir, "glove.6B.100d.txt")

# Write sample GloVe data to the temporary file
with open(glove_file, 'w', encoding='utf8') as f:
    f.write("the " + " ".join([str(0.1 * i) for i in range(100)]) + "\n")
    f.write("and " + " ".join([str(0.2 * i) for i in range(100)]) + "\n")
    f.write("cat " + " ".join([str(0.3 * i) for i in range(100)]) + "\n")

ARGS = {
    "src_filename": glove_file
}
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 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
normalize_formula Ran
ran on a synthesized input
frankaging/recogs/utils/compgen.py
code served (permissive licence) · get_code("4238500570113b66")
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
import numpy as np

torch.manual_seed(0)

# The function normalize_formula takes a single parameter 'phi' which is a string
# It calls .replace() method on it twice, so it must be a string
# The function removes spaces and then replaces 'AND' with ' AND '

phi = "a AND b AND c"

ARGS = {
    "phi": phi
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
parse_mod Ran
ran on a synthesized input
frankaging/recogs/utils/second_looks_utils.py
code served (permissive licence) · get_code("8fd64e63f46f76c5")
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 re
import random
import copy

mod_re = re.compile('\n    ^\n    \\s*(\\w+?)\\s*\n    \\.\n    \\s*(\\w+?)\\s*\n    \\.\n    \\s*(\\w+?)\\s*\n    \\(\n    \\s*(.+?)\\s*\n    ,\n    \\s*(.+?)\\s*\n    \\)\n    \\s*$', re.VERBOSE)

def parse_mod(phi):
    nppred, rel, pred, e1, e2 = mod_re.search(phi).groups()
    return {'type': 'mod', 'rel': rel, 'pred': pred, 'nppred': nppred, 'e1': e1, 'e2': e2}

# Construct a valid phi string that matches the regex pattern
# Pattern: nppred.rel.pred(e1, e2)
phi = "nounphrase.modifies.predicate(entity1, entity2)"

ARGS = {
    'phi': phi
}
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 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
parse_np Ran
ran on a synthesized input
frankaging/recogs/utils/second_looks_utils.py
code served (permissive licence) · get_code("36dc966583c11967")
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 re
import random
import copy

np_re = re.compile('\n    ^\n    \\s*(\\*)?\n    \\s*(\\w+?)\\s*\n    \\(\n    \\s*(.+?)\\s*\n    \\)\n    \\s*$', re.VERBOSE)

def parse_np(phi):
    the, pred, var = np_re.search(phi).groups()
    indef = '' if the is None else '*'
    return {'type': 'np', 'definiteness': indef, 'pred': pred, 'entvar': var}

# Construct valid arguments for parse_np
# The function expects a string `phi` that matches the regex pattern
# Pattern: optional '*', whitespace, predicate word, whitespace, '(', content, ')', whitespace
# Let's create a valid string that matches this pattern

# Test cases that should match the pattern:
# "dog(x)" - definite, predicate "dog", variable "x"
# "*cat(y)" - indefinite, predicate "cat", variable "y"

phi_definite = "dog(x)"
phi_indefinite = "*cat(y)"

ARGS = {
    'phi': phi_definite
}
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 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
parse_pred Ran
ran on a synthesized input
frankaging/recogs/utils/second_looks_utils.py
code served (permissive licence) · get_code("db14bfe5332e0d50")
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 re
import random
import copy

pred_re = re.compile('\n    ^\n    \\s*(\\w+?)\\s*\n    \\.\n    \\s*(\\w+?)\\s*\n    \\(\n    \\s*(.+?)\\s*\n    ,\n    \\s*(.+?)\\s*\n    \\)\n    \\s*$', re.VERBOSE)

def parse_pred(phi):
    pred, role, eventvar, entvar = pred_re.search(phi).groups()
    return {'type': 'role', 'role': role, 'pred': pred, 'entvar': entvar, 'eventvar': eventvar}

# The function expects a string `phi` that matches the regex pattern
# The pattern matches: word.word(word, word) with optional whitespace
# Example: "predicate.role(eventvar, entvar)"

phi_input = "run.agent(e1, x1)"

ARGS = {
    'phi': phi_input
}
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 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
recogs_exact_match Ran
ran on a synthesized input
frankaging/recogs/utils/compgen.py
code served (permissive licence) · get_code("f7197de9fafe9395")
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 bool, ndim 0, dtype family float, 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.

# Read the function carefully to understand what parameters it needs

# recogs_exact_match(gold, pred, flag='000000')
# - gold: a formula string with predicates and variables
# - pred: a formula string with predicates and variables
# - flag: a string used as a temporary marker (default '000000')

# The function parses formulas looking for:
# - unary predicates: predname(var)
# - binary predicates: predname(var1, var2)
# - conjunctions: separated by AND or ;
# - variables are numeric strings

# Let's create valid example formulas:

gold_formula = "P(0) AND Q(0, 1) AND R(1)"
pred_formula = "P(2) AND Q(2, 3) AND R(3)"

# These formulas have:
# - Same structure of predicates
# - Variables 0,1 in gold map to variables 2,3 in pred
# - Same conjunctive structure

ARGS = {
    "gold": gold_formula,
    "pred": pred_formula,
    "flag": "000000"
}
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 bool, ndim 0, dtype family float, 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
round_up_to_even Ran
ran, honoured the contract we drafted
frankaging/recogs/model/encoder_decoder_hf.py
code served (permissive licence) · get_code("e77f977224dbc207")
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.

import os
import math

def round_up_to_even(f):
    return math.ceil(f / 2.0) * 2

ARGS = {
    "f": 3.5
}
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
shift_tokens_right Ran
ran; our contract draft was wrong, not the code
frankaging/recogs/model/encoder_decoder_hf.py
pointer only (licence: MIT); the stored copy get_code serves, from jxuanc/mindgpt, is pointer only (licence: NONE) · get_code("e8d638fc7fcbd760")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from jxuanc/mindgpt, and GitHub detected no licence in that repository 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.

trim Ran
ran on a synthesized input
frankaging/recogs/model/utils.py
code served (permissive licence) · get_code("0ff22e14159fcfd0")
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 trim(L, obj) takes a list L and an object obj
# It returns L up to and including the first occurrence of obj if obj is in L
# Otherwise returns L unchanged
# So we need a list L and an object obj

# Create a simple list with various objects
L = [1, 2, 3, "target", 4, 5]
obj = "target"

ARGS = {
    "L": L,
    "obj": obj
}
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
weight_top_p Ran
ran on a synthesized input
frankaging/recogs/model/utils.py
code served (permissive licence) · get_code("eedb78f0f2e7f4e9")
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 ndarray, ndim 1, dtype family float, shape (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 numpy as np

# Create a simple probability distribution vector
vec = np.array([0.1, 0.3, 0.4, 0.2])

# Set p to a threshold value between 0 and 1
p = 0.7

ARGS = {
    "vec": vec,
    "p": p,
}
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 ndarray, ndim 1, dtype family float, shape (4,) — shape (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

Also present in other papers' code

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

FunctionAlso present inEarliest-datedOthers named
count_parameters 180 other papers
82 dated earlier, 3 the same month, 91 later, 4 same year, order not determinable · 8 only as an assembly brick
1705.08415 (2017-05)
Supervised Community Detection with Line Graph Neural Networks
1707.01926 (2017-07)
Diffusion Convolutional Recurrent Neural Network: Data-Driven Traffic Forecasting
1808.09367 (2018-08)
Deriving Machine Attention from Human Rationales
and 177 more not named here
convert_to_unicode 36 other papers
27 dated earlier, 9 later
1609.08144 (2016-09)
Google's Neural Machine Translation System: Bridging the Gap between Human and Machine Translation
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.04085 (2019-01)
Passage Re-ranking with BERT
and 33 more not named here
shift_tokens_right 2 other papers
2 later
2309.09836 (2023-09)
RECAP: Retrieval-Augmented Audio Captioning
2309.15729 (2023-09)
MindGPT: Interpreting What You See with Non-invasive Brain Recordings
batch_seqs 1 other paper
1 dated earlier
2106.03993 (2021-06)
Lexicon Learning for Few-Shot Neural Sequence Modeling
round_up_to_even 1 other paper
1 later
aaai_33826 (2025 (year only))
Universality of Real Minimal Complexity Reservoir
trim 1 other paper
1 dated earlier
2106.03993 (2021-06)
Lexicon Learning for Few-Shot Neural Sequence Modeling
weight_top_p 1 other paper
1 dated earlier
2106.03993 (2021-06)
Lexicon Learning for Few-Shot Neural Sequence Modeling

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-24.

Repositories linked to this paper

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

Abstract

Compositional generalization benchmarks for semantic parsing seek to assess whether models can accurately compute meanings for novel sentences, but operationalize this in terms of logical form (LF) prediction. This raises the concern that semantically irrelevant details of the chosen LFs could shape model performance. We argue that this concern is realized for the COGS benchmark. COGS poses generalization splits that appear impossible for present-day models, which could be taken as an indictment of those models. However, we show that the negative results trace to incidental features of COGS LFs. Converting these LFs to semantically equivalent ones and factoring out capabilities unrelated to semantic interpretation, we find that even baseline models get traction. A recent variable-free translation of COGS LFs suggests similar conclusions, but we observe this format is not semantically equivalent; it is incapable of accurately representing some COGS meanings. These findings inform our proposal for ReCOGS, a modified version of COGS that comes closer to assessing the target semantic capabilities while remaining very challenging. Overall, our results reaffirm the importance of compositional generalization and careful benchmark task design.

For agents

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

get_harvested_code_for_paper("2303.13716")
get_code_for_paper("2303.13716")
have("2303.13716")

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

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

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

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

Connect an agent — have() is free.