PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
June 16, 2023105 citationsOpen Access

FACT: FFN-Attention Co-optimized Transformer Architecture with Eager Correlation Prediction

YQYubin QinYWYang WangDDDazheng Deng

Key Points

Key points are not available for this paper at this time.

Abstract

Transformer model is becoming prevalent in various AI applications with its outstanding performance. However, the high cost of computation and memory footprint make its inference inefficient. We discover that among the three main computation modules in a Transformer model (QKV generation, attention computation, FFN), it is the QKV generation and FFN that contribute to the most power cost. While the attention computation, focused by most previous works, only has decent power share when dealing with extremely long inputs. Therefore, in this paper, we propose FACT, an efficient algorithm-hardware co-design optimizing all three modules of Transformer. We first propose an eager prediction algorithm which predicts the attention matrix before QKV generation. It further detects the unnecessary computation in QKV generation and assigns mixed-precision FFN with the predicted attention, which helps improve the throughput. Further, we propose FACT accelerator to efficiently support eager prediction with three designs. It avoids the large overhead of prediction by using log-based add-only operations for prediction. It eliminates the latency of prediction through an out-of-order scheduler that makes the eager prediction and computation work in full pipeline. It additionally avoids memory access conflict in the mixed-precision FFN with a novel diagonal storage pattern. Experiments on 22 benchmarks show that our FACT improves the throughput of the whole Transformer by 3.59× on the geomean average. It achieves an enviable 47.64× and 278.1× energy saving when computing attention, compared to previous attention-optimization-only SOTA works ELSA and Sanger. Further, FACT achieves an energy efficiency of 4388 GOPS/W performing the whole Transformer layer on average, which is 94.98× higher than Nvidia V100 GPU.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Qin et al. (2023) studied this question.

synapsesocial.com/papers/6a0ec5f206ecbe833447ca57https://doi.org/10.1145/3579371.3589057
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1Proceedings of the 36th annual international symposium on Computer architecture2009 · 28 citations
  2. 2Scaling Vision Transformers to 22 Billion Parameters2023 · 118 citations
  3. 3Procrustes: a Dataflow and Accelerator for Sparse Deep Neural Network Training2020 · 64 citations
  4. 4BERT4Rec2019 · 2,486 citations
  5. 52020 53rd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO)2020 · 74 citations