Skip to main navigation Skip to search Skip to main content

LazyMAR: Accelerating Masked Autoregressive Models Via Feature Caching

  • Feihong Yan
  • , Qingyan Wei
  • , Jiayi Tang
  • , Jiajun Li
  • , Yulin Wang
  • , Xuming Hu
  • , Huiqi Li*
  • , Linfeng Zhang*
  • *Corresponding author for this work
  • Beijing Institute of Technology
  • Central South University
  • Shanghai Jiao Tong University
  • Tsinghua University
  • Hong Kong University of Science and Technology

Research output: Contribution to journal › Conference article › peer-review

Abstract

Masked Autoregressive (MAR) models have emerged as a promising approach in image generation, expected to surpass traditional autoregressive models in computational efficiency by leveraging the capability of parallel decoding. However, their dependence on bidirectional self-attention inherently conflicts with conventional KV caching mechanisms, creating unexpected computational bottlenecks that undermine their expected efficiency. To address this problem, this paper studies the caching mechanism for MAR by leveraging two types of redundancy: Token Redundancy indicates that a large portion of tokens have very similar representations in the adjacent decoding steps, which allows us to first cache them in previous steps and then reuse them in the later steps. Condition Redundancy indicates that the difference between conditional and unconditional output in classifierfree guidance exhibits very similar values in adjacent steps. Based on these two redundancies, we propose LazyMAR, which introduces two caching mechanisms to handle them one by one. LazyMAR is training-free and plug-and-play for all MAR models. Experimental results demonstrate that our method achieves 2.83 × acceleration with almost no drop in generation quality. Our codes will be released in https://github.com/feihongyan1/LazyMAR.

Original languageEnglish
Pages (from-to)15552-15561
Number of pages10
JournalProceedings of the IEEE International Conference on Computer Vision
DOIs
Publication statusPublished - 2025
Event2025 IEEE/CVF International Conference on Computer Vision, ICCV 2025 - Honolulu, United States
Duration: 19 Oct 2025 → 23 Oct 2025

Keywords

  • acceleration
  • autoregressive image generation
  • cache
  • image synthesis
  • masked autoregregrassive model

Fingerprint

Dive into the research topics of 'LazyMAR: Accelerating Masked Autoregressive Models Via Feature Caching'. Together they form a unique fingerprint.

Cite this