Abstract
Visual Auto-Regressive (VAR) models significantly reduce inference steps through the "next-scale" prediction paradigm. However, progressive multi-scale generation incurs substantial memory overhead due to cumulative KV caching, limiting practical deployment. We observe a scale-depth asymmetric dependency in VAR: early scales exhibit extreme sensitivity to network depth, while later scales remain robust to depth reduction. Inspired by this, we propose VARiant: by equidistant sampling, we select multiple subnets ranging from 16 to 2 layers from the original 30-layer VAR-d30 network. Early scales are processed by the full network, while later scales utilize subnet. Subnet and the full network share weights, enabling flexible depth adjustment within a single model. However, weight sharing between subnet and the entire network can lead to optimization conflicts. To address this, we propose a progressive training strategy that breaks through the Pareto frontier of generation quality for both subnets and the full network under fixed-ratio training, achieving joint optimality. Experiments on ImageNet demonstrate that, compared to the pretrained VAR-d30 (FID 1.95), VARiant-d16 and VARiant-d8 achieve nearly equivalent quality (FID 2.05/2.12) while reducing memory consumption by 40-65%. VARiant-d2 achieves 3.5 times speedup and 80% memory reduction at moderate quality cost (FID 2.97). In terms of deployment, VARiant's single-model architecture supports zero-cost runtime depth switching and provides flexible deployment options from high quality to extreme efficiency, catering to diverse application scenarios.
1. Introduction
Visual Autoregressive (VAR) models have recently emerged as a powerful alternative to diffusion models, generating images across spatial scales (from coarse to fine) rather than token-by-token. While VAR is fast, it suffers from a massive memory bottleneck. Because the model must retain all previously generated tokens to predict the next scale, the Key-Value (KV) cache grows quadratically with resolution. For high-resolution images, this memory overhead makes deployment on consumer hardware difficult. Existing solutions often involve distilling the model into a smaller one (losing quality) or deploying multiple models of different sizes (increasing system complexity). The authors sought a way to reduce this overhead within a single, flexible model architecture.
2. Methodology: Exploiting Scale-Depth Asymmetry
The core innovation of VARiant is the exploitation of a newly discovered "scale-depth asymmetric dependency." Empirical analysis reveals that early generation scales (low resolution) are extremely sensitive to model depth; using a shallow model here destroys global structure. However, later scales (high resolution) primarily refine local textures and are surprisingly robust to depth reduction.
VARiant splits the generation into a Bridge Zone (early scales, always uses full depth) and a Flexible Zone (later scales, uses a sampled subnet). Subnets are created via equidistant layer selection, ensuring that the layers used in a 2-layer or 8-layer version are a subset of the original 30-layer model.
3. Progressive Training for Joint Optimality
Simply sharing weights between a full network and a subnet usually leads to optimization conflicts. If the subnet is trained too frequently, the "full-only" layers (those skipped by the subnet) stop receiving gradients and stagnate—a phenomenon termed "gradient starvation." To address this, VARiant employs a three-phase Dynamic-Ratio Progressive Training strategy:
- Phase I (Joint Training): Mostly trains the full network to establish a strong parameter foundation (20% data skip).
- Phase II (Progressive Transition): Gradually increases the probability of sampling the subnet (20% to 100% data skip).
- Phase III (Subnet Refinement): Focuses on optimizing the subnet's performance (100% data skip).
This schedule acts as a "gradient bridge," ensuring all layers are well-initialized before the subnet begins to specialize.
4. Key Results and Discussion
Evaluated on ImageNet-1K at 256x256 resolution, VARiant demonstrates the ability to break the standard quality-efficiency trade-off.
Compared to the baseline VAR-d30 (FID 1.95):
- VARiant-d16: Achieves a 1.7× speedup and 44% memory saving with an FID of 2.05 (nearly indistinguishable quality).
- VARiant-d8: Achieves a 2.6× speedup and 65% memory saving with an FID of 2.12.
- VARiant-d2: Achieves a 3.5× speedup and 80% memory reduction (FID 2.97), proving viable for extreme resource-constrained environments.
Because VARiant is a single supernet, it supports zero-cost runtime depth switching. A developer can switch from "High Quality Mode" to "Extreme Efficiency Mode" at runtime just by changing the layer indices—no reloading of weights or extra memory allocation required.
5. Conclusion
VARiant introduces a unified supernet framework for VAR models that allows for flexible depth switching during inference. By leveraging scale-depth asymmetry and a progressive training strategy, it significantly reduces memory and compute requirements without sacrificing the generative capabilities of the full model. Future work will explore training multiple subnet configurations simultaneously and automating the transition boundaries between training phases.
Summary updated