SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2204.05832 · 2022

What Language Model Architecture and Pretraining Objective Work Best for Zero-Shot Generalization?

arXiv · PDF · Open in the Atlas

Code that ran

12 of 16 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; 1 honoured the contract we drafted, 0 violated it and 10 have no contract verdict; 1 failure of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2204.05832.json · badge: /api/ran/2204.05832.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
bigscience-workshop/architecture-objective canonical (classifier label)
classifier basis not recorded on the link
12 ran · 4 no recorded run
FunctionStatusWhere it lives
all_steps Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/checkpoints.py
code served (permissive licence) · get_code("83fcfb658788026e")
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 os
import tempfile
import shutil
from tensorflow.io import gfile

# Create a temporary directory structure with checkpoint files
temp_dir = tempfile.mkdtemp()
checkpoints_dir = os.path.join(temp_dir, 'checkpoints')
os.makedirs(checkpoints_dir, exist_ok=True)

# Create checkpoint directories with the expected naming pattern
for step_num in [100, 250, 500]:
    checkpoint_step_dir = os.path.join(checkpoints_dir, f'checkpoint_{step_num}')
    os.makedirs(checkpoint_step_dir, exist_ok=True)
    # Create a dummy checkpoint file
    checkpoint_file = os.path.join(checkpoint_step_dir, 'checkpoint')
    with open(checkpoint_file, 'w') as f:
        f.write(f'step_{step_num}')

