Non-uniform breakpoint spacing for exp2 piecewise-linear approximation
Investigate non-uniformly spaced breakpoint placement for the piecewise linear approximation of the exp2 function used in FSA’s SystolicAttention to implement the element-wise exponential within FlashAttention, and determine whether such non-uniform spacing reduces mean relative error compared to the current uniformly spaced eight-segment scheme.
References
We choose to use 8 segments in our FSA implementation, which achieves a MAE of 0.00014 and an MRE of 0.02728. Although non-uniformly spaced breakpoints could further reduce the MRE, we leave this exploration for future work.
— SystolicAttention: Fusing FlashAttention within a Single Systolic Array
(2507.11331 - Lin et al., 15 Jul 2025) in Accuracy Analysis, subsubsection "Error Analysis of Piecewise Linear Approximation"