Fine- and Coarse-Granularity Hybrid Self-Attention for Efficient BERT
원문 초록
Transformer-based pre-trained models, such as BERT, have shown extraordinary success in achieving state-of-the-art results in many natural language processing applications. However, deploying these models can be prohibitively costly, as the standard self-attention mechanism of the Transformer suffers from quadratic computational cost in the input sequence length. To confront this, we propose FCA, a fine- and coarse-granularity hybrid self-attention that reduces the computation cost through progressively shortening the computational sequence length in self-attention. Specifically, FCA conducts an attention-based scoring strategy to determine the informativeness of tokens at each layer. Then, the informative tokens serve as the fine-granularity computing units in self-attention and the uninformative tokens are replaced with one or several clusters as the coarse-granularity computing units in self-attention. Experiments on GLUE and RACE datasets show that BERT with FCA achieves 2x reduction in FLOPs over original BERT with <1% loss in accuracy. We show that FCA offers a significantly better trade-off between accuracy and FLOPs compared to prior methods.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Multi-Preference Lambda-weighted Listwise DPO for Dynamic Preference Alignment
CuRe: Cultural Gaps in the Long Tail of Text-to-Image Systems
ERU-KG: Efficient Reference-aligned Unsupervised Keyphrase Generation
Power-Law Decay Loss for Large Language Model Finetuning: Focusing on Information Sparsity to Enhance Generation Quality
ICYM2I: The illusion of multimodal informativeness under missingness
Laplace Sample Information: Data Informativeness Through a Bayesian Lens
토론
이 논문과 연결된 포럼 글이 아직 없습니다.