Saved in:
Bibliographic Details
Main Authors: Hallee, Logan, Kapur, Rohan, Patel, Arjun, Gleghorn, Jason P., Khomtchouk, Bohdan
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2401.15713
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909431782965248
author Hallee, Logan
Kapur, Rohan
Patel, Arjun
Gleghorn, Jason P.
Khomtchouk, Bohdan
author_facet Hallee, Logan
Kapur, Rohan
Patel, Arjun
Gleghorn, Jason P.
Khomtchouk, Bohdan
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2401_15713
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Contrastive Learning and Mixture of Experts Enables Precise Vector Embeddings
Hallee, Logan
Kapur, Rohan
Patel, Arjun
Gleghorn, Jason P.
Khomtchouk, Bohdan
Machine Learning
Artificial Intelligence
Computation and Language
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.
title Contrastive Learning and Mixture of Experts Enables Precise Vector Embeddings
topic Machine Learning
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2401.15713