Papers › Reversible Vision Transformers

Reversible Vision Transformers

9 Feb 2023CVPR 2022 1arXiv:2302.04869archive 2025-07-28

Karttikeya Mangalam, Haoqi Fan, Yanghao Li, Chao-yuan Wu, Bo Xiong, Christoph Feichtenhofer, Jitendra Malik

We present Reversible Vision Transformers, a memory efficient architecture design for visual recognition. By decoupling the GPU memory requirement from the depth of the model, Reversible Vision Transformers enable scaling up architectures with efficient memory usage. We adapt two popular models, namely Vision Transformer and Multiscale Vision Transformers, to reversible variants and benchmark extensively across both model sizes and tasks of image classification, object detection and video classification. Reversible Vision Transformers achieve a reduced memory footprint of up to 15.5x at roughly identical model complexity, parameters and accuracy, demonstrating the promise of reversible vision transformers as an efficient backbone for hardware resource limited training regimes. Finally, we find that the additional computational burden of recomputing activations is more than overcome for deeper models, where throughput can increase up to 2.3x over their non-reversible counterparts. Full code and trained models are available at https://github.com/facebookresearch/slowfast. A simpler, easy to understand and modify version is also available at https://github.com/karttikeya/minREV

PaperPDFConference PDFCodeCode 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="2302.04869")

Code

Syntology Ran 12 of 29 code samples harvested from 4 repositories linked to this paper; 17 have no recorded run. Of those that ran: 1 ran · fixture could not drive it; 11 ran with no contract checked.

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

karttikeya/minrev officialmentioned in papermentioned on GitHubpytorch report
facebookresearch/SlowFast officialmentioned in paperpytorchApache-2.0 report
facebookresearch/mvit officialmentioned in paperpytorchApache-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

29 samples harvested; 12 ran; 0 honoured the contract we drafted; 17 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 · fixture could not drive it
11ran
17unverified

Licence: 26 of the 29 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 4 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.

AttentionSubBlock karttikeya/minrev/rev.py official repository ran no licence file found · pointer only · 7a79df18a8737c98 · report
MLPSubblock karttikeya/minrev/rev.py official repository ran no licence file found · pointer only · 907cd8a323eb8319 · report
RevBackProp karttikeya/minrev/rev.py official repository ran no licence file found · pointer only · 27fd09daf2d75017 · report
RevViT karttikeya/minrev/rev.py official repository ran no licence file found · pointer only · a306e79d47b4c032 · report
ReversibleBlock karttikeya/minrev/rev.py official repository ran no licence file found · pointer only · 2d92c96d4cb34c69 · report
attention_pool facebookresearch/mvit/mvit/models/attention.py official repository ran · fixture could not drive it Apache-2.0 recorded; this copy not marked cleared · pointer only · 049db0114a85e508 · report
multiple_samples_collate facebookresearch/mvit/mvit/datasets/loader.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · 4927733091f71100 · report
shear_x facebookresearch/mvit/mvit/datasets/rand_augment.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · e866e1196986f728 · report
shear_y facebookresearch/mvit/mvit/datasets/rand_augment.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · 7b2503c99c9447fb · report
translate_x_rel facebookresearch/mvit/mvit/datasets/rand_augment.py official repository ran Apache-2.0 recorded; this copy not marked cleared · pointer only · 323759f906fbb394 · report
assert_and_infer_cfg facebookresearch/mvit/mvit/config/defaults.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 4c9ffd3f576a6936 · report
attention_pool facebookresearch/SlowFast/slowfast/models/attention.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · a4723eab8df61dbe · report
cal_rel_pos_spatial facebookresearch/mvit/mvit/models/attention.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 5de56fec3ce10382 · report
cal_rel_pos_spatial facebookresearch/SlowFast/slowfast/models/attention.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 156d0bf08e703f3c · report
construct_loader facebookresearch/mvit/mvit/datasets/loader.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 7ca72f77bea1e546 · report
construct_optimizer facebookresearch/mvit/mvit/models/optimizer.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 8e7aad946e7f3346 · report
contrastive_forward facebookresearch/SlowFast/slowfast/models/contrastive.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · b5b248acb6375fcc · report
convert_to_one_hot facebookresearch/mvit/mvit/datasets/mixup.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 547be2babaca4859 · report
drop_path facebookresearch/SlowFast/slowfast/models/common.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · bcc1cdae3bb3212c · report
get_ld_param_groups facebookresearch/mvit/mvit/models/optimizer.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 366cdd880af84645 · report
get_loss_func facebookresearch/mvit/mvit/models/losses.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 836ddfc4a5544d55 · report
get_param_groups facebookresearch/mvit/mvit/models/optimizer.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 4b81f68c735859d7 · report
get_rel_pos facebookresearch/SlowFast/slowfast/models/attention.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 5fc6c9c916e0ebc7 · report
l2_loss facebookresearch/SlowFast/slowfast/models/contrastive.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 1ef3753d70ebb220 · report
mixup_target facebookresearch/mvit/mvit/datasets/mixup.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · fd3e5fd51b6d7296 · report
rand_bbox facebookresearch/mvit/mvit/datasets/mixup.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · f18f66adc8c6b70f · report
ckpt_to_state_dict open-mmlab/mmclassification/.dev_scripts/ckpt_tree.py community (archive-listed) ran Apache-2.0 (permissive) · a322f2edda4b2d6e · report
filter_models_by_task open-mmlab/mmclassification/.dev_scripts/generate_readme.py community (archive-listed) ran Apache-2.0 (permissive) · 8eebff71c1cabe84 · report
get_flops_params open-mmlab/mmclassification/.dev_scripts/fill_metafile.py community (archive-listed) unverified Apache-2.0 (permissive) · 9abd4b00a0d36a31 · report

Tasks

Image ClassificationObject DetectionVideo Classificationimage-classificationobject-detection

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformerVision Transformer

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