Skip to main content
QUICK REVIEW

[논문 리뷰] A Multi-Task Embedder For Retrieval Augmented LLMs

Peitian Zhang, Shitao Xiao|arXiv (Cornell University)|2023. 10. 11.
Topic ModelingComputer Science인용 수 18
한 줄 요약

이 논문은 LLM-Embedder를 제안합니다. 다중 작업, 보상 가이드, 증류 기반 프레임워크로 학습된 통합 임베딩 모델로, 지식 강화, 장문 맥락 모델링, 도구 학습, 대화형 검색 전반에 걸친 LLM의 검색 증강을 향상합니다.

ABSTRACT

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.

연구 동기 및 목표

  • 지식, 기억, 능력이라는 LLM의 세 가지 고유한 한계를 검색 증강을 활용하여 동기 부여하고 해결한다.
  • 하나의 백본으로 다양한 검색 증강 작업을 지원하는 통합 임베딩 모형(LLM-Embedder)을 제안한다.
  • LLM 기반 보상, 안정화된 디스틸레이션, 지시 기반 미세조정, 동질한 배치 내 음수 샘플을 결합한 강건한 학습 방법론을 개발한다.
  • 다양한 검색 시나리오에서 LLM-Embedder가 일반 목적의 검색기와 특정 작업용 검색기보다 우수하다는 것을 입증한다.

제안 방법

  • 다양한 데이터 소스(QA(MSMARCO, Natural Questions), 대화형 검색(QReCC), 도구 학습(ToolLLM), 지시 조정(FLAN, UPRISE), 생성/히스토리 데이터(Books3, ArXiv, CodeParrot, Multi-Session Chat))를 활용하여 통합 임베딩 모델(LLM-Embedder)을 학습한다.
  • hard labels와 LLM에서 도출된 보상을 포함하는 복합 감독 신호를 사용하여 학습을 안내한다(보상은 Equation 1).
  • 작업별 프롬프트 I_t를 포함한 지시 기반 미세조정과 동질적 배치 내 음수 샘플링으로 판별력을 향상시키는 대조 학습을 적용한다.
  • 보상 변동을 완화하기 위해 소프트 보상 기반 가중치와 하드 랭킹 라벨을 결합하여 안정화된 디스틸레이션을 수행한다(Equation 3).
  • KL-발산 기반 디스틸레이션을 사용하여 임베딩 기반 후보 분포를 LLM 생성 보상과 맞추고, 시그널 안정화를 위해 상위-하향 재랭킹으로 신호를 안정화한다.
  • 지식 강화, 장문 맥락 모델링, 컨텍스트 내 학습, 도구 학습, 대화형 검색에 대한 검색 증강 워크플로를 시연한다.

실험 결과

연구 질문

  • RQ1RQ1: LLM-Embedder가 LLM를 위한 다양한 검색 증강 시나리오를 포괄적으로 지원할 수 있는가?
  • RQ2RQ2: 각 개별 검색 시나리오에 대한 LLM-Embedder의 영향은 무엇인가?
  • RQ3RQ3: LLM-Embedder의 실증적 성능에 영향을 주는 요인은 무엇인가?
  • RQ4RQ4: 단일 임베딩 모델이 벤치마크 전반에서 일반 목적 및 과제별 검색기와 어떻게 비교되는가?

주요 결과

  • LLM-Embedder는 지식, 기억, 지시 이행 과제 전반에서 None 및 다수의 기준선 대비 LLM 성능을 일관되게 향상시킨다.
  • 일반 임베딩 모델(예: Contriever, RetroMAE-BEIR, BGE)과 다수의 과제별 검색기(예: AAR, LLM-R, API-Retriever)를 여러 시나리오에서 능가한다.
  • 작업별 검색기는 최적 시나리오를 벗어나 적용될 때 성능이 저하될 수 있는 반면, LLM-Embedder는 다양한 작업에서 경쟁력 있는 성능을 유지한다.
  • 지식 강화는 더 높은 검색 정확도에서 이점을 얻으며, PopQA와 같은 지식 중심 데이터셋에서 더 두드러진 이점을 보인다.
  • 컨텍스트 내 학습과 장문 맥락 모델링은 각각 검색된 데모와 기억 조각을 사용할 때 일관된 향상을 보인다.
  • 장문 맥락 시나리오(대화 및 언어 모델링)는 퍼플렉시티 및 검색 보조 지표가 향상되며, 도구 학습과 대화형 검색은 랭킹 지표(NDCG)로 평가된다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.