TL;DR
Markov-VAR breaks the full-context dependency bottleneck of traditional visual autoregressive models by reformulating next-scale image generation as a localized Markov process. By combining single-scale transitions with a lightweight sliding-window history compensation mechanism, it improves image generation quality while slashing peak memory usage by up to 83.8% for high-resolution images.
What Problem Does This Paper Address?
Visual Autoregressive (VAR) modeling has recently revitalized autoregressive visual generation by shifting the paradigm from raster-scan next-token prediction to coarse-to-fine next-scale prediction. While highly effective, standard VAR models suffer from a major flaw: full-context dependency. To predict the next scale, the model must attend to all previous scales.
The authors identify three critical challenges caused by this full-context design:
- Substantial Computational Cost: As the scale increases, token counts grow quadratically. Accumulating attention across all previous scales causes an exponential explosion in memory usage (specifically KV cache) and compute.
- Continuous Error Accumulation: Autoregressive models suffer from compounding errors. Full-context dependency repeatedly feeds early prediction errors back into the model, severely degrading high-resolution generation.
- Cross-Scale Interference: Coarse-grained features from early scales often compete or conflict with the fine-grained details needed at later scales, hindering the model's ability to learn distinct scale-specific representations.
Methods
To solve these bottlenecks, the authors introduce Markov-VAR, which reformulates next-scale prediction as a non-full-context Markov process.
Instead of looking back at every single previous scale, Markov-VAR treats each scale as a discrete Markov state that primarily depends only on its immediate predecessor. However, completely discarding history would result in a severe loss of context. To counteract this, the authors introduce a History Compensation Mechanism:
- Sliding Window: The model maintains a small sliding window (typically of size $N=3$) over the most recent scales.
- History Vector: Features within this window are compressed into a compact, fixed-dimensional history vector using a lightweight cross-attention module.
- Dynamic State: This history vector is concatenated element-wise with the current scale's feature map, creating a representative "dynamic state" that feeds into the next prediction step.
Because the attention mechanism is restricted to this localized dynamic state rather than the entire historical sequence, the model completely eliminates the need for an ever-growing KV cache across scales.
Datasets
The model was trained and evaluated on the standard ImageNet-1K dataset for class-conditional image generation. Testing was performed across multiple resolutions, including 256×256, 512×512, and up to 1024×1024 to benchmark memory and scaling efficiency.
Key Insights and Ideas
- Sufficient Statistics in Scale Chains: Inspired by information theory, the authors realized that continuous chain-based propagation naturally carries forward a "sufficient statistic" of past states. Therefore, full-context attention is largely redundant.
- Early Context Can Hurt: Through Residual-Feature Alignment (RFA) scores, the authors discovered that very early scales actually exert a negative influence on the fine-grained details of later scales. Eliminating full-context dependency directly alleviates this cross-scale interference.
- The Window Sweet Spot: Ablation studies revealed that a sliding window of size 3 is optimal. A window of size 1 discards too much vital history, while a window of size 4 or larger reintroduces the very cross-scale interference they sought to avoid.
Key Results
Markov-VAR achieves a rare "win-win" in deep learning, simultaneously improving generation quality while drastically reducing resource consumption:
Generation Quality
On ImageNet 256×256, Markov-VAR consistently outperforms standard VAR and other variants of comparable size. For a 16-layer model (depth-16):
- FID Improvement: Reduced Frechet Inception Distance (FID) by 10.5% (dropping from 3.61 to 3.23).
- Inception Score (IS): Boosted from 225.6 to 256.2.
Computational Efficiency
The efficiency gains become massive as image resolution scales up:
- Memory Savings: At 1024×1024 resolution, Markov-VAR-d24 slashed peak GPU memory consumption by 83.8% (from 117.9 GB down to just 19.1 GB).
- Inference Speed: Achieved a 1.33× acceleration during inference compared to recent VAR variants like FlexVAR.
Limitations and Future Work
While Markov-VAR proves the viability of localized Markovian modeling for visual autoregression, the paper focuses strictly on class-conditional image generation on ImageNet. The authors note that future work should explore scaling Markov-VAR to much larger, higher-quality datasets, as well as extending the architecture to broader downstream applications such as text-to-image generation, image editing, and 3D object generation.
Summary updated