Papers › Designing BERT for Convolutional Networks: Sparse and Hierarchical Masked Modeling

Designing BERT for Convolutional Networks: Sparse and Hierarchical Masked Modeling

9 Jan 2023arXiv:2301.03580archive 2025-07-28

Keyu Tian, Yi Jiang, Qishuai Diao, Chen Lin, LiWei Wang, Zehuan Yuan

We identify and overcome two key obstacles in extending the success of BERT-style pre-training, or the masked image modeling, to convolutional networks (convnets): (i) convolution operation cannot handle irregular, random-masked input images; (ii) the single-scale nature of BERT pre-training is inconsistent with convnet's hierarchical structure. For (i), we treat unmasked pixels as sparse voxels of 3D point clouds and use sparse convolution to encode. This is the first use of sparse convolution for 2D masked modeling. For (ii), we develop a hierarchical decoder to reconstruct images from multi-scale encoded features. Our method called Sparse masKed modeling (SparK) is general: it can be used directly on any convolutional model without backbone modifications. We validate it on both classical (ResNet) and modern (ConvNeXt) models: on three downstream tasks, it surpasses both state-of-the-art contrastive learning and transformer-based masked modeling by similarly large margins (around +1.0%). Improvements on object detection and instance segmentation are more substantial (up to +3.5%), verifying the strong transferability of features learned. We also find its favorable scaling behavior by observing more gains on larger models. All this evidence reveals a promising future of generative pre-training on convnets. Codes and models are released at https://github.com/keyu-tian/SparK.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2301.03580")

Code

Syntology Ran 5 of 14 code samples harvested from 2 repositories linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 4 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 5 ran; community (archive-listed): 4 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

keyu-tian/spark officialmentioned in papermentioned on GitHubpytorchMIT report
Factral/UnMix-NeRF mentioned on GitHubjaxApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 5 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
4ran
9unverified

Licence: 0 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

get_num_layer_layer_wise keyu-tian/spark/downstream_mmdet/mmcv_custom/layer_decay_optimizer_constructor.py official repository ran fingerprinted MIT (permissive) · aa8d49041d9f8442 · report
get_num_layer_stage_wise keyu-tian/spark/downstream_mmdet/mmcv_custom/layer_decay_optimizer_constructor.py official repository ran fingerprinted MIT (permissive) · be134d6ef63b5192 · report
mixup_target keyu-tian/spark/downstream_imagenet/mixup.py official repository ran MIT (permissive) · 8733e0d87f232d11 · report
one_hot keyu-tian/spark/downstream_imagenet/mixup.py official repository ran · our draft was wrong MIT (permissive) · 4728dc2025227bba · report
rand_bbox keyu-tian/spark/downstream_imagenet/mixup.py official repository ran MIT (permissive) · 3913c620f6926f42 · report
create_classification_dataset keyu-tian/spark/downstream_imagenet/data.py official repository unverified MIT (permissive) · 0e865e01e71cf326 · report
get_param_groups keyu-tian/spark/downstream_imagenet/lr_decay.py official repository unverified MIT (permissive) · ad373c0953d230ed · report
load_checkpoint keyu-tian/spark/downstream_imagenet/util.py official repository unverified MIT (permissive) · 7475c50600ea1392 · report
lr_factor_func keyu-tian/spark/downstream_d2/lr_decay.py official repository unverified MIT (permissive) · 800af14f9c740324 · report
lr_wd_annealing keyu-tian/spark/downstream_imagenet/lr_decay.py official repository unverified MIT (permissive) · f921a5666329b4eb · report
component_x Factral/UnMix-NeRF/unmixnerf/utils/spec_to_rgb.py community (archive-listed) unverified Apache-2.0 (permissive) · a883944500f3f33d · report
component_y Factral/UnMix-NeRF/unmixnerf/utils/spec_to_rgb.py community (archive-listed) unverified Apache-2.0 (permissive) · 8da57cf56b2fdcf1 · report
g Factral/UnMix-NeRF/unmixnerf/utils/spec_to_rgb.py community (archive-listed) unverified Apache-2.0 (permissive) · 558f6d7e47654006 · report
get_weights_spectral Factral/UnMix-NeRF/unmixnerf/unmix_renderer.py community (archive-listed) unverified Apache-2.0 (permissive) · 36ae228f14629970 · report

Tasks

2D Object DetectionContrastive LearningDecoderImage ClassificationInstance SegmentationObject DetectionSelf-Supervised Image ClassificationSemantic Segmentationobject-detection

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image Classification ImageNet SparK (ConvNeXt-Large, 384) Number of params 198M #183 of 1060 Archive leaderboard report
Image Classification ImageNet SparK (ConvNeXt-Large, 384) Top 1 Accuracy 86.0% #183 of 1060 Archive leaderboard report
Instance Segmentation COCO 2017 val SparK (ConvNeXt V1-B Mask R-CNN) AP 45.1 #1 of 4 Archive leaderboard report
Instance Segmentation COCO 2017 val SparK (ConvNeXt V1-B Mask R-CNN) mask AP 45.1 #1 of 4 Archive leaderboard report
Instance Segmentation COCO 2017 val SparK (ConvNeXt V1-B Mask R-CNN) mask AP* 45.1 #1 of 4 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) SparK (ConvNeXt-Large, 384) Number of Params 198M #18 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) SparK (ConvNeXt-Large, 384) Top 1 Accuracy 86.0% #18 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) SparK (ConvNeXt-Large) Number of Params 198M #23 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) SparK (ConvNeXt-Large) Top 1 Accuracy 85.4% #23 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ConvNeXt-Base (SparK pre-training) Number of Params 89M #28 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ConvNeXt-Base (SparK pre-training) Top 1 Accuracy 84.8% #28 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ConvNeXt-Small (SparK pre-training) Number of Params 50M #37 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ConvNeXt-Small (SparK pre-training) Top 1 Accuracy 84.1% #37 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ResNet-200 (SparK pre-training) Number of Params 65M #47 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ResNet-200 (SparK pre-training) Top 1 Accuracy 83.1% #47 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ResNet-152 (SparK pre-training) Number of Params 60M #49 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ResNet-152 (SparK pre-training) Top 1 Accuracy 82.7% #49 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ResNet-101 (SparK pre-training) Number of Params 44M #52 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ResNet-101 (SparK pre-training) Top 1 Accuracy 82.2% #52 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ResNet-50 (SparK pre-training) Number of Params 26M #55 of 65 Archive leaderboard report
Self-Supervised Image Classification ImageNet (finetuned) ResNet-50 (SparK pre-training) Top 1 Accuracy 80.6% #55 of 65 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

AdamAttentionAttention DropoutBERTContrastive LearningConvolutionDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections