SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1911.00176 · 2019

Sequence Modeling with Unconstrained Generation Order

arXiv · PDF · Open in the Atlas

Code that ran

10 of 13 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, 3 violated it and 7 have no contract verdict; 0 failures of our instrument; 3 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/1911.00176.json · badge: /api/ran/1911.00176.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
TIXFeniks/neurips2019_intrus canonical (classifier label)
classifier basis: census
10 ran · 3 no recorded run
FunctionStatusWhere it lives
convert_tfnn_checkpoint Ran
ran on a synthesized input
TIXFeniks/neurips2019_intrus/lib/converter.py
code served (permissive licence) · get_code("60b15c7c7ef8b7cb")
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 NPZ file with the expected checkpoint structure
temp_dir = tempfile.mkdtemp()
npz_path = os.path.join(temp_dir, "checkpoint.npz")

# Create sample checkpoint data matching the function's expectations
checkpoint_data = {
    'mod/loss_xent_lm/logits/W:0': np.random.randn(4, 3).astype(np.float32),
    'mod/loss_xent_lm/logits/b:0': np.random.randn(3).astype(np.float32),
    'mod/encoder/W:0': np.random.randn(5, 4).astype(np.float32),
    'mod/encoder/b:0': np.random.randn(4).astype(np.float32),
}

# Save to NPZ file
np.savez(npz_path, **checkpoint_data)

ARGS = {
    'npz_path': npz_path,
}
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
filter_by_len Ran
ran on a synthesized input
TIXFeniks/neurips2019_intrus/lib/data.py
code served (permissive licence) · get_code("b7437f552a7aeaa1")
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 filter. 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)

# Analyzing the function:
# - filter_by_len takes: data, max_srclen, max_dstlen, batch_len
# - data is filtered by item_ok function
# - item_ok expects items to be indexable (item[0]) and contain strings
# - linelen() splits strings and counts tokens + 1
# - maxlen() iterates through item and checks isinstance(l, str)
# - So each item should be a tuple/list containing strings

# Create sample data: list of items where each item is a tuple of strings
data = [
    ("hello world", "bonjour monde"),
    ("the quick brown fox", "le renard brun rapide"),
    ("a", "b"),
    ("this is a much longer sentence with many tokens here", "ceci est une phrase beaucoup plus longue avec beaucoup de jetons ici"),
]

# max_srclen: maximum length (tokens + 1) for first element
max_srclen = 10

# max_dstlen: maximum length (tokens + 1) for destination
# Note: bug in code checks item[0] twice, but we'll provide valid value anyway
max_dstlen = 10

# batch_len: maximum length across all strings in an item
batch_len = 15

ARGS = {
    "data": data,
    "max_srclen": max_srclen,
    "max_dstlen": max_dstlen,
    "batch_len": batch_len,
}
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 filter — a filter output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a filter 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_optimal_inserts Ran
ran on a synthesized input
TIXFeniks/neurips2019_intrus/lib/oracle.py
code served (permissive licence) · get_code("2ea0a0d2ef98b4b1")
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

# Construct valid arguments for get_optimal_inserts
# The function takes two sequences and finds optimal insertion points

# cand: a list that is a sub-sequence of ref
# ref: a reference list from which tokens can be inserted

cand = [1, 3, 5]
ref = [1, 2, 3, 4, 5, 6]

ARGS = {
    'cand': cand,
    'ref': ref,
}
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_optimal_inserts_slow Ran
ran on a synthesized input
TIXFeniks/neurips2019_intrus/lib/oracle.py
code served (permissive licence) · get_code("e6bf2cba0de145c5")
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
import numpy as np

torch.manual_seed(0)

# Construct valid arguments for get_optimal_inserts_slow
# The function takes:
# - cand: a sequence that is a subsequence of ref
# - ref: a reference sequence

# Create simple list sequences
cand = [1, 3, 5]  # candidate sequence
ref = [1, 2, 3, 4, 5, 6]  # reference sequence containing cand as a subsequence

# Verify cand is a subsequence of ref using the is_subseq function
def is_subseq(x, y):
    """ checks if sequence x is subsequence of sequence y """
    it = iter(y)
    return all((c in it for c in x))

assert is_subseq(cand, ref), "cand must be a subsequence of ref"

ARGS = {
    "cand": cand,
    "ref": ref
}
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 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
is_namedtuple Ran
ran, violated the contract we drafted
TIXFeniks/neurips2019_intrus/lib/util.py
code served (permissive licence) · get_code("639811fcfbb1e7a8")
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.

from collections import namedtuple

# Create a valid namedtuple instance
Point = namedtuple('Point', ['x', 'y'])
valid_namedtuple = Point(1, 2)

# Create an invalid namedtuple-like object (regular tuple)
regular_tuple = (1, 2)

# Create another invalid object (regular class instance)
class RegularClass:
    pass

regular_instance = RegularClass()

