Distilling Transformers for Neural Cross-Domain Search
Not on the map. Why?
Abstract (arXiv)
Pre-trained transformers have recently clinched top spots in the gamut of natural language tasks and pioneered solutions to software engineering tasks. Even information retrieval has not been immune to the charm of the transformer, though their large size and cost is generally a barrier to deployment. While there has been much work in streamlining, caching, and modifying transformer architectures for production, here we explore a new direction: distilling a large pre-trained translation model into a lightweight bi-encoder which can be efficiently cached and queried. We argue from a probabilistic perspective that sequence-to-sequence models are a conceptually ideal---albeit highly impractical---retriever. We derive a new distillation objective, implementing it as a data augmentation scheme. Using natural language source code search as a case study for cross-domain search, we demonstrate the validity of this idea by significantly improving upon the current leader of the CodeSearchNet challenge, a recent natural language code search benchmark.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 17 of its 23 references that are in the map. First posted on arXiv 6 Aug 2021.
Builds on
17 of 23 references.
References · 17
- 2017Attention Is All You Needcited by 59,932
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2020ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERTcited by 1,160
- 2019CodeSearchNet Challenge: Evaluating the State of Semantic Code Searchcited by 638
- 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 600
- 2020Unsupervised Translation of Programming Languagescited by 262
- 2019Document Expansion by Query Predictioncited by 225
- 2020IntelliCode Compose: Code Generation Using Transformercited by 225
- 2020Unit Test Case Generation with Transformers and Focal Contextcited by 118
- 2020PyMT5: multi-mode translation of natural language and Python code with transformerscited by 80
- 2020On the Inference Calibration of Neural Machine Translationcited by 61
5 more
- 2019When Deep Learning Met Code Searchcited by 45
- 2020Efficient Document Re-Ranking for Transformers by Precomputing Term Representationscited by 44
- 2021On the Calibration and Uncertainty of Neural Learning to Rank Modelscited by 24
- 2020Analyzing and Learning from User Interactions for Search Clarificationcited by 23
- 2020Zero-shot Neural Passage Retrieval via Domain-targeted Synthetic Question Generationcited by 8
Built on by
Not cited yet.