Masked Generative Nested Transformers with Decode Time Scaling
Sahil Goyal, Debapriya Tula, Gagan Jain, Pradeep Shenoy, Prateek Jain, Sujoy Paul
TL;DR
MaGNeTS tackles inference efficiency in visual generation by dynamically allocating compute through a decode-time model scheduling strategy that progressively scales model size across decoding iterations, combined with KV caching in parallel decoding. It builds on MaskGIT by introducing nested, parameter-sharing transformers (per MatFormer ideas) and online distillation, enabling smaller sub-models to process more tokens while larger sub-models refine details, achieving roughly $3\times$ lower GFLOPs with competitive image and video quality on ImageNet 256×256, UCF101, and Kinetics600. The approach yields substantial practical gains for high-resolution image synthesis and video frame prediction, offering a generalizable path toward efficient, scalable generative models. These contributions advance real-time or near-real-time generation capabilities without sacrificing fidelity, with potential applicability across tokenizers and sampling schemes.
Abstract
Recent advances in visual generation have made significant strides in producing content of exceptional quality. However, most methods suffer from a fundamental problem - a bottleneck of inference computational efficiency. Most of these algorithms involve multiple passes over a transformer model to generate tokens or denoise inputs. However, the model size is kept consistent throughout all iterations, which makes it computationally expensive. In this work, we aim to address this issue primarily through two key ideas - (a) not all parts of the generation process need equal compute, and we design a decode time model scaling schedule to utilize compute effectively, and (b) we can cache and reuse some of the computation. Combining these two ideas leads to using smaller models to process more tokens while large models process fewer tokens. These different-sized models do not increase the parameter size, as they share parameters. We rigorously experiment with ImageNet256$\times$256 , UCF101, and Kinetics600 to showcase the efficacy of the proposed method for image/video generation and frame prediction. Our experiments show that with almost $3\times$ less compute than baseline, our model obtains competitive performance.
