arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2404.08836cs.CLcs.AIcs.LG
收藏

BERT-LSH:降低注意力机制的绝对计算量

BERT-LSH: Reducing Absolute Compute For Attention

New York University(纽约大学)

Zezheng Li, Kingston Yip

AI总结:

本研究提出引入局部敏感哈希(LSH)的BERT-LSH模型以近似BERT的注意力机制,实验证明其在显著降低自注意力层计算量的同时,预训练与微调任务表现优于标准基线BERT模型,兼具计算效率与泛化能力提升潜力。

摘要:

本研究提出了一种新颖的BERT-LSH模型,该模型引入了局部敏感哈希(Locality Sensitive Hashing,LSH)来近似BERT架构中的注意力机制。我们将该模型与标准基线BERT模型进行对比,检验了其计算效率与性能表现。研究结果显示,BERT-LSH显著降低了自注意力层的计算需求,同时在预训练和微调任务中表现出人意料地优于基线模型。这些结果表明,基于LSH的注意力机制不仅具备计算优势,还可能提升模型从训练数据中泛化的能力。更多信息请访问我们的GitHub仓库:https://github.com/leo4life2/algoml-final

英文摘要:

This study introduces a novel BERT-LSH model that incorporates Locality Sensitive Hashing (LSH) to approximate the attention mechanism in the BERT architecture. We examine the computational efficiency and performance of this model compared to a standard baseline BERT model. Our findings reveal that BERT-LSH significantly reduces computational demand for the self-attention layer while unexpectedly outperforming the baseline model in pretraining and fine-tuning tasks. These results suggest that the LSH-based attention mechanism not only offers computational advantages but also may enhance the model's ability to generalize from its training data. For more information, visit our GitHub repository: https://github.com/leo4life2/algoml-final

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