FPQVAR: Floating Point Quantization for Visual Autoregressive Model with FPGA Hardware Co-design

Renjie Wei, Songqiang Xu, Qingyu Guo, Meng LiarXiv 2025 · DOI

Abstract

Visual Autoregressive (VAR) models represent a significant shift in generative AI, producing high-quality images by predicting multi-scale token maps. However, their massive parameter counts—exceeding 2 billion in models like VAR-d30—pose severe challenges for deployment on resource-constrained edge devices. We present FPQVAR, a comprehensive algorithm-hardware co-design framework that leverages low-bit floating-point (FP) quantization and a specialized FPGA accelerator to achieve high-fidelity image generation with significantly reduced latency and energy consumption.

Challenges in Quantizing VAR Models

While traditional integer (INT) quantization is standard for many neural networks, VAR models present unique obstacles that hinder efficient deployment:

  1. Distribution Mismatch: Neural network weights and activations typically follow Gaussian or Laplace distributions, clustering near zero. Standard INT quantization assumes a uniform distribution, leading to high quantization errors.
  2. Imbalanced Activations: The GeLU activation functions in VAR create highly skewed distributions where the vast majority of values are small and negative, while positive values exhibit long tails.
  3. Dynamic Outliers: Autoregressive generation introduces "outlier" values that shift at every step of the process, making static suppression methods ineffective.
  4. Hardware Limitations: Existing FPGAs are primarily optimized for integer arithmetic, lacking native support for efficient low-bit floating-point operations.
Activation value distribution showing clustering near zero and the alignment with the FP4-E2M1 quantization grid.

The FPQVAR Methodology

To address these issues, FPQVAR introduces several algorithmic innovations paired with a custom hardware architecture.

Algorithmic Innovations

  • Dual Format Quantization (DFQ): DFQ employs two distinct floating-point formats and scales to manage the skewed output of GeLU layers—one optimized for dense negative values and another for sparse, long-tail positive values.
  • Group-wise Hadamard Transformation (GHT): To mitigate the impact of outliers, GHT applies a mathematical rotation to "smooth" data spikes. By processing data in 128x128 blocks, GHT reduces computational overhead by 15× compared to standard transformations while maintaining accuracy.
  • GHT-Aware Learnable Transformation (GALT): This gradient-based optimization finds ideal smoothing factors across the entire multi-step generation sequence, minimizing cumulative error.

Hardware-Software Co-design

The framework includes a specialized FPGA accelerator designed for the VAR architecture. Key features include:

  • LUT-based FP Units: Custom quantizers and multipliers are implemented using Lookup Tables (LUTs), allowing the FPGA to perform complex 4-bit FP math as simple memory lookups.
  • Two-Level Pipeline: A sophisticated scheduler overlaps the computation of different model blocks, ensuring high hardware utilization during the multi-scale prediction process.
Overview of the VAR Transformer architecture, its hierarchical generation steps, and the parameter/operation breakdown.

Experimental Results

FPQVAR was evaluated on ImageNet at 256×256 and 512×512 resolutions, demonstrating superior performance across quality and efficiency metrics.

  • Quality: Under 4-bit quantization (W4A4), FPQVAR achieved a Fréchet Inception Distance (FID) of 3.58, a dramatic improvement over the previous state-of-the-art FID of 10.83. At 6-bit quantization, the model reached parity with the original 16-bit floating-point baseline.
  • Efficiency: Implemented on an AMD-Xilinx VCK190 FPGA, the system achieved a throughput of 1.1 images per second. This represents a 3.1× speedup over integer-based hardware and 2.8× higher energy efficiency than an NVIDIA RTX A6000 GPU.

Conclusion

FPQVAR demonstrates that low-bit floating-point quantization is fundamentally better suited for the statistical distributions of modern generative models than traditional integer formats. By co-designing the quantization algorithm with FPGA-specific hardware units, we enable high-quality, efficient visual autoregressive generation on the edge. Future work will explore even lower bit-widths and extension to video generation models.

Summary updated

BibTeX
@misc{wei2025fpqvar,
  author = {Renjie Wei and Songqiang Xu and Qingyu Guo and Meng Li},
  title = {{FPQVAR: Floating Point Quantization for Visual Autoregressive Model with FPGA Hardware Co-design}},
  year = {2025},
  eprint = {2505.16335},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.16335},
}
Figure