Skip to main content
QUICK REVIEW

[논문 리뷰] Improving Efficient Neural Ranking Models with Cross-Architecture Knowledge Distillation

Sebastian Hofstätter, Sophia Althammer|arXiv (Cornell University)|2020. 10. 06.
Domain Adaptation and Few-Shot LearningComputer Science인용 수 64
한 줄 요약

이 논문은 Margin-MSE 손실을 사용한 교차 아키텍처 지식 증류 방법을 제시하여 BERT-CAT 교사를 다양한 효율적 랭킹 아키텍처로 지식 전달하고 재랭킹 및 조밀 검색 성능을 향상시키되 효율성을 해치지 않는 방법이다.

ABSTRACT

Retrieval and ranking models are the backbone of many applications such as web search, open domain QA, or text-based recommender systems. The latency of neural ranking models at query time is largely dependent on the architecture and deliberate choices by their designers to trade-off effectiveness for higher efficiency. This focus on low query latency of a rising number of efficient ranking architectures make them feasible for production deployment. In machine learning an increasingly common approach to close the effectiveness gap of more efficient models is to apply knowledge distillation from a large teacher model to a smaller student model. We find that different ranking architectures tend to produce output scores in different magnitudes. Based on this finding, we propose a cross-architecture training procedure with a margin focused loss (Margin-MSE), that adapts knowledge distillation to the varying score output distributions of different BERT and non-BERT passage ranking architectures. We apply the teachable information as additional fine-grained labels to existing training triples of the MSMARCO-Passage collection. We evaluate our procedure of distilling knowledge from state-of-the-art concatenated BERT models to four different efficient architectures (TK, ColBERT, PreTT, and a BERT CLS dot product model). We show that across our evaluated architectures our Margin-MSE knowledge distillation significantly improves re-ranking effectiveness without compromising their efficiency. Additionally, we show our general distillation method to improve nearest neighbor based index retrieval with the BERT dot product model, offering competitive results with specialized and much more costly training methods. To benefit the community, we publish the teacher-score training files in a ready-to-use package.

연구 동기 및 목표

  • 신경 랭킹 모델의 대기시간(latency)을 줄이면서 효과를 보전하거나 향상시키는 것을 동기로 삼는다.
  • 아키텍처 간의 서로 다른 점수 분포를 고려하는 모델-에 구애받지 않는 교차 아키텍처 지식 증류 방법을 제안한다.
  • Margin-MSE 증류가 재랭킹 및 조밀 검색 작업에서 다수의 효율적 아키텍처에 이점을 제공함을 보인다.
  • 단일 교사 모델과 앙상블 교사 모델이 증류 효과에 미치는 영향을 조사한다.
  • 즉시 사용 가능한 교사 학습 파일을 제공하고 접근법의 타당성을 시연한다.

제안 방법

  • RankNet 손실로 MSMARCO에서 강력한 BERT-CAT 교사를 훈련시킨다.
  • 모든 학습 트리플에 대해 교사 점수를 추론하고 증류에 재사용한다.
  • Margin-MSE 손실로 교사 마진과 일치하는 Margin-MSE 손실을 사용하여 서로 다른 아키텍처(TK, ColBERT, PreTT, BERT-DOT)의 학생 모델을 훈련시킨다.
  • 소거 연구를 통해 Margin-MSE를 다른 증류 손실(점별 MSE, Weighted RankNet)와 비교한다.
  • 재랭킹 및 조밀 검색 설정에서 MSMARCO-DEV 및 TREC-DL’19에 대해 평가한다.
  • 커뮤니티 사용을 위한 코드와 즉시 사용 가능한 교사 학습 파일을 공개한다.

실험 결과

연구 질문

  • RQ1RQ1 다양한 아키텍처 유형에서 지식 증류를 어떻게 적용해 검색 효과를 향상시킬 수 있는가?
  • RQ2RQ2 단일 교사 모델로부터의 증류가 교사 앙상블에 의한 증류만큼 효과적인가?
  • RQ3RQ3 BERT-DOT 스타일 모델을 사용한 조밀 최근접 이웃 검색에 대한 증류의 효과성은 어느 정도인가?
  • RQ4RQ4 지식 증류가 효율적인 아키텍처의 효율성-효과성 트레이드오프를 어떻게 바꾸는가?

주요 결과

  • Margin-MSE는 재랭킹 및 조밀 검색 시나리오에서 평가된 모든 아키텍처를 기준선 대비 일관되게 개선한다.
  • 교사 모델의 앙상블은 일반적으로 MSMARCO-DEV 및 TREC-DL’19 설정에서 단일 교사보다 성능이 우수하다.
  • DistilBERT 기반 학생들은 대개 대기시간이 크게 감소하고 비슷하거나 더 나은 효과로 BERT 기반 기준선과 일치하거나 능가한다.
  • 증류는 TK, ColBERT 및 BERT-DOT의 효율성-효과성 격차를 좁혀 속도를 위해 정확도를 포기할 필요를 줄인다.
  • Margin-MSE를 이용한 조밀 검색 결과는 ANCE 및 TCT-ColBERT 같은 비용이 더 많이 드는 방법과 경쟁하며, 더 작은 배치 크기와 자원을 사용한다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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