Method and system for training retrievers and rerankers using adapters
OwnerStéphane CLINCHANT, Carlos LASSANCE +2inventors
InventorsStéphane CLINCHANT, Carlos LASSANCE, Hervé DÉJEAN, Vaishali PAL
Life of this patent
Estimating the term…
Abstract
In a method for training a first-stage neural retriever, adapter layers are inserted into one or more transformer layers of a pretrained language model (PLM) in an encoder configured to receive one or more documents and generate a sparse representation for each of the documents. The first-stage retriever is trained on a downstream task to update one or more parameters of the inserted adapter layers.
Claims38
A computer-implemented method for training a first-stage neural retriever, the method comprising:
- inserting adapter layers into one or more transformer layers of a pretrained language model (PLM) in an encoder of the first-stage retriever, the encoder being configured to receive one or more documents and generate a sparse representation for each of the documents predicting term importance of the document over a vocabulary;
- training the first-stage retriever on a downstream task, wherein said training updates one or more parameters of the inserted adapter layers;
- and
- storing the updated one or more parameters of the inserted adapter layers.
A first-stage retriever for a neural information retrieval model comprising:
- a document encoder including a processor comprising a pretrained language model (PLM) layer including at least N transformer layers, the document encoder being configured to receive one or more documents and generate a sparse representation for each of the documents predicting term importance of the document over a vocabulary;
- a query encoder including a processor configured to receive a query and generate a representation of the query;
- and
- a comparator including a processor configured to compare the generated representation of the query to the generated representations of the one or more documents to generate a set of respective document scores and rank the one or more documents based on the generated set of document scores;
- wherein an adapter layer is inserted into each of 1 to N of the N transformer layers;
- and
- wherein the first-stage retriever is trained on an information retrieval task to update one or more parameters of the inserted adapter layers.
A computer-implemented method for information retrieval, the method comprising:
- generating, by a document encoder comprising a pretrained language model (PLM) layer including one or more transformer layers having inserted adapter layers, a sparse representation for each of one or more received documents predicting term importance of the document over a vocabulary;
- generating, by a query encoder, a representation of a received query over the vocabulary;
- comparing the generated representation of the query to the generated representations of the one or more documents to generate a set of respective document scores;
- and
- ranking the one or more documents based on the generated set of document scores;
- wherein the document encoder is trained on a downstream task by updating parameters of the inserted adapters while the PLM remains frozen.
Dependencies are inferred from the claim text.