INTERS: Unlocking the Power of Large Language Models in Search with Instruction Tuning

Yutao Zhu, Peitian Zhang, Chenghao Zhang, Yifei Chen, Binyu Xie, Zhicheng Dou, Zheng Liu, Ji-Rong Wen

Abstract

While Large Language Models (LLMs) have demonstrated remarkable capabilities in general-purpose reasoning and natural language generation, their performance in specialized Information Retrieval (IR) tasks often lags behind smaller, task-specific models. This discrepancy arises from a fundamental mismatch between the next-token prediction objective of pre-training and the nuanced requirements of search, such as query intent and document relevance. To bridge this gap, we introduce INTERS (INstruction Tuning datasEt foR Search), a comprehensive dataset comprising 20 search-related tasks. By fine-tuning models like LLaMA and Mistral on this collection, we demonstrate significant improvements in IR performance, establishing instruction tuning as a critical pathway for developing search-literate LLMs.

Introduction

Large Language Models are phenomenal at general conversation, yet they frequently stumble when applied to the domain of Information Retrieval. The core challenge is that IR-specific concepts—such as query expansion, document ranking, and intent classification—appear infrequently in general web corpora. Consequently, even powerful models like GPT-3.5 can be outperformed by specialized models like monoBERT on specific ranking tasks. Simple zero-shot or few-shot prompting often fails to provide sufficient context for the model to master these nuances. INTERS addresses this by providing a dedicated "search school" for LLMs, aligning their generative capabilities with the specific objectives of the search ecosystem.

Methodology

The construction of INTERS followed a rigorous four-step pipeline designed to maximize diversity and semantic understanding:

  1. Preprocessing: 43 existing IR datasets were gathered and converted into a unified JSONL format to ensure consistency across disparate sources.
  2. Template Collection: To prevent the models from merely memorizing patterns, 12 unique templates were manually authored for every dataset. This included "inverse" templates (e.g., asking a model to simplify a query rather than expand it) to enhance the model's robustness.
  3. Task Descriptions: Detailed descriptions were developed for each of the 20 tasks. These descriptions serve as a semantic bridge, helping the model recognize that different datasets (e.g., MS MARCO and SQuAD) may share underlying objectives like Reading Comprehension.
  4. Example Mixture: A final set of 200,000 examples was compiled using an "examples-proportional mixing strategy." This approach prevents larger datasets from dominating the training process, ensuring a balanced representation of all search tasks.

Using this dataset, several open-source backbones were fine-tuned: Falcon-1B, Minima-3B, Mistral-7B, and LLaMA-2-7B.

Task Taxonomy and Datasets

INTERS is a "meta-dataset" encompassing 20 tasks categorized into three fundamental pillars of search:

  • Query Understanding: Focuses on the user's side of the search interaction, including query description, expansion, reformulation, intent classification, clarification, matching, subtopic generation, and suggestion. Data sources include GOV2, TREC, and AOL.
  • Document Understanding: Focuses on the content being searched, including fact verification, summarization, reading comprehension, and conversational QA. Data sources include FEVER, CNN/DM, and SQuAD.
  • Query-Document Relationship: Focuses on the interaction between user intent and content, including argument retrieval, passage retrieval, bio-medical IR, citation prediction, entity retrieval, and duplicate question retrieval. Data sources include MS MARCO and the BEIR benchmark.

Key Insights and Discussion

The Role of Task Descriptions

One of the most significant findings was that the inclusion of detailed task descriptions during training drastically improved performance. These descriptions allow the model to generalize across different datasets by explaining the underlying logic of the task, rather than just the format.

Template Diversity vs. Memorization

Utilizing 12 different templates per dataset prevents the model from becoming a simple "template-matching" engine. Instead, it forces the model to process the instruction itself, leading to a deeper understanding of the search task.

Pointwise vs. Listwise Ranking

For models in the 1B–7B parameter range, pointwise ranking (evaluating one document at a time) significantly outperformed listwise ranking (ranking a list of documents simultaneously). This suggests that listwise ranking remains too complex for current 7B-class models to handle reliably, indicating a potential ceiling for smaller LLMs in complex ranking scenarios.

Cross-Task Synergy

Training on one category of tasks (e.g., intent classification) was found to improve performance on related but distinct tasks (e.g., query reformulation). This suggests that INTERS helps the model develop a broader, more cohesive "search logic."

Results

  • Performance Gains: INTERS-tuned models consistently outperformed their vanilla counterparts. Notably, on Query Understanding tasks, LLaMA-2-7B’s performance improved from a baseline score of approximately 10 to over 44.
  • Out-of-Domain Generalization: The models demonstrated impressive "zero-shot" capabilities on datasets and tasks not included in the fine-tuning set, proving that the instruction tuning provided a transferable understanding of IR principles.
  • Efficiency: Smaller models (e.g., Minima-3B) fine-tuned on INTERS were able to outperform much larger, untuned models on specific document-understanding tasks, highlighting the efficiency of targeted instruction tuning.

Conclusion and Future Work

INTERS demonstrates that targeted instruction tuning is essential for making LLMs effective in search contexts. While the current study focused on models up to 7B parameters and the reranking stage of search, future research will explore the impact of INTERS on larger models (13B–70B) and its application to the initial retrieval stage. By making the code and dataset publicly available, we aim to foster further innovation in the development of search-literate artificial intelligence.

Summary updated

BibTeX
@inproceedings{zhu2024inters,
  author = {Yutao Zhu and Peitian Zhang and Chenghao Zhang and Yifei Chen and Binyu Xie and Zhicheng Dou and Zheng Liu and Ji-Rong Wen},
  title = {{INTERS: Unlocking the Power of Large Language Models in Search with Instruction Tuning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.acl-long.154},
}
Figure