MCPcopy Index your code
hub / github.com/CVL-UESTC/MVAR

github.com/CVL-UESTC/MVAR @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
286 symbols 774 edges 22 files 21 documented · 7%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

MVAR: Visual Autoregressive Modeling with Scale and Spatial Markovian Conditioning (ICLR 2026)

Jinhua Zhang, Wei Long, Minghao Han, Weiyi You, Shuhang Gu

arXiv GitHub Stars Project Page

⭐If this work is helpful for you, please help star this repo. Thanks!🤗

✨ Key Contributions

1️⃣ VAR exhibits scale and spatial redundancy, causing high GPU memory consumption.

<img src="https://github.com/CVL-UESTC/MVAR/raw/main/asset/motivation.png" style="border-radius: 5px">

2️⃣ The proposed method enables MVAR generation without relying on KV cache during inference.

<img src="https://github.com/CVL-UESTC/MVAR/raw/main/asset/abs.png" style="border-radius: 5px">

📑 Contents

📰 News

  • 2025-05-20: Our MVAR paper has been published on arXiv.

🛠️ Pipeline

Our MVAR introduces the scale and spatial Markovian assumpation which only adopt adjacent preceding scale for next-scale prediction and restricts the attention of each token to a localized neighborhood of size k at corresponding positions on adjacent scales.

<img src="https://github.com/CVL-UESTC/MVAR/raw/main/asset/pipeline.png" style="border-radius: 15px">

✅ Status

  • [x] 📄 Paper available on arXiv
  • [ ] 🧠 Codebase under preparation
  • [ ] 🚀 Planned improvements and model refinement

🥇 Results

Our MVAR model achieves a 3.0× reduction in GPU memory footprint compared to VAR. Detailed results can be found in the paper.

Comparison of Quantitative Results: MVAR vs. VAR (click to expand)

Quantitative Results on the ImageNet 256×256 Benchmark (click to expand)

Ablation Study on Scale and Spatial Markovian Assumptions (click to expand)

🥰 Citation

Please cite us if our work is useful for your research.

@article{zhang2025mvar,
  title={MVAR: Visual Autoregressive Modeling with Scale and Spatial Markovian Conditioning},
  author={Zhang, Jinhua and Long, Wei and Han, Minghao and You, Weiyi and Gu, Shuhang},
  journal={arXiv preprint arXiv:2505.12742},
  year={2025}
}

Contact

If you have any questions, feel free to approach me at jinhua.zjh@gmail.com

Core symbols most depended-on inside this repo

update
called by 21
utils/misc.py
load
called by 12
utils/evaluations/c2i/evaluator.py
flush
called by 8
utils/misc.py
load_state_dict
called by 7
models/vqvae.py
close
called by 5
utils/misc.py
Normalize
called by 5
models/basic_vae.py
write
called by 4
utils/misc.py
add_meter
called by 4
utils/misc.py

Shape

Method 165
Function 76
Class 45

Languages

Python100%

Modules by API surface

utils/misc.py53 symbols
utils/evaluations/c2i/evaluator.py51 symbols
models/quant.py23 symbols
utils/dist.py21 symbols
models/basic_vae.py21 symbols
utils/data.py18 symbols
models/basic_mvar.py17 symbols
utils/data_sampler.py12 symbols
models/mvar.py11 symbols
utils/arg_util.py10 symbols
models/vqvae.py9 symbols
utils/amp_sc.py8 symbols

For agents

$ claude mcp add MVAR \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact