Elamur Research

On the Sentence Embeddings from Pre-trained Language Models

Paper · 2020 · Bohan Li, Hao Zhou, Junxian He et al.

Summary

If two sentences mean much the same thing, will BERT give them similar vectors? The answer matters when a system must compare sentences independently, especially when there are few human judgments available to train it. A common approach is to average BERT’s contextual token vectors and compare the resulting sentence vectors by their angle. Earlier work found that this approach could rank pairs by meaning less accurately than averaging GloVe vectors, even though GloVe assigns the same vector to a word regardless of its context. The paper asks how much of that weakness comes from the way the vectors are compared. Its test of semantic similarity starts with BERT.

The authors approach the question through BERT’s training objective and the geometry of its embeddings. When BERT predicts a hidden token, contexts that support similar predictions are indirectly connected through the vocabulary. This gives the authors a reason to expect the representations to carry information about related meanings, even though training never requires their angles to agree with human judgments. Their measurements of BERT’s vocabulary vectors show a pronounced frequency pattern. Common words tend to have shorter vectors and closer neighbors, while rarer words have longer vectors and more distant neighbors. The authors use these measurements to motivate a hypothesis about the space in which sentence vectors are formed and compared.

Their method, BERT-flow, holds BERT fixed while learning a reversible transformation of its pooled sentence vectors. It fits that transformation to individual sentences without seeing any human similarity scores. The target is a standard Gaussian, a distribution with the same density in every direction at a given distance from the center. At evaluation time, each sentence is mapped independently and the two transformed vectors are compared by cosine similarity. Because the transformation is reversible, it can change which vectors are close by angle while retaining the information in the original pooled vectors.

The paper evaluates the method on 7 semantic textual similarity benchmarks. With no downstream labels, it reports improvements of up to 12.70 points in Spearman rank correlation on the paper’s reporting scale, with an average gain of 8.16 points for the large BERT configuration fitted on target text. The method also improves most comparisons when the encoder has first been trained on labeled inference data, and the question–answer entailment experiment shows gains on the QNLI validation set. On the STS-B validation set, the transformed scores agree better with human judgments and are less closely tied to how many edits separate the sentences. The frozen-encoder results establish that changing how the existing vectors are read can recover useful distinctions. They leave open how much meaning the pooled vectors capture in the first place.

Deep dive: On the Sentence Embeddings from Pre-trained Language Models

BERT-flow reshapes BERT sentence embeddings with an invertible map learned from unlabeled text, improving how cosine similarity ranks sentence pairs. · about 36 minutes to read

The problem and its context

A useful sentence vector has to work on its own

A sentence pair can be scored by a system that sees both sentences together, or by a system that represents each sentence independently and compares the two representations afterward. The paper studies the second arrangement. Each sentence yields a vector of fixed length, and the comparison uses those vectors alone. This is useful when a sentence has to be compared with many others. Its representation can be prepared once, and the similarity calculation can then be repeated with different partners. It also makes the geometry of the vectors consequential. Every pair is judged by the same rule, so the rule needs to extract a meaningful ordering from the coordinates the encoder supplies.

The use of pretraining makes this question especially important. An encoder that has already learned from text can be adapted to a particular annotated task through fine-tuning. The authors point out that collecting the required annotations can be expensive or impractical. Taking sentence vectors directly from a pretrained encoder is attractive in such settings. It also places a greater burden on the representation. A task-specific training stage could teach a scoring function which distinctions to emphasize. In the direct approach considered here, the encoder produces the vectors and a simple geometric rule supplies the score.

The paper discusses two common ways to get a fixed-length vector out of BERT. One uses the hidden vector at the special classification position, written [CLS]. The other averages the contextual vectors produced for positions in the input, taking them from the final layer or from the last layers. In an average, every included position contributes to the same vector, and the result has the width of the original hidden vectors. The hidden vectors themselves have already been computed in context. Two occurrences of the same token can therefore contribute differently to their respective sentence averages. Earlier experiments found that averaging did better at sentence similarity than taking the classification-position vector. The paper follows the comparison reported in Sentence-BERT.

The simpler GloVe baseline helps explain why this result was considered a problem. GloVe provides static word embeddings. Averaging them gives a representation built from a sentence’s words, but each word contributes its stored vector regardless of what the other words are. BERT’s token representations have access to those other words, which gives them a route to representing distinctions that a static average may miss. Yet the additional contextual information can help a particular evaluation only if the pooling and scoring operations make it usable. An average of contextual vectors can supply a poorer ordering than an average of static vectors even while carrying distinctions that the static representation cannot express.

Earlier sentence encoders also gave the authors precedents for learning the sentence representation before applying a simple comparison rule. InferSent used a recurrent encoder trained on natural language inference. The Universal Sentence Encoder comparison used a Transformer and attention architecture in place of the recurrent encoder, and Sentence-BERT used BERT in a shared-encoder arrangement. In this arrangement, often called siamese, the two sentences pass through copies of the same encoder with shared parameters. Inference labels can shape the encoder during training, after which it can produce a vector for either sentence independently. These approaches show where labeled training can enter a sentence-comparison system. BERT-flow asks what can be done at a different point in the pipeline, once a sentence vector has already been produced. InferSent · Universal Sentence Encoder

BERT is trained to predict words from contexts

The paper’s account begins with the job given to a language model. In left-to-right prediction, the tokens preceding a position provide the context for predicting the next token. BERT’s masked-token objective instead supplies a corrupted version of the sequence. The remaining text on either side of a hidden token can help identify it. In both cases, a central operation is to assign probabilities to vocabulary items given a context. BERT learns a hidden representation of that context and uses its compatibility with vocabulary vectors to make the prediction.

This setup suggests an indirect route from word prediction to sentence meaning. Suppose different contexts make similar vocabulary items plausible. Training repeatedly relates those contexts to the same output words. The authors treat the vocabulary as a set of intermediaries. Contexts can become related through words they have in common, and those connections can extend through other contexts and words. This is the connection the paper draws to distributional semantics, where patterns of occurrence supply evidence about meaning.

A prediction objective of this kind compares a context with a candidate word. The sentence task compares one pooled context representation with another. Those operations use different pairs of vectors. The fact that the prediction objective succeeds gives a reason to investigate the geometry of sentence embeddings, but it does not specify what a sentence-to-sentence cosine will measure. The dependence of vocabulary scores on how common a word is adds to the problem. Frequency matters to the prediction task, so the arrangement that helps predict vocabulary items can also reflect their frequencies.

Earlier work cited in the paper documented anisotropy in embedding spaces. An isotropic distribution has no preferred direction. The form of anisotropy emphasized here is concentration in a narrow cone, where many vectors point in broadly similar directions. Cosine similarity compares direction, so the shared orientation can influence pair scores across many unrelated examples. The authors also draw on earlier findings that embeddings for extremely rare or unobserved tokens can lie far from the origin under particular assumptions. That work motivates their examination of vocabulary frequency and local spacing in BERT. Geometry of contextualized word representations

