M2T: Masking Transformers Twice for Faster Decoding

Fabian Mentzer, Eirikur Agustsson, Michael Tschannen
4/14/2023
eess.IVcs.LG

No confident code implementation found for this paper.

Abstract

We show how bidirectional transformers trained for masked token prediction can be applied to neural image compression to achieve state-of-the-art results. Such models were previously used for image generation by progressivly sampling groups of masked tokens according to uncertainty-adaptive schedules. Unlike these works, we demonstrate that predefined, deterministic schedules perform as well or better for image compression. This insight allows us to use masked attention during training in addition to masked inputs, and activation caching during inference, to significantly speed up our models (~4 higher inference speed) at a small increase in bitrate.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mentzer2023mt,
  title  = {M2T: Masking Transformers Twice for Faster Decoding},
  author = {Fabian Mentzer and Eirikur Agustsson and Michael Tschannen},
  year   = {2023},
  eprint = {2304.07313},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.07313v1},
  journal = {ICCV 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.07313.svg)](https://codeofpaper.com/paper/2304.07313)

Discussion