Year: 2019

Abstract:
Recent literature suggests that averaged word vectors followed by simple postprocessing outperform many deep learning methods on semantic textual similarity tasks. Furthermore, when averaged word vectors are trained supervised on large corpora of paraphrases, they achieve state-of-the-art results on standard STS benchmarks. Inspired by these insights, we push the limits of word embeddings even further. We propose a novel fuzzy bag-of-words (FBoW) representation for text that contains all the words in the vocabulary simultaneously but with different degrees of membership, which are derived from similarities between word vectors. We show that max-pooled word vectors are only a special case of fuzzy BoW and should be compared via fuzzy Jaccard index rather than cosine similarity. Finally, we propose DynaMax, a completely unsupervised and non-parametric similarity measure that dynamically extracts and max-pools good features depending on the sentence pair. This method is both efficient and easy to implement, yet outperforms current baselines on STS tasks by a large margin and is even competitive with supervised word vectors trained to directly optimise cosine similarity.

heading: 1 INTRODUCTION
text: Natural languages are able to encode sentences with similar meanings using very different vocabulary and grammatical constructs, which makes determining the semantic similarity between pieces of text a challenge. It is common to cast semantic similarity between sentences as the proximity of their vector representations. More than half a century since it was first proposed, the Bag-of-Words (BoW) representation (Harris, 1954; Salton et al., 1975; Manning et al., 2008) remains a popular baseline across machine learning (ML), natural language processing (NLP), and information retrieval (IR) communities. In recent years, however, BoW was largely eclipsed by representations learned through neural networks, ranging from shallow (Le & Mikolov, 2014; Hill et al., 2016) to recurrent (Kiros et al., 2015; Conneau et al., 2017; Subramanian et al., 2018a), recursive (Socher et al., 2013; Tai et al., 2015), convolutional (Kalchbrenner et al., 2014; Kim, 2014), self-attentive (Vaswani et al., 2017; Cer et al., 2018a) and hybrid architectures (Gan et al., 2017; Tang et al., 2017; Zhelezniak et al., 2018).
Interestingly, Arora et al. (2017) showed that averaged word vectors (Mikolov et al., 2013a; Pennington et al., 2014; Bojanowski et al., 2016; Joulin et al., 2017) weighted with the Smooth Inverse Frequency (SIF) scheme and followed by a Principal Component Analysis (PCA) post-processing procedure were a formidable baseline for Semantic Textual Similarity (STS) tasks, outperforming deep representations. Furthermore, Wieting et al. (2015; 2016) and Wieting & Gimpel (2018) showed that averaged word vectors trained supervised on large corpora of paraphrases achieve state-of-the-art results, outperforming even the supervised systems trained directly on STS.
Inspired by these insights, we push the boundaries of word vectors even further. We propose a novel fuzzy bag-of-words (FBoW) representation for text. Unlike classical BoW, fuzzy BoW contains all the words in the vocabulary simultaneously but with different degrees of membership, which are derived from similarities between word vectors.
Next, we show that max-pooled word vectors are a special case of fuzzy BoW. Max-pooling significantly outperforms averaging on standard benchmarks when word vectors are trained unsupervised.
Since max-pooled vectors are just a special case of fuzzy BoW, we show that the fuzzy Jaccard index is a more suitable alternative to cosine similarity for comparing these representations. By contrast, the fuzzy Jaccard index completely fails for averaged word vectors as there is no connection between the two. The max-pooling operation is commonplace throughout NLP and has been successfully used to extract features in supervised systems (Collobert et al., 2011; Kim, 2014; Kenter & de Rijke, 2015; De Boom et al., 2016; Conneau et al., 2017; Dubois, 2017; Shen et al., 2018); however, to the best of our knowledge, the present work is the first to study max-pooling of pre-trained word embeddings in isolation and to suggest theoretical underpinnings behind this operation.
Finally, we propose DynaMax, a completely unsupervised and non-parametric similarity measure that dynamically extracts and max-pools good features depending on the sentence pair. DynaMax outperforms averaged word vector with cosine similarity on every benchmark STS task when word vectors are trained unsupervised. It even performs comparably to Wieting & Gimpel (2018)’s vectors under cosine similarity, which is a striking result as the latter are in fact trained supervised to directly optimise cosine similarity between paraphrases, while our approach is completely unrelated to that objective. We believe this makes DynaMax a strong baseline that future algorithms should aim to beat in order to justify more complicated approaches to semantic similarity.
As an additional contribution, we conduct significance analysis of our results. We found that recent literature on STS tends to apply unspecified or inappropriate parametric tests, or leave out significance analysis altogether in the majority of cases. By contrast, we rely on nonparametric approaches with much milder assumptions on the test statistic; specifically, we construct bias-corrected and accelerated (BCa) bootstrap confidence intervals (Efron, 1987) for the delta in performance between two systems. We are not aware of any prior works that apply such methodology to STS benchmarks and hope the community finds our analysis to be a good starting point for conducting thorough significance testing on these types of experiments.