The distinction between directions, lengths and spacing matters for the argument. A long vector can have the same cosine similarity to a given vector as a shorter vector pointing in the same direction. Length can still play a part upstream, when vectors of different lengths are averaged or when the distribution is fitted. Local spacing is another question again. Vectors can favor a shared direction and still vary in how densely they occupy particular regions. The authors therefore consider both the frequency-linked organization of the vocabulary and the possibility of sparsely populated regions. These are reasons to test a different readout of the BERT features. The proposed transformation gives them a way to do so while keeping the underlying encoder in place.

The method, step by step

From a sentence to a point in space

BERT-flow starts with an ordinary, unmasked sentence. BERT computes contextual vectors for the input positions. The authors average the representations from the last two layers to form the vector used in their default setup. They also report a comparison with pooling the final layer alone. Once this averaging is done, the sentence is represented by a single point in the original embedding space. Any distinctions lost in pooling have already been lost by the time BERT-flow receives the vector.

Next, the authors collect these vectors from a corpus of sentences and fit a reversible map. In training, the map is treated as a way to generate vectors distributed like the original BERT features from a simple Gaussian distribution. During evaluation it is used in the opposite direction. A sentence vector goes in, and a point in the Gaussian coordinate system comes out. This change of direction is what makes the same fitted transformation useful both for assigning likelihood to the training vectors and for providing new coordinates for any sentence the encoder can process.

For a pair of sentences, the authors run the same pipeline independently on each sentence. They then use cosine similarity, which increases as the vectors point more nearly in the same direction. The training data for the map consist of individual vectors. A sentence can contribute to learning the embedding distribution without the flow being told whether that sentence has an annotated partner or what anyone thought of the pair. The evaluation is where the paired inputs and their human scores come together.

Fitting and using BERT-flow

The steps in order.

Fitting and using BERT-flowStep 1: Encode unmasked sentences with frozen BERT1. Encode unmasked sentences with frozen BERTStep 2: Pool contextual vectors from the last two layers2. Pool contextual vectors from the last two layersStep 3: Fit a reversible map by sentence-vector likelihood3. Fit a reversible map by sentence-vector likelihoodStep 4: Map each evaluation vector into Gaussian coordinates4. Map each evaluation vector into Gaussian coordinatesStep 5: Compare the resulting vectors by cosine similarity5. Compare the resulting vectors by cosine similarity

What the pretraining argument says

The paper’s explanation for expecting meaning in the original vectors starts from conditional token prediction. For a left-to-right sequence, the log probability assigned to the whole sequence can be written as the sum of log probabilities of the tokens in their successive contexts.

log p(x₁:ₜ) = Σᵢ₌₁ᵀ log p(xᵢ | cᵢ)

Here the endpoint in x₁:ₜ is T, the number of tokens, and the notation denotes the complete sequence. The index i runs from 1, the first position, through T. The token at position i is xᵢ, and cᵢ contains the tokens before that position. The function p denotes probability, log takes its logarithm, Σ adds the terms, and | inside the probability means “given.” The equality relates the sequence score to the sum of token scores.

For BERT, the context is the corrupted sequence, written x̂. The authors use x̄ for the collection of hidden tokens and a mask indicator to select the positions whose reconstruction counts. Their discussion writes the reconstruction in terms of a masked sum of token probabilities.

p(x̄ | x̂) = Σᵢ₌₁ᵀ mᵢ p(xᵢ | cᵢ)

Here p denotes probability, x̄ denotes the masked tokens, and x̂ denotes the corrupted sequence supplied to the encoder. The index i runs over positions from 1 to the sequence length T. The value mᵢ is 1 at a masked position and 0 elsewhere, and xᵢ is the token at that position. The context cᵢ is x̂ in this account. The vertical bar means conditioning, juxtaposition with mᵢ means multiplication, and Σ sums the selected contributions. As written, the right side is an aggregate of token probabilities. It need not be a normalized joint probability over reconstructions. The argument that follows relies on the conditional prediction at each masked position.

In either setup, the score for a candidate token comes from its interaction with the hidden context. The softmax turns the scores for all candidates into a probability distribution.

p(x | c) = exp(h_cᵀ w_x) / Σₓ′ exp(h_cᵀ w_x′)

Here p(x | c) is the probability assigned to token x in context c. The vector h_c is computed from the context, and w_x is the stored output embedding for token x. The superscript ᵀ means transpose, so the adjacent vectors inside exp form a dot product. The function exp exponentiates that score. The index x′ ranges over all vocabulary items, w_x′ is the corresponding output vector, and Σ adds the exponentiated scores. Dividing by this sum gives the candidate its share of the total.

A high dot product for one candidate helps its probability to the extent that its score is high relative to the other candidates. The authors use a decomposition from prior work to connect that dot product with the occurrence statistics of a well-trained predictor.

h_cᵀ w_x ≈ log p*(x | c) + λ_c

Here h_c represents context c, w_x represents candidate token x, and ᵀ forms their dot product. The approximation concerns the relation between this learned score and the log of p*, the conditional distribution the well-trained predictor is meant to approximate. The bar means conditioning. The term λ_c is an offset shared by the candidates in the same context, and + adds it to the log probability. An offset shared in this way can change all the scores in a context while leaving their normalized probabilities unchanged.

The decomposition then expresses the conditional term using pointwise mutual information, abbreviated PMI. PMI compares joint occurrence with the occurrence expected if the two events were independent.

PMI(x, c) = log[p(x, c) / (p(x)p(c))]

Here x is the token and c the context. The function p(x, c) gives their joint probability. The factors p(x) and p(c) give the marginal probabilities of token and context individually, and their juxtaposition denotes multiplication. The slash takes the ratio and log takes its logarithm. The parentheses and brackets group the inputs and the expression inside the logarithm. An occurrence that is more common than independence would predict has positive PMI.

Inserting this separation into the token score gives the form used in the authors’ interpretation.

h_cᵀ w_x ≈ PMI(x, c) + log p(x) + λ_c

Here h_c, w_x, and ᵀ again form the dot product of context and token vectors. The sign ≈ marks the approximation, PMI(x, c) measures the association of the token and context, log p(x) is the log marginal probability of the token, and λ_c depends only on the context. The plus signs identify the distinct contributions to the score.

The frequency contribution explains why co-occurrence evidence can have more than one geometric effect. A word that is particularly characteristic of a context can give evidence about that context’s meaning. A word that is simply common affects the prediction problem in many contexts. Both contribute to the scores BERT learns. Contexts that repeatedly support the same vocabulary items receive related training signals. The paper calls the resulting links between contexts higher-order co-occurrence because the links pass through other prediction events. The authors use this as a mechanism that could support similarity between context representations. The formulas themselves specify a context–word score. They do not derive a value for the dot product between two contexts, and the next part of the method treats that geometry as something to measure and reshape.

