LEAD: Liberal Feature-based Distillation for Dense Retrieval

Hao Sun, Xiao Liu, Yeyun Gong, Anlei Dong, Jingwen Lu +4 more
12/10/2022
cs.IRcs.CL
distillation

Official code: microsoft/SimXNS (115 stars, Python, MIT, last commit 2024-01-09).

Abstract

Knowledge distillation is often used to transfer knowledge from a strong teacher model to a relatively weak student model. Traditional methods include response-based methods and feature-based methods.

Show full abstract

Response-based methods are widely used but suffer from lower upper limits of performance due to their ignorance of intermediate signals, while feature-based methods have constraints on vocabularies, tokenizers and model architectures. In this paper, we propose a liberal feature-based distillation method (LEAD). LEAD aligns the distribution between the intermediate layers of teacher model and student model, which is effective, extendable, portable and has no requirements on vocabularies, tokenizers, or model architectures. Extensive experiments show the effectiveness of LEAD on widely-used benchmarks, including MS MARCO Passage Ranking, TREC 2019 DL Track, MS MARCO Document Ranking and TREC 2020 DL Track. Our code is available in https://github.com/microsoft/SimXNS/tree/main/LEAD.

View on arXivView PDF

Code Implementations(1)

microsoft/SimXNSOfficial100%
MIT

SimXNS is a research project for information retrieval. This repo contains official implementations by MSRA NLC team.

11511Python, ShellNov 16, 20222 years agoMIT
decision-time-planningdense-retrievalinformation-retrievalknowledge-distillationnatural-language-processing+2 more

Similar Papers

Cite this paper

@article{sun2022lead,
  title  = {LEAD: Liberal Feature-based Distillation for Dense Retrieval},
  author = {Hao Sun and Xiao Liu and Yeyun Gong and Anlei Dong and Jingwen Lu and Yan Zhang and Linjun Yang and Rangan Majumder and Nan Duan},
  year   = {2022},
  eprint = {2212.05225},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.05225}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.05225.svg)](https://codeofpaper.com/paper/2212.05225)

Discussion