Modular Retrieval for Generalization and Interpretation

Juhao Liang, Chen Zhang, Zhengyang Tang, Jie Fu, Dawei Song, Benyou WangarXiv 2023 · DOI

Abstract

Traditional Information Retrieval (IR) systems often require full model fine-tuning for specific tasks, leading to high resource consumption and poor generalization to unseen domains. We present REMOP (REtrieval with MOdular Prompt Tuning), a paradigm that decomposes retrieval tasks into reusable "Lego-like" attribute modules. By employing Deep Prompt Tuning and module arithmetic, REMOP enables zero-shot generalization to complex, multi-attribute retrieval tasks without additional training, while maintaining interpretability and parameter efficiency.

Introduction

The current state-of-the-art in Information Retrieval (IR) relies heavily on Large Language Models (LLMs). However, these models suffer from a "one-to-one" scaling problem: achieving peak performance on a specific domain (e.g., legal or medical) typically necessitates fine-tuning the entire model. This approach is computationally expensive and fails to generalize when faced with tasks that combine multiple domains or languages. Furthermore, the "black box" nature of these models makes it difficult to isolate specific domain knowledge.

To address these challenges, researchers have introduced REMOP. This system treats retrieval capabilities as modular components that can be composed to solve new challenges without further training.

Conceptual overview of modular retrieval showing how modules are composed for unseen tasks.

Methodology

REMOP utilizes a dual-encoder framework enhanced by Deep Prompt Tuning (DPT). The core methodology involves four key innovations:

  1. Separation of Concerns: The system distinguishes between "General Prompts," which capture fundamental retrieval logic, and "Attribute Prompts," which encapsulate domain-specific knowledge (e.g., Science, Wikipedia, Medical).
  2. Instruction Decomposition: Natural language instructions are automatically mapped to specific attribute labels. For instance, a request for "scientific papers to answer a question" is decomposed into Science and QA attributes.
  3. Module Arithmetic: The framework defines mathematical operations for prompts. This includes Addition (weighted averaging of modules to combine capabilities) and Subtraction (isolating pure attributes by removing shared knowledge from a compound module).
  4. Two-Stage Training: Initially, a general prompt is trained on a large-scale dataset (MS-MARCO). Subsequently, attribute prompts are jointly trained with the general prompt to align specific knowledge with the backbone model.

Experimental Results

The system was evaluated using the BEIR benchmark to test zero-shot generalization. REMOP achieved an average NDCG@10 of 35.8, matching the performance of a fully fine-tuned vanilla DPR model while using significantly fewer trainable parameters—approximately 2.3M per module versus 110M for the full model.

Crucially, REMOP outperformed standard single-prompt approaches (33.8 NDCG), validating the effectiveness of modular composition. The authors also successfully demonstrated "Module Subtraction," proving that complex modules can be decomposed back into functional individual components (e.g., deriving a pure "Fact-Checking" module from a "Wikipedia + Fact-Checking" composite).

Discussion and Conclusion

REMOP offers a scalable and interpretable path forward for IR. By viewing learned prompts as accumulated gradients, the system allows for "plug-and-play" generalization. While performance remains dependent on the underlying pre-trained language model, the ability to update or inspect individual modules without retraining the entire system represents a significant step toward more transparent and efficient retrieval engines. Future work will focus on automating instruction mapping for complex queries and managing interference between a larger number of modules.

Summary updated

BibTeX
@misc{liang2023modular,
  author = {Juhao Liang and Chen Zhang and Zhengyang Tang and Jie Fu and Dawei Song and Benyou Wang},
  title = {{Modular Retrieval for Generalization and Interpretation}},
  year = {2023},
  eprint = {2303.13419},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.13419},
}
Figure