heading: 2 SENTENCES AS FUZZY SETS
text: The bag-of-words (BoW) model of representing text remains a popular baseline across ML, NLP, and IR communities. BoW, in fact, is an extension of a simpler set-of-words (SoW) model. SoW treats sentences as sets, whereas BoW treats them as multisets (bags) and so additionally captures how many times a word occurs in a sentence. Just like with any set, we can immediately compare SoW or BoW using set similarity measures (SSMs), such as
Jaccard(A,B) = |A ∩B| |A ∪B| , Otsuka(A,B) = |A ∩B|√ |A| × |B| , and Dice(A,B) = 2|A ∩B| |A|+ |B| .
These coefficients usually follow the pattern #{shared elements}#{total elements} . From this definition, it is clear that sets with no shared elements have a similarity of 0, which is undesirable in NLP as sentences with completely different words can still share the same meaning. But can we do better?
For concreteness, let’s say we want to compare two sentences corresponding to the sets A = {‘he’, ‘has’, ‘a’, ‘cat’} and B = {‘she’, ‘had’, ‘one’, ‘dog’}. The situation here is that A ∩ B = ∅ and so their similarity according to any SSM is 0. Yet, both A and B describe pet ownership and should be at least somewhat similar. If a set contains the word ‘cat’, it should also contain a bit of ‘pet’, a bit of ‘animal’, also a little bit of ‘tiger’ but perhaps not too much of an ‘airplane’. If both A and B contained ‘pet’, ‘animal’, etc. to some degree, they would have a non-zero similarity.
This intuition is the main idea behind fuzzy sets: a fuzzy set includes all words in the vocabulary simultaneously, just with different degrees of membership. This generalises classical sets where a word either belongs to a set or it doesn’t.
We can easily convert a singleton set such as {‘cat’} into a fuzzy set using a similarity function sim(wi, wj) between words. We simply compute the similarities between ‘cat’ and all the words wj in the vocabulary and treat those values as membership degrees. As an example, the set {‘cat’} really becomes {‘cat’ : 1, ‘pet’ : 0.9, ‘animal’ : 0.85, . . . , ‘airplane’ : 0.05, . . .} Fuzzifying singleton sets is straightforward, but how do we go about fuzzifying the entire sentence {‘he’, ‘has’, ‘a’, ‘cat’}? Just as we use the classical union operation ∪ to build bigger sets from smaller ones, we use the fuzzy union to do the same but for fuzzy sets. The membership degree of a
word in the fuzzy union is determined as the maximum membership degree of that word among each of the fuzzy sets we want to unite. This might sound somewhat arbitrary: after all, why max and not, say, sum or average? We explain the rationale in Section 2.1; and in fact, we use the max for the classical union all the time without ever noticing it. Indeed, {‘cat’} ∪ {‘cat’} = {‘cat’} and not {‘cat’ : 2}. This is simply because we computed max(1, 1) = 1 and not sum(1, 1) = 2. Similarly {‘cat’} ∪∅ = {‘cat’} since max(1, 0) = 1 and not avg(1, 0) = 1/2. The key insight here is the following. An object that assigns the degrees of membership to words in a fuzzy set is called the membership function. Each word defines a membership function, and even though ‘cat’ and ‘dog’ are different, they are semantically similar (in terms of cosine similarity between their word vectors, for example) and as such give rise to very similar membership functions. This functional proximity will propagate into the SSMs, thus rendering them a much more realistic model for capturing semantic similarity between sentences. To actually compute the fuzzy SSMs, we need just a few basic tools from fuzzy set theory, all of which we briefly cover in the next section.

