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

结构感知的语言模型预训练改进结构化数据的稠密检索

Structure-Aware Language Model Pretraining Improves Dense Retrieval on Structured Data

Xinze Li, Zhenghao Liu, Chenyan Xiong, Shi Yu, Yu Gu, Zhiyuan Liu, Ge Yu

AI总结:

本文提出 SANTA 模型,通过结构化数据对齐和掩码实体预测两种预训练方法使语言模型具备结构感知能力,在代码搜索和产品搜索上达到最先进水平并具备良好零样本性能。

摘要:

本文提出了结构感知稠密检索(SANTA)模型,该模型将用户查询和结构化数据编码到一个统一的嵌入空间中,用于检索结构化数据。SANTA 提出了两种预训练方法,使语言模型具备结构感知能力,并学习结构化数据的有效表示:1)结构化数据对齐,利用结构化数据与非结构化数据之间天然的对齐关系进行结构感知预训练。它以对比方式训练语言模型来表示多模态文本数据,并教会模型为非结构化文本区分匹配的结构化数据。2)掩码实体预测,设计了一种面向实体的掩码策略,要求语言模型填充被掩码的实体。我们的实验表明,SANTA 在代码搜索和产品搜索上达到了最先进水平,并在零样本设置下取得了令人信服的结果。SANTA 通过对齐结构化和非结构化数据对来学习多模态文本数据的定制化表示,并通过掩码和预测结构化数据中的实体来捕获结构语义。所有代码可在 https://github.com/OpenMatch/OpenMatch 获取。

英文摘要:

This paper presents Structure Aware Dense Retrieval (SANTA) model, which encodes user queries and structured data in one universal embedding space for retrieving structured data. SANTA proposes two pretraining methods to make language models structure-aware and learn effective representations for structured data: 1) Structured Data Alignment, which utilizes the natural alignment relations between structured data and unstructured data for structure-aware pretraining. It contrastively trains language models to represent multi-modal text data and teaches models to distinguish matched structured data for unstructured texts. 2) Masked Entity Prediction, which designs an entity-oriented mask strategy and asks language models to fill in the masked entities. Our experiments show that SANTA achieves state-of-the-art on code search and product search and conducts convincing results in the zero-shot setting. SANTA learns tailored representations for multi-modal text data by aligning structured and unstructured data pairs and capturing structural semantics by masking and predicting entities in the structured data. All codes are available at https://github.com/OpenMatch/OpenMatch.

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

↑