SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.15371 · ECCV · 2022

mc-BEiT: Multi-choice Discretization for Image BERT Pre-training

Yixiao Ge, Ying Shan, Xiaotong Li, Ling-Yu Duan, Kun Yi, Zixuan Hu

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (3 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 0 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/2203.15371.json · badge: /api/ran/2203.15371.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
lixiaotong97/mc-BEiT community
Papers with Code archive
3 ran · 2 no recorded run
FunctionStatusWhere it lives
Attention Ran
ran on a synthesized input · constructed an object; no result was computed
lixiaotong97/mc-BEiT/modeling_pretrain.py
pointer only (licence: NONE) · get_code("2cddf6be601c390b")
How it ran

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

PatchEmbed Ran
ran on a synthesized input · constructed an object; no result was computed
lixiaotong97/mc-BEiT/modeling_pretrain.py
pointer only (licence: NONE) · get_code("11fed9ca25d1f64b")
How it ran

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

RelativePositionBias Ran
ran on a synthesized input · constructed an object; no result was computed
lixiaotong97/mc-BEiT/modeling_pretrain.py
pointer only (licence: NONE) · get_code("d6e4999dab1a534a")
How it ran

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

Block Not yet run
unverified (harvested, no recorded run)
lixiaotong97/mc-BEiT/modeling_pretrain.py
pointer only (licence: NONE) · get_code("68aca03e209bac10")
How it ran

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

VisionTransformerForMaskedImageModeling Not yet run
unverified (harvested, no recorded run)
lixiaotong97/mc-BEiT/modeling_pretrain.py
pointer only (licence: NONE) · get_code("7fc07a768e177191")
How it ran

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

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 4 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 1 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
RelativePositionBias
brick of this paper's assembly: helper
4 other papers
1 dated earlier, 3 later · 4 only as an assembly brick
2106.08254 (2021-06)
BEIT: BERT Pre-Training of Image Transformers
2205.09616 (2022-05)
Masked Image Modeling with Denoising Contrast
2401.00254 (2024-01)
Morphing Tokens Draw Strong Masked Image Models
and 1 more not named here
Attention
brick of this paper's assembly: helper
2 other papers
1 dated earlier, 1 later · 2 only as an assembly brick
2106.08254 (2021-06)
BEIT: BERT Pre-Training of Image Transformers
2205.09616 (2022-05)
Masked Image Modeling with Denoising Contrast
Block
brick of this paper's assembly: helper
1 other paper
1 dated earlier
2106.08254 (2021-06)
BEIT: BERT Pre-Training of Image Transformers
PatchEmbed
brick of this paper's assembly: helper
1 other paper
1 later · 1 only as an assembly brick
2401.00254 (2024-01)
Morphing Tokens Draw Strong Masked Image Models

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

Image BERT pre-training with masked image modeling (MIM) becomes a popular practice to cope with self-supervised representation learning. A seminal work, BEiT, casts MIM as a classification task with a visual vocabulary, tokenizing the continuous visual signals into discrete vision tokens using a pre-learned dVAE. Despite a feasible solution, the improper discretization hinders further improvements of image pre-training. Since image discretization has no ground-truth answers, we believe that the masked patch should not be assigned with a unique token id even if a better "tokenizer" can be obtained. In this work, we introduce an improved BERT-style image pre-training method, namely mc-BEiT, which performs MIM proxy tasks towards eased and refined multi-choice training objectives. Specifically, the multi-choice supervision for the masked image patches is formed by the soft probability vectors of the discrete token ids, which are predicted by the off-the-shelf image "tokenizer" and further refined by high-level inter-patch perceptions resorting to the observation that similar patches should share their choices. Extensive experiments on classification, segmentation, and detection tasks demonstrate the superiority of our method, e.g., the pretrained ViT-B achieves 84.1% top-1 fine-tuning accuracy on ImageNet-1K classification, 49.2% AP b and 44.0% AP m of object detection and instance segmentation on COCO, 50.8% mIOU on ADE20K semantic segmentation, outperforming the competitive counterparts. The code is available at https://github.com/lixiaotong97/mc-BEiT.

For agents

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

get_harvested_code_for_paper("2203.15371")
get_code_for_paper("2203.15371")
have("2203.15371")

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

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

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

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

Connect an agent — have() is free.