Cruella: A Unified Microscaling and Floating-Point Dot-Product Unit for LLM Inference on FPGAs
Abstract
The number formats that accelerators execute natively are fixed at fabrication, yet large language model (LLM) checkpoints are released with MXFP4 weights in the Microscaling (MX) formats standardized in 2023. FPGAs adopt new formats through bitstreams. However, to the best of our knowledge, no deployed FPGA LLM accelerator executes MXFP4 weights alongside BF16 products. We characterize the decoding of MXFP4 checkpoints, whose layers alternate between MXFP4$\times$BF16 products and BF16$\times$BF16 products of attention and BF16 layers. With a BF16 KV cache, BF16$\times$BF16 products take 56%-77% of the datapath time, during which a separate MXFP4 unit idles. We present Cruella, whose unified dot-product unit (UDPU) executes both product types on one DSP array and reduction pipeline. First, per-group pre-alignment keeps this pipeline at the BF16 width and changes perplexity by at most 0.7%. Second, pre-adder packing places two signed MXFP4$\times$BF16 products in one DSP48E2 multiplier with an exact correction. On an Alveo U55C, the UDPU needs 23% fewer DSP slices and 36% fewer LUTs than separate MXFP4 and BF16 units of equal throughput. On this board, MXFP4 weights speed up decoding by 1.15$\times$-1.87$\times$ over BF16 weights, and an NVIDIA A40 GPU decodes faster but spends 0.92$\times$-2.01$\times$ the board's energy per token.
- Comment
- 32 pages, 13 figures, 7 tables