arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.15516cs.CL
收藏

语言模型中高效文本常识集成的免费午餐

Free Lunch for Efficient Textual Commonsense Integration in Language Models

Shanghai University of Finance and Economics(上海财经大学);University of Michigan(密歇根大学)

Wanyun Cui, Xingran Chen

AI总结:

本文提出一种基于谱聚类解决图k-割问题的批次划分方法,将具有相似常识描述的训练样本分组以复用编码,在不修改模型的前提下降低文本常识集成的计算成本并保持性能。

摘要:

近年来,出现了旨在提供更细致、上下文更丰富的知识的文本常识知识库。将外部常识集成到语言模型中已被证明是推动众多自然语言处理任务达到最先进水平的关键因素。然而,与编码传统符号知识相比,融入文本常识描述的计算开销很大。在本文中,我们提出了一种在不修改模型的情况下提高其效率的方法。我们将具有相似常识描述的训练样本分组到同一个批次中,从而在多个样本之间复用编码后的描述。一个关键观察是,批次划分的上界可以归约为经典的图k-割问题。因此,我们提出了一种基于谱聚类的算法来解决该问题。大量实验表明,所提出的批次划分方法在保持性能的同时有效降低了计算成本。效率提升在更大的数据集和具有更大内存容量的设备上更为显著,证明了其在大规模应用中的实用价值。

英文摘要:

Recent years have witnessed the emergence of textual commonsense knowledge bases, aimed at providing more nuanced and context-rich knowledge. The integration of external commonsense into language models has been shown to be a key enabler in advancing the state-of-the-art for a wide range of NLP tasks. However, incorporating textual commonsense descriptions is computationally expensive, as compared to encoding conventional symbolic knowledge. In this paper, we propose a method to improve its efficiency without modifying the model. We group training samples with similar commonsense descriptions into a single batch, thus reusing the encoded description across multiple samples. One key observation is that the upper bound of batch partitioning can be reduced to the classic {\it graph k-cut problem}. Consequently, we propose a spectral clustering-based algorithm to solve this problem. Extensive experiments illustrate that the proposed batch partitioning approach effectively reduces the computational cost while preserving performance. The efficiency improvement is more pronounced on larger datasets and on devices with more memory capacity, attesting to its practical utility for large-scale applications.

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

↑