面向表格数据处理的字符串条目向量化:更大的语言模型何时更优?
Vectorizing string entries for data processing on tables: when are larger language models better?
AI总结:
该研究针对表格字符串向量化场景,提出列表征方法区分脏类别与多样化条目场景,发现大语言模型仅在多样化条目场景下更具优势,且微调可进一步提升嵌入效果。
摘要:
当前已有越来越多高效的基于数值向量的数据处理流水线,例如大多数机器学习模型,或是用于快速相似性搜索的向量数据库,这些系统都需要将数据转换为数值形式。尽管这种转换对于简单的数值型和分类型条目很容易实现,但数据库中充斥着文本条目,例如名称或描述。在大语言模型时代,考虑到更大的模型会带来更高的运维复杂度,对表格条目进行向量化的最佳策略是什么?我们在14项表格分析任务(同时改变训练规模)以及一项模糊连接基准测试中研究了语言模型的优势。我们提出了一种列的简单表征方法,揭示了两种场景:1)脏类别场景,即各条目间的字符串存在大量相似性;与之相对的2)多样化条目场景。对于脏类别场景,预训练语言模型相较于更简单的字符串模型几乎没有带来增益。对于多样化条目场景,我们证明更大的语言模型能提升数据处理效果。针对这类场景,我们探究了复杂度与性能的权衡,结果表明其与经典文本嵌入的权衡规律一致:更大的模型通常表现更好,但针对嵌入目的对其进行微调是有益的。
英文摘要:
There are increasingly efficient data processing pipelines that work on vectors of numbers, for instance most machine learning models, or vector databases for fast similarity search. These require converting the data to numbers. While this conversion is easy for simple numerical and categorical entries, databases are strife with text entries, such as names or descriptions. In the age of large language models, what's the best strategies to vectorize tables entries, baring in mind that larger models entail more operational complexity? We study the benefits of language models in 14 analytical tasks on tables while varying the training size, as well as for a fuzzy join benchmark. We introduce a simple characterization of a column that reveals two settings: 1) a dirty categories setting, where strings share much similarities across entries, and conversely 2) a diverse entries setting. For dirty categories, pretrained language models bring little-to-no benefit compared to simpler string models. For diverse entries, we show that larger language models improve data processing. For these we investigate the complexity-performance tradeoffs and show that they reflect those of classic text embedding: larger models tend to perform better, but it is useful to fine tune them for embedding purposes.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。