Why the map uses a Gaussian

The chosen reference distribution is a standard Gaussian. Its density is unchanged by a rotation, so points at the same radius have the same density. If draws from it are rescaled to unit length, their directions are uniformly distributed over the sphere. This matters because cosine similarity compares directions. The Gaussian gives the fitted transform a reference with no favored angular region. The authors also describe the target through the singular spectrum, which indicates how strongly variation is concentrated along different directions. Fitting the vectors to an isotropic distribution is intended to reduce the dominance of a small set of directions. Earlier studies of word vectors supplied the hypothesis that some of those directions are related to frequency.

The Gaussian also gives positive density throughout the space. In the authors’ interpretation, low-density regions around sparse vectors create a problem for averaging. An average falls between its input vectors, and it can land in a region where the representation has little empirical support. This does not require those input vectors to be poorly formed individually. The Gaussian supplies a continuous density at any point in its coordinate system. BERT-flow applies the map after pooling, so it reshapes the distribution of completed sentence vectors. The motivation concerns where pooled vectors fall and how they compare. The map never repeats the averaging operation in Gaussian space.

How likelihood fits a reversible map

The authors use a normalizing flow, a sequence of reversible transformations whose change in local volume can be calculated. They describe it in the generative direction first.

z ∼ p_Z(z),   u = f_φ(z)

Here z is a point in latent space Z, and p_Z is the standard Gaussian density on that space. The symbol ∼ means that z is drawn from that distribution. The function f_φ is the reversible map with trainable parameters φ, and u is the resulting point in the observed embedding space U. The comma separates the draw from the mapping step.

Training uses the inverse. For each observed sentence vector, the inverse identifies the latent point that could have produced it. The probability density at that point gives part of the density assigned to the original vector. The rest comes from the change in volume between the two spaces.

p_U(u) = p_Z(f_φ⁻¹(u)) |det(∂f_φ⁻¹(u)/∂u)|

Here p_U(u) is the density assigned to observed vector u in space U. The function f_φ⁻¹, with parameters φ, carries that vector into space Z, and p_Z evaluates the Gaussian density there. The expression with ∂ is the Jacobian, the matrix of partial derivatives of the inverse map’s output coordinates with respect to the coordinates of u. The function det takes the determinant of that matrix and the outer bars take its absolute value. Multiplying by this term accounts for how much local volume changes under the inverse.

The correction lets a smooth reference density account for an unevenly occupied original space. A small neighborhood of an observed point may correspond to a larger or smaller neighborhood in Gaussian coordinates. Two observed points whose images have comparable Gaussian density can thus receive different observed-space densities. The likelihood objective combines the two contributions. Its input corpus is represented by the sentence vectors that frozen BERT produces.

max_φ Eₛ∼𝒟 [log p_Z(f_φ⁻¹(u)) + log |det(∂f_φ⁻¹(u)/∂u)|],   u = BERT(s)

Here max_φ means maximize over flow parameters φ. The expectation Eₛ∼𝒟 averages over sentences s from corpus 𝒟, and u = BERT(s) denotes extraction and pooling of the frozen encoder’s contextual vectors for each sentence. The function f_φ⁻¹ is the inverse flow, p_Z is the Gaussian density, and log denotes the logarithm. The derivative expression is the inverse’s Jacobian at u, det takes its determinant, and the vertical bars give its magnitude. The plus sign adds the Gaussian and volume contributions inside the brackets. Since the observations are individual sentences, the objective has no target pair scores.

The distinction between reversing the map and reversing the encoder is important. The original pooled vector can be reconstructed by passing its transformed vector through the map in the generative direction. This is the basis of the authors’ statement about preserving information. The flow takes the encoder’s output as its input, so the reconstruction reaches the pooled vector. Recovering the words or contextual states that produced that vector is outside the reconstruction guarantee.

What makes the transformation reversible

The flow follows Glow’s design with simplifications. The authors use an invertible normalization operation called actnorm, random permutations of the coordinates, and additive coupling. Random permutation takes the place of Glow’s learned invertible convolution to avoid the numerical errors the authors were concerned about. Additive coupling replaces affine coupling to reduce complexity. A stack combines these operations, so coordinates held fixed by an individual coupling step can later be moved into a different part of the vector. The paper describes the general composition as follows.

f = f₁ ∘ f₂ ∘ … ∘ f_K

Here f is the full transformation, K is the number of component transformations, and f₁, f₂ through f_K are those components. The symbol ∘ denotes function composition, with the component on the right applied first, and … stands for the intervening components. The equality identifies the map with the composed sequence. Reversing the full map consists of undoing the component operations in reverse application order.

For an additive coupling step, the input is divided into two groups of coordinates. The first group passes through unchanged.

y₁:ᵈ = x₁:ᵈ

Here x is the input vector for the coupling step, y is its output, and the endpoint d in 1:ᵈ is the last coordinate in the first group. The colon in the index denotes a range beginning at coordinate 1. The equality says that the output and input agree across that range.

A learned function of the preserved group supplies a shift for the second group. The function can be expressive because the preserved coordinates will still be available when the shift needs to be undone.

y_{d+1:D} = x_{d+1:D} + g_ψ(x_{1:d})

Here x and y are the coupling input and output, d is the splitting point, and D is the total number of coordinates in this formula. The subscript d+1:D selects the part after the split through the end, while 1:d selects the preserved part. The function g_ψ is a neural network with parameters ψ. Its output has the dimensions of the second part, and + adds that output coordinate by coordinate.

The inverse first reads the preserved group from the output.

x_{1:d} = y_{1:d}

Here y is the vector presented to the inverse, x is the recovered input, and 1:d is the coordinate range from the beginning through the split. Equality holds because the forward coupling made no change in that range.

The preserved coordinates allow the inverse to recompute the same shift and subtract it.

x_{d+1:D} = y_{d+1:D} − g_ψ(y_{1:d})

Here x is the recovered vector and y is the forward output. The range d+1:D identifies the coordinates after split point d up to total width D. The network g_ψ, using the same parameters ψ, takes the unchanged coordinates 1:d. The subtraction sign reverses the addition of its output. The design therefore does not require an inverse for the neural network inside the coupling step. The preserved coordinates provide everything needed to calculate its output again.

Where the fitting sentences come from

The paper studies two sources of unlabeled text for the flow. The target setting fits the map using sentences from the full target similarity dataset, including the training, validation and test portions. Similarity annotations remain hidden. This allows the transform to adapt to the same text distribution on which it is evaluated. The NLI setting fits the transform on raw sentences from two inference corpora that contain 570K and 433K sentence pairs, respectively. Their entailment labels are hidden during flow fitting. These corpora are SNLI and MNLI.

