Search papers, labs, and topics across Lattice.
The paper introduces Fast and Fusiest Mapper (FFM), a novel mapping algorithm for tensor algebra accelerators that efficiently finds optimal fused mappings by pruning provably suboptimal partial mappings. FFM drastically reduces the search space by eliminating partial mappings that cannot lead to optimal solutions and then constructing optimal fused mappings from the remaining candidates. Experiments demonstrate that FFM achieves near-linear runtime scaling with the number of computation steps and outperforms state-of-the-art mappers by over 1000x in finding optimal mappings for Transformers.
Forget brute-force search: a new mapper finds provably optimal accelerator mappings with fusion for Transformers over 1000x faster.
The latency and energy of tensor algebra accelerators depend on how data movement and operations are scheduled (i.e., mapped) onto accelerators, so determining the potential of an accelerator architecture requires both a performance model and a mapper to search for the optimal mapping. A key optimization that the mapper must explore is fusion, meaning holding data on-chip between computation steps, which has been shown to reduce energy and latency by reducing DRAM accesses. However, prior mappers cannot find optimal mappings with fusion (i.e., fused mappings) in a feasible runtime because the number of fused mappings to search increases exponentially with the number of workload computation steps. In this paper, we introduce the Fast and Fusiest Mapper (FFM), the first mapper to quickly find optimal mappings in a comprehensive fused mapspace for tensor algebra workloads. FFM shrinks the search space by pruning subsets of mappings (i.e., partial mappings) that are shown to never be a part of optimal mappings, quickly eliminating all suboptimal mappings with those partial mappings as subsets. Then FFM joins partial mappings to construct optimal fused mappings. We evaluate FFM and show that, although the mapspace size grows exponentially with the number of computation steps, FFM's runtime scales approximately linearly. FFM is orders of magnitude faster ($>1000\times$) than prior state-of-the-art approaches at finding optimal mappings for Transformers.