paper-with-me

홈 › Papers

Scalable Attentive Sentence-Pair Modeling via Distilled Sentence Embedding

2019-08-14 · Oren Barkan, Noam Razin, Itzik Malkiel, Ori Katz, Avi Caciularu, Noam Koenigstein

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.

📄 PDF Abstract BibTeX arXiv:1908.05161

Code (1)

microsoft/Distilled-Sentence-Embedding 공식 구현 pytorch

Tasks

Knowledge DistillationNatural Language UnderstandingSemantic SimilaritySentenceSentence EmbeddingSentence-EmbeddingSentence EmbeddingsSentence Pair Modeling

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Knowledge Distillation A very simple way to improve the performance of almost any machine learning algorithm is to train many different models on the same data and then to average their predictions.…
Sigmoid Activation 설명 없음
Tanh Activation 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
SentencePiece 설명 없음
XLNet 설명 없음
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

Modelling Sentence Pairs with Tree-structured Attentive Encoder

2016-10-10 · COLING 2016 12 · Yao Zhou, Cong Liu, Yan Pan

We describe an attentive encoder that combines tree-structured recursive neural networks and sequential recurrent neural networks for modelling sentence pairs. Since existing attentive models exert attention on the seque…

Paraphrase IdentificationQuestion SelectionSemantic SimilaritySemantic Textual Similarity+1

Dual-View Distilled BERT for Sentence Embedding

2021-04-18 · Xingyi Cheng

Recently, BERT realized significant progress for sentence matching via word-level cross sentence attention. However, the performance significantly drops when using siamese BERT-networks to derive two sentence embeddings,…

SentenceSentence EmbeddingSentence-EmbeddingSentence Embeddings+1

Attentive Convolution: Equipping CNNs with RNN-style Attention Mechanisms

2017-10-02 · TACL 2018 1 · Wenpeng Yin, Hinrich Schütze

In NLP, convolutional neural networks (CNNs) have benefited less than recurrent neural networks (RNNs) from attention mechanisms. We hypothesize that this is because the attention in CNNs has been mainly implemented as a…

Claim VerificationNatural Language InferenceRepresentation LearningSentence+1

Weakly-Supervised Spatio-Temporally Grounding Natural Sentence in Video

2019-06-06 · ACL 2019 7 · Zhenfang Chen, Lin Ma, Wenhan Luo, Kwan-Yee K. Wong

In this paper, we address a novel task, namely weakly-supervised spatio-temporally grounding natural sentence in video. Specifically, given a natural sentence and a video, we localize a spatio-temporal tube in the video …

Diversityobject-detectionObject DetectionSentence+1

Attentive Tree-structured Network for Monotonicity Reasoning

2021-01-03 · ACL (NALOMA, IWCS) 2021 6 · Zeming Chen

Many state-of-art neural models designed for monotonicity reasoning perform poorly on downward inference. To address this shortcoming, we developed an attentive tree-structured neural network. It consists of a tree-based…

Natural Language InferenceSentence