Lune

AAAI2020Top-tier venue

Scalable Attentive Sentence Pair Modeling via Distilled Sentence Embedding

Oren Barkan, Noam Razin, Itzik Malkiel, Ori Katz, Avi Caciularu, Noam Koenigstein

Abstract

Recent state-of-the-art natural language understanding models, such as BERT and XLNet, score a pair of sentences (𝐴 and 𝐵) using multiple cross-attention operationsa process in which each word in sentence 𝐴 attends to all words in sentence 𝐵 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 sentencepairs 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/mi- crosoft/Distilled-Sentence-Embedding.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • BEE: Metric-Adapted Explanations via Baseline Exploration-Exploitation cites Interpreting BERT-based Text Similarity via Activation and Saliency Maps
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Interpreting BERT-based Text Similarity via Activation and Saliency MapsItzik Malkiel, Dvir Ginzburg, Oren Barkan, Avi Caciularu et al.WWW 2022 · 28 citations
  2. Efficient Discovery and Effective Evaluation of Visual Perceptual Similarity: A Benchmark and BeyondOren Barkan, Tal Reiss, Jonathan Weill, Ori Katz et al.ICCV 2023 · 7 citations
  3. BEE: Metric-Adapted Explanations via Baseline Exploration-ExploitationOren Barkan, Yehonatan Elisha, Jonathan Weill, Noam KoenigsteinAAAI 2025

Related papers

  1. Static Word Embeddings for Sentence Semantic RepresentationTakashi Wada, Yuki Hirakawa, Ryotaro Shimizu, Takahiro Kawashima et al.EMNLP 2025 · 1 citation
  2. MiniLM: Deep Self-Attention Distillation for Task-Agnostic Compression of Pre-Trained TransformersWenhui Wang, Furu Wei, Li Dong, Hangbo Bao et al.NeurIPS 2020 · 2,727 citations
  3. Compressing Sentence Representation for Semantic Retrieval via Homomorphic Projective DistillationXuandong Zhao, Zhiguo Yu, Ming Wu, Lei LiACL Findings 2022 · 4 citations
  4. DiPair: Fast and Accurate Distillation for Trillion-ScaleText Matching and Pair ModelingJiecao Chen, Liu Yang, Karthik Raman, Michael Bendersky et al.EMNLP Findings 2020 · 25 citations
  5. EMO: Embedding Model Distillation via Intra-Model Relation and Optimal Transport AlignmentsMinh-Phuc Truong, Hai An Vu, Tu Vu, Nguyen Thi Ngoc Diep et al.EMNLP 2025
Dusk over the sea between two cliffs drawn in fine vertical lines