Skip to main content
QUICK REVIEW

[논문 리뷰] Gecko: Versatile Text Embeddings Distilled from Large Language Models

Jinhyuk Lee, Zhuyun Dai|arXiv (Cornell University)|2024. 03. 29.
Topic ModelingComputer Science인용 수 9
한 줄 요약

Gecko는 두 단계의 데이터 증류(FRet)를 통해 LLM으로부터 distill된 compact한 텍스트 임베딩 모델로, 작은 차원과 경쟁력 있는 모델 크기로 MTEB 벤치마크에서 다재다능한 임베딩을 제공합니다.

ABSTRACT

We present Gecko, a compact and versatile text embedding model. Gecko achieves strong retrieval performance by leveraging a key idea: distilling knowledge from large language models (LLMs) into a retriever. Our two-step distillation process begins with generating diverse, synthetic paired data using an LLM. Next, we further refine the data quality by retrieving a set of candidate passages for each query, and relabeling the positive and hard negative passages using the same LLM. The effectiveness of our approach is demonstrated by the compactness of the Gecko. On the Massive Text Embedding Benchmark (MTEB), Gecko with 256 embedding dimensions outperforms all existing entries with 768 embedding size. Gecko with 768 embedding dimensions achieves an average score of 66.31, competing with 7x larger models and 5x higher dimensional embeddings.

연구 동기 및 목표

  • LLM의 지식을 활용하는 일반용 컴팩트 텍스트 임베딩 모델의 창출 동기 부여.
  • 임베딩 모델을 위한 다양하고 고품질의 학습 데이터를 생성하기 위한 두 단계 LLM 증류 개발.
  • 다양한 태스크에 적용 가능한 다목적 인코더를 학습시키기 위해 합성된 LRet 데이터와 인간 주석 데이터의 결합을 시도합니다.

제안 방법

  • 웹 패시지용 짧은 예시 프롬프트를 사용한 LLM으로 FRet 데이터셋을 형성하기 위한 합성 태스크-쿼리 쌍 생성.
  • 각 생성 쿼리에 대해 초기 임베딩 모델로 가장 가까운 패시지를 조회하고 LLM(LLM 기반 랭킹)으로 양성/음성 샘플을 재라벨링합니다.
  • FRet 및 학술 데이터셋의 통합 mix에 대해 두-타워 대조 학습 objective로 Gecko를 학습하고, 배치 내 음수/동일-타워 음수도 포함합니다.
  • 정밀하게 구성된 양성/음성으로 의미적 유사도 및 분류 성능을 개선하기 위해 분류 데이터를 대조 학습 objective에 통합합니다.
  • 여러 임베딩 차원(예: 256 및 768)을 지원하는 멀티 태스크 혼합 손실과 터미널 MRL(mixed-rank learning) 구성요소를 사용합니다.
  • MTEB의 태스크별 평가(Classification, Clustering, Pair Classification, Reranking, Retrieval, STS, Summary) 및 평균 성능을 보고합니다.
Figure 1: Overview of Gecko. Gecko is a versatile text embedding model trained on a variety of tasks including document retrieval, semantic similarity, and classification. To train Gecko, we utilize FRet where queries are generated from LLMs, and their positive and negative passages are mined by LLM
Figure 1: Overview of Gecko. Gecko is a versatile text embedding model trained on a variety of tasks including document retrieval, semantic similarity, and classification. To train Gecko, we utilize FRet where queries are generated from LLMs, and their positive and negative passages are mined by LLM

실험 결과

연구 질문

  • RQ1LLM이 생성한 합성 데이터와 LLM 주도 재라벨링이 다양한 태스크에서 제로샷 및 소수샷 텍스트 임베딩 성능을 개선할 수 있는가?
  • RQ2LLM이 생성한 데이터(FRet)와 인간 주석 데이터의 결합이 MTEB에서 유사한 크기의 baselines를 능가하는 다재다능한 임베딩을 만들어내는가?
  • RQ3FRet의 다양성과 태스크 혼합이 다국어 및 다중 모달 스타일 검색 태스크에 대한 일반화에 어떤 영향을 미치는가?
  • RQ4LLM 기반 양성/음성 재라벨링이 검색 및 의미적 유사도 벤치마크에 미치는 영향은 무엇인가?
  • RQ5작고 컴팩트한 Gecko 모델(예: 1B 매개변수, 768차원)이 검색 및 STS 태스크에서 더 큰 임베딩 시스템과 경쟁할 수 있는가?

주요 결과

  • 1.2B 매개변수와 768차원 임베딩을 가진 Gecko는 MTEB에서 평균 66.31으로, 더 큰 차원의 다수 모델을 능가합니다.
  • Gecko-1b-256은 256차원 임베딩과 비교적 유사한 매개변수 예산으로 주목할 만한 baselines를 개선합니다.
  • 제로샷 Gecko(FRet 전용)도 이미 강력한 MTEB 성능을 제공하여 일부 baselines에 근접하거나 이를 능가합니다.
  • 양성(p+)의 LLM 기반 재라벨링은 일부 태스크에서 성능을 향상시키며, 상위 LLM이 랭크한 양성을 사용하는 것이 seed 패시지보다 더 나은 결과를 보입니다.
  • FRet의 다양성과 통합 형식은 다운스트림 성능을 크게 향상시키며, 전체 FRet 혼합이 최상의 종합 성능을 제공합니다.
  • Gecko 다국어 변형(gecko-multilingual-1b)은 영어로 생성된 FRet 데이터를 사용해 강력한 다국어 검색 성능을 달성하며 여러 다국어 baselines를 능가합니다.
Figure 2: Overview of FRet. Given a sampled passage from the web, FRet first utilizes LLMs to generate a relevant task and a query for the passage (top). Then, each query and task is fed into a pre-trained embedding model to obtain nearest neighbor passages, which are then scored by the LLM to mine
Figure 2: Overview of FRet. Given a sampled passage from the web, FRet first utilizes LLMs to generate a relevant task and a query for the passage (top). Then, each query and task is fed into a pre-trained embedding model to obtain nearest neighbor passages, which are then scored by the LLM to mine

이 논문 읽기

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

누빈트에서 이 논문 읽기

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