heading: 2.1 FUZZY SETS: THE BARE MINIMUM
text: Fuzzy set theory (Zadeh, 1996) is a well-established formalism that extends classical set theory by incorporating the idea that elements can have degrees of membership in a set. Constrained by space, we define the bare minimum needed to compute the fuzzy set similarity measures and refer the reader to Klir et al. (1997) for a much richer introduction.
Definition: A set of all possible terms V = {w1, w2, . . . , wN} that occur in a certain domain is called a universe.
Definition: A function µ : V→ L ⊆ R is called a membership function. Definition: A pair A = (V, µ) is called a fuzzy set.
Notice how the above definition covers all the set-like objects we discussed so far. If L = {0, 1}, then A is simply a classical set and µ is its indicator (characteristic) function. If L = N≥0 (non-negative integers), then A is a multiset (a bag) and µ is called a count (multiplicity) function. In literature, A is called a fuzzy set when L = [0, 1]. However, we make no restrictions on the range and call A a fuzzy set even when L = R, i.e. all real numbers.
Definition: Let A = (V, µ) and B = (V, ν) be two fuzzy sets. The union of A and B is a fuzzy set A ∪B = (V,max(µ, ν)). The intersection of A and B is a fuzzy set A ∩B = (V,min(µ, ν)). Interestingly, there are many other choices for the union and intersection operations in fuzzy set theory. However, only the max-min pair makes these operations idempotent, i.e. such thatA∪A = A and A ∩ A = A, just as in the classical set theory. By contrast, it is not hard to verify that neither sum nor average satisfy the necessary axioms to qualify as a fuzzy union or intersection.
Definition: Let A = (V, µ) be a fuzzy set. The number |A| = ∑
w∈V µ(w) is called the cardinality of a fuzzy set.
Fuzzy set theory provides a powerful framework for reasoning about sets with uncertainty, but the specification of membership functions depends heavily on the domain. In practice these can be designed by experts or learned from data; below we describe a way of generating membership functions for text from word embeddings.

heading: 2.2 FUZZY BAG-OF-WORDS
text: From the algorithmic point of view any bag-of-words is just a row vector. The i-th term in the vocabulary has a corresponding N -dimensional one-hot encoding e(i). The vectors e(i) are orthonormal and in totality form the standard basis of RN . The BoW vector for a sentence S is simply bS = ∑N i=1 cie (i), where ci is the count of the word wi in S.
The first step in creating the fuzzy BoW representation is to convert every term vector e(i) into a membership vector µ(i). It really is the same as converting a singleton set {wi} into a fuzzy set. We call this operation ‘word fuzzification’, and in the matrix form it is simply written as
Algorithm 1 DynaMax-Jaccard Input: Word embeddings for the first sentence x(1),x(2) . . . ,x(k) ∈ R1×d Input: Word embeddings for the second sentence y(1),y(2) . . . ,y(l) ∈ R1×d Input: A vector with all zeros z ∈ R1×(k+l) Output: Similarity score DMJ X ← STACK ROWS(x(1),x(2) . . . ,x(k)) Y ← STACK ROWS(y(1),y(2) . . . ,y(l)) U ← STACK ROWS(X,Y ) x← MAX POOL ELEMENTWISE(x(1)UT ,x(2)UT . . . ,x(k)UT , z) y ← MAX POOL ELEMENTWISE(y(1)UT ,y(2)UT . . . ,y(l)UT , z)
r ← MIN POOL ELEMENTWISE(x,y) q ← MAX POOL ELEMENTWISE(x,y) DMJ ← ∑ i=1:(k+l) ri/ ∑ i=1:(k+l) qi
µ(i) = e(i)WUT . (1)
Here W ∈ RN×d is the word embedding matrix and U ∈ RK×d is the ‘universe’ matrix. Let us dissect the above expression. First, we convert a one-hot vector into a word embeddingw(i) = e(i)W . This is just an embedding lookup and is exactly the same as the embedding layer in neural networks. Next, we compute a vector of similarities µ(i) = w(i)UT between w(i) and all the K vectors in the universe. The most sensible choice for the universe matrix is the word embedding matrix itself, i.e. U = W . In that case, the membership vector µ(i) has the same dimensionality as e(i) but contains similarities between the word wi and every word in the vocabulary (including itself).
The second step is to combine all µ(i) back into a sentence membership vector µs. At this point, it’s very tempting to just sum or average over all µ(i), i.e. compute 1N ∑N i=1 ciµ
(i). But we remember: in fuzzy set theory the union of the membership vectors is realised by the element-wise max-pooling. In other words, we don’t take the average but max-pool instead:
µS = N
max i=1
ciµ (i). (2)
Here the max returns a vector where each dimension contains the maximum value along that dimension across all N input vectors. In NLP this is also known as max-over-time pooling (Collobert et al., 2011). Note that any given sentence S usually contains only a small portion of the total vocabulary and so most word counts ci will be 0. If the count ci is 0, then we have no need for µ(i) and can avoid a lot of useless computations, though we must remember to include the zero vector in the max-pooling operation.
We call the sentence membership vector µS the fuzzy bag-of-words (FBoW) and the procedure that converts classical BoW bS into fuzzy BoW µS the ‘sentence fuzzification’.

