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

对比学习与混合专家实现精确的向量嵌入

Contrastive Learning and Mixture of Experts Enables Precise Vector Embeddings

Center for Bioinformatics and Computational Biology, University of Delaware(特拉华大学生物信息与计算生物学中心);University of Chicago(芝加哥大学);The College of the University of Chicago(芝加哥大学学院);Department of Biomedical Engineering, University of Delaware(特拉华大学生物医学工程系);Luddy School of Informatics, Computing, and Engineering, Indiana University(印第安纳大学勒迪信息学、计算与工程学院)

Logan Hallee, Rohan Kapur, Arjun Patel, Jason P. Gleghorn, Bohdan Khomtchouk

AI总结:

本文提出基于共被引数据集和对比学习,将Mixture of Experts扩展应用于预训练BERT,显著提升了科学文本在多领域的向量嵌入精度与通用性。

摘要:

Transformer神经网络的进步显著提升了句子相似性模型的能力,但它们在处理高度判别性任务时仍存在困难,并且可能对科学文献等重要文档产生次优表示。随着对检索增强和搜索的依赖日益增加,将多样化文档表示为简洁且具有描述性的向量至关重要。本文通过使用共被引作为相似性度量来汇编细分数据集,聚焦于生物医学领域,从而改进了科学文本的向量嵌入。我们将一种新颖的Mixture of Experts (MoE)扩展流水线应用于预训练的BERT模型,其中每个多层感知机部分都被扩大并复制为多个独立的专家。我们的MoE变体在包含N个专门专家的N个科学领域上表现良好,而标准BERT模型一次只能在一个领域上表现优异。值得注意的是,仅将单个Transformer块扩展为MoE就能获得在每一层进行完整MoE扩展所带来收益的85%。这为用于数值化表示多样化输入的通用且高效的One-Size-Fits-All Transformer网络带来了希望。我们的方法标志着表示学习的进步,并为增强向量数据库搜索和编译带来了希望。

英文摘要:

The advancement of transformer neural networks has significantly elevated the capabilities of sentence similarity models, but they still struggle with highly discriminative tasks and may produce sub-optimal representations of important documents like scientific literature. With the increased reliance on retrieval augmentation and search, representing diverse documents as concise and descriptive vectors is crucial. This paper improves upon the vectors embeddings of scientific text by assembling niche datasets using co-citations as a similarity metric, focusing on biomedical domains. We apply a novel Mixture of Experts (MoE) extension pipeline to pretrained BERT models, where every multi-layer perceptron section is enlarged and copied into multiple distinct experts. Our MoE variants perform well over $N$ scientific domains with $N$ dedicated experts, whereas standard BERT models excel in only one domain at a time. Notably, extending just a single transformer block to MoE captures 85% of the benefit seen from full MoE extension at every layer. This holds promise for versatile and efficient One-Size-Fits-All transformer networks for numerically representing diverse inputs. Our methodology marks advancements in representation learning and holds promise for enhancing vector database search and compilation.

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

↑