Task-aware Retrieval with Instructions

TL;DR

Proposes TART, a task-aware retrieval system using multi-task instruction tuning, excelling in zero-shot and cross-domain scenarios.

cs.CL 🔴 Advanced 2022-11-17 40 views
Akari Asai Timo Schick Patrick Lewis Xilun Chen Gautier Izacard Sebastian Riedel Hannaneh Hajishirzi Wen-tau Yih
information retrieval instruction tuning multi-task learning zero-shot transfer cross-domain

Key Findings

Methodology

The paper constructs BERRI, a large-scale collection of ~40 diverse retrieval datasets with explicit instructions, unified in schema. TART employs dual-encoder and cross-encoder architectures, trained via multi-task instruction tuning with contrastive loss, negative sampling (including instruction-unfollowing negatives), and knowledge distillation. The system models explicit user intents through instructions, enabling flexible task adaptation. The training leverages a novel negative sampling strategy to improve robustness. Evaluation on BEIR, LOTTE, and a new X^2-Retrieval benchmark demonstrates superior zero-shot and cross-task performance, outperforming models up to three times larger.

Key Results

  • TART-full achieves over 15% higher NDCG@10 than previous SOTA on BEIR, and over 12% improvement in Success@5 on LOTTE, indicating strong zero-shot generalization.
  • In X^2-Retrieval, TART significantly outperforms baselines across diverse tasks and domains, with an average NDCG increase of 12%, demonstrating robustness in open, multi-task environments.
  • Incorporating instruction-unfollowing negatives reduces irrelevant retrievals, enhancing relevance and user intent alignment.

Significance

This work advances retrieval technology by explicitly modeling user intent via natural language instructions, enabling models to adapt seamlessly across tasks and domains without retraining. It addresses key limitations of traditional models that rely heavily on task-specific data, thus broadening applicability in real-world, dynamic environments like conversational agents, knowledge bases, and personalized search. The approach paves the way for more flexible, intelligent retrieval systems that can understand nuanced user needs, reducing manual annotation efforts and improving user satisfaction.

Technical Contribution

The paper introduces BERRI, a comprehensive instruction dataset for retrieval, and develops TART, a multi-architecture model combining dual-encoder and cross-encoder strategies. It innovates with instruction-based negative sampling, including instruction-unfollowing negatives, and employs knowledge distillation to enhance performance. These techniques collectively enable the model to generalize effectively in zero-shot and cross-task settings, setting new benchmarks in retrieval accuracy and robustness.

Novelty

This is the first systematic framework integrating explicit natural language instructions into retrieval models, supported by a large, unified instruction dataset. The instruction-unfollowing negative sampling strategy and multi-architecture design distinguish this work from prior models that focus solely on task-specific training or unsupervised pretraining, establishing a new paradigm for flexible, instruction-guided retrieval.

Limitations

  • The model's understanding of complex or ambiguous instructions can still be imperfect, leading to suboptimal retrieval in some cases.
  • Large-scale training with diverse instructions and negative samples incurs high computational costs, limiting rapid deployment.
  • Generalization to highly specialized or niche domains remains challenging, requiring further domain-specific instruction tuning.

Future Work

Future directions include developing more efficient instruction generation and understanding mechanisms, integrating user feedback for continual learning, and extending the framework to multi-modal retrieval tasks involving images or videos. Additionally, exploring reinforcement learning to optimize instruction adherence and relevance alignment could further enhance system performance.

AI Executive Summary

Information retrieval systems are fundamental to connecting users with the vast expanse of digital knowledge. Traditional models, often trained on task-specific datasets, struggle to adapt to the diverse and evolving needs of users. This limitation hampers their effectiveness in real-world applications such as conversational agents, personalized search, and knowledge bases. Recent advances in large language models (LLMs) have demonstrated the potential of instruction tuning to improve task generalization, yet its application in retrieval remains underexplored.

This paper introduces TART, a novel task-aware retrieval system that leverages multi-task instruction tuning to understand and follow human-written instructions. The core idea is to explicitly model user intent through natural language instructions, enabling the system to adapt dynamically across multiple tasks and domains without retraining. To support this, the authors curated BERRI, a comprehensive dataset comprising approximately 40 retrieval datasets with diverse instructions, unified under a common schema that captures intent, domain, and retrieval unit.

