SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2205.14204 · 2022

Multimodal Masked Autoencoders Learn Transferable Representations

arXiv · PDF · Open in the Atlas

Code that ran

12 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 8 have no contract verdict; 3 failures of our instrument; 0 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/2205.14204.json · badge: /api/ran/2205.14204.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
KAIST-AILab/MaskedAutoencoder-Jax community (classifier label)
classifier basis not recorded on the link
9 ran · 0 no recorded run
young-geng/m3ae_public reimplementation (classifier label)
classifier basis: classifier_2025
3 ran · 0 no recorded run
FunctionStatusWhere it lives
auto_augment_factory Ran
ran on a synthesized input
KAIST-AILab/MaskedAutoencoder-Jax/src/dataset.py
code served (permissive licence) · get_code("a0ce0e70c5f4edc1")
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 Identity. 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 argparse
import numpy as np

# Create a minimal argparse.Namespace with the required attributes
args = argparse.Namespace(
    image_size=224,
    auto_augment='none'
)

ARGS = {'args': args}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, timm, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Identity — a Identity output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Identity 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
collate_and_shuffle Ran
ran on a synthesized input
KAIST-AILab/MaskedAutoencoder-Jax/src/dataset.py
code served (permissive licence) · get_code("0c35ede9700b8e33")
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. 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
from typing import Any

torch.manual_seed(0)

# Create a simple batch with mixed data types
# The function uses default_collate which can handle tensors, tuples, and lists
batch = [
    (torch.randn(2, 4), torch.tensor([1])),
    (torch.randn(2, 4), torch.tensor([2])),
    (torch.randn(2, 4), torch.tensor([3])),
    (torch.randn(2, 4), torch.tensor([4])),
]

