TL;DR
This paper demonstrates that paging the recurrent state of a linear-attention language model to external memory is not the performance bottleneck for edge FPGA deployments. By building a bit-exact hardware tile for a 369M-parameter Gated-DeltaNet model, the authors show that weight delivery—not state movement—is the primary constraint, making large-state recurrent models practical for resource-constrained hardware.
What Problem Does This Paper Address?
Standard Transformer models suffer from a "growing KV cache" problem: as the conversation gets longer, the memory needed to store past context increases linearly. Linear-attention models (like Gated DeltaNet or Mamba) solve this by using a recurrent state of fixed size.
However, "fixed" doesn't necessarily mean "small." On edge FPGAs—chips designed for low-power, local processing—the on-chip memory (Block RAM) is often tiny. For example, the Agilex 5 FPGA used in this study has only 0.87 MiB of block memory, while the model’s recurrent state requires 6.2 MiB. This forces the hardware to "page" the state: reading it from external LPDDR4 memory, updating it, and writing it back for every single token generated. The central question is: Does this constant paging dominate the cost of decoding, making these models too slow for real-time edge use?
Methods
The authors designed a custom hardware architecture to compute one complete layer of a 369-million-parameter hybrid Gated DeltaNet model.
- Tri-Mode Multicast Mesh: The system consists of a 2x3 mesh of processing elements (PEs). Each PE can switch between three modes: Parallel (for high-throughput math), Sequential (for control tasks), and Memory-streaming (for data movement).
- The Decode Tile: A specialized hardware block that handles the matrix-vector products, state updates, and paging logic. It uses a 512-bit interface to external memory to maximize bandwidth.
- Bit-Exact Verification: Because recurrent models pass their state from one token to the next, even a tiny numerical error can snowball into total gibberish. The authors developed a rigorous verification flow ensuring the hardware matches a fixed-point software reference bit-for-bit, from RTL simulation all the way to the physical silicon.
- Mixed Precision: To balance accuracy and memory traffic, they used INT4 for weights (with bfloat16 scales), bfloat16 for activations, and a custom 16-bit block-floating-point format for the recurrent state.
Datasets
The hardware was evaluated within a real-world "embodied perception" context:
- OVAD Dataset: A collection of 56-channel acoustic recordings of vehicles at blind T-junctions. This was used to test the "front-end" of the system, which detects vehicles before they are visible.
- CODa Question Set: Used to generate prompts for the language model. The model answers semantic queries about the scene (e.g., "Is a vehicle approaching from the left?").
Key Insights and Ideas
- The "State" is not the Bottleneck: This is the headline finding. In their implementation, matrix-vector products with weights consumed ~62% of the cycle time, while the entire state phase (including paging) took only ~13%.
- Weight Delivery is the Real Limit: The performance is actually bound by how fast the FPGA can pull model weights from external memory.
- Scene Caching: The authors propose a multi-rate architecture. A fast acoustic front-end updates a "scene cache." The heavy language model is only invoked when the scene changes (a cache miss), significantly reducing the average computational load.
- Mode Switching Cost: They quantified the cost of reconfiguring PEs on the fly. Switching modes takes only 3 to 34 clock cycles, proving that flexible, software-defined hardware can be highly efficient.
Key Results
- Memory Traffic: Paging the state adds 26.0 MB of traffic per decoded token. While this sounds high, it represents only 7.7% to 11.2% of the total memory traffic.
- Latency: On the Agilex 5 board running at 75 MHz, computing one layer for one token takes 11.15 ms.
- Accuracy: The fixed-point implementation achieved high fidelity, with a quantization SNR of ~98 dB for the acoustic front-end and less than 0.7% relative error for the state engine compared to 32-bit floating point.
- Cache Efficiency: The "confirm-3" cache policy (requiring a detection to persist for three frames) achieved a hit rate of 0.929, meaning the expensive language model only needs to run for about 1 out of every 14 sensor frames.
Limitations and Future Work
- Single Tile Scaling: The current design uses one tile to compute layers sequentially. While this saves area, a full-speed production system might need multiple tiles to pipeline the 24 layers of the model.
- Attention Layers: The model is a hybrid; the hardware tile currently only implements the recurrent (Gated DeltaNet) layers. The six attention layers in the model were processed outside the scope of this hardware evaluation.
- Power Measurement: While the authors estimated dynamic power at ~0.35 W for the tile, physical power measurements on the board were not reported.
- Fixed Batch Size: The results are specific to a batch size of one (typical for real-time edge inference). Performance characteristics might shift significantly for batched workloads.
Summary updated