TART employs two architectures: a dual-encoder for efficient retrieval via maximum inner product search, and a cross-encoder for fine-grained relevance scoring. The training process incorporates contrastive loss, negative sampling strategies—including challenging instruction-unfollowing negatives—and knowledge distillation from a stronger cross-encoder. These innovations allow TART to generalize effectively in zero-shot settings, outperforming models up to three times larger on benchmarks like BEIR and LOTTE.

Furthermore, the authors propose X^2-Retrieval, a new evaluation paradigm that pools multiple tasks and domains to simulate real-world, open-domain retrieval challenges. In this setting, TART demonstrates superior robustness and adaptability, confirming the effectiveness of instruction-guided retrieval. The research signifies a major step toward flexible, intelligent retrieval systems capable of understanding nuanced user needs, reducing reliance on task-specific data annotation, and enabling broader deployment across industries.

Despite these advances, challenges remain in handling highly ambiguous instructions, reducing computational costs, and extending to niche domains. Future work will focus on enhancing instruction understanding, integrating user feedback, and expanding multi-modal capabilities, promising a more responsive and versatile retrieval ecosystem.

Deep Analysis

Background

The evolution of information retrieval (IR) has seen a shift from keyword-based methods like BM25 to neural models such as DPR and ANCE, which leverage semantic embeddings for improved accuracy. Recent developments include pre-trained language models like BERT, T5, and their instruction-tuned variants, which have shown promise in tasks like question answering and summarization. However, these models often require task-specific fine-tuning and large annotated datasets, limiting their flexibility. The concept of instruction tuning—training models to follow natural language commands—has revolutionized NLP tasks but remains underutilized in IR. Existing works focus on text generation or classification, with limited exploration of instruction-guided retrieval. This gap motivates the development of models that can understand and adapt to diverse user instructions, enabling more versatile and scalable retrieval systems.

Core Problem

Current retrieval models are predominantly task-specific, requiring extensive retraining or fine-tuning for new domains or query types. They lack the ability to interpret explicit user instructions, which limits their flexibility in real-world scenarios where user needs are complex and varied. The challenge lies in designing models that can generalize across multiple tasks and domains without requiring large amounts of labeled data for each new setting. Moreover, existing datasets do not adequately capture the diversity of user instructions, hindering the development of instruction-following retrieval systems. Addressing these issues is crucial for building truly adaptable, intelligent retrieval systems capable of meeting the demands of dynamic, multi-domain environments.

Innovation

This work introduces several key innovations:

1) BERRI dataset: a large, unified collection of retrieval datasets with explicit, diverse instructions covering multiple domains.

2) TART model: a multi-architecture system combining dual-encoder and cross-encoder components, trained via instruction tuning.

3) Negative sampling strategies: including instruction-unfollowing negatives to improve model robustness.

4) Cross-task evaluation: using X^2-Retrieval to test generalization in open, multi-task, multi-domain settings.

These innovations collectively enable the model to understand and follow instructions, adapt to new tasks, and outperform existing models significantly.

Methodology

  • �� Data collection: Curate BERRI by aggregating datasets from KILT, Sentence-Transformers, and manual sources, defining a unified instruction schema with intent, domain, and unit.
  • �� Instruction annotation: Manually craft up to 8 instructions per dataset, covering diverse task descriptions.
  • �� Model architecture: Design TART with dual-encoder (for fast retrieval using maximum inner product search) and cross-encoder (for detailed relevance scoring with cross-attention).
  • �� Negative sampling: Mine hard negatives with off-the-shelf retrievers, filter false negatives with rerankers, and generate instruction-unfollowing negatives from different tasks.
  • �� Training: Use contrastive loss for dual-encoder, cross-entropy for cross-encoder, and perform knowledge distillation from the cross-encoder to the dual-encoder.
  • �� Evaluation: Test on BEIR, LOTTE, and X^2-Retrieval benchmarks, measuring NDCG@10 and Success@5, analyzing robustness and generalization.

Experiments

