Augmented Embeddings for Custom Retrievals
Preprint
Abstract
Information retrieval involves selecting artifacts from a corpus that are most relevant to a given search query. The flavor of retrieval typically used in classical applications can be termed as homogeneous and relaxed, where queries and corpus elements are both natural language (NL) utterances (homogeneous) and the goal is to pick most relevant elements from the corpus in the Top-K, where K is large, such as 10, 25, 50 or even 100 (relaxed). Recently, retrieval is being used extensively in preparing prompts for large language models (LLMs) to enable LLMs to perform targeted tasks. These new applications of retrieval are often heterogeneous and strict -- the queries and the corpus contain different kinds of entities, such as NL and code, and there is a need for improving retrieval at Top-K for small values of K, such as K=1 or 3 or 5. Current dense retrieval techniques based on pretrained embeddings provide a general-purpose and powerful approach for retrieval, but they are oblivious to task-specific notions of similarity of heterogeneous artifacts. We introduce Adapted Dense Retrieval, a mechanism to transform embeddings to enable improved task-specific, heterogeneous and strict retrieval. Adapted Dense Retrieval works by learning a low-rank residual adaptation of the pretrained black-box embedding. We empirically validate our approach by showing improvements over the state-of-the-art general-purpose embeddings-based baseline.Keywords
All Related Versions
This publication has 20 references indexed in Scilit:
- Large Language Models for Information Retrieval: A SurveyACM Transactions on Information Systems, 2025
- Self-Supervised Learning from Images with a Joint-Embedding Predictive Architecture2023
- Neural ranking models for document retrievalInformation Retrieval Journal, 2021
- Learning to mine aligned code and natural language pairs from stack overflow2018
- From word embeddings to document similarities for improved information retrieval in software engineering2016
- A Survey of Automatic Query Expansion in Information RetrievalACM Computing Surveys, 2012
- Adaptive relevance feedback in information retrieval2009
- Learning to rank2007
- Adapting ranking SVM to document retrieval2006
- “Is this document relevant?…probably”ACM Computing Surveys, 1998