跳到主要导航 跳到搜索 跳到主要内容

LazyMAR: Accelerating Masked Autoregressive Models Via Feature Caching

  • Feihong Yan
  • , Qingyan Wei
  • , Jiayi Tang
  • , Jiajun Li
  • , Yulin Wang
  • , Xuming Hu
  • , Huiqi Li*
  • , Linfeng Zhang*
  • *此作品的通讯作者
  • Beijing Institute of Technology
  • Central South University
  • Shanghai Jiao Tong University
  • Tsinghua University
  • Hong Kong University of Science and Technology

科研成果: 期刊稿件 › 会议文章 › 同行评审

摘要

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.

源语言英语
页(从-至)15552-15561
页数10
期刊Proceedings of the IEEE International Conference on Computer Vision
DOI
出版状态已出版 - 2025
活动2025 IEEE/CVF International Conference on Computer Vision, ICCV 2025 - Honolulu, 美国
期限: 19 10月 2025 → 23 10月 2025

学术指纹

探究 'LazyMAR: Accelerating Masked Autoregressive Models Via Feature Caching' 的科研主题。它们共同构成独一无二的学术指纹。

引用此