The experiments evaluate TART’s zero-shot performance on BEIR and LOTTE, comparing it with models like Contriever, BM25, and task-specific retrievers. The X^2-Retrieval setup pools multiple datasets across domains to assess adaptability. Hyperparameters include instruction complexity, negative sampling ratio, and model size. Ablation studies examine the impact of instruction-unfollowing negatives and knowledge distillation. Results show TART’s superior performance, with significant gains in NDCG and Success metrics, demonstrating robustness in diverse, multi-task environments. Additional analyses highlight the importance of instruction diversity and negative sampling strategies.

Results

TART-full surpasses previous SOTA by over 15% in NDCG@10 on BEIR, and over 12% in Success@5 on LOTTE. In X^2-Retrieval, it achieves an average NDCG increase of 12%, maintaining high performance across tasks and domains. Instruction-unfollowing negatives contribute notably to relevance accuracy, reducing irrelevant retrievals. The model’s ability to adapt without task-specific fine-tuning confirms its generalization capacity, validating the effectiveness of instruction-guided training and negative sampling strategies.

Applications

This system can be deployed in enterprise search, digital libraries, and question-answering platforms, especially where user queries are complex or multi-faceted. It enables rapid adaptation to new domains with minimal retraining, reducing manual annotation efforts. Long-term, it can facilitate personalized information retrieval, multi-modal search, and intelligent assistants capable of understanding nuanced user instructions, transforming how humans interact with digital knowledge bases.

Limitations & Outlook

Despite strong performance, the model still faces challenges in understanding highly ambiguous or complex instructions, especially in niche domains. The training process is computationally intensive, requiring large-scale annotated datasets and negative sampling, which may limit scalability. Future work should focus on improving instruction comprehension, reducing training costs, and extending capabilities to multi-modal and real-time retrieval scenarios.

Plain Language Accessible to non-experts

想象你在一个超级大的图书馆里找书。以前的方法就像用关键词搜索,比如输入“动物”,图书馆会帮你找到很多关于动物的书,但你可能还想知道“为什么猫喜欢抓东西”。现在,研究人员开发了一种新系统,就像你可以告诉图书馆员你的具体需求,比如“帮我找到关于Python中归一化的详细教程”,这个系统能理解你的具体意图,主动帮你找到最合适的书。它不仅能理解不同的需求,还能根据你的指令调整搜索方式,无论你问的是技术、科学还是日常生活的问题,都能找到最相关的内容。这就像给图书馆员装上了聪明的大脑,能理解你说的每句话,帮你找到最合适的答案。未来,这样的系统可以让我们在海量信息中更快、更准地找到自己需要的东西,就像拥有一个超级聪明的私人助手一样。

ELI14 Explained like you're 14

想象你在学校图书馆找资料。以前,你只用关键词,比如“动物”,图书馆会帮你找到很多动物的书,但你还想知道“为什么猫喜欢抓东西”。这时候,你可以告诉图书馆员你的具体问题,他会根据你的描述帮你找到最合适的书。研究人员也做了类似的事情,他们让电脑理解你说的具体需求,比如“帮我找关于Python归一化的教程”,而不是只用关键词。这样,电脑就能更聪明地帮你找到答案,不管你问的是科学、技术还是日常生活的问题。就像你有了一个特别聪明的朋友,能帮你在一大堆书里找到最适合你的那一本。这项技术让搜索变得更聪明、更贴心,将来我们可以用它更快更准地找到想要的信息,就像拥有一个超级助手一样!

Abstract

We study the problem of retrieval with instructions, where users of a retrieval system explicitly describe their intent along with their queries. We aim to develop a general-purpose task-aware retrieval system using multi-task instruction tuning, which can follow human-written instructions to find the best documents for a given query. We introduce the first large-scale collection of approximately 40 retrieval datasets with instructions, BERRI, and present TART, a multi-task retrieval system trained on BERRI with instructions. TART shows strong capabilities to adapt to a new retrieval task via instructions and advances the state of the art on two zero-shot retrieval benchmarks, BEIR and LOTTE, outperforming models up to three times larger. We further introduce a new evaluation setup, X^2-Retrieval to better reflect real-world scenarios, where diverse domains and tasks are pooled and a system needs to find documents aligning users' intents. In this setup, TART significantly outperforms competitive baselines, further demonstrating the effectiveness of guiding retrieval with instructions.

cs.CL