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

用于排序和表征基于Transformer的文本嵌入的统计深度

Statistical Depth for Ranking and Characterizing Transformer-Based Text Embeddings

Dartmouth College(达特茅斯学院)

Parker Seegmiller, Sarah Masud Preum

AI总结:

本文提出基于Transformer的文本嵌入(TTE)统计深度,用于排序文本中心性并衡量分布,通过秩和检验比较语料库,在上下文学习提示选择任务中提升性能,并揭示了合成数据增强引起的分布偏移。

摘要:

基于Transformer的文本嵌入的普及需要更好的统计工具来衡量此类嵌入的分布。其中一种工具是一种通过中心性对语料库中的文本进行排序的方法,即为每个文本分配一个数字,表示该文本对整个语料库的代表性。然而,高维文本表示的内在由内向外的排序并非易事。统计深度是一种通过对相对于某些观察到的k维分布的中心性进行测量来对k维对象进行排序的函数。我们采用统计深度来衡量基于Transformer的文本嵌入的分布,即基于Transformer的文本嵌入(TTE)深度,并介绍了该深度在NLP流程中建模和分布推断的实际应用。我们首先定义了TTE深度和相关的秩和检验,用于确定两个语料库在嵌入空间中是否存在显著差异。然后,我们将TTE深度用于上下文学习提示选择任务,表明该方法在六个文本分类任务中可靠地提升了性能,优于统计基线方法。最后,我们使用TTE深度和相关的秩和检验来表征合成语料库和人类生成语料库的分布,表明五个最近的合成数据增强过程引起了可测量的分布偏移,偏离了相关的人类生成文本。

英文摘要:

The popularity of transformer-based text embeddings calls for better statistical tools for measuring distributions of such embeddings. One such tool would be a method for ranking texts within a corpus by centrality, i.e. assigning each text a number signifying how representative that text is of the corpus as a whole. However, an intrinsic center-outward ordering of high-dimensional text representations is not trivial. A statistical depth is a function for ranking k-dimensional objects by measuring centrality with respect to some observed k-dimensional distribution. We adopt a statistical depth to measure distributions of transformer-based text embeddings, transformer-based text embedding (TTE) depth, and introduce the practical use of this depth for both modeling and distributional inference in NLP pipelines. We first define TTE depth and an associated rank sum test for determining whether two corpora differ significantly in embedding space. We then use TTE depth for the task of in-context learning prompt selection, showing that this approach reliably improves performance over statistical baseline approaches across six text classification tasks. Finally, we use TTE depth and the associated rank sum test to characterize the distributions of synthesized and human-generated corpora, showing that five recent synthetic data augmentation processes cause a measurable distributional shift away from associated human-generated text.

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

↑