arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.08194cs.DBcs.LG
收藏

Magneto:结合小型与大型语言模型进行模式匹配

Magneto: Combining Small and Large Language Models for Schema Matching

New York University;Federal University of Technology Paran\' a

Yurong Liu, Eduardo Pena, Aecio Santos, Eden Wu, Juliana Freire

AI总结:

针对模式匹配中SLM需训练数据、LLM计算成本高的问题,提出两阶段框架Magneto,结合二者优势,还构建了生物医学新基准,实验证明其可扩展且精度高。

摘要:

语言模型的最新进展为解决复杂的模式匹配任务带来了新机遇。已有研究提出了多种模式匹配方法,证明了语言模型的实用性,但也暴露了重要局限性:小型语言模型(SLMs)需要训练数据(获取成本高且难度大),而大型语言模型(LLMs)通常计算成本高昂,还需应对上下文窗口带来的约束。我们提出Magneto,一种兼具成本效益与准确性的模式匹配方案,它结合了SLMs与LLMs的优势以弥补二者的不足。通过将模式匹配流水线构建为检索与重排序两个阶段,Magneto可采用计算高效的基于SLM的策略生成候选匹配,再由LLMs进行重排序,从而在不损失匹配精度的前提下缩短运行时间。我们提出一种自监督方法来微调SLMs,该方法利用LLMs生成句法多样的训练数据,同时提出了适用于重排序的提示策略。我们还与领域专家合作构建了一个新基准,其中包含真实的生物医学数据集,为模式匹配方法带来了新的挑战。通过在新基准与现有基准上开展详细的实验评估,我们证明Magneto具备可扩展性,且在不同领域的数据集上均能达到高精度。

英文摘要:

Recent advances in language models opened new opportunities to address complex schema matching tasks. Schema matching approaches have been proposed that demonstrate the usefulness of language models, but they have also uncovered important limitations: Small language models (SLMs) require training data (which can be both expensive and challenging to obtain), and large language models (LLMs) often incur high computational costs and must deal with constraints imposed by context windows. We present Magneto, a cost-effective and accurate solution for schema matching that combines the advantages of SLMs and LLMs to address their limitations. By structuring the schema matching pipeline in two phases, retrieval and reranking, Magneto can use computationally efficient SLM-based strategies to derive candidate matches which can then be reranked by LLMs, thus making it possible to reduce runtime without compromising matching accuracy. We propose a self-supervised approach to fine-tune SLMs which uses LLMs to generate syntactically diverse training data, and prompting strategies that are effective for reranking. We also introduce a new benchmark, developed in collaboration with domain experts, which includes real biomedical datasets and presents new challenges to schema matching methods. Through a detailed experimental evaluation, using both our new and existing benchmarks, we show that Magneto is scalable and attains high accuracy for datasets from different domains.

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

↑