ARGS = {
    "batch": batch,
    "repeats": 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 — a list 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
create_train_step Ran
ran; our contract draft was wrong, not the code
young-geng/m3ae_public/m3ae/m3ae_main.py
code served (permissive licence) · get_code("4cdd517dc71ee948")
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, 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 jax
import jax.numpy as jnp
import absl.flags
from functools import partial

# Initialize FLAGS
absl.flags.DEFINE_integer('patch_size', 16, 'Patch size')
absl.flags.DEFINE_boolean('discretized_image', False, 'Use discretized image')
absl.flags.DEFINE_boolean('image_all_token_loss', False, 'Image all token loss')
absl.flags.DEFINE_boolean('text_all_token_loss', False, 'Text all token loss')
absl.flags.DEFINE_float('image_loss_weight', 1.0, 'Image loss weight')
absl.flags.DEFINE_float('text_loss_weight', 1.0, 'Text loss weight')
absl.flags.DEFINE_float('unpaired_text_loss_weight', 0.0, 'Unpaired text loss weight')
absl.flags.DEFINE_integer('accumulate_grad_steps', 1, 'Accumulate grad steps')
FLAGS = absl.flags.FLAGS
FLAGS.mark_as_parsed()

# Stand-in classes and helper functions
class JaxRNG:
    def __init__(self, rng):
        self.rng = rng
    
    def __call__(self, keys=None):
        if keys is None:
            return self.rng
        return self.rng

class TrainState:
    def __init__(self):
        self.params = {'w': jnp.ones((4, 4))}
        self.step = jnp.array(0)
        self.tokenizer_params = {'vocab_size': 256}
    
    def apply_gradients(self, grads):
        new_state = TrainState()
        new_state.params = jax.tree_map(lambda p, g: p - 0.01 * g, self.params, grads)
        new_state.step = self.step + 1
        new_state.tokenizer_params = self.tokenizer_params
        return new_state

class DummyModel:
    def rng_keys(self):
        return ['dropout']
    
    def apply(self, params, image_patches, text, text_padding_mask, deterministic=False, rngs=None):
        batch_size = text.shape[0] if text is not None else 2
        seq_len = text.shape[1] if text is not None else 10
        vocab_size = 256
        
        if image_patches is not None:
            image_output = jnp.ones((batch_size, 4, vocab_size))
            image_mask = jnp.ones((batch_size, 4))
        else:
            image_output = None
            image_mask = None
        
        text_output = jnp.ones((batch_size, seq_len, vocab_size))
        text_mask = jnp.ones((batch_size, seq_len))
        
        return image_output, text_output, image_mask, text_mask

def extract_patches(image, patch_size):
    if image is None:
        return None
    return jnp.ones((image.shape[0], 4, 64))

def encode_image(tokenizer_params, image):
    return jnp.ones((image.shape[0], 4), dtype=jnp.int32)

def decode_image(tokenizer_params, tokens):
    return jnp.ones((tokens.shape[0], 64, 64, 3))

def cross_entropy_loss_and_accuracy(logits, targets, mask=None):
    loss = jnp.mean(logits)
    accuracy = jnp.mean(logits)
    return loss, accuracy

def patch_mse_loss(output, patches, mask=None):
    return jnp.mean((output - patches) ** 2)

def mask_intersection(mask1, mask2):
    return mask1 * mask2

def all_mask(tokens):
    return jnp.ones_like(tokens, dtype=jnp.float32)

def mask_not(mask):
    return 1.0 - mask

def mask_select(mask, true_val, false_val):
    return jnp.where(mask > 0.5, true_val, false_val)

def merge_patches(patches, patch_size):
    return jnp.ones((patches.shape[0], 64, 64, 3))

def accumulated_gradient(state, accumulated_grads, accumulated_steps, grads, accumulate_steps, apply_fn):
    return state, accumulated_grads, accumulated_steps

def learning_rate_fn(step):
    return 0.001

# Create model
model = DummyModel()

# Create batch
batch = {
    'image': jnp.ones((2, 64, 64, 3)),
    'text': jnp.ones((2, 10), dtype=jnp.int32),
    'text_padding_mask': jnp.zeros((2, 10)),
    'unpaired_text': jnp.ones((2, 10), dtype=jnp.int32),
    'unpaired_text_padding_mask': jnp.zeros((2, 10)),
}

# Create state
state = TrainState()

ARGS = {
    'model': model,
    'learning_rate': learning_rate_fn,
    'encode_image': encode_image,
    'decode_image': decode_image,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
absl, jax — 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
create_train_step Ran
ran; our contract draft was wrong, not the code
young-geng/m3ae_public/m3ae/finetune_main.py
code served (permissive licence) · get_code("cd404f2cdd3539c0")
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 jax
import jax.numpy as jnp
import flax.linen as nn
from flax.training import train_state
import optax

# Mock JaxRNG class
class JaxRNG:
    def __init__(self, rng):
        self.rng = rng
    
    def __call__(self, keys=None):
        if keys is None:
            return self.rng
        return self.rng

# Mock extract_patches function
def extract_patches(image, patch_size):
    batch, height, width, channels = image.shape
    return image

# Mock model class
class MockViTModel(nn.Module):
    def setup(self):
        pass
    
    def __call__(self, x, deterministic=True, rngs=None):
        batch = x.shape[0]
        return jnp.ones((batch, 10))  # 10 classes
    
    def rng_keys(self):
        return ['dropout']
    
    def apply(self, params, x, deterministic=True, rngs=None):
        batch = x.shape[0]
        return jnp.ones((batch, 10))

# Mock state object for training
class MockTrainState:
    def __init__(self):
        self.params = {'weights': jnp.ones((4, 4))}
    
    def apply_gradients(self, grads):
        new_state = MockTrainState()
        new_state.params = self.params
        return new_state

# Mixup/CutMix augmentation function
def mixup_cutmix_fn(image, label, rng):
    return image, label

# Cross-entropy loss function
def xe_loss_fn(logits, label):
    return jnp.mean(logits)

# Setup arguments
model = MockViTModel()
ARGS = {
    'model': model,
    'mixup_cutmix_fn': mixup_cutmix_fn,
    'xe_loss_fn': xe_loss_fn,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
flax, jax, optax — 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
create_train_step Ran
ran; our contract draft was wrong, not the code
young-geng/m3ae_public/m3ae/linear_main.py
code served (permissive licence) · get_code("c59ac510d14ebe8e")
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 jax
import jax.numpy as jnp
import flax.linen as nn
from flax.training import train_state
import optax
import absl.flags

# Set up FLAGS
absl.flags.DEFINE_integer('patch_size', 2, 'Patch size')
FLAGS = absl.flags.FLAGS

# Stand-in classes and utilities
class JaxRNG:
    def __init__(self, rng):
        self.rng = rng
    
    def __call__(self, keys=None):
        if keys is None:
            return self.rng
        return self.rng
    
    def __iter__(self):
        return iter([self.rng])

def extract_patches(image, patch_size):
    """Dummy patch extraction"""
    return image

def cross_entropy_loss(logits, label):
    """Dummy cross-entropy loss"""
    return jnp.mean(logits)

# Backbone model
class BackboneModel(nn.Module):
    @nn.compact
    def forward_representation(self, x, deterministic=True, rngs=None):
        x = nn.Dense(4)(x)
        return x
    
    def rng_keys(self):
        return ['dropout']
    
    def apply(self, params, x, deterministic=True, rngs=None, method=None):
        return method(x, deterministic=deterministic, rngs=rngs)

# Main model with batch norm
class MainModel(nn.Module):
    @nn.compact
    def __call__(self, x, train=True):
        x = nn.BatchNorm(use_running_average=not train)(x)
        logits = nn.Dense(2)(x)
        return logits

# Create backbone
backbone = BackboneModel()
backbone_params = {'dense': {'kernel': jnp.ones((4, 4)), 'bias': jnp.zeros(4)}}

# Create main model and initialize
main_model = MainModel()
key = jax.random.PRNGKey(0)
dummy_representation = jnp.ones((2, 4))
main_params = main_model.init(key, dummy_representation, train=False)

# Create a mock state object
class MockState:
    def __init__(self, params, batch_stats, backbone_params, step=0):
        self.params = params
        self.batch_stats = batch_stats
        self.backbone_params = backbone_params
        self.step = step
    
    def apply_gradients(self, grads, batch_stats):
        new_state = MockState(
            params={k: v - 0.01 * grads[k] for k, v in self.params.items()},
            batch_stats=batch_stats,
            backbone_params=self.backbone_params,
            step=self.step + 1
        )
        return new_state

# Extract batch stats
batch_stats = main_params.get('batch_stats', {})

# Create initial state
state = MockState(
    params=main_params['params'],
    batch_stats=batch_stats,
    backbone_params=backbone_params,
    step=0
)

# Create learning rate schedule
def learning_rate_fn(step):
    return 0.001

ARGS = {
    'model': main_model,
    'backbone': backbone,
    'learning_rate': learning_rate_fn,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
absl, flax, jax, optax — 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
create_transforms Ran
ran on a synthesized input
KAIST-AILab/MaskedAutoencoder-Jax/src/dataset.py
code served (permissive licence) · get_code("a1d3a7c11f3b5554")
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 argparse
import numpy as np
import torch
import torch.nn as nn
import torchvision.transforms.v2 as T

torch.manual_seed(0)

ARGS = {
    'args': argparse.Namespace(
        image_size=224,
        auto_augment='none',
        random_crop='rrc',
        color_jitter=0.4,
        random_erasing=0.25,
        test_crop_ratio=1.0
    )
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, timm, torch, torchvision — 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
fixed_sincos2d_embeddings Ran
ran, honoured the contract we drafted
KAIST-AILab/MaskedAutoencoder-Jax/src/utils.py
code served (permissive licence) · get_code("122956528203dc19")
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 3, dtype family float, shape (8, 6, 16) 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

ARGS = {
    "ncols": 8,
    "nrows": 6,
    "dim": 16,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
chex, jax — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type ArrayImpl, ndim 3, dtype family float, shape (8, 6, 16) — shape (8, 6, 16) 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
get_layer_index_fn Ran
ran on a synthesized input
KAIST-AILab/MaskedAutoencoder-Jax/src/utils.py
code served (permissive licence) · get_code("81e81f440f6126dd")
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 re
from typing import Any
from jax.tree_util import DictKey

def get_layer_index_fn(path: tuple[DictKey, ...], _: Any, num_layers: int=12) -> int:
    if path[0].key == 'model' and path[1].key.startswith('layer_'):
        return int(re.match('layer_(\\d+)', path[1].key).group(1)) + 1
    if path[0].key == 'model' and path[1].key == 'embed':
        return 0
    return num_layers

# Create valid DictKey objects for the path parameter
# The function accesses path[0].key and path[1].key
path_example_1 = (DictKey('model'), DictKey('layer_5'))
path_example_2 = (DictKey('model'), DictKey('embed'))
path_example_3 = (DictKey('other'), DictKey('something'))

# The second parameter is unused (marked with _), so we can pass None or any value
unused_param = None

# num_layers has a default value of 12
num_layers_value = 12

# We'll test with a layer path
ARGS = {
    'path': path_example_1,
    '_': unused_param,
    'num_layers': num_layers_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 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
mask_intersection Ran
ran on a synthesized input
KAIST-AILab/MaskedAutoencoder-Jax/src/utils_mae.py
code served (permissive licence) · get_code("cd63725ed150c8be")
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 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp
import numpy as np

# Create two small boolean-like masks
mask1 = jnp.array([
    [1.0, 0.0, 1.0, 0.5],
    [0.0, 1.0, 0.0, 1.0]
], dtype=jnp.float32)

mask2 = jnp.array([
    [1.0, 1.0, 0.0, 0.5],
    [1.0, 0.0, 1.0, 0.0]
], dtype=jnp.float32)

ARGS = {
    "mask1": mask1,
    "mask2": mask2
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mask_not Ran
ran on a synthesized input
KAIST-AILab/MaskedAutoencoder-Jax/src/utils_mae.py
code served (permissive licence) · get_code("e0f860b8706ea27b")
How it ran

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

import torch
import numpy as np

torch.manual_seed(0)

# The function mask_not takes a mask and returns 1.0 - mask
# It expects a numeric array-like object (tensor or numpy array)
# that supports subtraction from a float

mask = torch.tensor([[0.2, 0.5, 0.8, 0.1],
                     [0.3, 0.6, 0.9, 0.4]], dtype=torch.float32)

ARGS = {
    "mask": mask
}
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 float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
mask_union Ran
ran on a synthesized input
KAIST-AILab/MaskedAutoencoder-Jax/src/utils_mae.py
code served (permissive licence) · get_code("d049b3e2054cb151")
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 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import jax.numpy as jnp

# Create two small test masks with different shapes for clarity
mask1 = jnp.array([
    [1.0, 0.0, 0.5, 0.0],
    [0.0, 0.0, 0.0, 0.0]
], dtype=jnp.float32)

mask2 = jnp.array([
    [0.0, 0.0, 0.0, 1.0],
    [0.5, 0.0, 0.0, 0.0]
], dtype=jnp.float32)

ARGS = {
    "mask1": mask1,
    "mask2": mask2
}
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 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
modified_lamb Ran
ran on a synthesized input
KAIST-AILab/MaskedAutoencoder-Jax/src/utils.py
code served (permissive licence) · get_code("75ee7d495c2657a4")
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 GradientTransformationExtraArgs. 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 optax
import torch
import torch.nn as nn

torch.manual_seed(0)

# Define learning rate schedule
learning_rate = 0.001

# Define scalar parameters
b1 = 0.9
b2 = 0.999
eps = 1e-6
eps_root = 0.0
weight_decay = 0.01

# Define mask - can be None or a function
# mask function takes params and returns a pytree of booleans
def mask_fn(params):
    # Simple mask that applies to all parameters
    return jax.tree_map(lambda x: True, params)

# For optax, mask can be None or a callable
mask = None

# Construct ARGS dictionary
ARGS = {
    'learning_rate': learning_rate,
    'b1': b1,
    'b2': b2,
    'eps': eps,
    'eps_root': eps_root,
    'weight_decay': weight_decay,
    'mask': mask
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
optax, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GradientTransformationExtraArgs — a GradientTransformationExtraArgs output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a GradientTransformationExtraArgs output the recorded ndim 1 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

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 5 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 5 later) and 7 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
fixed_sincos2d_embeddings 2 other papers
1 dated earlier, 1 later
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2310.18652 (2023-10)
EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images
mask_intersection 2 other papers
2 later
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer
2310.18652 (2023-10)
EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images
mask_not 2 other papers
2 later
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer
2310.18652 (2023-10)
EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images
mask_union 2 other papers
2 later
2210.13431 (2022-10)
Instruction-Following Agents with Multimodal Transformer
2310.18652 (2023-10)
EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images
modified_lamb 1 other paper
1 later
2310.18652 (2023-10)
EHRXQA: A Multi-Modal Question Answering Dataset for Electronic Health Records with Chest X-ray Images

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

Building scalable models to learn from diverse, multimodal data remains an open challenge. For vision-language data, the dominant approaches are based on contrastive learning objectives that train a separate encoder for each modality. While effective, contrastive learning approaches introduce sampling bias depending on the data augmentations used, which can degrade performance on downstream tasks. Moreover, these methods are limited to paired image-text data, and cannot leverage widely-available unpaired data. In this paper, we investigate whether a large multimodal model trained purely via masked token prediction, without using modality-specific encoders or contrastive learning, can learn transferable representations for downstream tasks. We propose a simple and scalable network architecture, the Multimodal Masked Autoencoder (M3AE), which learns a unified encoder for both vision and language data via masked token prediction. We provide an empirical study of M3AE trained on a large-scale image-text dataset, and find that M3AE is able to learn generalizable representations that transfer well to downstream tasks. Surprisingly, we find that M3AE benefits from a higher text mask ratio (50-90%), in contrast to BERT whose standard masking ratio is 15%, due to the joint training of two data modalities. We also provide qualitative analysis showing that the learned representation incorporates meaningful information from both image and language. Lastly, we demonstrate the scalability of M3AE with larger model size and training time, and its flexibility to train on both paired image-text data as well as unpaired data.

For agents

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

get_harvested_code_for_paper("2205.14204")
get_code_for_paper("2205.14204")
have("2205.14204")

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

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

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

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

Connect an agent — have() is free.