Papers for

fpga system designers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Transformer attention made faster on long-vector processors

Reorienting the Vector Axis: Restructuring FlashAttention for Long-Vector Processors

Abstract: A Transformer is built around attention, whose cost grows with the square of the sequence length and dominates the layer on long sequences. FlashAttention made that cost manageable by tiling the attention matrix and updating the softmax as it goes, but almost all work since has targeted GPUs. On long-vector processors one vector register can hold up to 512 single-precision numbers. The savings of a vector instruction are proportional to how much of the register it uses, so the choice of which loop to vectorize is a first-order decision. We port PyTorch's CPU FlashAttention kernel to a RISC-V CPU with 2KB vector registers and find that it reaches 16.2% of peak floating-point throughput. The kernel walks each tile one query row at a time: the product against V is vectorized along the 64-element head dimension, the softmax's per-row maximum and sum are reductions that collapse a full register to a scalar, and the software exponential's polynomial coefficients compete with tile data for vector registers and cause spilling. We propose two techniques. The first transposes the score tile and the running output so that queries lie along the contiguous axis. The algorithm and its values are unchanged. A single parameter, the number of queries in a tile, now sets the vector length of every part of the kernel and can be matched to the machine. Both reductions also disappear. The second moves the polynomial's coefficients into scalar registers, removing the spills and cutting the softmax's vector memory instructions by 78.7%. On silicon the two together cut whole-kernel cycles by 1.84 to 2.08x at a head dimension of 64, raising floating-point utilization from 16.2% to 29.7% of peak. An FPGA of the same design ranks the changes identically and scores them higher, at 2.71x.

Wed 21 OctHardware ArchitectureDistributed, Parallel, and Cluster ComputingPerformance
The gist
Transformer models use attention, which becomes slow on long sequences because the work grows quickly. The authors studied a kind of fast attention method called FlashAttention but on special processors with very long vector registers, different from the usual GPUs. They found the original method wasn’t using the long vectors well, so they redesigned how data moves through the process to better fit the hardware. Their changes almost doubled the computational speed on the test hardware without changing the calculation results.
Open → 2610.29489v1

Toki profiles memory performance on FPGA systems with many RISC-V cores

Toki: Profiling HBM Performance on FPGA Systems with RISC-V Soft Cores and PCIe Host DMA Traffic

Abstract: Programmable RISC-V soft cores are becoming more widespread in data-center scenarios, making it crucial to design efficient systems that deploy them on FPGA chips with HBM memory. Toki, released as open source, is the first hardware-software framework that enables profiling the performance of HBM on FPGA accelerator cards by jointly considering (i) the execution of workloads on RISC-V soft cores instantiated on the FPGA and (ii) the injection of memory traffic from the host system via DMA over PCIe, providing insights that cannot be obtained with synthetic traffic generators alone. Extensive experiments target an AMD Alveo U55C card, deploying up to 60 RISC-V compute cores and stressing its HBM2 memory through real-world applications and microbenchmarks with user-defined access patterns. Results showcase how Toki can effectively profile the impact on HBM performance of the compute cores' organization, the workload's memory access patterns, data locality, contention over the memory controllers, and host traffic.

Tue 22 SeptHardware Architecture
The gist
High-bandwidth memory (HBM) on FPGA accelerator cards plays a big role in speeding up data center tasks. The authors created Toki, a system that measures how this memory performs when running many RISC-V soft processor cores on an FPGA while also handling data from a host computer over PCIe. This helps reveal how different factors like core arrangement, memory access methods, and traffic from the host affect speed and efficiency. Their tests used a real AMD FPGA card and showed how real-world applications stress the memory differently than simple test patterns.
Open → 2609.26551v1