ARGS = {
    'checkpoints_dir': checkpoints_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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
brevity_penalty Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/decoding.py
code served (permissive licence) · get_code("b02d918aafa63091")
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 ArrayImpl, 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 jax.numpy as jnp

# The function takes two simple parameters: alpha (float) and length (int)
# Let's construct valid arguments

alpha_value = 0.6  # A reasonable brevity penalty scaling parameter
length_value = 10  # A sequence length

ARGS = {
    "alpha": alpha_value,
    "length": length_value,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, 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
compute_weighted_accuracy Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
bigscience-workshop/architecture-objective/t5x/models.py
code served (permissive licence) · get_code("b3741093f206d95c")
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 ArrayImpl, 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 jax.numpy as jnp
import numpy as np

# Set seed for reproducibility
np.random.seed(0)

# Define small test tensors
batch_size = 2
sequence_length = 3
num_classes = 4

# logits: [batch, length, num_classes] float array
logits = jnp.array(np.random.randn(batch_size, sequence_length, num_classes).astype(np.float32))

# targets: [batch, length] int array (class indices, not one-hot as docstring incorrectly states)
# The function uses jnp.argmax on logits and compares with targets, so targets should be class indices
targets = jnp.array(np.random.randint(0, num_classes, (batch_size, sequence_length)), dtype=jnp.int32)

# weights: [batch, length] array
weights = jnp.array(np.random.rand(batch_size, sequence_length).astype(np.float32))

ARGS = {
    "logits": logits,
    "targets": targets,
    "weights": weights,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, 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
factor_name_to_factordim Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/adafactor.py
code served (permissive licence) · get_code("46290a7d88657ed3")
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 FactorDim. 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 enum

class FactorDim(enum.Enum):
    NONE = None
    BATCH = 1
    ROW = 2
    COLUMN = 3

def factor_name_to_factordim(name):
    if not isinstance(name, str):
        return name
    name = name.lower()
    return {'row': FactorDim.ROW, 'col': FactorDim.COLUMN, 'column': FactorDim.COLUMN, 'batch': FactorDim.BATCH, 'none': FactorDim.NONE, 'unfactorized': FactorDim.NONE}[name]

# Test cases for the function
ARGS = {
    'name': 'row'
}
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 FactorDim — a FactorDim output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a FactorDim 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_checkpoint_dir Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/checkpoints.py
code served (permissive licence) · get_code("17c6eaa3522868d4")
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 os
import tempfile

# Create a temporary directory for checkpoints
temp_dir = tempfile.mkdtemp()

ARGS = {
    "checkpoints_dir": temp_dir,
    "step": 42
}
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 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
global_step Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/checkpoint_importer.py
code served (permissive licence) · get_code("c79760dfb12e97dd")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np
import jax.numpy as jnp
from abc import ABC
import asyncio

class MockLazyArray(ABC):
    """Mock implementation of LazyArray for testing."""
    def __init__(self, shape, dtype, get_fn):
        self._shape = tuple(shape)
        self._dtype = jnp.dtype(dtype)
        self._get_fn = get_fn
    
    @property
    def shape(self):
        return self._shape
    
    @property
    def dtype(self):
        return self._dtype
    
    @property
    def nbytes(self):
        return np.prod(self._shape) * self._dtype.itemsize
    
    def astype(self, dtype):
        return MockLazyArray(self._shape, dtype, self._get_fn)
    
    def get_async(self):
        future = asyncio.Future()
        future.set_result(self._get_fn())
        return future
    
    def get(self):
        return self._get_fn()

# Create test data
test_array = np.array([1, 2, 3, 4], dtype=np.int64)

lazy_val = MockLazyArray(
    shape=(4,),
    dtype=np.int64,
    get_fn=lambda: test_array
)

# Define ARGS with all parameters for the global_step function
ARGS = {
    'opts': {},
    'key': 'global_step',
    'val': lazy_val
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax, numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
latest_step Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/checkpoints.py
code served (permissive licence) · get_code("87aa1e0819db476f")
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 tempfile
from tensorflow.io import gfile

# Create a temporary directory structure with checkpoint files
temp_dir = tempfile.mkdtemp()
checkpoint_dir = temp_dir

# Create some checkpoint directories with checkpoint files
for step in [100, 200, 350]:
    step_dir = os.path.join(checkpoint_dir, f'checkpoint_{step}')
    os.makedirs(step_dir, exist_ok=True)
    checkpoint_file = os.path.join(step_dir, 'checkpoint')
    with open(checkpoint_file, 'w') as f:
        f.write('dummy checkpoint content')

ARGS = {
    'checkpoints_dir': checkpoint_dir
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
tensorflow — 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
pjit Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/partitioning.py
code served (permissive licence) · get_code("c7c2352f68352629")
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 PjitFunction. 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 jax
import jax.numpy as jnp
from typing import Sequence, Union

def simple_function(x, y):
    """A simple function to wrap with pjit."""
    return x + y

def static_function(x, config):
    """A function with a static argument."""
    return x * config['scale']

def donate_function(x, y):
    """A function demonstrating donate_argnums."""
    return x + y

# Define arguments for the pjit function
ARGS = {
    'fun': simple_function,
    'in_axis_resources': None,
    'out_axis_resources': None,
    'static_argnums': (),
    'donate_argnums': ()
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type PjitFunction — a PjitFunction output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a PjitFunction 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
remove_prefix Ran
ran, honoured the contract we drafted
bigscience-workshop/architecture-objective/t5x/models.py
code served (permissive licence) · get_code("61e3339d251a61f7")
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 ArrayImpl, ndim 2, dtype family int, shape (2, 8) 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 jax
import jax.numpy as jnp

# Set seed for reproducibility
jax.config.update('jax_platform_name', 'cpu')

# Create small test data
# sequence: [length] array - we'll use batch_size=2, length=8
sequence = jnp.array([
    [1, 2, 3, 4, 5, 6, 7, 0],
    [10, 20, 30, 40, 50, 0, 0, 0]
], dtype=jnp.int32)

# prefix_length: scalar (rank 0 array) for each sequence in batch
# Since vmap is applied, we need a batch of prefix_lengths
prefix_length = jnp.array([2, 3], dtype=jnp.int32)

ARGS = {
    "sequence": sequence,
    "prefix_length": prefix_length,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 2, dtype family int, shape (2, 8) — shape (2, 8) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
rewrite_gin_args Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/gin_utils.py
code served (permissive licence) · get_code("ee550be8638b1862")
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
from typing import Sequence

# Construct valid arguments for rewrite_gin_args function
# The function takes a Sequence[str] of command-line arguments

ARGS = {
    "args": [
        "--gin.learning_rate=0.001",
        "--gin.batch_size=32",
        "--gin.num_layers=5",
        "--other_flag=value",
        "--gin.dropout=0.2"
    ]
}
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
separate_embeddings Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/checkpoint_importer.py
code served (permissive licence) · get_code("4b6c46a0ed29b33c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import re

torch.manual_seed(0)

# Create a small tensor for the 'val' parameter
val = torch.randn(4, 3)

# Create the opts dict - this is passed to the function and contains apply-time options
opts = {'some_option': 'value'}

# The 'key' parameter - a sample flattened checkpoint key
key = 'encoder/embedding_v'

# The regex groups captured from the pattern '(encoder|decoder|transformer)/embedding(\\w*)'
# First group: 'encoder' or 'decoder' or 'transformer'
# Second group: slot name like '_slot_vc', '_slot_vr', '_slot_v', or empty string
encdec = 'encoder'
slot = '_slot_v'

ARGS = {
    'opts': opts,
    'key': key,
    'val': val,
    'encdec': encdec,
    'slot': slot,
}
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 — 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
shared_embeddings Ran
ran on a synthesized input
bigscience-workshop/architecture-objective/t5x/checkpoint_importer.py
code served (permissive licence) · get_code("b43a6822b361626d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import re

torch.manual_seed(0)

class CheckpointTranslator:
    """Utility class for defining mapping rules from one flatdict to another.

  We assume a checkpoint is loaded as a dictionary with flattened keys of the
  form:  'name0/name1/name2/.../nameN'

  A rule is added with the 'add' decorator, which takes a regex matching rule
  and wraps a conversion function, feeding it (opts, key, val, **regex_groups)
  where opts is a dict containing apply-time keyword options for use by the
  conversion functions.
  """

    def __init__(self):
        self.rules = []

    def add(self, pattern):
        """Adds a new keyval conversion rule.

    Args:
      pattern: regex with capture groups for matching given sets of model
        variables.  We terminate all regexes with '$' to force complete matches.

    Returns:
      Translation function decorator for associating with the provided
      pattern.
    """

        def register_translation_fn_decorator(fn):
            self.rules.append((re.compile(pattern + '$'), fn))
            return fn
        return register_translation_fn_decorator

    def apply(self, flatdict, **opts):
        """Applies rules to a flattened dictionary.

    Args:
      flatdict: flat-key dictionary of variables.
      **opts: additional config options for translation rules supplied at
        application time.

    Returns:
      Checkpoint data with translated key/values in flat-key dict format.
    """
        new_dict = {}
        unmatched = {}
        for k, v in flatdict.items():
            matched = False
            for rule_pat, rule_fn in self.rules:
                if rule_pat.match(k):
                    groups = rule_pat.match(k).groups()
                    new_k, new_v = rule_fn(opts, k, v, *groups)
                    if new_k is not None:
                        new_dict[new_k] = new_v
                    matched = True
                    break
            if not matched:
                unmatched[k] = v
        if unmatched:
            raise ValueError('Unmapped tensor keys exist: %s' % unmatched)
        return new_dict

t5_importer = CheckpointTranslator()

SLOT_MAP = {'_slot_vc': 'v_col', '_slot_vr': 'v_row', '_slot_v': 'v'}

@t5_importer.add('shared/embedding(\\w*)')
def shared_embeddings(opts, key, val, slot):
    prefix = 'state/param_states' if slot else 'target'
    suffix = '/' + SLOT_MAP[slot] if slot else ''
    newkey = f'{prefix}/token_embedder/embedding{suffix}'
    return (newkey, val)

opts = {'some_option': 'value'}
key = 'shared/embedding_slot_v'
val = torch.randn(2, 4)
slot = '_slot_v'

ARGS = {
    'opts': opts,
    'key': key,
    'val': val,
    'slot': slot
}
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 — 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
cache_map Not yet run
unverified (harvested, no recorded run)
bigscience-workshop/architecture-objective/t5x/decoding.py
code served (permissive licence) · get_code("a019363aad76272d")
How it ran

no invocation recorded.

compute_weighted_cross_entropy Not yet run
unverified (harvested, no recorded run)
bigscience-workshop/architecture-objective/t5x/losses.py
code served (permissive licence) · get_code("b4668023363799eb")
How it ran

no invocation recorded.

cross_entropy_with_logits Not yet run
unverified (harvested, no recorded run)
bigscience-workshop/architecture-objective/t5x/losses.py
code served (permissive licence) · get_code("f9804504cb4d5c18")
How it ran

no invocation recorded.

temperature_sample Not yet run
unverified (harvested, no recorded run)
bigscience-workshop/architecture-objective/t5x/decoding.py
code served (permissive licence) · get_code("0b36774ed129a7e1")
How it ran

no invocation recorded.

Also present in other papers' code

Of 16 samples lifted from this paper's linked repositories, 16 carry a function identity and 0 do not. Of the 16 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 14 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
compute_weighted_accuracy 1 other paper
1 dated earlier
1910.10683 (2019-10)
Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer
remove_prefix 1 other paper
1 dated earlier
1910.10683 (2019-10)
Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer

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

Large pretrained Transformer language models have been shown to exhibit zero-shot generalization, i.e. they can perform a wide variety of tasks that they were not explicitly trained on. However, the architectures and pretraining objectives used across state-of-the-art models differ significantly, and there has been limited systematic comparison of these factors. In this work, we present a large-scale evaluation of modeling choices and their impact on zero-shot generalization. In particular, we focus on text-to-text models and experiment with three model architectures (causal/non-causal decoder-only and encoder-decoder), trained with two different pretraining objectives (autoregressive and masked language modeling), and evaluated with and without multitask prompted finetuning. We train models with over 5 billion parameters for more than 170 billion tokens, thereby increasing the likelihood that our conclusions will transfer to even larger scales. Our experiments show that causal decoder-only models trained on an autoregressive language modeling objective exhibit the strongest zero-shot generalization after purely unsupervised pretraining. However, models with non-causal visibility on their input trained with a masked language modeling objective followed by multitask finetuning perform the best among our experiments. We therefore consider the adaptation of pretrained models across architectures and objectives. We find that pretrained non-causal decoder models can be adapted into performant generative causal decoder models, using autoregressive language modeling as a downstream task. Furthermore, we find that pretrained causal decoder models can be efficiently adapted into non-causal decoder models, ultimately achieving competitive performance after multitask finetuning. Code and checkpoints are available at https://github.com/bigscience-workshop/architecture-objective.

For agents

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

get_harvested_code_for_paper("2204.05832")
get_code_for_paper("2204.05832")
have("2204.05832")

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

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

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

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

Connect an agent — have() is free.