heading: 2.2.1 THE FUZZY JACCARD INDEX
text: Suppose we have two fuzzy BoW µA and µB . How can we compare them? Since FBoW are just vectors, we can use the standard cosine similarity cos(µA,µB). On the other hand, FBoW are also fuzzy sets and as such can be compared via fuzzy SSMs. We simply copy the definitions of fuzzy union, intersection and cardinality from Section 2.1 and write down the fuzzy Jaccard index:
Jaccard(A,B) = |A ∩B| |A ∪B|
fuzzy−−−→ FJaccard(µA,µB) = ∑K i=1 min(µ A i ,µ B i )∑K
i=1 max(µ A i ,µ B i ) .
Exactly the same can be repeated for other SSMs. In practice we found their performance to be almost equivalent but always better than standard cosine similarity (see Appendix B).

heading: 2.2.2 SMALLER UNIVERSES AND MAX-POOLED WORD VECTORS
text: So far we considered the universe and the word embedding matrix to be the same, i.e. U = W . This means any FBoW µS contains similarities to all the words in the vocabulary and has exactly the same dimensionality as the original BoW bS . Unlike BoW, however, FBoW is almost never sparse. This motivates us to choose the matrix U with fewer rows thatW . For example, the top principal axes of W could work. Alternatively, we could clusterW into k clusters and keep the centroids. Of course, the rows of such U are no longer word vectors but instead some abstract entities.
A more radical but completely non-parametric solution is to choose U = I , where I ∈ Rd×d is just the identity matrix. Then the word fuzzifier reduces to a word embedding lookup:
µ(i) = e(i)WUT = e(i)WIT = e(i)W = w(i). (3)
The sentence fuzzifier then simply max-pools all the word embeddings found in the sentence:
µS = max wi∈S ciw (i). (4)
From this we see that max-pooled word vectors are only a special case of fuzzy BoW. Remarkably, when word vectors are trained unsupervised, this simple representation combined with the fuzzy Jaccard index is already a stronger baseline for semantic textual similarity than the averaged word vector with cosine similarity, as we will see in Section 4.
More importantly, the fuzzy Jaccard index works for max-pooled word vectors but completely fails for averaged word vectors. This empirically validates the connection between fuzzy BoW representations and the max-pooling operation described above.

heading: 2.2.3 THE DYNAMAX ALGORITHM
text: From the linear-algebraic point of view, fuzzy BoW is really the same as projecting word embeddings on a subspace of Rd spanned by the rows of U , followed by max-pooling of the features extracted by this projection. A fair question then is the following. If we want to compare two sentences, what subspace should we project on? It turns out that if we take word embeddings for the first sentence and the second sentence and stack them into matrix U , this seems to be a sufficient space to extract all the features needed for semantic similarity. We noticed this empirically, and while some other choices of U do give better results, finding a principled way to construct them remains future work. The matrix U is not static any more but instead changes dynamically depending on the sentence pair. We call this approach Dynamic Max or DynaMax and provide pseudocode in Algorithm 1.

heading: 2.2.4 PRACTICAL CONSIDERATIONS
text: Just as SoW is a special case of BoW, we can build the fuzzy set-of-words (FSoW) where the word counts ci are binary. The performance of FSoW and FBoW is comparable, with FBoW being marginally better. For simplicity, we implement FSoW in Algorithm 1 and in all our experiments.
As evident from Equation (1), we use dot product as opposed to (scaled or clipped) cosine similarity for the membership functions. This is a reasonable choice as most unsupervised and some supervised word vectors maximise dot products in their objectives. For further analysis, see Appendix A.

heading: 3 RELATED WORK
text: Any method that casts semantic similarity between sentences as the proximity of their vector representations is related to our work. Among those, the ones that strengthen bag-of-words by incorporating the sense of similarity between individual words are the most relevant.
The standard Vector Space Model (VSM) basis e(i) is orthonormal and so the BoW model treats all words as equally different. Sidorov et al. (2014) proposed the ‘soft cosine measure’ to alleviate this issue. They build a non-orthogonal basis f (i) where cos(f (i),f (j)) = sim(wi, wj), i.e. the cosine similarity between the basis vectors is given by similarity between words. Next, they rewrite BoW in
terms of f (i) and compute cosine similarity between transformed representations. However, when cos(f (i),f (j)) = cos(wi,wj), where wi,wj are word embeddings, their approach is equivalent to cosine similarity between averaged word embeddings, i.e. the standard baseline.
Kusner et al. (2015) consider L1-normalised bags-of-words (nBoW) and view them as a probability distributions over words. They propose the Word Mover’s Distance (WMD) as a special case of the Earth Mover’s Distance (EMD) between nBoW with the cost matrix given by pairwise Euclidean distances between word embeddings. As such, WMD does not build any new representations but puts a lot of structure into the distance between BoW.
Zhao & Mao (2017) proposed an alternative version of fuzzy BoW that is conceptually similar to ours but executed very differently. They use clipped cosine similarity between word embeddings to compute the membership values in the word fuzzification step. We use dot product not only because it is theoretically more general but also because dot product leads to significant improvements on the benchmarks. More importantly, however, their sentence fuzzification step uses sum to aggregate word membership vectors into a sentence membership vector. We argue that max-pooling is a better choice because it corresponds to the fuzzy union. Had we used the sum, the representation would have really reduced to a (projected) summed word vector. Lastly, they use FBoW as features for a supervised model but stop short of considering any fuzzy similarity measures, such as fuzzy Jaccard index.
Jimenez et al. (2010; 2012; 2013; 2014; 2015) proposed and developed soft cardinality as a generalisation to the classical set cardinality. In their framework set membership is crisp, just as in classical set theory. However, once the words are in a set, their contribution to the overall cardinality depends on how similar they are to each other. The intuition is that the set A = {‘lion’, ‘tiger’, ‘leopard’} should have cardinality much less than 3, because A contains very similar elements. Likewise, the set B = {‘lion’, ‘airplane’, ‘carrot’} deserves a cardinality closer to 3. We see that the soft cardinality framework is very different from our approach, as it ‘does not consider uncertainty in the membership of a particular element; only uncertainty as to the contribution of an element to the cardinality of the set’ (Jimenez et al., 2010).

