Scalable Attentive Sentence-Pair Modeling via Distilled Sentence Embedding
Not on the map. Why?
Abstract (arXiv)
Recent state-of-the-art natural language understanding models, such as BERT and XLNet, score a pair of sentences (A and B) using multiple cross-attention operations - a process in which each word in sentence A attends to all words in sentence B and vice versa. As a result, computing the similarity between a query sentence and a set of candidate sentences, requires the propagation of all query-candidate sentence-pairs throughout a stack of cross-attention layers. This exhaustive process becomes computationally prohibitive when the number of candidate sentences is large. In contrast, sentence embedding techniques learn a sentence-to-vector mapping and compute the similarity between the sentence vectors via simple elementary operations. In this paper, we introduce Distilled Sentence Embedding (DSE) - a model that is based on knowledge distillation from cross-attentive models, focusing on sentence-pair tasks. The outline of DSE is as follows: Given a cross-attentive teacher model (e.g. a fine-tuned BERT), we train a sentence embedding based student model to reconstruct the sentence-pair scores obtained by the teacher model. We empirically demonstrate the effectiveness of DSE on five GLUE sentence-pair tasks. DSE significantly outperforms several ELMO variants and other sentence embedding methods, while accelerating computation of the query-candidate sentence-pairs similarities by several orders of magnitude, with an average relative degradation of 4.6% compared to BERT. Furthermore, we show that DSE produces sentence embeddings that reach state-of-the-art performance on universal sentence representation benchmarks. Our code is made publicly available at https://github.com/microsoft/Distilled-Sentence-Embedding.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). First posted on arXiv 14 Aug 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 3; 2022: 3; 2023: 6.
12 papers.
- 2022Grad-SAM: Explaining Transformers via Gradient Self-Attention Mapscited by 42
- 2021Boosted Dense Retrievercited by 10
- 2022Interpreting BERT-based Text Similarity via Activation and Saliency Mapscited by 9
- 2021Cold Item Integration in Deep Hybrid Recommenders via Tunable Stochastic Gatescited by 8
- 2023Learning to Explain: A Model-Agnostic Framework for Explaining Black Box Modelscited by 4
- 2022MetricBERT: Text Representation Learning via Self-Supervised Triplet Trainingcited by 3
- 2023Representation Learning via Variational Bayesian Networkscited by 3
- 2023Efficient Discovery and Effective Evaluation of Visual Perceptual Similarity: A Benchmark and Beyondcited by 3
- 2021Sentence Embeddings by Ensemble Distillationcited by 1
- 2023Surge Routing: Event-informed Multiagent Reinforcement Learning for Autonomous Ridesharecited by 1
- 2023NoPPA: Non-Parametric Pairwise Attention Random Walk Model for Sentence Representationcited by 0
- 2023Harnessing Attention Mechanisms: Efficient Sequence Reduction using Attention-based Autoencoderscited by 0
- 2023Learning to Explain: A Model-Agnostic Framework for Explaining Black Box Models25 Oct 2023
- 2023Harnessing Attention Mechanisms: Efficient Sequence Reduction using Attention-based Autoencoders23 Oct 2023
- 2023Efficient Discovery and Effective Evaluation of Visual Perceptual Similarity: A Benchmark and Beyond28 Aug 2023
- 2023Surge Routing: Event-informed Multiagent Reinforcement Learning for Autonomous Rideshare5 Jul 2023
- 2023Representation Learning via Variational Bayesian Networks28 Jun 2023
- 2023NoPPA: Non-Parametric Pairwise Attention Random Walk Model for Sentence Representation24 Feb 2023
- 2022Interpreting BERT-based Text Similarity via Activation and Saliency Maps13 Aug 2022
- 2022MetricBERT: Text Representation Learning via Self-Supervised Triplet Training13 Aug 2022
- 2022Grad-SAM: Explaining Transformers via Gradient Self-Attention Maps23 Apr 2022
- 2021Boosted Dense Retriever14 Dec 2021
- 2021Cold Item Integration in Deep Hybrid Recommenders via Tunable Stochastic Gates12 Dec 2021
- 2021Sentence Embeddings by Ensemble Distillation14 Apr 2021