Abstract
MEADOW is a framework designed to enable Large Language Model (LLM) inference on low-power edge devices by addressing the "memory wall" bottleneck. By introducing a novel Token-Parallel Head-Sequential (TPHS) dataflow and a lossless weight-packing technique, MEADOW optimizes data movement on bandwidth-constrained hardware. Evaluated on a Xilinx ZCU102 FPGA, the framework achieves up to a 2.5× reduction in prefill latency and a 1.5× reduction in decode latency within a strict 10W power budget, outperforming existing state-of-the-art FPGA optimization frameworks.
Introduction
Deploying LLMs on edge platforms—such as autonomous drones, mobile assistants, or remote sensors—is constrained by limited memory bandwidth and strict power budgets (typically <10W). Standard execution models rely on Generalized Matrix Multiplication (GEMM), which necessitates frequent data transfers between on-chip processors and off-chip DRAM. On devices like the Xilinx ZCU102, this data movement becomes the primary bottleneck, leading to high latency and processor starvation as the hardware constantly fetches weights and stores intermediate tokens.
Methodology
MEADOW introduces three core innovations to mitigate the memory bottleneck and transform memory-bound operations into compute-efficient ones.
1. Token-Parallel Head-Sequential (TPHS) Dataflow
Unlike traditional GEMM-based execution that treats layers as standalone operations, TPHS pipelines the attention mechanism. It processes multiple tokens in parallel while handling attention heads sequentially. This restructuring allows intermediate data to remain on-chip, significantly reducing the frequency of slow off-chip DRAM accesses.
2. Advanced Weight Packing
To exploit redundancy in LLM weight matrices, MEADOW employs a lossless compression scheme. Weight matrices are decomposed into "unique chunks" and an encoded matrix of indices. Efficiency is further enhanced through:
- Packet-specific precision: Assigning variable bit-widths to different index groups.
- Frequency-aware reindexing: Assigning shorter bit-representations to the most frequent weight chunks (similar to Huffman coding), which yields a 2.63× improvement in weight transfer efficiency.
3. Hybrid Hardware Architecture
The framework is implemented on a tiled FPGA architecture featuring specialized "Parallel" and "Broadcasting" Multiply-Accumulate (MAC) units. A dedicated pipelined Softmax module is also integrated to support the TPHS dataflow efficiently.
Experimental Evaluation
MEADOW was evaluated using Meta’s OPT-125M and OPT-1.3B models. Accuracy was verified using the LAMBADA dataset, confirming that the 8-bit quantization maintained high performance (60.7% for OPT-125M and 69.7% for OPT-1.3B).
Key Results
- Latency Reduction: Compared to standard GEMM implementations on a ZCU102 FPGA, MEADOW reduced prefill latency by 2.5× and decode latency by 1.5×.
- Comparative Performance: The framework demonstrated over a 40% improvement in end-to-end performance compared to prior state-of-the-art FPGA optimization frameworks like CTA and FlightLLM.
- Generalization: Testing on Vision Transformers (DeiT-S and DeiT-B) yielded a 1.6× lower inference latency, demonstrating the broad applicability of these optimizations beyond text-based LLMs.
Conclusion
MEADOW demonstrates that restructuring dataflow and employing intelligent, lossless data representation can overcome the memory wall for edge AI. While currently focused on FPGAs, the principles of TPHS and frequency-aware reindexing provide a roadmap for efficient LLM deployment on various power-constrained architectures. Future work may explore integrating these optimizations with lossy techniques like N:M sparsity to further push the boundaries of edge performance.
Summary updated