There is a separate supervised encoder configuration. In that configuration, BERT is first trained to classify the relation between sentence pairs using the inference labels. Both sides use the shared encoder. The resulting encoder can then be used on its own, or it can be frozen and followed by a flow trained with the same unsupervised likelihood as before. The expressions “NLI-flow” and “flow (NLI)” can describe different stages of this pipeline. The former occurs in the name for an inference-trained encoder followed by a flow. The parenthetical tag specifies the raw-text source used for fitting the flow. An experiment can therefore use NLI labels to train the encoder and hide all labels while fitting the transformation.

The implementation uses the official TensorFlow BERT code and adapts the flow implementation from Glow and Tensor2Tensor. The authors cap sequence length at 64 to reduce memory use. For supervised inference training, they use 1 epoch, a learning rate of 2e − 5 and a batch size of 16. Flow fitting uses Adam. With target text, the schedule is 1 epoch at 1e − 3. With NLI text, it is 0.15 epoch at 2e − 5. The coupling network is a convolutional network with 3 layers and a residual connection. The reported coupling width is 32, with 2 levels and a depth of 3 in the flow configuration.

The authors use the STS-B development set during preliminary tuning, then carry the selected hyper-parameters to their other datasets. They report that the learning schedule mattered more in this preliminary work than the architectural settings they tried. This detail bears on what “without labels” describes. The likelihood training of the flow takes raw sentences. The broader development of the experimental recipe includes a development-set tuning stage. The authors also release the BERT-flow implementation.

Experiments and results

Ranking the meaning of sentence pairs

The main evaluation uses STS-B and SICK-Relatedness, together with the STS task datasets from 2012 through 2016. The authors obtain the datasets through SentEval. Each pair has a human similarity score on a scale from 0 to 5. The question for the encoder is whether the cosine of its sentence vectors puts the pairs in an order close to the order induced by those human scores. STS-B is the benchmark used for the paper’s separate comparisons with simpler transformations and for its lexical-similarity analysis. SICK-R is of particular interest when the authors compare training-text sources because the dataset was collected for relatedness and entailment. STS Benchmark · SICK

The scoring operation after pooling or transforming the sentence vectors is cosine similarity.

cos(a, b) = (aᵀb) / (‖a‖₂ ‖b‖₂)

Here a and b are the two sentence vectors. The function cos gives their cosine similarity, ᵀ marks transpose, and aᵀb is their dot product. The norm signs with subscript ₂ give each vector’s Euclidean length, and the denominator multiplies those lengths. The slash divides the dot product by that product. For unit-length vectors, the dot product itself gives the cosine. The STS evaluation uses Spearman rank correlation, written ρ, between the predicted cosines and the human scores. The paper displays the coefficients as ρ × 100, with × denoting multiplication. A gain on this scale concerns the ordering of pairs. It says nothing by itself about whether a particular cosine matches the numerical value on the human rating scale.

Results without inference labels

The comparison without labeled inference training includes averaged GloVe, averaged BERT representations and the BERT classification-position vector from earlier published results. The authors add their own BERT base and BERT large implementations. For both, they evaluate averaging the final layer, averaging the last two layers and fitting a flow on the latter representation. The flow is fitted on either the target dataset’s sentences or the pooled inference corpora with labels hidden. This setup gives separate comparisons for the choice of pooling and the effect of adding a flow to the chosen pooling rule.

On STS-B, the paper’s main comparison reports 47.29 for BERT base with final-layer averaging and 59.04 with averaging over the last two layers. With the latter as input, flow fitted on inference text gives 58.56, while the target-text fit gives 70.72. For BERT large on the same benchmark, the corresponding untransformed results are 46.99 and 59.56. The large encoder with flow reaches 68.09 using inference text and 72.26 using target text. All these values are Spearman rank correlations on the paper’s scaled reporting convention. The headline benchmark table identifies the dataset scores without separately naming an evaluation split.

BERT large sentence embeddings without NLI labels on STS-B, Spearman rank correlation

The target-text flow ranks sentence pairs closest to the human judgments among these settings.

BERT large sentence embeddings without NLI labels on STS-B, Spearman rank correlationFinal-layer average: 46.99Final-layer average46.99Last-two-layer average: 59.56Last-two-layer average59.56Last-two-layer average with NLI-text flow: 68.09Last-two-layer average with NLI-textflow68.09Last-two-layer average with target-text flow (this paper): 72.26Last-two-layer average with target-textflow (this paper)72.26
The numbers
System or settingSpearman ρ × 100
Final-layer average46.99
Last-two-layer average59.56
Last-two-layer average with NLI-text flow68.09
Last-two-layer average with target-text flow (this paper)72.26

Across all 7 STS benchmarks, the authors report that adding target-text flow to the last-two-layer average raises scaled Spearman correlation by 5.88 points on average for BERT base and by 8.16 for BERT large. The largest reported gain in this setting is 12.70 points. These gains are measured against the stronger pooling baseline. The differences between the final-layer average and the last-two-layer average belong to a separate comparison. This matters because the full difference between a basic BERT sentence vector and BERT-flow can reflect both a better representation before calibration and the subsequent change of coordinates.

The paper describes target text as the better source of flow-fitting examples on most datasets. It identifies SICK-R as the exception to that overall pattern. For BERT large on SICK-R, the last-two-layer score is 60.22. The score after fitting on NLI text is 64.62, and the target-text fit yields 62.50. For BERT base on SICK-R, the NLI-text flow yields 65.44, compared with 63.11 for target-text flow and 63.75 for the untransformed last-two-layer average. The authors suggest that the inference corpora may contain text closer to SICK-R because of the common entailment setting. They also point to the larger amount of inference text. The measurements establish that the ranking of the two fitting sources can change with the benchmark. They leave the relative contributions of size and domain unresolved.

Results after training on inference labels

The supervised STS comparison asks whether the same calibration helps an encoder already trained to distinguish sentence relations. The paper includes published results for InferSent with GloVe and for the Universal Sentence Encoder. It also compares with Sentence-BERT and a shared-encoder approach based on RoBERTa. The authors train their own base and large BERT encoders on the combined NLI data. They compare those runs with versions using the last-two-layer pooling and the two alternative flow-fitting corpora.

On STS-B, the authors’ base encoder trained on inference labels scores 77.08 with final-layer pooling and 78.03 with the last-two-layer average. Fitting the flow on raw NLI sentences yields 79.10, and fitting on the target sentences yields 81.03. The corresponding sequence of scaled Spearman scores for the large encoder is 77.80, 78.45, 79.89 and 81.18. These are the entries from the paper’s main STS table for the supervised encoder condition. The datasets are named there without a separate split designation.

The paper reports improvements over the supervised BERT baselines in most settings. SICK-R supplies a qualification in the large configuration. There, the last-two-layer average scores 74.93, target-text flow scores 74.52, and NLI-text flow reaches 77.73. The flow’s training objective is unchanged across these comparisons, yet its effect on the similarity rankings depends on which vectors it was fitted to. Comparing flow and no flow within the authors’ implementation is particularly helpful here, because the paper acknowledges that its supervised encoder results can differ from the earlier published Sentence-BERT runs.