heading: 4 EXPERIMENTS
text: To evaluate the proposed similarity measures we set up a series of experiments on the established STS tasks, part of the SemEval shared task series 2012-2016 (Agirre et al., 2012; 2013; 2014; Agirre, 2015; Agirre et al., 2016; Cer et al., 2017). The idea behind the STS benchmarks is to measure
how well the semantic similarity scores computed by a system (algorithm) correlate with human judgements. Each year’s STS task itself consists of several subtasks. By convention, we report the mean Pearson correlation between system and human scores, where the mean is taken across all the subtasks in a given year.
Our implementation wraps the SentEval toolkit (Conneau & Kiela, 2018) and is available on GitHub1. We also rely on the following publicly available word embeddings: GloVe (Pennington et al., 2014) trained on Common Crawl (840B tokens); fastText (Bojanowski et al., 2016) trained on Common Crawl (600B tokens); word2vec (Mikolov et al., 2013b;c) trained on Google News, CoNLL (Zeman et al., 2017), and Book Corpus (Zhu et al., 2015); and several types of supervised paraphrastic vectors – PSL (Wieting et al., 2015), PP-XXL (Wieting et al., 2016), and PNMT (Wieting & Gimpel, 2018).
We estimated word frequencies on an English Wikipedia dump dated July 1st 2017 and calculated word weights using the same approach and parameters as in Arora et al. (2017). Note that these weights can in fact be derived from word vectors and frequencies alone rather than being inferred from the validation set (Ethayarajh, 2018), making our techniques fully unsupervised. Finally, as the STS’13 SMT dataset is no longer publicly available, the mean Pearson correlations reported in our experiments involving this task have been re-calculated accordingly.
We first ran a set of experiments validating the insights and derivations described in Section 2. These results are presented in Figure 1. The main takeaways are the following:
• Max-pooled word vectors outperform averaged word vectors in most tasks. • Max-pooled vectors with cosine similarity perform worse than max-pooled vectors with
fuzzy Jaccard similarity. This supports our derivation of max-pooled vectors as a special case of fuzzy BoW, which thus should be compared via fuzzy set similarity measures and not cosine similarity (which would be an arbitrary choice).
• Averaged vectors with fuzzy Jaccard similarity completely fail. This is because fuzzy set theory tells us that the average is not a valid fuzzy union operation, so a fuzzy set similarity is not appropriate for this representation.
• DynaMax shows the best performance across all tasks, possibly thanks to its superior ability to extract and max-pool good features from word vectors.
Next we ran experiments against some of the related methods described in Section 3, namely WMD (Kusner et al., 2015) and soft cardinality (Jimenez et al., 2015) with clipped cosine similarity as an affinity function and the softness parameter p = 1. From Figure 2, we see that even classical Jaccard index is a reasonable baseline, but fuzzy Jaccard especially in the DynaMax formulation handily outperforms comparable methods.
For context and completeness, we also compare against other popular sentence representations from the literature in Table 1. We include the following methods: BoW with ELMo embeddings
1https://github.com/Babylonpartners/fuzzymax
(Peters et al., 2018), Skip-Thought (Kiros et al., 2015), InferSent (Conneau et al., 2017), Universal Sentence Encoder with DAN and Transformer (Cer et al., 2018b), and STN multitask embeddings (Subramanian et al., 2018b). These experiments lead to an interesting observation:
• PNMT embeddings are the current state-of-the-art on STS tasks. PP-XXL and PNMT were trained supervised to directly optimise cosine similarity between average word vectors on very large paraphrastic datasets. By contrast, DynaMax is completely unrelated to the training objective of these vectors, yet has an equivalent performance.
Finally, another well-known and high-performing simple baseline was proposed by Arora et al. (2017). However, as also noted by Mu & Viswanath (2018), this method is still offline because it computes the sentence embeddings for the entire dataset, then performs PCA and removes the top principal component. While their method makes more assumptions than ours, nonetheless we make a head-to-head comparison with them in Table 2 using the same word vectors as in Arora et al. (2017), showing that DynaMax is still quite competitive.
To strengthen our empirical findings, we provide ablation studies for DynaMax in Appendix C, showing that the different components of the algorithm each contribute to its strong performance. We also conduct significance testing in Appendix D by constructing bias-corrected and accelerated (BCa) bootstrap confidence intervals (Efron, 1987) for the delta in performance between two algorithms. This constitutes, to the best of our knowledge, the first attempt to study statistical significance on the STS benchmarks with this type of non-parametric analysis that respects the statistical peculiarities of these datasets.

