Intermediate Distillation: Data-Efficient Distillation from Black-Box LLMs for Information Retrieval
Zizhong Li, Haopeng Zhang, Jiawei Zhang
TL;DR
This work addresses data efficiency in distilling information from black-box LLMs for information retrieval within RAG. It introduces Intermediate Distillation, a two-stage pipeline that first distills LLM ranking into a ranker via ListMLE, then distills the ranker into a retriever by KL-divergence alignment, using only ranking signals rather than LLM probabilities. The approach achieves strong retrieval gains with only around 1k training examples and improves QA performance when integrated into RAG, demonstrating practical efficiency and effectiveness. The study also analyzes data-type and training-set-size effects, showing robust gains even with limited supervision and highlighting the importance of the re-ranking signal over ground-truth placement. Overall, the method offers a scalable, resource-efficient path to leverage black-box LLMs for IR tasks.
Abstract
Recent research has explored distilling knowledge from large language models (LLMs) to optimize retriever models, especially within the retrieval-augmented generation (RAG) framework. However, most existing training methods rely on extracting supervision signals from LLMs' weights or their output probabilities, which is not only resource-intensive but also incompatible with black-box LLMs. In this paper, we introduce \textit{Intermediate Distillation}, a data-efficient knowledge distillation training scheme that treats LLMs as black boxes and distills their knowledge via an innovative LLM-ranker-retriever pipeline, solely using LLMs' ranking generation as the supervision signal. Extensive experiments demonstrate that our proposed method can significantly improve the performance of retriever models with only 1,000 training instances. Moreover, our distilled retriever model significantly boosts performance in question-answering tasks within the RAG framework, demonstrating the potential of LLMs to economically and effectively train smaller models.