Ranking question–answer entailment

The paper also evaluates Question Natural Language Inference, or QNLI. The task provides 110K question–answer pairs, with 5K+ designated for testing. A pair combines a question with a context sentence and is annotated for whether the sentence answers the question. The questions and corresponding contexts come from SQuAD. The QNLI benchmark comes from GLUE.

The authors encode the question and the candidate sentence separately and use cosine as the score. Entailment is the positive class, denoted 1, and non-entailment is the negative class, denoted 0. The reported metric is AUC, the area under the receiver operating characteristic curve. It evaluates how well the score distinguishes the classes across possible thresholds. A system can be compared with its alternatives without choosing a cutoff for deciding which sentences count as answers. The reported scores are from the QNLI validation set.

The encoders in this comparison have already been trained on labeled inference data. The question–answer experiment uses no task-specific labels to fit the representation or the comparison rule. With the base encoder, AUC is 70.30 for the last-two-layer average, 72.52 after fitting the flow on NLI raw sentences and 76.17 after fitting it on target text. The large encoder follows the same ordering. Its untransformed representation has an AUC of 70.41. The NLI-text fit raises it to 74.19, and the target-text fit to 77.09. This experiment changes what a useful ranking means. The sentence sought for a question must supply its answer, so general relatedness between two texts is only part of the criterion. The result shows that cosine after calibration helped this ranking as well.

BERT large with NLI encoder training on the QNLI validation set, AUC

Both flow settings improve question–answer ranking, with the target-text fit scoring highest.

BERT large with NLI encoder training on the QNLI validation set, AUCLast-two-layer average: 70.41Last-two-layer average70.41Last-two-layer average with NLI-text flow: 74.19Last-two-layer average with NLI-textflow74.19Last-two-layer average with target-text flow (this paper): 77.09Last-two-layer average with target-textflow (this paper)77.09
The numbers
System or settingAUC
Last-two-layer average70.41
Last-two-layer average with NLI-text flow74.19
Last-two-layer average with target-text flow (this paper)77.09

What the ablations show

Changing the pooling rule before fitting a flow

The pooling comparison changes which hidden vectors contribute to the sentence representation while keeping the cosine scoring procedure. The earlier published comparison makes the classification-position vector a reference point. Within the paper’s own runs, the direct comparison is between averaging the final layer and averaging the last two layers. The latter improves the untransformed scores across the reported STS benchmarks. The flow comparisons then start from that stronger version. This sequence matters when assigning credit. A direct comparison of the target-text flow with final-layer averaging includes a pooling change, whereas a comparison with the last-two-layer average isolates the addition of the fitted transformation for that encoder.

The authors also repeat the NLI-supervised STS-B comparison across 5 random seeds. For the large encoder with final-layer pooling, the mean scaled Spearman correlation is 77.26, the standard deviation is 1.76 and the median is 78.19. With the last-two-layer average, the mean is 78.07, the standard deviation is 1.50 and the median is 78.68. With that pooling rule and target-text flow, the mean is 81.10, the standard deviation is 0.55 and the median is 81.35. These are aggregate STS-B results for the supervised encoder setting. The appendix identifies the dataset without giving a separate split designation for those aggregates. The combination of a higher mean and a lower standard deviation shows how the result behaves across this particular set of seeds. The paper attributes some of the variability in the supervised comparisons to the initial inference training and also notes differences between implementations.

Comparing a flow with simpler geometric changes

The authors compare BERT-flow with post-processing methods that operate directly on the sentence vectors. Standard normalization, abbreviated SN, centers and rescales them. The paper writes the transformation in terms of the mean and standard deviation of the embeddings.

(u − μ) / σ

Here u is an original sentence embedding, μ is the mean of the embeddings used for normalization and σ is their standard deviation. The subtraction sign centers the embedding and the slash denotes division by the scale. This changes the location and scale used by the cosine calculation.

The second baseline is called nulling away top singular vectors, abbreviated NATSV. The procedure identifies directions with the greatest variation in the collection of embeddings and removes the component along the leading directions. The number of removed directions is k. The motivation is that variation shared by many vectors can dominate the score even when it gives weak evidence for the meaning of a particular sentence pair. The method directly suppresses such directions. Any useful distinctions carried in the components that have been removed are also unavailable to the resulting cosine.

In the separate STS-B comparison with these baselines, the starting BERT base score is 47.29. Normalization reaches 55.46. Removing singular directions gives 51.79 at k = 1 and 60.40 at k = 10. Combining the two operations gives 56.02 at k = 1 and 63.51 at k = 6. The target-text BERT-flow entry for this comparison is 65.62. These are scaled Spearman correlations for the separate STS-B calibration experiment. The validation set is used to choose k from 1 to 20. The calibration table gives no separate split designation for the displayed correlations. Its BERT-flow entry is 65.62 for this comparison, while the main benchmark table gives 70.72 for the base target-text flow with the default last-two-layer input.

Calibration methods for BERT base on STS-B, Spearman rank correlation

Combining normalization with removal of leading singular directions helps, and the target-text flow scores highest in this comparison.

Calibration methods for BERT base on STS-B, Spearman rank correlationBERT base: 47.29BERT base47.29Standard normalization: 55.46Standard normalization55.46Remove leading directions, k = 1: 51.79Remove leading directions, k = 151.79Remove leading directions, k = 10: 60.40Remove leading directions, k = 1060.40Normalize and remove leading directions, k = 1: 56.02Normalize and remove leading directions,k = 156.02Normalize and remove leading directions, k = 6: 63.51Normalize and remove leading directions,k = 663.51BERT-flow fitted on target text (this paper): 65.62BERT-flow fitted on target text (thispaper)65.62
The numbers
System or settingSpearman ρ × 100
BERT base47.29
Standard normalization55.46
Remove leading directions, k = 151.79
Remove leading directions, k = 1060.40
Normalize and remove leading directions, k = 156.02
Normalize and remove leading directions, k = 663.51
BERT-flow fitted on target text (this paper)65.62

This comparison establishes that several ways of changing geometry help on the same task. It also gives some scale to the advantage of the fitted flow over the tested alternatives. The most successful combination of centering, scaling and projection closes much of the gap between the starting vector and the flow in this experiment. The authors propose that preserving information may account for some of the remaining advantage. The comparison leaves room for other explanations because the flow changes several aspects of the distribution at once. It does not vary reversibility while keeping all other properties of the transformation fixed.

Looking at vocabulary frequency and local spacing

Before fitting BERT-flow, the authors group BERT’s vocabulary vectors by frequency rank, using counts from a Wikipedia dump. The smaller the rank, the more frequent the word. They compute the average distance from those vectors to the origin, measured by the Euclidean norm. In frequency order from the most frequent group to the least frequent group, the mean norms are 0.95, 1.04, 1.22 and 1.45. The groups show a regular increase in length as frequency falls. This is a measurement on the vocabulary embeddings. The proposal that this pattern influences the context and sentence representations is an interpretation of how the shared prediction geometry is learned.