# The function takes a single parameter 'x' which can be any object
# We'll test it with a valid namedtuple instance
ARGS = {
    'x': valid_namedtuple
}
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
is_subseq Ran
ran on a synthesized input
TIXFeniks/neurips2019_intrus/lib/oracle.py
code served (permissive licence) · get_code("97359024499082e8")
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
import numpy as np

torch.manual_seed(0)

# The function checks if sequence x is a subsequence of sequence y
# It uses iter() on y and checks membership with 'in' operator
# Both x and y should be sequences (lists, tuples, strings, etc.)

# Example 1: Simple list subsequence
x = [1, 3, 5]
y = [1, 2, 3, 4, 5, 6]

ARGS = {
    "x": x,
    "y": y
}
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 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
linelen Ran
ran on a synthesized input
TIXFeniks/neurips2019_intrus/lib/data.py
code served (permissive licence) · get_code("1e637f9099ef9207")
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 torch

torch.manual_seed(0)

# The function linelen takes a single parameter 'line'
# It expects line to be a string (it calls .split() on it)
# It returns the number of tokens + 1

line = "hello world this is a test"

ARGS = {
    "line": line
}
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 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
maxlen Ran
ran on a synthesized input
TIXFeniks/neurips2019_intrus/lib/data.py
code served (permissive licence) · get_code("45c56248ca2350d3")
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 torch

torch.manual_seed(0)

def linelen(line):
    """num tokens + 1 for eos"""
    return len(line.split()) + 1

def maxlen(item):
    return max((linelen(l) for l in item if isinstance(l, str)))

ARGS = {
    "item": [
        "hello world",
        "foo bar baz",
        "single"
    ]
}
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 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
nested_compare Ran
ran, violated the contract we drafted
TIXFeniks/neurips2019_intrus/lib/util.py
code served (permissive licence) · get_code("d79294cb3c49a723")
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
import numpy as np

torch.manual_seed(0)

# The function nested_compare checks if two nested structures (lists, tuples, dicts)
# have matching structure. It recursively compares the structure but doesn't actually
# compare values - it just checks types and nesting patterns match.

# Test case 1: Simple nested structures
t = {
    "a": [1, 2, 3],
    "b": (4, 5),
    "c": {"nested": "value"}
}

u = {
    "a": [10, 20, 30],
    "b": (40, 50),
    "c": {"nested": "different_value"}
}

ARGS = {
    "t": t,
    "u": u
}
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 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
nested_pack Ran
ran, violated the contract we drafted
TIXFeniks/neurips2019_intrus/lib/util.py
code served (permissive licence) · get_code("81b94c79bb2391d1")
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.

from collections import namedtuple

torch_imported = False
try:
    import torch
    torch_imported = True
    torch.manual_seed(0)
except ImportError:
    pass

# Define a simple namedtuple for testing
Point = namedtuple('Point', ['x', 'y'])

# Create flat list with various types of values
flat_list = [
    1,
    2,
    3,
    4,
    5,
    6,
    7,
    8,
    9,
    10,
    11,
    12,
    13,
    14,
]

# Create a nested structure with different types
structure = {
    'point': Point(x=0, y=0),
    'list': [0, 0, 0],
    'tuple': (0, 0),
    'nested_dict': {'a': 0, 'b': 0},
}

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

no invocation recorded.

get_model_variable Not yet run
unverified (harvested, no recorded run)
TIXFeniks/neurips2019_intrus/lib/ops.py
code served (permissive licence) · get_code("7216de40d411e169")
How it ran

no invocation recorded.

get_seed_from_name Not yet run
unverified (harvested, no recorded run)
TIXFeniks/neurips2019_intrus/lib/ops.py
code served (permissive licence) · get_code("1968378abb9c9c89")
How it ran

no invocation recorded.

Also present in other papers' code

Of 13 samples lifted from this paper's linked repositories, 13 carry a function identity and 0 do not. Of the 13 distinct functions with an identity, 3 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 3 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
is_namedtuple 2 other papers
1 dated earlier, 1 later
1909.04630 (2019-09)
Meta-Learning with Implicit Gradients
2312.17238 (2023-12)
Fast Inference of Mixture-of-Experts Language Models with Offloading
nested_pack 2 other papers
1 dated earlier, 1 later
1909.04630 (2019-09)
Meta-Learning with Implicit Gradients
2312.17238 (2023-12)
Fast Inference of Mixture-of-Experts Language Models with Offloading
nested_compare 1 other paper
1 later
2312.17238 (2023-12)
Fast Inference of Mixture-of-Experts Language Models with Offloading

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

The dominant approach to sequence generation is to produce a sequence in some predefined order, e.g. left to right. In contrast, we propose a more general model that can generate the output sequence by inserting tokens in any arbitrary order. Our model learns decoding order as a result of its training procedure. Our experiments show that this model is superior to fixed order models on a number of sequence generation tasks, such as Machine Translation, Image-to-LaTeX and Image Captioning.

For agents

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

get_harvested_code_for_paper("1911.00176")
get_code_for_paper("1911.00176")
have("1911.00176")

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

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

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

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

Connect an agent — have() is free.