[Paper Review] A Multi-Task Embedder For Retrieval Augmented LLMs
The paper proposes LLM-Embedder, a unified embedding model trained with a multi-task, reward-guided, distillation-driven framework to enhance retrieval augmentation for LLMs across knowledge enhancement, long-context modeling, tool learning, and conversational search.
LLMs confront inherent limitations in terms of its knowledge, memory, and action. The retrieval augmentation stands as a vital mechanism to address these limitations, which brings in useful information from external sources to augment the LLM. However, existing retrieval methods encounter two pressing issues. On one hand, the general retrievers are not properly optimized for retrieval augmentation hence exhibit limited effectiveness; on the other hand, the task-specific retrievers excel in the targeted retrieval augmentation scenario, while lack the versatility to handle diverse scenarios. In this work, we propose extbf{LLM-Embedder} for the unified support of diverse retrieval augmentation scenarios. Our method presents three technical contributions. Firstly, we introduce a new extit{reward formulation}, namely {rank-aware reward}. It exploits the ranking position of the desired output among $N$ sampled outputs from the LLM, which leads to fine-grained and robust computation of reward from the LLM's feedback. Secondly, we design a novel extit{distillation objective}, called graded distillation. It incorporates both the absolute value and the relative order of the reward for more sufficient utilization of the LLM's feedback. Thirdly, we systematically optimize the extit{multi-task learning}, which effectively unifies the multiple retrieval functionalities into one model. In our experiment, LLM-Embedder notably improves the LLM's performances in various downstream tasks, and outperforms both general and task-specific retrievers with a substantial advantage.
Motivation & Objective
- Motivate and address three intrinsic boundaries of LLMs (knowledge, memory, capability) by leveraging retrieval augmentation.
- Propose a unified embedding model (LLM-Embedder) that supports diverse retrieval augmentation tasks with one backbone.
- Develop a robust training methodology combining LLM-based rewards, stabilized distillation, instruction-based fine-tuning, and homogeneous in-batch negatives.
- Demonstrate that LLM-Embedder outperforms general-purpose and task-specific retrievers across multiple retrieval scenarios.
Proposed method
- Train a unified embedding model (LLM-Embedder) using diverse data sources: QA (MSMARCO, Natural Questions), conversational search (QReCC), tool learning (ToolLLM), instruction tuning (FLAN, UPRISE), and generation/history data (Books3, ArXiv, CodeParrot, Multi-Session Chat).
- Use a composite supervision signal including hard labels and LLM-derived rewards to guide training (Equation 1 for reward).
- Apply contrastive learning with instruction-based fine-tuning (task-specific prompts I_t) and homogeneous in-batch negative sampling to improve discriminative power.
- Conduct stabilized distillation by combining soft reward-based weights with hard ranking labels to mitigate reward fluctuations (Equation 3).
- Utilize KL-divergence-based distillation to align embedding-based candidate distributions with LLM-generated rewards, with a top-down re-ranking to stabilize signals.
- Demonstrate retrieval augmentation workflows for knowledge enhancement, long-context modeling, in-context learning, tool learning, and conversational search.
Experimental results
Research questions
- RQ1RQ1: Can LLM-Embedder comprehensively support diverse retrieval augmentation scenarios for LLMs?
- RQ2RQ2: What is the impact of LLM-Embedder on each individual retrieval scenario?
- RQ3RQ3: What factors influence the empirical performance of LLM-Embedder?
- RQ4RQ4: How does a unified embedding model compare to general-purpose and task-specific retrievers across benchmarks?
Key findings
- LLM-Embedder consistently improves LLM performance across knowledge, memory, and instruction-following tasks compared to None and many baselines.
- It outperforms both general embedding models (e.g., Contriever, RetroMAE-BEIR, BGE) and several task-specific retrievers (e.g., AAR, LLM-R, API-Retriever) in multiple scenarios.
- Task-specific retrievers can underperform when applied outside their optimized scenario, whereas LLM-Embedder maintains competitive performance across diverse tasks.
- Knowledge enhancement benefits from higher retrieval accuracy, with more pronounced gains on knowledge-intensive datasets like PopQA.
- In-context learning and long-context modeling show consistent gains when using retrieved demonstrations and memory chunks, respectively.
- Long-context scenarios (conversation and language modeling) show improved perplexity and retrieval-assisted metrics, with tool learning and conversational search evaluated via ranking metrics (NDCG).
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.