The authors then compute the distance from each vocabulary vector to its nearest neighbors among all the vocabulary vectors. With k = 3 neighbors, the mean Euclidean distances in frequency order are 0.77, 0.93, 1.16 and 1.30. With k = 7 they are 0.87, 1.04, 1.26 and 1.37. Thus the rarer groups have greater distances even to their nearest available neighbors. The paper also reports nearest-neighbor dot products. At k = 3 those average dot products increase from 0.73 in the most frequent group to 1.63 in the least frequent group. A dot product depends on both angle and vector length, so the raw dot products and Euclidean distances capture different features of the frequency pattern.

The spacing measurements give the authors a reason to think that the vectors may occupy the space unevenly. The concern for sentence embeddings follows from the pooling operation. A pooled vector lies among the contextual points used to calculate it, and a line or region between observed points can pass through an area with few observed neighbors. Local vocabulary distances are indirect evidence for that concern. The experiment does not trace individual pooled vectors to such regions or show that particular errors occur whenever they do. Its contribution is to identify a concrete form of unevenness that can be investigated alongside results from changing the embedding distribution.

Testing the influence of wording overlap

The paper examines whether sentence scores are driven too strongly by surface resemblance. Its comparison uses edit distance, a measure of how much editing is needed to turn one sequence into the other. If a high cosine tends to occur when the edit distance is small, Spearman correlation between cosine and edit distance will be negative. The authors calculate that association across sentence pairs and compare it with the association between edit distance and human similarity judgments.

On the STS-B validation set, the displayed Spearman value between edit distance and human similarity is −24.61. With untransformed BERT cosine scores, the corresponding value is −50.49. With flow-based cosine scores, it is −28.01. In the same validation analysis, agreement with human similarity rises from 59.30 for the original BERT scores to 74.09 after transformation. The edit-distance relationship consequently moves closer to the pattern in the judgments while agreement with the judgments improves. Both comparisons are needed for the interpretation. Weaker dependence on overlap alone would be compatible with a score that had become less useful overall.

The scatterplot draws attention to pairs with edit distance at most 4. Surface similarity is especially conspicuous in the original BERT scores for these pairs. The authors illustrate the issue with a restaurant opinion whose verb is changed from liking to disliking. Much of the wording survives the change, while the speaker’s attitude is reversed. A sentence comparator that gives great weight to the unchanged material can rank such a pair as highly similar. The example explains how lexical proximity can be excessive even though shared wording is often helpful evidence. The plot and correlations establish a change in the aggregate relationship on this validation set. They do not score a defined collection of sentiment reversals or isolate how the flow handles such pairs individually.

Limitations

Qualifications the authors give

The paper presents the connection between masked prediction and context similarity as an argument about training signals. Its softmax equations describe context–word interactions. There is no analogous expression derived for the dot product of two context vectors. The authors also use vocabulary vectors as a surrogate in their empirical geometry analysis. Those vectors participate in the scoring process that shapes context representations, which motivates studying them. Frequency and spacing measurements on the vocabulary still leave a step between the measured quantities and a claim about the geometry of pooled sentences.

The authors report that choosing the flow’s fitting corpus affects performance. They give a domain-based explanation for the SICK-R exception and mention the much larger inference corpora as another possible factor. The comparison changes both corpus source and size. It cannot establish the effect of either factor on its own. Their implementation note also identifies sensitivity to random seeds in supervised inference training and potential differences from the earlier Sentence-BERT implementation. The multi-seed experiment addresses this variability for a large encoder on STS-B. The other dataset and fitting configurations lack the same repeated-run comparison.

Boundaries of the experimental setup

The target-text STS setting is unsupervised with respect to the human labels and uses test sentences to estimate the embedding distribution. That is an evaluation of adaptation with advance access to unlabeled target inputs. A system that must process an incoming sentence before seeing the rest of its target corpus faces a different condition. The NLI-text flow supplies evidence for transfer from a separate corpus, and its STS scores vary by configuration. Preliminary tuning on STS-B development data also matters when interpreting the full procedure. The likelihood objective runs without annotations, while the reported development process includes a benchmark-specific tuning step.

Reversibility has a specific scope. It guarantees that the transformed coordinates determine the original pooled vector. The cosine calculation uses the angle between transformed vectors and can give little weight to some distinctions the inverse could still recover. As a consequence, the result supports an empirical claim about improved access through this particular score. It does not establish that each semantic property present in BERT’s contextual states survives averaging or that the remaining errors are all consequences of the scoring geometry.

The Gaussian is the target of the fitting procedure. Held-out embeddings need not follow it exactly, and an invertible fit to the sentence vectors does not by itself establish that frequency is the cause of every distortion. The experiments compare complete calibrations rather than independently manipulating direction concentration, local density and the contribution of edit distance. The lexical analysis is on the STS-B validation set, and the frequency analysis is at the vocabulary level. Together they identify plausible mechanisms. An attribution of the improvement to any one mechanism would require a comparison that isolates it.

Finally, the evaluations concern rankings derived from independent sentence representations. The STS scores measure agreement with human relatedness rankings. The QNLI scores measure the ranking of possible answer sentences on the validation set and use encoders previously trained on labeled NLI data. The sequence-length cap of 64 is part of the reported setup. The paper therefore supplies evidence for semantic similarity and a related question–answer ranking task under those conditions. It leaves broader performance, including the effect of calibration on longer inputs and the amount of quality retained when moving to other kinds of tasks, open.

What came after

Later papers cite BERT-flow from several lines of research. Their connections are clearest where they also ask how to obtain a useful sentence space, how to identify directions that dominate its scores, or how to tell whether a sentence-similarity ranking will carry over to an application. The citing titles identify the methods and questions pursued in those papers. A citation by itself leaves open whether the later experiment reused the flow transformation.

Learning the representation through comparisons

SimCSE and ConSERT approach sentence embeddings through contrastive learning. The common point with BERT-flow is the geometry that a sentence representation presents to a comparison rule. BERT-flow fits a distributional transformation to already pooled vectors from a frozen encoder. A contrastive objective uses relationships between examples as a training signal for the representation. SimCSE presents this as a simple way to learn sentence embeddings. ConSERT frames its contribution as self-supervised transfer of sentence representations. That framing addresses the same practical problem that motivated fitting a flow on raw text, namely how to improve a representation when task-specific similarity judgments are unavailable. SimCSE · ConSERT

