SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2307.09361 · 2023

MOCA: Self-supervised Representation Learning by Predicting Masked Online Codebook Assignments

arXiv · PDF · Open in the Atlas

Code that ran

13 of 15 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; 5 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 2 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/2307.09361.json · badge: /api/ran/2307.09361.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
valeoai/moca canonical (classifier label)
classifier basis: census
13 ran · 2 no recorded run
FunctionStatusWhere it lives
adjust_learning_rate Ran
ran, honoured the contract we drafted
valeoai/moca/eval_finetune.py
pointer only (licence: NONE); the stored copy get_code serves, from quandao10/slct, is pointer only (licence: NONE) · get_code("bd3578806ecf5ac2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, valeoai/moca 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.

all_reduce_mean Ran
ran, honoured the contract we drafted
valeoai/moca/util/misc.py
pointer only (licence: NONE) · get_code("3dc19396537db789")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, valeoai/moca 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.

buildLabelIndex Ran
ran; our contract draft was wrong, not the code
valeoai/moca/util/data_utils.py
pointer only (licence: NOASSERTION) · get_code("57889d72f516d105")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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.

build_dataset Ran
ran; our contract draft was wrong, not the code
valeoai/moca/eval_finetune.py
pointer only (licence: NOASSERTION) · get_code("9d24fe78509853ec")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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.

build_transform Ran
ran; our contract draft was wrong, not the code
valeoai/moca/eval_finetune.py
pointer only (licence: NOASSERTION) · get_code("ae21f98447467f18")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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.

concat_all_gather Ran
ran, honoured the contract we drafted
valeoai/moca/util/misc.py
pointer only (licence: NOASSERTION) · get_code("3c7b9c20481fa62f")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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.

get_1d_sincos_pos_embed_from_grid Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
valeoai/moca/util/model_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from Zhangwenyao1/DreamVLA, is pointer only (licence: NONE) · get_code("5c8ea92d43ead77d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, valeoai/moca 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.

get_2d_sincos_pos_embed Ran
ran, honoured the contract we drafted
valeoai/moca/util/model_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from lluosi/RDB-CL, is pointer only (licence: NONE) · get_code("77e8a3ac46f3afec")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, valeoai/moca 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.

knn_classifier Ran
ran; our contract draft was wrong, not the code
valeoai/moca/util/knn_utils.py
pointer only (licence: NOASSERTION) · get_code("d5a2c7c5c6f12965")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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.

prepare_knn_imagenet_datasets Ran
ran; our contract draft was wrong, not the code
valeoai/moca/util/data_utils.py
pointer only (licence: NOASSERTION) · get_code("d9dc385a3c9e906e")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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.

preprocess_embeddings Ran
ran; our contract draft was wrong, not the code
valeoai/moca/eval_lowshot_logistic.py
pointer only (licence: NOASSERTION) · get_code("a532283a514e44c5")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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.

reduce_all Ran
ran, honoured the contract we drafted
valeoai/moca/util/misc.py
pointer only (licence: NOASSERTION) · get_code("3aa8a268d0817a99")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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.

subset_of_ImageNet_train_split Ran
ran; our contract draft was wrong, not the code
valeoai/moca/util/data_utils.py
pointer only (licence: NOASSERTION) · get_code("3fcd69d9585e3775")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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.

get_2d_sincos_pos_embed_from_grid Not yet run
unverified (harvested, no recorded run)
valeoai/moca/util/model_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from Zhangwenyao1/DreamVLA, is pointer only (licence: NONE) · get_code("2884deadbb637c3e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, valeoai/moca 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. No invocation recorded.

init_data Not yet run
unverified (harvested, no recorded run)
valeoai/moca/eval_lowshot_logistic.py
pointer only (licence: NOASSERTION) · get_code("6ce1dce0cfb1a538")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, valeoai/moca (NOASSERTION). 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. No invocation recorded.

Also present in other papers' code

Of 15 samples lifted from this paper's linked repositories, 15 carry a function identity and 0 do not. Of the 15 distinct functions with an identity, 9 are also present in other papers whose code we hold (9 with at least one paper dated earlier, 3 the same month, 7 later) and 6 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
get_2d_sincos_pos_embed_from_grid 190 other papers
39 dated earlier, 2 the same month, 148 later, 1 same year, order not determinable · 65 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 187 more not named here
get_2d_sincos_pos_embed 95 other papers
29 dated earlier, 1 the same month, 64 later, 1 same year, order not determinable · 33 only as an assembly brick
1807.10221 (2018-07)
Unified Perceptual Parsing for Scene Understanding
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
and 92 more not named here
all_reduce_mean 25 other papers
5 dated earlier, 20 later
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2204.09435 (2022-04)
Hephaestus: A large scale multitask dataset towards InSAR understanding
2211.12941 (2022-11)
EurNet: Efficient Multi-Range Relational Modeling of Spatial Multi-Relational Data
and 22 more not named here
get_1d_sincos_pos_embed_from_grid 25 other papers
6 dated earlier, 19 later · 16 only as an assembly brick
2010.11929 (2020-10)
An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
2111.06377 (2021-11)
Masked Autoencoders Are Scalable Vision Learners
2301.01296 (2023-01)
TinyMIM: An Empirical Study of Distilling MIM Pre-trained Models
and 22 more not named here
adjust_learning_rate 23 other papers
8 dated earlier, 1 the same month, 14 later
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2204.09435 (2022-04)
Hephaestus: A large scale multitask dataset towards InSAR understanding
2206.07699 (2022-06)
Write and Paint: Generative Vision-Language Models are Unified Modal Learners
and 20 more not named here
build_transform 15 other papers
6 dated earlier, 8 later, 1 same year, order not determinable
2205.03892 (2022-05)
ConvMAE: Masked Convolution Meets Masked Autoencoders
2206.07699 (2022-06)
Write and Paint: Generative Vision-Language Models are Unified Modal Learners
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
and 12 more not named here
build_dataset 14 other papers
4 dated earlier, 9 later, 1 same year, order not determinable
2205.03892 (2022-05)
ConvMAE: Masked Convolution Meets Masked Autoencoders
2210.00788 (2022-10)
Towards a Unified View on Visual Parameter-Efficient Transfer Learning
aaai_25300 (2023 (year only))
Exploring Stochastic Autoregressive Image Modeling for Visual Representation
and 11 more not named here
buildLabelIndex 6 other papers
6 dated earlier
1803.07728 (2018-03)
Unsupervised Representation Learning by Predicting Image Rotations
1804.09458 (2018-04)
Dynamic Few-Shot Visual Learning without Forgetting
1905.01102 (2019-05)
Generating Classification Weights with GNN Denoising Autoencoders for Few-Shot Learning
and 3 more not named here
subset_of_ImageNet_train_split 1 other paper
1 dated earlier
2103.15375 (2021-03)
AlignMixup: Improving Representations By Interpolating Aligned Features

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

Self-supervised learning can be used for mitigating the greedy needs of Vision Transformer networks for very large fully-annotated datasets. Different classes of self-supervised learning offer representations with either good contextual reasoning properties, e.g., using masked image modeling strategies, or invariance to image perturbations, e.g., with contrastive methods. In this work, we propose a single-stage and standalone method, MOCA, which unifies both desired properties using novel mask-and-predict objectives defined with high-level features (instead of pixel-level details). Moreover, we show how to effectively employ both learning paradigms in a synergistic and computation-efficient way. Doing so, we achieve new state-of-the-art results on low-shot settings and strong experimental results in various evaluation protocols with a training that is at least 3 times faster than prior methods. We provide the implementation code at https://github.com/valeoai/MOCA.

For agents

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

get_harvested_code_for_paper("2307.09361")
get_code_for_paper("2307.09361")
have("2307.09361")

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

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

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

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

Connect an agent — have() is free.