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

持久同调能否使基于Transformer的黑盒模型变白?——以BERT压缩为例的研究

Can persistent homology whiten Transformer-based black-box models? A case study on BERT compression

Department of Computer Science and Artificial Intelligence, DiCITS, iMUDS, DaSCI, E.T.S.I.I.T. University of Granada, Spain(计算机科学与人工智能系,DiCITS,iMUDS,DaSCI,E.T.S.I.I.T. 格拉纳达大学)

Luis Balderas, Miguel Lastra, José M. Benítez

AI总结:

提出OBCE方法,利用持久同调分析BERT神经元输出的拓扑特征以评估重要性,实现参数压缩(BERT Base减少58.47%,BERT Large减少52.3%),在GLUE基准上取得优异结果,增强可解释性并适配资源受限设备。

摘要:

大型语言模型(LLM)如BERT,因其在各种自然语言处理任务中的卓越表现而受到广泛关注。然而,它们带来了巨大的计算和内存成本。此外,它们本质上是黑盒模型,难以解释和解读。在本文中,我们提出了Optimus BERT压缩与可解释性(OBCE)方法,利用持久同调为BERT模型带来可解释性,旨在通过研究神经元输出的拓扑特征来衡量每个神经元的重要性。因此,我们可以通过减少参数数量(BERT Base减少至原始参数的58.47%,BERT Large减少至52.3%)来显著压缩BERT。我们在标准GLUE基准上评估了我们的方法,与最先进的技术进行比较,并取得了出色的结果。因此,我们的方法可以通过提供神经元可解释性和减小模型规模来“白化”BERT模型,使其更适合部署在资源受限的设备上。

英文摘要:

Large Language Models (LLMs) like BERT have gained significant prominence due to their remarkable performance in various natural language processing tasks. However, they come with substantial computational and memory costs. Additionally, they are essentially black-box models, challenging to explain and interpret. In this article, we propose Optimus BERT Compression and Explainability (OBCE), a methodology to bring explainability to BERT models using persistent homology, aiming to measure the importance of each neuron by studying the topological characteristics of their outputs. As a result, we can compress BERT significantly by reducing the number of parameters (58.47% of the original parameters for BERT Base, 52.3% for BERT Large). We evaluated our methodology on the standard GLUE Benchmark, comparing the results with state-of-the-art techniques and achieving outstanding results. Consequently, our methodology can "whiten" BERT models by providing explainability to its neurons and reducing the model's size, making it more suitable for deployment on resource-constrained devices.

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

↑