Self-Guided Contrastive Learning studies the same BERT sentence-representation problem with a self-guided contrastive objective. DiffCSE puts differences at the center of its contrastive approach to sentence embeddings. The paper’s edit-distance experiment makes the relation between these research questions concrete. A sentence space has to bring together texts that share meaning while retaining distinctions that can hinge on a small wording change. The difference-based title identifies what DiffCSE emphasizes in its learning objective. The result in BERT-flow comes from changing which distinctions are emphasized by the geometry after pooling. Self-Guided Contrastive Learning · DiffCSE

Other citing work moves the learning objective to a different stage or broadens the scope of the embedding. Multi-stage contrastive learning sets out to create general text embeddings through successive training stages. Contrastive pretraining for text and code puts the comparison objective in pretraining and applies it to both kinds of input. COCO-LM combines correction and contrast over text sequences during pretraining. These titles describe ways to shape the representations earlier in the pipeline. BERT-flow made it possible to hold the encoder fixed and measure what a change after pooling could achieve. The later directions ask what comparisons can be made easier by the way an encoder is trained. Towards General Text Embeddings with Multi-stage Contrastive Learning · Text and Code Embeddings by Contrastive Pre-Training · COCO-LM

A self-supervised study of converting masked-token predictors into lexical and sentence encoders takes up the transition from pretraining to usable representations at both scales. That is close to the original paper’s choice to examine vocabulary geometry while evaluating pooled sentences. AnglE, in turn, makes angular optimization the defining feature of its embedding method. The connection is direct at the level of the scoring problem. The angle between sentence vectors is the quantity BERT-flow changes through the fit to a Gaussian reference. AnglE identifies angle as the object of optimization in its own approach. Fast, Effective, and Self-Supervised · AnglE-optimized Text Embeddings

Examining what the geometry represents

The study of rogue dimensions asks how a small part of a representation can obscure its measured quality. This is closely related to the original comparison with removing leading singular directions. BERT-flow used that comparison to ask whether vocabulary frequency and dominant directions could interfere with sentence similarity and whether a reversible transformation could improve the comparison. The rogue-dimensions work names a more specific object of analysis, dimensions whose outsized influence obscures representational quality. The linear representation hypothesis work takes up geometry through a different question, how representational structure can be understood in linear terms. Both citing directions treat the measurement applied to the coordinates as part of what determines which properties of a representation are visible. All Bark and No Bite · The Linear Representation Hypothesis and Geometry

The study of meaning and language components in multilingual sentence embeddings identifies a different source of structure to investigate. The earlier paper measured frequency in vocabulary geometry and edit distance in sentence scores. The multilingual work asks how to disentangle meaning from language across a diverse collection of sentence embeddings. Map of Encoders studies another level of comparison by using quantum relative entropy to map the encoders themselves. BERT-flow compares sentence pairs within an embedding space. The mapping study makes the encoders the objects being compared, which changes what a geometric diagnostic is meant to reveal. Disentangling Meaning and Language Components · Map of Encoders

Testing sentence representations against a task

The paper asking why sentence-similarity benchmarks fail to predict application-oriented performance develops an evaluation question raised by the distinction between STS and QNLI. In STS, the aim is to put sentence pairs in the order implied by human relatedness scores. An application can require a narrower relation, as QNLI does when it asks whether a particular sentence answers a question. The later paper takes the relationship between benchmark scores and application performance as its subject. Work on scaling sentence embeddings examines what happens as the underlying encoders grow. Both questions concern the conditions under which a reported embedding improvement is likely to matter, with application choice and encoder scale supplying different axes of investigation. Sentence similarity benchmarks and application performance · Scaling Sentence Embeddings

Several citing works make the task or domain central to the embedding procedure. Template-assisted contrastive learning targets task-oriented dialogue sentence embeddings. MOSAIC combines a masked objective with selective adaptation for in-domain contrastive learning. BERT-flow adjusted the vector distribution to a target corpus using its raw sentences, and these later approaches name other ways to make representation learning responsive to a task or domain. In application work, embedding-informed adaptive retrieval uses embedding information in retrieval-augmented generation. DQ-LoRe studies reranking for in-context learning using dual queries and a low-rank approximation. These retrieve or re-rank items for another operation, so their end use gives the similarity score a more specific job than ordering general relatedness. Template-assisted Contrastive Learning · MOSAIC · Embedding-Informed Adaptive Retrieval-Augmented Generation · DQ-LoRe

RegTrack makes the target distinction finer still by defining a benchmark for multi-class legal change detection. This connects to the original paper’s surface-form analysis at the level of the task. Two texts can have considerable wording overlap while differing in a way the evaluation needs to preserve. Similar-region search applies the comparison question to a spatial feature space. That shifts the objects and features being compared while retaining the problem of deciding which distinctions a similarity rule should expose. Their citations place sentence-embedding geometry alongside application-defined criteria for useful resemblance. RegTrack · Similar Region Search

Other citations come from work on how text data for training and evaluation are obtained. One paper studies generating datasets with pretrained text predictors. AugGPT focuses specifically on text data augmentation with ChatGPT. GPTAraEval focuses on evaluation for Arabic NLP. These topics relate to the role of data in judging a representation, at the stages of example generation, augmentation and language-specific evaluation respectively. BERT-flow’s target-text experiments make the distribution of evaluation inputs relevant even when labels are hidden from the fitting objective. The later titles identify distinct ways the choice and availability of text can shape what gets trained or measured. Generating Datasets with Pretrained Language Models · AugGPT · GPTAraEval

 Institutions

 Fields, topics and concepts

 Shelves 5The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksArts and Humanities · 17,959 worksLanguage and Linguistics · 17,789 worksComputer Vision and Pattern Recognition · 3,621 works

 Topics 1Research subjects and languages the work is about.Language models & pretraining · 4,145 works

 Concepts 1Key ideas and methods explained on our concept pages.Semantic similarity · 29 works

Cite

Cite as Bohan Li, Hao Zhou, Junxian He, Mingxuan Wang, Yiming Yang and Lei Li. 2020. On the Sentence Embeddings from Pre-trained Language Models. Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2020.emnlp-main.733

@inproceedings{li2020sentence,
  title = {{On the Sentence Embeddings from Pre-trained Language Models}},
  author = {Bohan Li, Hao Zhou, Junxian He, Mingxuan Wang, Yiming Yang and Lei Li},
  booktitle = {Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP)},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.733},
  url = {https://doi.org/10.18653/v1/2020.emnlp-main.733}
}

References

