SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2407.09087 · ICLR · 2024

On the Role of Discrete Tokenization in Visual Representation Learning

Yisen Wang, Yifei Wang, Tianqi Du

arXiv · PDF · Open in the Atlas

Code that ran

5 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 3 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2407.09087.json · badge: /api/ran/2407.09087.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
PKU-ML/ClusterMIM canonical (classifier label)
classifier basis: census
4 ran · 0 no recorded run
pku-ml/clustermim canonical (classifier label)
classifier basis: classifier_2025
1 ran · 1 no recorded run
FunctionStatusWhere it lives
LabelSmoothingCrossEntropy Ran
ran on a synthesized input · constructed an object; no result was computed
pku-ml/clustermim/models_mae.py
pointer only (licence: NONE) · get_code("60f4e5c9241d5bc8")
How it ran

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

build_dataset Ran
ran; our contract draft was wrong, not the code
PKU-ML/ClusterMIM/util/datasets.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/mae, is pointer only (licence: NOASSERTION) · get_code("27f8c4c706fd43ec")
How it ran

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

build_transform Ran
ran; our contract draft was wrong, not the code
PKU-ML/ClusterMIM/util/datasets.py
pointer only (licence: NONE); the stored copy get_code serves, from facebookresearch/mae, is pointer only (licence: NOASSERTION) · get_code("800cebf161a8aa26")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PKU-ML/ClusterMIM 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_layer_id_for_vit Ran
ran, honoured the contract we drafted
PKU-ML/ClusterMIM/util/lr_decay.py
pointer only (licence: NONE); the stored copy get_code serves, from NikolaCenic/ecg-stenosis-cls, is pointer only (licence: NONE) · get_code("89edf5372214b57d")
How it ran

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

param_groups_lrd Ran
ran; our contract draft was wrong, not the code
PKU-ML/ClusterMIM/util/lr_decay.py
pointer only (licence: NONE); the stored copy get_code serves, from NikolaCenic/ecg-stenosis-cls, is pointer only (licence: NONE) · get_code("8baf25cef41cba16")
How it ran

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

MaskedAutoencoderViT Not yet run
unverified (harvested, no recorded run)
pku-ml/clustermim/models_mae.py
pointer only (licence: NONE) · get_code("2b908bbdf251e36b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, pku-ml/clustermim 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 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 5 are also present in other papers whose code we hold (5 with at least one paper dated earlier, 0 the same month, 4 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
build_transform 15 other papers
12 dated earlier, 3 later
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
11 dated earlier, 3 later
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
param_groups_lrd 14 other papers
9 dated earlier, 4 later, 1 same year, order not determinable
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
2211.12941 (2022-11)
EurNet: Efficient Multi-Range Relational Modeling of Spatial Multi-Relational Data
aaai_25300 (2023 (year only))
Exploring Stochastic Autoregressive Image Modeling for Visual Representation
and 11 more not named here
get_layer_id_for_vit 13 other papers
9 dated earlier, 3 later, 1 same year, order not determinable
2105.12723 (2021-05)
Nested Hierarchical Transformer: Towards Accurate, Data-Efficient and Interpretable Visual Understanding
aaai_25300 (2023 (year only))
Exploring Stochastic Autoregressive Image Modeling for Visual Representation
2301.11445 (2023-01)
3DShape2VecSet: A 3D Shape Representation for Neural Fields and Generative Diffusion Models
and 10 more not named here
LabelSmoothingCrossEntropy
brick of this paper's assembly: loss
1 other paper
1 dated earlier · 1 only as an assembly brick
2312.03701 (2023-12)
Return of Unconditional Generation: A Self-supervised Representation Generation Method

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-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

In the realm of self-supervised learning (SSL), masked image modeling (MIM) has gained popularity alongside contrastive learning methods. MIM involves reconstructing masked regions of input images using their unmasked portions. A notable subset of MIM methodologies employs discrete tokens as the reconstruction target, but the theoretical underpinnings of this choice remain underexplored. In this paper, we explore the role of these discrete tokens, aiming to unravel their benefits and limitations. Building upon the connection between MIM and contrastive learning, we provide a comprehensive theoretical understanding on how discrete tokenization affects the model's generalization capabilities. Furthermore, we propose a novel metric named TCAS, which is specifically designed to assess the effectiveness of discrete tokens within the MIM framework. Inspired by this metric, we contribute an innovative tokenizer design and propose a corresponding MIM method named ClusterMIM. It demonstrates superior performance on a variety of benchmark datasets and ViT backbones. Code is available at https://github.com/PKU-ML/ClusterMIM.

For agents

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

get_harvested_code_for_paper("2407.09087")
get_code_for_paper("2407.09087")
have("2407.09087")

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

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

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

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

Connect an agent — have() is free.