heading: 5 CONCLUSION
text: In this work we combine word embeddings with classic BoW representations using fuzzy set theory. We show that max-pooled word vectors are a special case of FBoW, which implies that they should be compared via the fuzzy Jaccard index rather than the more standard cosine similarity. We also present a simple and novel algorithm, DynaMax, which corresponds to projecting word vectors onto a subspace dynamically generated by the given sentences before max-pooling over the features. DynaMax outperforms averaged word vectors compared with cosine similarity on every benchmark STS task when word vectors are trained unsupervised. It even performs comparably to supervised vectors that directly optimise cosine similarity between paraphrases, despite being completely unrelated to that objective.
Both max-pooled vectors and DynaMax constitute strong baselines for further studies in the area of sentence representations. Yet, these methods are not limited to NLP and word embeddings, but can in fact be used in any setting where one needs to compute similarity between sets of elements that have rich vector representations. We hope to have demonstrated the benefits of experimenting more with similarity metrics based on the building blocks of meaning such as words, rather than complex representations of the final objects such as sentences.

heading: ACKNOWLEDGMENTS
text: We would like to thank John Wieting for sharing with us his latest state-of-the-art ParaNMT embeddings, so that we could include the most up-to-date comparisons in the present work.

heading: B COMPARISON OF FUZZY SET SIMILARITY MEASURES
text: In Section 2 we mentioned several set similarity measures such as Jaccard (Jaccard, 1901), OtsukaOchiai (Otsuka, 1936; Ochiai, 1957) and Sørensen–Dice (Dice, 1945; Sørensen, 1948) coefficients. Here in Table 4, we show that fuzzy versions of the above coefficients have almost identical performance, thus confirming that our results are in no way specific to the Jaccard index.

heading: C DYNAMAX ABLATION STUDIES
text: The DynaMax-Jaccard similarity (Algorithm 1) consists of three components: the dynamic universe, the max-pooling operation, and the fuzzy Jaccard index. As with any algorithm, it is very important to track the sources of improvements. Consequently, we perform a series of ablation studies in order to isolate the contribution of each component. For brevity, we focus on fastText because it produced the strongest results for both the DynaMax and the baseline (Figure 1).
The results of the ablation study are presented in Table 5. First, we show that the dynamic universe is superior to other sensible choices, such as the identity and random 300 × 300 projection with components drawn from N (0, 1). Next, we show that the fuzzy Jaccard index beats the standard cosine similarity on 4 out 5 benchmarks. Finally, we find that max considerably outperforms other pooling operations such as averaging, sum and min. We conclude that all three components of DynaMax are very important. It is clear that max-pooling is the top contributing factor, followed by the dynamic universe and the fuzzy Jaccard index, whose contributions are roughly equal.