35 references, 21 of them with a card of ours. Each entry links to our card when we hold the work, else to OpenAlex and Google Scholar searches for it.

  1. Eneko Agirre, Carmen Banea, Claire Cardie, Daniel Cer, Mona Diab, Aitor Gonzalez-Agirre, Weiwei Guo, Inigo Lopez-Gazpio, Montse Maritxalar, Rada Mihalcea, et al. 2015. SemEval-2015 task 2: Semantic textual similarity, english, spanish and pilot on interpretability. In Proceedings of SemEval.
  2. Eneko Agirre, Carmen Banea, Claire Cardie, Daniel Cer, Mona Diab, Aitor Gonzalez-Agirre, Weiwei Guo, Rada Mihalcea, German Rigau, and Janyce Wiebe. 2014. SemEval-2014 task 10: Multilingual semantic textual similarity. In Proceedings of SemEval.
  3. Eneko Agirre, Carmen Banea, Daniel Cer, Mona Diab, Aitor Gonzalez Agirre, Rada Mihalcea, German Rigau Claramunt, and Janyce Wiebe. 2016. SemEval-2016 task 1: Semantic textual similarity, monolingual and cross-lingual evaluation. In Proceedings of SemEval.
  4. Eneko Agirre, Daniel Cer, Mona Diab, and Aitor Gonzalez-Agirre. 2012. SemEval-2012 task 6: A pilot on semantic textual similarity. In Proceedings of SemEval.
  5. Eneko Agirre, Daniel Cer, Mona Diab, Aitor Gonzalez-Agirre, and Weiwei Guo. 2013. * SEM 2013 shared task: Semantic textual similarity. In Proceedings of SemEval.
  6. Sanjeev Arora, Yingyu Liang, and Tengyu Ma. 2017. A simple but tough-to-beat baseline for sentence embeddings. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  7. Samuel R Bowman, Gabor Angeli, Christopher Potts, and Christopher D Manning. 2015. A large annotated corpus for learning natural language inference. In Proceedings of EMNLP.
  8. Daniel Cer, Mona Diab, Eneko Agirre, Inigo Lopez-Gazpio, and Lucia Specia. 2017. SemEval-2017 task 1: Semantic textual similarity-multilingual and cross-lingual focused evaluation. arXiv preprint arXiv:1708.00055.
  9. Daniel Cer, Yinfei Yang, Sheng-yi Kong, Nan Hua, Nicole Limtiaco, Rhomni St John, Noah Constant, Mario Guajardo-Cespedes, Steve Yuan, Chris Tar, et al. 2018. Universal sentence encoder. arXiv preprint arXiv:1803.11175.
  10. Alexis Conneau and Douwe Kiela. 2018. SentEval: An evaluation toolkit for universal sentence representations. In Proceedings of LREC.
  11. Alexis Conneau, Douwe Kiela, Holger Schwenk, Loïc Barrault, and Antoine Bordes. 2017. Supervised learning of universal sentence representations from natural language inference data. In Proceedings of EMNLP.
  12. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. BERT: Pre-training of deep bidirectional transformers for language understanding. In Proceedings of NAACL.
  13. Laurent Dinh, David Krueger, and Yoshua Bengio. 2015. NICE: Non-linear independent components estimation. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  14. Kawin Ethayarajh. 2019. How contextual are contextualized word representations? comparing the geometry of bert, elmo, and gpt-2 embeddings. In Proceedings of EMNLP-IJCNLP. OpenAlex ↗ · Scholar ↗
  15. Kawin Ethayarajh, David Duvenaud, and Graeme Hirst. 2019. Towards understanding linear word analogies. In Proceedings of ACL. OpenAlex ↗ · Scholar ↗
  16. Jun Gao, Di He, Xu Tan, Tao Qin, Liwei Wang, and Tie-Yan Liu. 2019. Representation degeneration problem in training natural language generation models. In Proceedings of ICLR.
  17. Partha Ghosh, Mehdi SM Sajjadi, Antonio Vergari, Michael Black, and Bernhard Scholkopf. 2020. From variational to deterministic autoencoders. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  18. Durk P Kingma and Prafulla Dhariwal. 2018. Glow: Generative flow with invertible 1x1 convolutions. In Proceedings of NeurIPS. OpenAlex ↗ · Scholar ↗
  19. Ivan Kobyzev, Simon Prince, and Marcus A Brubaker. 2019. Normalizing flows: Introduction and ideas. arXiv preprint arXiv:1908.09257. OpenAlex ↗ · Scholar ↗
  20. Omer Levy and Yoav Goldberg. 2014. Neural word embedding as implicit matrix factorization. In Proceedings of NeurIPS. OpenAlex ↗ · Scholar ↗
  21. Bohan Li, Junxian He, Graham Neubig, Taylor Berg-Kirkpatrick, and Yiming Yang. 2019. A surprisingly effective fix for deep latent variable modeling of text. In Proceedings of EMNLP-IJCNLP. OpenAlex ↗ · Scholar ↗
  22. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019. RoBERTa: A robustly optimized BERT pretraining approach. arXiv preprint arXiv:1907.11692.
  23. Marco Marelli, Stefano Menini, Marco Baroni, Luisa Bentivogli, Raffaella Bernardi, Roberto Zamparelli, et al. 2014. A SICK cure for the evaluation of compositional distributional semantic models. In Proceedings of LREC.
  24. Jiaqi Mu, Suma Bhat, and Pramod Viswanath. 2017. All-but-the-top: Simple and effective postprocessing for word representations. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  25. Jeffrey Pennington, Richard Socher, and Christopher D Manning. 2014. GloVe: Global vectors for word representation. In Proceedings of EMNLP.
  26. Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei, and Ilya Sutskever. 2019. Language models are unsupervised multitask learners. OpenAI Blog, 1(8). OpenAlex ↗ · Scholar ↗
  27. Pranav Rajpurkar, Jian Zhang, Konstantin Lopyrev, and Percy Liang. 2016. SQuAD: 100,000+ questions for machine comprehension of text. In Proceedings of EMNLP.
  28. Nils Reimers and Iryna Gurevych. 2019. Sentence-BERT: Sentence embeddings using siamese BERT-networks. In Proceedings of EMNLP-IJCNLP.
  29. Danilo Jimenez Rezende and Fabio Viola. 2018. Taming VAEs. arXiv preprint arXiv:1810.00597. — arXiv:1810.00597 OpenAlex ↗ · Scholar ↗
  30. Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Łukasz Kaiser, and Illia Polosukhin. 2017. Attention is all you need. In Proceedings of NeurIPS.
  31. Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R Bowman. 2019. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In Proceedings of ICLR.
  32. Lingxiao Wang, Jing Huang, Kevin Huang, Ziniu Hu, Guangtao Wang, and Quanquan Gu. 2020. Improving neural language generation with spectrum control. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  33. Adina Williams, Nikita Nangia, and Samuel Bowman. 2018. A broad-coverage challenge corpus for sentence understanding through inference. In Proceedings of ACL.
  34. Zhilin Yang, Zihang Dai, Ruslan Salakhutdinov, and William W Cohen. 2018. Breaking the softmax bottleneck: A high-rank rnn language model. In Proceedings of ICLR. OpenAlex ↗ · Scholar ↗
  35. Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Russ R Salakhutdinov, and Quoc V Le. 2019. XLNet: Generalized autoregressive pretraining for language understanding. In Proceedings of NeurIPS.

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/li-2020-sentence-embeddings-pre-trained-language/