heading: D SIGNIFICANCE ANALYSIS
text: As discussed in Section 4, the core idea behind the STS benchmarks is to measure how well the semantic similarity scores computed by a system (algorithm) correlate with human judgements. In this section we provide detailed results and significance analysis for all 24 STS subtasks. Our approach can be formally summarised as follows. We assume that the human scores H , the system scores A and the baseline system scores B jointly come from some trivariate distribution P (H,A,B), which is specific to each subtask. To compare the performance of two systems, we compute the sample Pearson correlation coefficients rAH and rBH . Since these correlations share the variable H , they
are themselves dependent. There are several parametric tests for the difference between dependent correlations; however, their appropriateness beyond the assumptions of normality remains an active area of research (Hittner et al., 2003; Wilcox & Tian, 2008; Wilcox, 2009). The distributions of the human scores in the STS tasks are generally not normal; what’s more, they vary greatly depending on the subtask (some are multimodal, others are skewed, etc.).
Fortunately, nonparametric resampling-based approaches, such as bootstrap (Efron & Tibshirani, 1994), present an attractive alternative to parametric tests when the distribution of the test statistic is unknown. In our case, the statistic is simply the difference between two correlations ∆̂ = rAH−rBH . The main idea behind bootstrap is intuitive and elegant: just like a sample is drawn from the population, a large number of ‘bootstrap’ samples can be drawn from the actual sample. In our case, the dataset consists of triplets D = {(hi, ai, bi)}Mi=1. Each bootstrap sample is a result of drawing M data points from D with replacement. Finally, we approximate the distribution of ∆ by evaluating it on a large number of bootstrap samples, in our case ten thousand. We use this information to construct bias-corrected and accelerated (BCa) 95% confidence intervals for ∆. BCa (Efron, 1987) is a fairly advanced second-order method that accounts for bias and skewness in the bootstrapped distributions, effects we did observe to a small degree in certain subtasks.
Once we have the confidence interval for ∆, the decision rule is then simple: if zero is inside the interval, then the difference between correlations is not significant. Inversely, if zero is outside, we may conclude that the two approaches lead to statistically different results. The location of the interval further tells us which one performs better. The results are presented in Table 6. In summary, out of 72 experiments we significantly outperform the baseline in 56 (77.8%) and underperform in only one (1.39%), while in the remaining 15 (20.8%) the differences are nonsignificant. We hope our analysis is useful to the community and will serve as a good starting point for conducting thorough significance testing on the current as well as future STS benchmarks.
Ta bl
e 6:
Pe ar
so n
co rr
el at
io n
fo rD
yn aM
ax an
d av
er ag
ed w
or d
ve ct
or ,a
nd th
e 95
% co
nfi de
nc e
in te
rv al
fo rt
he di
ff er
en ce
be tw
ee n
tw o
co rr
el at
io ns
.A cc
or di
ng to
th is
an al
ys is
,D yn
aM ax
si gn
ifi ca
nt ly
ou tp
er fo
rm s
th e
ba se
lin e
in 77
.8 %
of th
e ex
pe ri
m en
ts an
d si
gn ifi
ca nt
ly lo
se s
in on
ly 1.
39 %
of th
em .I
n th
e re
m ai
ni ng
20 .8
% of
th e
ex pe
ri m
en ts
th e
tw o
ap pr
oa ch
es pe
rf or
m st
at is
tic al
ly th
e sa
m e.
G lo
V e
fa st
Te xt
w or
d2 ve c D yn aM ax -J A vg .C os . ∆ 9 5 % C I D yn aM ax -J A vg .C os . ∆ 9 5 % C I D yn aM ax -J A vg .C os .
∆ 9 5 %
C I
STS12
M SR
pa r
49 .4
1 42
.5 5
[3 .2
0, 10
.6 7]
48 .9
4 40
.3 9
[4 .7
8, 12
.3 5]
41 .7
4 39
.7 2
[- 1.
03 ,4
.9 9]
M SR
vi d
71 .9
2 66
.2 1
[3 .9
7, 7.
70 ]
76 .2
0 73
.7 7
[1 .1
3, 3.
78 ]
76 .8
6 78
.1 1
[- 2.
25 ,-
0. 28 ] SM Te ur op ar l 48 .4 3 48 .3 6 [- 4. 60 ,5 .9 2] 53 .0 8 53 .0 3 [- 3. 07 ,3 .3 3] 28 .0 3 16 .0 6 [8 .6 9, 15 .0 5] su rp ri se .O nW N 69 .8 6 57 .0 3 [9 .6 9, 16 .4 4] 72 .7 9 68 .9 2 [1 .8 4, 6. 03 ] 71 .2 6 71 .0 6 [- 1. 39 ,1 .7 3] su rp ri se .S M T ne w s 51 .4 7 46 .2 7 [0 .0 3, 10 .8 0] 53 .2 6 55 .2 0 [- 6. 12 ,2 .1 5] 50 .4 4 52 .9 1 [- 6. 38 ,1 .4 5]
STS13
FN W
N 39
.7 9
38 .2
1 [-
6. 38
,9 .9
9] 42
.3 4
39 .8
3 [-
5. 98
,1 0.
72 ]
42 .3
4 41
.2 2
[- 6.
93 ,8
.4 0]
he ad
lin es
69 .9
1 63
.3 9
[4 .8
1, 8.
33 ]
73 .1
3 70
.8 3
[1 .0
4, 3.
61 ]
66 .6
6 65
.2 2
[0 .1
5, 2.
74 ]
O nW
N 52
.1 2
47 .2
0 [2
.0 0,
8. 06
] 65
.3 5
63 .0
3 [0
.3 3,
4. 36
] 69
.3 6
68 .2
9 [-
0. 63
,2 .7
1]
STS14
de ft
-f or
um 43
.2 9
30 .0
2 [8
.1 7,
18 .9
4] 47
.1 6
40 .1
9 [3
.1 7,
11 .0
3] 47
.2 7
42 .6
6 [0
.8 6,
9. 32 ] de ft -n ew s 70 .5 5 64 .9 5 [0 .9 8, 10 .9 3] 71 .0 4 71 .1 5 [- 3. 73 ,3 .3 4] 65 .8 4 67 .2 8 [- 4. 66 ,2 .0 3] he ad lin es 64 .4 9 58 .6 7 [3 .9 2, 7. 98 ] 68 .2 2 66 .0 3 [0 .9 9, 3. 54 ] 63 .6 6 61 .8 8 [0 .5 1, 3. 32 ] im ag es 75 .0 5 62 .3 8 [1 0. 11 ,1 5. 70 ] 79 .3 9 71 .4 5 [6 .1 5, 10 .0 3] 80 .5 1 77 .4 6 [1 .8 4, 4. 35 ] O nW N 63 .0 0 57 .7 1 [3 .1 0, 7. 77 ] 72 .8 3 70 .4 7 [0 .9 2, 3. 84 ] 75 .4 3 75 .1 2 [- 0. 83 ,1 .4 5] tw ee tne w s 74 .3 0 53 .8 7 [1 6. 44 ,2 5. 51 ] 78 .4 1 70 .1 8 [5 .7 8, 11 .5 6] 75 .4 7 69 .2 6 [4 .0 4, 9. 07 ]
STS15
an sw
er s-
fo ru
m s
61 .9
4 36
.6 6
[2 0.
01 ,3
0. 94
] 73
.5 7
56 .9
1 [1
2. 51
,2 1.
44 ]
66 .4
4 53
.9 5
[8 .1
0, 17
.2 3]
an sw
er s-
st ud
en ts
73 .5
3 63
.6 2
[7 .3
4, 13
.4 9]
75 .8
2 71
.8 1
[2 .4
5, 5.
59 ]
75 .0
7 72
.7 8
[0 .9
6, 3.
79 ]
be lie
f 67
.2 1
44 .7
8 [1
7. 48
,2 9.
42 ]
76 .1
4 60
.6 2
[1 1.
61 ,2
1. 38
] 75
.8 3
61 .8
9 [1
0. 45
,1 8.
08 ]
he ad
lin es
72 .2
6 66
.2 1
[4 .2
0, 8.
20 ]
74 .4
5 72
.5 3
[0 .8
4, 3.
06 ]
69 .9
5 68
.7 2
[0 .2
3, 2.
32 ]
im ag
es 79
.3 0
69 .0
9 [8
.2 3,
12 .5
6] 83
.3 3
76 .1
2 [5
.6 5,
8. 98
] 83
.8 0
80 .2
2 [2
.4 5,
4. 85
]
STS16
an sw
er -a
ns w
er 59
.7 2
40 .1
2 [1
3. 35
,2 6.
62 ]
63 .3
0 45
.1 3
[1 2.
40 ,2
4. 85
] 58
.7 8
43 .1
4 [1
0. 26
,2 1.
60 ]
he ad
lin es
71 .7
1 61
.3 8
[6 .8
8, 14
.7 7]
73 .4
0 70
.3 7
[1 .0
4, 5.
27 ]
68 .1
8 66
.6 4
[- 0.
21 ,3
.3 8]
pl ag
ia ri
sm 79
.9 2
54 .6
1 [1
8. 76
,3 3.
16 ]
82 .6
8 74
.4 9
[4 .0
7, 13
.1 4]
82 .0
5 76
.4 6
[2 .4
1, 9.
09 ]
po st
ed iti
ng 80
.4 8
53 .8
8 [2
1. 55
,3 2.
64 ]
84 .1
5 68
.7 6
[9 .0
0, 23
.9 5]
81 .7
3 73
.3 5
[5 .5
2, 12
.4 7]
qu es
tio n-
qu es
tio n
63 .5
1 47
.2 1
[1 0.
06 ,2
5. 17
] 69
.7 1
62 .6
2 [2
.9 1,
11 .3
0] 65
.7 4
63 .7
4 [-
1. 85
,6 .1
0]

Review summaries:
This submission presents a simple model for sentence representation based on max-pooling of word vectors. The model is motivated by fuzzy-set theory, providing both a funded pooling scheme and a similarity score between documents. The proposed approach is evaluated on sentence similarity tasks (STS) and achieves very strong performance, comparable to state-of-the-art, computationally demanding methods.