<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nikhil Birajdar on Medium]]></title>
        <description><![CDATA[Stories by Nikhil Birajdar on Medium]]></description>
        <link>https://medium.com/@nikhilbirajdar123?source=rss-c9b731dc976c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*EHt5-lYFVCnPf6jOhAla2A.jpeg</url>
            <title>Stories by Nikhil Birajdar on Medium</title>
            <link>https://medium.com/@nikhilbirajdar123?source=rss-c9b731dc976c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 06:38:31 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nikhilbirajdar123/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[GloVe Research Paper Explained]]></title>
            <link>https://medium.com/data-science/glove-research-paper-explained-4f5b78b68f89?source=rss-c9b731dc976c------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f5b78b68f89</guid>
            <category><![CDATA[word-vectors]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[matrix-factorization]]></category>
            <category><![CDATA[naturallanguageprocessing]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Nikhil Birajdar]]></dc:creator>
            <pubDate>Wed, 08 Sep 2021 13:05:53 GMT</pubDate>
            <atom:updated>2021-09-08T14:46:47.304Z</atom:updated>
            <content:encoded><![CDATA[<h4>An Intuitive understanding and Explanation of math behind GloVe model</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*782-GD0wEDwPEpwMfmRYZw.jpeg" /><figcaption>Image by Ugur Akdemir from <a href="https://unsplash.com/photos/XT-o5O458as">Unsplash</a></figcaption></figure><p>In continuation of my <a href="https://towardsdatascience.com/word2vec-research-paper-explained-205cb7eecc30"><strong><em>word2vectors research paper explained</em></strong></a> blog, I have taken up <a href="https://nlp.stanford.edu/pubs/glove.pdf"><strong>GloVe research paper</strong></a><strong> </strong>[Pennington et al.] for explaining my understanding about a very detailed and comprehensive research paper.</p><blockquote><strong>GloVe</strong> stands for <strong>Global</strong> <strong>Vectors</strong> where global refers to global statistics of corpus and vectors are representations for words. Earlier word embeddings methods such as LSA, word2vec were able to learn syntactic and semantic relationship between words but origin of it was unclear. GloVe model aims to explicitly induce regularities in word vectors and finds origin of learning relationship between words.</blockquote><p><strong>1.Overview of GloVe Model</strong></p><p>GloVe is a <strong>global log bilinear model</strong>. Well, I am sure you want to know what does term ‘‘<em>global log bilinear</em>’’ mean. <em>Global</em> refers to global statistics of the training corpus. <em>Log bilinear</em> refers to the logarithm of output is a linear regression on product of two types of word vectors. In case of GloVe, two types are<em> </em>word vector (w) and context vector (w^). GloVe model combines two widely adopted approaches for training word vectors as explained below.</p><h4>1.1 Matrix Factorization</h4><p>These methods factorize word-word or document-term co-occurrence matrix. <strong>HAL</strong> (Hyperspace Analogue to Language)[Lund &amp; Burgess], <strong>LSA</strong> (Latent Semantic Analysis) [Landauer, Foltz, &amp; Laham] are popular models that use matrix factorization. <strong>Eigen value decomposition</strong> is used for a square matrix and <strong>singular value decomposition</strong> (SVD) is used for a rectangular matrix for matrix factorization. In word-word matrix, rows represent words and columns refer context words. A value in matrix Mᵢⱼ represents how many times a particular word Wᵢ occurs in context Wⱼ. In document-term matrix, rows represent words and column represents documents. A row represents distribution of a particular word across all documents and a column represent distribution of all words in that document.</p><p>The matrix factorization methods usually involve following steps.</p><ol><li>Define context for each word and generate word-word or document term matrix M.</li><li>Normalize the values in matrix either by row, column or length.</li><li>Remove columns having less variance to reduce dimensionality of matrix.</li><li>Perform matrix factorization by SVD on M to generate U, S, V matrix.</li><li>After sorting on singular values of matrix M in descending order by taking first r &lt; R (rank of matrix M), low rank of a matrix M can be obtained. Product of low rank matrices U^, S^ and V^ is close approximation to the original matrix M.</li><li>Vector of a word Wⱼ is the jᵗʰ vector from reduced rank space matrix U^.</li></ol><p>In such methods, the most common words in the corpus such as (<em>the, and</em>) contribute disproportionate similarity between words. The words Wᵢ and Wⱼ which occur in the context of “the” , “and” causes enlarged similarity score than their true similarity score. Similarly, Wᵢ and Wⱼ which don’t come often in context of “the” , “and” but having true similarity will have less similarity score. Methods such as <strong>COALS </strong>[T. Rohde et al.] overcome this problem by using <em>correlation</em> or <em>entropy</em> based normalization of matrix. When entropy based normalization is used, words which occur in all the contexts or documents such as “the”, “and” will have high entropy. Raw counts are normalized with high entropy term resulting in shrinking of high values of such terms in the matrix. This solves issue of adding disproportionate measure to word similarity score.</p><p><strong>1.2 Window based methods</strong></p><p>These methods work on <strong>local context windows</strong> rather than using global statistics of the corpus. The language model in [Bengio et al.] trains neural network which in turn trains word vector representations. This model takes past history of N words and predict the next word as an objective of language modelling. Hence, each example in this method is a local window of words which are inputs and output is a next word. Later, word2vec models [Mikolov et al.] such as <strong>skip-gram and CBOW</strong> decoupled language modelling and trained single hidden layer neural network. For more detailed understanding, you can go through <a href="https://towardsdatascience.com/word2vec-research-paper-explained-205cb7eecc30"><strong><em>my previous article</em></strong></a> on it.</p><p>These methods do not take advantage of available global statistics as compared to matrix factorization methods resulting in suboptimal vector representations of words. Training time and complexity of the model can be reduced by utilizing repetitive local windows across corpus.</p><p><strong>2. Detailed Math behind GloVe Model</strong></p><blockquote>Here comes the section that you all are looking forward to read. To understand math behind any algorithm is very crucial. It helps us to understand formulation of algorithm and grasp a concept. With that said, lets’ define some notations.</blockquote><p>X is co-occurrence matrix (word-word), where Xᵢⱼ is count of word Wⱼ in the context of word Wᵢ. What does context mean for a particular word? Context around a word can be defined as symmetric context which comprises of past N and future N words. Asymmetric context just comprises past N history words. A simple count or weighted counts can be used for computing values in matrix. Simple count takes 1 as occurrence count. In weighted counts, 1/d is used as occurrence count where d is distance from the given word. The motivation behind using weightage is context words which are nearer to a given word are more important as meaningful context than distant words.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/97/0*kbDiQ2PG5SPmQ6Uh" /><figcaption>Co-occurrence value of iᵗʰ row — Eqⁿ (1)</figcaption></figure><p>In Eqⁿ (1), Xᵢ is a summation over all the words which occur in the context of word Wᵢ.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/139/0*FMRUcTd6KJnXk_v_" /><figcaption>Eqⁿ (2)</figcaption></figure><p>In Eqⁿ (2), P is a co-occurrence probability where Pᵢⱼ is a probability of word Wⱼ occurring in the context of word Wᵢ.</p><p>GloVe suggests to find relationship between two words in terms of probability rather than raw counts. The relationship between two words (Wᵢ and Wⱼ) is examined by finding <em>co-occurrence probability with some probe words</em> (Wₖ).</p><p>Let’s say we have two words, Wᵢ as ‘<em>Ice</em>’ and Wⱼ as ‘<em>Steam</em>’ and some probe words Wₖ as ‘Solid’, ‘Gas’, ‘Water’, ‘Fashion’. From basic understanding, we know that ‘Solid’ is more related to ‘<em>Ice</em>’ (Wᵢ)and ‘Gas’ is more related to ‘<em>Steam</em>’ (Wⱼ) while Fashion is not related to both ‘<em>Ice</em>’ and ‘<em>Steam</em>’ while Water is related to both ‘<em>Ice’</em> and ‘<em>Steam</em>.’ Now our objective is to find relevant words for the given words among probe words.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*ylmpBqzYYHROX3XN5fU_zA.png" /><figcaption><strong>Table 1:</strong> Co-occurrence probability from 6 billion token corpus (Source — GloVe research paper)</figcaption></figure><p>From table 1, for probe word (Wₖ) as ‘solid’, P(solid|ice) which is probability of ‘solid’ coming in context of ‘ice’ is (1.9*10^–4) which is greater than P(solid|steam). The ratio P(k|ice) / P(k|steam) is &gt;&gt;1. For probe word ‘gas’, the ratio is &lt;&lt;1. For probe words ‘water’ and ‘fashion’ the ratio is nearly equal to 1. The ratio of co-occurrence probability distinguishes words (solid and gas) which are more relevant to given words than irrelevant words (fashion and water). The words having ratio nearly equal to 1 either appear in the context of given words or not, hence causing no impact in learning relationship between given words. This proves <strong><em>ratio of co-occurrence probability</em></strong> is to be the starting point for learning word representations.</p><p>The ratio of co-occurrence probability Pᵢₖ/Pⱼₖ depends on three words Wᵢ, Wⱼ, Wₖ. The most general form of function F can be defined on word and context vectors as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/162/0*7jV7EkxECJ-YIDme" /><figcaption>Eqⁿ (3)</figcaption></figure><p>where w ∈ Rᵈ is a word vector and w˜ ∈ Rᵈ is a context vector. Right side of Eqⁿ (3) are probabilities which are obtained from the training corpus. Though F has vast number of possibilities of function, it should encode information present in Pᵢₖ/Pⱼₖ. The relationship between target words Wᵢ and Wⱼ can be obtained by vector differences as these vectors are from linear vector spaces of d dimensions. Hence equation becomes,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/175/0*rbPZentF68N5STQB" /><figcaption>Eqⁿ (4)</figcaption></figure><p>Now, right side of equation is scaler while input of F is d dimensional vectors. F can be parameterized by complex neural networks which will eventually break linear structure in vector space. To avoid it, we can take dot product of inputs of F which prevents mixing of vector dimension in other dimensions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/198/0*YWPcShGvvcKasr2b" /><figcaption>Eqⁿ (5)</figcaption></figure><p>Word and context word can be interchanged with each other, as ‘solid’ occurring in context of ‘ice’ is equivalent to ‘ice’ occurring in context of ‘solid’. Hence w ↔ w˜ and X ↔ Xᵀ replacement can be done in Eqⁿ (5). Basically, we are changing inputs to F on the left hand side and then want to have similar impact on the right hand side of Eqⁿ (5). This is also referred to as keeping structural similarity between two groups (Homomorphic function). We have group G on the left hand side of Eqⁿ (5) with subtraction as group operation and group H on the right side with division as group operation. Now to keep structural similarity when we replace w ↔ w˜ and X ↔ Xᵀ, subtraction of two vectors in G should reflect division of those two word vectors in H. Lets say X= wᵢᵀwₖ , Y= wⱼᵀwₖ ∈ G and Z= (X −Y). Function F should be homomorphic between the groups (R,−) and (R&gt;0, ÷). By definition of homomorphism, if Z =X − Y with subtraction op in G, then in group H <strong>⇒</strong> F(Z) = F(X)÷ F(y) but Z= X −Y hence we get, F(X-Y)=F(x) ÷ F(y).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/328/0*s0E2XhDHnYWKTSYM" /><figcaption>Eqⁿ (6)</figcaption></figure><p>So what should be function F ? Well you guessed it right, it should be Exponential function. F (x)= e ˣ. Comparing Eqⁿ (5) and Eqⁿ (6), we get, F(wᵢᵀ*wₖ)=Pᵢₖ = Xᵢₖ / Xᵢ. Hence, taking logarithm on both sides we get,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/230/0*JtlUI0igrz5qfUuP" /><figcaption>Eqⁿ (7)</figcaption></figure><p>Eqⁿ (7) exhibits symmetry in terms of word and context except the term log(Xᵢ). As this term is independent of Wₖ , we can consider this as bias term bᵢ . Adding one more bias term bₖ, we get</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/229/0*uCeRK0_x3Gcpyess" /><figcaption>Eqⁿ (8)</figcaption></figure><p>Since log(x) is divergent near 0, we can use additive shift on log(Xᵢₖ) making input to logarithm always ≥1,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/263/0*Wd7vpoDz03WZ9fdy" /><figcaption>Eqⁿ (9)</figcaption></figure><p>Eqⁿ (9) is analogous to the <strong>factorization of the logarithm of co-occurrence</strong> <strong>matrix</strong> which is the main idea behind <strong>LSA algorithm</strong>. But there is a problem in above equation. If we define cost function using squared error function, it will give same weightage to all the terms in the matrix even for the rare frequency terms which have values nearly 0. Such terms are noisy and don’t carry much information. Hence weighted least squares can be used as a cost function for GloVe model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/0*v6gVvIy-x4zGckIV" /><figcaption>Eqⁿ (10)</figcaption></figure><p>Note, additive shift is already done on matrix X shown in Eqⁿ (10). J is a cost function which we want to minimize over co-occurrence matrix with vocabulary size V. f(Xᵢⱼ) gives weightage to each term in the matrix. wᵢ is a word vector and wⱼ is a context vector. bᵢ and bⱼ are bias terms for each of vectors and Xᵢⱼ is a term in co-occurrence matrix.</p><p>Now, question is how to choose function f. It should follow certain conditions. f(0)=0, f should be non-decreasing and f(x) should not be very high for large values of x as frequent words should not be over weighted. Xₘ from Eqⁿ (11) is same as Xₘₐₓ from the figure 1. After substituting Eqⁿ (11) in Eqⁿ (10) for f(Xᵢⱼ), we get final cost function for the GloVe model. Then model is trained on batches of training examples with optimizer to minimize cost function and hence generate word and context vectors for each word.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/273/0*eh1oq-wpT-hPARk1" /><figcaption>Eqⁿ (11)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/429/1*pK8Zu8gZOKC3tbRVr2parQ.png" /><figcaption><strong>Figure 1</strong>- Weightage function with α=3/4. (Source- GloVe research paper)</figcaption></figure><p>Finally, we have completed the full derivation of the GloVe model. Kudos to all of us for making until this point !!! Now if you want to find out the relationship of GloVe model to the skip-gram (word2vec model) and understand the overall complexity of the GloVe model, you can go through the next sections. After these sections, experiments and results of the GloVe model are discussed.</p><p><strong>3. Equivalence between GloVe and Skip-Gram (word2vec model)</strong></p><p>GloVe model is based upon the global co-occurrence matrix while skip-gram scans through the local windows and does not take into account of global statistics. These two approaches can be thought of two different schools of thoughts for training word vectors. This section finds out similarity between GloVe and skip-gram even if it seems at first both types of models have different interpretations.</p><p>Let’s define skip-gram model where Qᵢⱼ defines probability of word j comes in the context of word i. Qᵢⱼ is probability distribution over context words given Wⱼ and can be considered as softmax function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/225/0*83xy4uxptr4BTQEV" /><figcaption>Eqⁿ (12)</figcaption></figure><p>Here, wᵢ and wⱼ are context and word vectors respectively of skip-gram model. The objective of skip-gram model is to maximize log probability of all the local window scans over training corpus. Training happens via stochastic/online through examples generated by local windows but global objective function can be formulated over all local scans from the corpus as</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/259/0*M85nyWFx5wla5Cml" /><figcaption>Eqⁿ (13)</figcaption></figure><p>To make cost function +ve, negative sign is added as Qᵢⱼ values are between 0 and 1 and log of this range of values is -ve. The only difference between cost function above and original skip-gram is former is global and latter is local. While iterating through each local window, we can group together the same word-context pairs (Xᵢⱼ) and multiply them directly with log(Qᵢⱼ) term.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/219/0*pfs4uGYyjbF89YVl" /><figcaption>Eqⁿ (14)</figcaption></figure><p>We know Pᵢⱼ=Xᵢⱼ/Xᵢ. Hence substituting Xᵢⱼ, we get</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/0*kd230qE0stJlzTUt" /><figcaption>Eqⁿ (15)</figcaption></figure><p>Xᵢ is independent on j, so it can be taken outside of the summation over j. H(Pᵢ,Qᵢ) is a <strong>cross entropy</strong> between probability distributions Pᵢ and Qᵢ. Note here negative sign is considered in cross entropy formula. The cost function becomes weighted sum of cross entropy error with weights as Xᵢ. The above objective function can be interpreted as global skip-gram’s objective. There are some limitations using cross entropy as error measure. P is a long tail distribution with higher weights given to unlikely/rare events while using cross entropy as error metric. Also, Q has to be normalized with summation over vocabulary V which is a huge bottleneck while using cross entropy. Hence different cost error metric can be used instead of cross entropy in Eqⁿ (15), one of which is least squared objective. The denominator term in Q can be neglected by just taking numerator term Q^. The new cost function is defined as,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/191/0*Xrq9Nw5F_F6Kibkm" /><figcaption>Eqⁿ (16)</figcaption></figure><p>Here, p^ᵢⱼ = Xᵢⱼ and Q^ᵢⱼ= exp(wᵢᵀ * wⱼ) are unnormalized distributions. Xᵢⱼ takes large values compared to Q^ᵢⱼ causing large gradients and large steps in optimization leading to unstable learning of the model. Hence, squared error of the logarithm is used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/528/0*S-fhdIqhXCH3T0kA" /><figcaption>Eqⁿ (17)</figcaption></figure><p>Instead of Xᵢ, f(Xᵢⱼ) is used as weightage function as shown in figure 1. The terms in a squared bracket can be reversed without any sign change. The cost function in Eqⁿ (17) is equivalent as GloVe model’s cost function in Eqⁿ (10) which shows skip-gram model is ultimately based on the co-occurrence matrix of the corpus and has similarity with GloVe model.</p><p><strong>4. The complexity of the GloVe model</strong></p><p>Complexity of GloVe model can be found out by cost function from Eqⁿ (10). It depends upon total number of non zero elements in the co-occurrence matrix. The Summation runs over i and j with vocab size V. GloVe model’s complexity scales not beyond than O(|V|²). For corpus having few hundred of thousands words, |V|² goes beyond billions. Hence to get accurate complexity of the model, more tighter bound can be placed on total number of non-zero terms in the X. A term in the co-occurrence matrix Xᵢⱼ can be modeled as power-law function of the frequency rank (rᵢⱼ) of word j and context i.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/96/0*zP5TrvYsDb9gMWRY" /><figcaption>Eqⁿ (18)</figcaption></figure><p>The total number of words in corpus |C| is proportional to sum over all terms of the co-occurrence matrix X.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/287/0*gKE7-Ypk9B6J9qQ1" /><figcaption>Eqⁿ (19)</figcaption></figure><p>All the elements in the matrix, whether it’s word i or context j, its frequency rank can be obtained from the X by considering all terms(words, contexts )in the matrix together. |X| is maximum rank of the any word/context in the matrix which is same as number of non-zero elements in the matrix. H ₓ,α is a hormonic progression with ratio as α and number of elements as |X|. The maximum value of frequency rank r can be obtained by Eqⁿ (18), by setting Xᵢⱼ to its minimum value of 1. Hence we get, |X|=k ^(¹/α). Using this in Eqⁿ (19), we get</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/0*wErLHs3U_mJhnfhg" /><figcaption>Eqⁿ (20)</figcaption></figure><p>Expanding H term on right side using generalized harmonic numbers (Apostol, 1976) we get,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/275/0*hlDrpqZU9aoyYJ-3" /><figcaption>Eqⁿ (21)</figcaption></figure><p>where ζ (α) is the Riemann zeta function. When |X| is large, only one of the two terms is relevant and it depends on whether α&gt;1 or α&lt;1. Hence we finally arrive at,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/312/0*4x-T7EJQo_VAfvKU" /><figcaption>Eqⁿ (22)</figcaption></figure><p>Authors of GloVe observed that Xᵢⱼ is well modelled by setting α=1.25. When α&gt;1 we get |X|=O(|C|^0.8). Hence overall complexity of the model is much better than O(|V|²) and marginally better than original skip-gram model which scales with O(|C|).</p><p><strong>5. Experiments</strong></p><p>Trained GloVe word vectors are tested on below three NLP tasks.</p><p><strong>i. Word Analogy</strong></p><p>The task is to find word d which answers questions like “a is to b as c is to ?”. Dataset contains both syntactic and semantic questions. To find word d, Wᵈ closest to (Wᵇ− Wᵃ+ Wᶜ) according to the cosine similarity is predicted as output.</p><p><strong>ii. Word Similarity</strong></p><p>The task is to rank similar words to a given word in decreasing order of similarity. Spearman rank correlation is used to measure performance of the model.</p><p><strong>iii. Named Entity Recognition (NER)</strong></p><p>The task is to assign entity type for each token in the corpus. The CoNLL-2003 English benchmark dataset has four entity types as person, location, organization, and miscellaneous. Along with the token features, word vectors trained from GloVe model are added as input to the NER model to generate probability distribution over entity types.</p><p><strong>6. GloVe Model Training Details</strong></p><p>GloVe model is trained on five different corpora&#39;s: 2010 Wikipedia dump with 1 billion tokens, 2014 Wikipedia dump with 1.6 billion tokens, Gigaword 5 which has 4.3 billion tokens, the combination of Gigaword5 + Wikipedia2014 having 6 billion tokens, 42 billion tokens of web data from Common Crawl.</p><p><strong><em>Preprocessing steps</em></strong> :- Corpus text is lowercased. <a href="https://nlp.stanford.edu/software/tokenizer.html">Stanford tokenizer</a> is used for tokenization. Co-occurrence matrix is constructed using vocabulary of top 400,000 frequent words. Before constructing matrix, context for a word has to be defined. Decreasing weighting window with weight 1/d for words d distance apart is employed to calculate matrix values. GloVe explores an effect of asymmetric context using left tokens of the word (history) as well as symmetric context using both left and right tokens of the word (history and future).</p><p>Below values are set in GloVe model training.</p><p>Xₘ= 100, α=3/4 for weightage function shown in Figure 1.</p><p><strong><em>Optimizer</em></strong>- <a href="https://www.jmlr.org/papers/volume12/duchi11a/duchi11a.pdf">Adagrad</a> (Duchi et al., 2011) optimizer with an initial learning rate of 0.05 is used on batch of randomly sampled non zero terms from X. For less than 300 dimensional vector, 50 iterations of training data are used while for vector dimensions more than 300, 100 iterations are used.</p><p>GloVe model generates two vectors for each token , W (word vector)and W~(context vector). The sum of two vectors (W+W~) is used as a final vector.</p><p><strong>7. Results</strong></p><p><strong>i. Word Analogy</strong></p><p>Results of word analogy experiment of various models are shown in table 2. SG model stands for skip-gram , CBOW stands for continuous bag of words model and SVD stands for singular value decomposition. Percentage accuracy is shown for semantic and syntactic and total in the table 2. <strong>GloVe </strong>model has <strong>outperformed</strong> both<strong> word2vec</strong> models. GloVe model trained on corpus size 1.6B and vector dimension 300 has achieved nearly 70% accuracy surpassing skip-gram’s 61% and CBOW’s 36%. Improvement in model accuracy is much significant in word2vec models with increase in vector dimension from 300 to 1000 and corpus size from 1B to 6B but still underperforming compared to GloVe model with vector size as 300 and corpus size 1.6B. This shows GloVe model word vectors even with 300 dimensions trained on smaller dataset has more meaningful information than 1000 dimensions of word2vec models trained on much larger dataset. GloVe model’s accuracy increased by small margin (75%) as compared to increase in corpus size (7 fold from 6B to 42B).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*-i_xAXQhHS_90s8WSYW7TA.png" /><figcaption><strong>Table 2</strong>: Semantic, Syntactic and Total model accuracy on word analogy task (Source- GloVe research paper)</figcaption></figure><p>Accuracy of GloVe model with respect to symmetric and asymmetric context, window size and vector dimension is shown in figure 2. All the models are trained on 6B corpus. In (a), context is symmetric with window size as 10 across all variations of vector dimension. Syntactic, Semantic and hence overall accuracy increases steadily with increase in vector dimension from 50 to 300, after which increase in accuracy is negligible as compared to increase in vector dimension. In (b), vector dimension is kept as 100 across all variations of symmetric context window sizes. As symmetric window size increases, all the accuracies increase with steep increase in semantic as compared to syntactic which shows wider context is needed for understanding semantics while short context is enough for syntactic questions. In (c), vector size is kept as 100 across all the models of asymmetric windows. Similar behavior is noticed in (c) as symmetric context from (b). Semantic accuracy surpasses syntactic accuracy in symmetric window size of 3 while in asymmetric window it takes 5 windows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ld4yL4EQGqFBlVf5dHmSdg.png" /><figcaption><strong>Figure 2</strong>- Word analogy model accuracy vs vector dimension, context and window size. (Source- GloVe research paper)</figcaption></figure><p>In figure 3, GloVe model accuracy on different corpora’s is shown. Vector dimension of 300 is kept across all training corpus. Syntactic accuracy increases steadily with increase in corpus size while semantic accuracy doesn’t show such pattern. Hence there is no significant improvement in overall accuracy by increasing corpus size from 1B to 6B and 42B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*352u4WAJKx_C2zmd_tAgBg.png" /><figcaption><strong>Figure 3</strong>- Word analogy model accuracy vs training corpora. (Source- GloVe research paper)</figcaption></figure><p><strong>ii.</strong> <strong>Word Similarity</strong>- Various datasets (<a href="http://alfonseca.org/eng/research/wordsim353.html">WordSim-353</a>, <a href="https://aclweb.org/aclwiki/MC-28_Test_Collection_(State_of_the_art)">MC</a>, <a href="https://aclweb.org/aclwiki/RG-65_Test_Collection_(State_of_the_art)">RG</a>, <a href="http://www.bigdatalab.ac.cn/benchmark/bm/dd?data=Stanford%20Contextual%20Word%20Similarity">SCEW</a> and <a href="https://nlp.stanford.edu/~lmthang/morphoNLM/">RW</a>) are used for testing GloVe 300 dimensional word vectors along with other models. A similarity score is obtained by normalizing each vector dimension across all words in vocabulary and then cosine similarity is used on normalized vectors to find top n words similar to a given word. Spearman’s rank correlation coefficient is computed on ranks of top n words obtained from the similarity score and human judgement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/157/0*u27mMFl3cfkqntN5" /><figcaption>Spearman rank correlation formula where d = difference between ranks of model prediction and output, n=number of observations — Eqⁿ (23)</figcaption></figure><p>The results of various models tested on various datasets of word similarity task are shown in table 3. In WS353, MC, RG and RW datasets, <strong>GloVe</strong> model <strong>outperformed</strong> SVD, CBOW and SG which are trained on same corpus size. GloVe model trained on 42B corpus improves spearman rank correlation over CBOW model trained on 100B corpus in SCWS dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*eoc7hqKm0o2J3aXEcyipQQ.png" /><figcaption><strong>Table 3</strong>: Spearman rank correlation for word similarity task for different models across various datasets. (Source- GloVe research paper)</figcaption></figure><p><strong>iii.</strong> <strong>NER</strong>- Model performance of NER task on different datasets(validation and test set of <a href="https://huggingface.co/datasets/conll2003">CoNLL-2003</a>, <a href="https://www.ldc.upenn.edu/sites/www.ldc.upenn.edu/files/edt-guidelines-v2-5.pdf">ACE</a> and <a href="https://aclweb.org/aclwiki/MUC-7_(State_of_the_art)">MUC7</a>) is shown in Table 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/485/1*SDa8t3gneSDj4o1ID2xqSQ.png" /><figcaption><strong>Table 4</strong>: F1 score on NER task of various models on different datasets. (Source- GloVe research paper)</figcaption></figure><p>All of above models are CRF based with different set of features. Discrete model uses features set from <a href="https://nlp.stanford.edu/software/CRF-NER.html">Stanford NER model</a> while other models use basic set of features along with its trained word vectors as features. F1 score is used on both validation and test dataset of CoNLL-2003 along with test data of other datasets for comparison of model performance. <strong>GloVe</strong> model has <strong>outperformed</strong> all the other models (Discrete, SVD and both word2vec models)in <strong>NER task</strong> over various datasets.</p><p><strong>8. Conclusion</strong></p><p>GloVe model discusses about two classes of algorithms, <strong>count based </strong>and<strong> prediction based </strong>algorithms for learning distributional representation of the word. GloVe model shows these two classes of methods are not very different and both use <strong>co-occurrence matrix</strong> eventually as underlying concept to train word vectors. GloVe captures both global statistics and linear substructure present in the data. Hence <strong>GloVe</strong> which is a <strong>global log bilinear model</strong> outperforms both classes of models on variety of downstream NLP tasks.</p><p><em>If you want to learn more about how to implement GloVe model using python, let me know in comments.</em></p><p><strong>9. Resources</strong></p><p>[1] Original research paper- GloVe: Global Vectors for Word Representation: <a href="https://nlp.stanford.edu/pubs/glove.pdf">https://nlp.stanford.edu/pubs/glove.pdf</a><br>[2] Producing high-dimensional semantic spaces from lexical co-occurrence : <a href="https://link.springer.com/article/10.3758/BF03204766">https://link.springer.com/article/10.3758/BF03204766</a><br>[3] An Introduction to Latent Semantic Analysis research paper: <a href="https://mainline.brynmawr.edu/Courses/cs380/fall2006/intro_to_LSA.pdf">https://mainline.brynmawr.edu/Courses/cs380/fall2006/intro_to_LSA.pdf</a><br>[4] Efficient Estimation of Word Representations in Vector Space: <a href="https://arxiv.org/pdf/1301.3781.pdf">https://arxiv.org/pdf/1301.3781.pdf</a></p><blockquote><em>Thanks for taking out time to read the post. I hope you have enjoyed the read. Please let me know about your thoughts in comments. Feel free to reach out to me on </em><a href="https://www.linkedin.com/in/nikhil-birajdar/"><strong><em>LinkedIn</em></strong></a><strong><em> </em></strong><em>and</em><strong><em> </em></strong><a href="/service/mailto:nikhilbirajdar123@gmail.com"><strong><em>Gmail</em></strong></a><em>.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f5b78b68f89" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/glove-research-paper-explained-4f5b78b68f89">GloVe Research Paper Explained</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Word2Vec Research Paper Explained]]></title>
            <link>https://medium.com/data-science/word2vec-research-paper-explained-205cb7eecc30?source=rss-c9b731dc976c------2</link>
            <guid isPermaLink="false">https://medium.com/p/205cb7eecc30</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[word2vec]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Nikhil Birajdar]]></dc:creator>
            <pubDate>Tue, 16 Mar 2021 05:01:03 GMT</pubDate>
            <atom:updated>2021-03-17T12:21:12.774Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/678/1*5F4TXdFYwqi-BWTToQPIfg.jpeg" /><figcaption><em>Image by author</em> (Trained Word2Vec Vectors with Semantic and Syntactic relationship).</figcaption></figure><h4>An Intuitive understanding and explanation of the word2vec model.</h4><p>We know what is Word2Vec and how word vectors are used in NLP tasks but do we really know how they are trained and what were the previous approaches for training word vectors. Well, here is an attempt to explain my understanding about the Word2Vec research paper [T. Mikolov et al.]. You can find the research paper <a href="https://arxiv.org/pdf/1301.3781.pdf">here</a>.</p><p><strong>1. Introduction</strong></p><p>In many NLP applications, words are represented as one-hot encoding which don’t capture the relationship between them. The reason of choosing one-hot encoding is due to</p><blockquote>“<em>simplicity, robustness and observation that simple models trained on huge amounts of data outperform complex systems trained on less data</em>.” [T. Mikolov et al.]</blockquote><p>An example of simple model could be N-gram model. These models are the Markov models with the assumption that word at i-th<strong> </strong>position depends on the word history from i-(n-1) words until (i-1) word. It’s basically frequency based approach derived from the training corpus. But these simple models require high quality of the training data which is often not available and they don’t generalise well for unseen data.</p><p>However with the improvement in the machine learning domain, complex algorithms trained on much larger datasets perform better than the simpler models.</p><p>The Word2vec model captures both syntactic and semantic similarities between the words. One of the well known examples of the vector algebraic on the trained word2vec vectors is</p><blockquote><em>Vector(“King”)-Vector(“Man”)= Vector(“Queen”)-Vector(“Woman).</em></blockquote><h4><strong><em>2. Previous approaches for vector representation of words</em></strong></h4><p>This section is focussed on the earlier approaches for vector representation of the words using neural networks.</p><p><a href="https://www.jmlr.org/papers/volume3/tmp/bengio03a.pdf">2. 1 Neural Network Language Model (NNLM)</a> [Bengio, Yoshua et al.]</p><p>This is a two step language model which consists of a linear projection layer for word embeddings and a non-linear hidden layer followed by output layer. Both the word vectors and the language model are trained simultaneously in the NNLM.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ag3vdemBMuaesbuJMVjwHg.png" /><figcaption>NNLM Model Architecture. Image from NNLM Research Paper. [<a href="https://www.jmlr.org/papers/volume3/tmp/bengio03a.pdf">Source</a>]</figcaption></figure><p>The NNLM model consists of input, projection, hidden and output layer. The hyperparameter N decides how many words in the history from the current word should be taken into account for the next word prediction. In input layer, words are encoded as one hot encoding with vocabulary size V. The Matrix C is shared <a href="https://stackoverflow.com/questions/37889914/what-is-a-projection-layer-in-the-context-of-neural-networks">projection matrix</a> with dimension N × D where D is embedding size. The hidden layer is densely connected to the projection layer which leads to the weights matrix of N×D×H from projection to hidden layer, where H is hidden layer size. After generating hidden vector, output layer has weights (H×V) followed by a softmax layer. Hence total weights involved in NNLM are (N×D+N×D×H+H×V). Term (H×V) can be reduced to H×log2(V) using <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.221.8829&amp;rep=rep1&amp;type=pdf#page=255">hierarchical softmax</a> [F. Morin] where vocabulary is represented as a binary tree. Most of the complexity comes from the term (N×D×H) when N×D &gt; V. This is avoided in the word2vec model by not using hidden layer in the model. When NNLM model gets trained, the projection matrix is used as the lookup table for trained word vectors.</p><p>2.2 <a href="https://www.isca-speech.org/archive/archive_papers/interspeech_2010/i10_1045.pdf">Recurrent Neural Net Language Model (RNNLM)</a> [T. Mikolov et al.]</p><p>In this model, there is no need to specify N as in the case of NNLM model. RNN encodes past history of all the words in the hidden state. Hidden state S(T) gets updated with the current input X(T) and hidden vector at S(T-1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*wJUa0ziZ7V4FEvBbCLwyfA.png" /><figcaption>RNNLM Model Architecture. Image from RNNLM Research Paper. [<a href="https://www.isca-speech.org/archive/archive_papers/interspeech_2010/i10_1045.pdf">Source</a>]</figcaption></figure><p>Simple Elman Network is used as RNN model in RNNLM where input is simply concatenation of X(T) which is input token at T and S(T-1) which represents hidden/context vector at (T-1). Only recurrent weights in the time dimension and hidden to output layer weights are involved in this network causing overall complexity of the model as (H×H+H×V). Note, there is no N term in model complexity as compared to NNLM model. Term (H×V) can be further reduced to H×log2(V) using hierarchical softmax. In this model, the computational bottleneck term is (H×H).</p><p>As from both of the above models, it is evident that “<em>non linear hidden layer”</em> is the reason for the most of the overall complexity. This imposes limitation for not utilising all of the training data data due to the hardware restrictions. Hence Word2vec proposed two simpler models that can be trained with larger datasets without compromising quality of the word vectors.</p><p><strong>3. Word2Vec Models</strong></p><p>This section introduces models used for training word2vec.</p><ol><li><em>Continuous bag of words model (CBOW)</em></li></ol><p>CBOW model is derived from NNLM model with the exception of no linear hidden layer. The objective function of CBOW model is to predict the middle word when given past N/2 history words and N/2 future words. The best result is obtained by using N=8. In the projection layer, word vectors of N context words are simply averaged. There is no relevance of the position of the word in determining the word vector of the middle word hence the name “Bag of Words”. The term <em>Continuous</em> represents the vector space D.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/514/1*MwlI8fYCR5ArwNB6Qi8ujw.png" /><figcaption>CBOW model architecture. Image taken from Word2Vec research paper. <a href="https://arxiv.org/pdf/1301.3781.pdf">[Source]</a></figcaption></figure><p>An averaged vector is passed to the output layer followed by hierarchical softmax to get distribution over V. CBOW is a simple log-linear model where logarithm of the output of the model can be represented as the linear combination of the weights of the model. Total weights involved in training CBOW model are N×D+D×log(2)V.</p><p>2.<em> Continuous skip-gram model</em></p><p>This model reverses an objective of CBOW model. Given the current word, it predicts the nearby context words both in history and future. As the name suggests, model predicts the N-grams words except the current word as its the input to the model, hence the name skip-gram. The value of N is chosen as 10. As distant words are less related to the current word, they are sampled less compared to nearby words for generating output labels. When N=10, random number R is generated between 1 to 10 with sampling strategy mentioned above and R history and future words are used as correct labels for skip-gram model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/506/1*RVxvpSWPIn0oPgzRCEoBnA.png" /><figcaption>Skip-gram model architecture. Image taken from Word2Vec research paper. <a href="https://arxiv.org/pdf/1301.3781.pdf">[Source]</a></figcaption></figure><p>The total complexity of the model is N×D+N×D×log2(V). Notice, N also gets multiplied to D×log2(V) term as its not a single class classification problem compared to CBOW, rather N class classification problem. Hence overall complexity of skip gram model is greater than the CBOW model.</p><p><strong>4. Results</strong></p><p>This section discusses about the results obtained by word2vec, NNLM and RNNLM models.</p><p><em>Test set preparation for evaluating quality of the trained word vectors:-</em></p><p>Earlier methods showed few examples of similar words in the tabular form while word2vec model prepared a comprehensive test set which has five semantic relations and nine syntactic relations between words. Currency:Country, City:State, Man:Woman, Capital city:Country are some examples of the semantic relationship between words in test set. Antonyms, Superlative degree, present participle, past tense of word and word itself holds syntactic relation. The questions are prepared from the list of semantic and syntactic relations of the words in the test set. One such example — “What is the word that is similar to small in the same sense as biggest is similar to big?” There is a superlative syntactic relation between big and biggest, small and smallest. The answer to the above question is found from the vector algebraic X=Vector(“biggest”)- Vector(“big”)+Vector(“small”). The word vector which is nearest to X using cosine distance similarity is predicted as an answer. Predicted output is correct match only if it correctly matches to the output. Synonyms of the output is still considered as incorrect match in evaluation. Accuracy metric is used on the test set.</p><p><strong>4.1. Accuracy v/s word vector dimension and training corpus size</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/1*x-Bl0bvMsXgycyjVvyMn0A.png" /><figcaption>TABLE 1: Accuracy on the subset of test dataset with varying vocabulary size of training data and word embedding vector size.</figcaption></figure><p>As seen from Table 1, with increasing dimensionality of word vector and training corpus size, accuracy increases in both directions while there is diminishing gain with increase in embedding size as compared to training corpus size.</p><p>Training criteria:</p><ul><li>Data - Google News Corpus with 6B tokens. Vocabulary size limited to 1M based on the frequency.</li><li>Number of epochs: 3</li><li>Optimizer: Stochastic gradient descent</li><li>Initial learning rate: 0.025 with linear decay.</li></ul><p><strong>4.2. Accuracy v/s Model Architecture</strong></p><p>Here, training data and vector dimension is kept constant and different model architecture’s performance is compared.</p><p>Training criteria</p><ul><li>Data - LDC corpora with 320M words, 82K vocabulary</li><li>Vector dimension : 640</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*nBMRWNyKtmEQVGBTLfKovQ.png" /><figcaption>Table 2: Test set accuracy for different model architectures.</figcaption></figure><p>RNNLM model works better for syntactic queries while perform poor on semantic queries. There is a big improvement in the semantic and syntactic performance of NNLM model compared RNNLM model as RNNLM model is more simpler and could not generalise better. CBOW works better than NNLM model, achieving best results on syntactic test set using much lesser training time. Skip-gram model achieves best results on the semantic set with small reduction in syntactic performance compared to CBOW.</p><p><strong>4.3. Large Scale Parallel Training</strong></p><p>Word2vec models have also used <a href="https://storage.googleapis.com/pub-tools-public-publication-data/pdf/40565.pdf">DistBelief distributed framework</a> [Jeffrey Dean] for large scale parallel training of the models. Due to the lower complexity of word2vec model, models are trained on the huge corpus utilising DistBelief distributed training which speeds up the training procedure. NNLM, CBOW and Skip-gram model are trained on Google News corpus with 6B tokens with 100,1000 and 1000 word vector dimension respectively. Training time depends on the complexity of the model. Due to the fact that NNLM model has high complexity, 100 dimensional word vector is chosen for it compared to 1000 of CBOW and Skip-gram. Surprisingly word vectors of CBOW and skip-gram gets trained faster than NNLM model. Skip-gram achieves highest test accuracy of 65.6% within 2.5 days of training using mini-batch asynchronous gradient descent update and Adagrad optimizer usingDistBelief.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OHW67SsEFeCjjYj_NNQdfg.png" /><figcaption>Table 3: Model performance comparison on DistBelief framework.</figcaption></figure><p><strong>5. Examples of learned relationships</strong></p><p>Relationship vector (“R”) between words “A” and “B” is obtained by subtracting word vector (“A”) from word vector (“B”). The word vector nearest to vector(“C”)+vector(“R”) holds the same relationship with C as between A and B.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x__m4_gQKHR8m2rrhe9VeQ.png" /><figcaption>Table 4: Examples of relationship between words using skip-gram model with D=300.</figcaption></figure><p>Some interesting examples of the trained relationship between word vectors from skip-gram model is shown in Table 4. <em>Person:Occupation</em> relationship is followed between<em> Einstein:scientist, Messi:midfielder and Picasso:painter</em>.</p><p><strong>6. Summary</strong></p><p>Word2vec vectors can be trained with either CBOW or Skip-gram approach. Due to less complexity of models, they are trained on the huge corpora and with higher dimensional vector to get better continuous representation of the word vectors. There are many interesting applications of using word2vec models in NLP tasks. The vectors act as features of the words while building neural network models. Similarity between words, out of the list words problems can also be solved using word2vec.</p><p><strong>7. Implementation of Word2vec model in Python.</strong></p><ul><li>Gensim implementation of word2vec:-</li></ul><p><a href="https://radimrehurek.com/gensim/models/word2vec.html">Gensim: topic modelling for humans</a></p><ul><li>Keras implementation of word2vec:-<a href="https://github.com/abaheti95/Deep-Learning/tree/master/word2vec/keras">https://github.com/abaheti95/Deep-Learning/tree/master/word2vec/keras</a></li><li>Tensorflow implementation of word2vec:-</li></ul><p><a href="https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/2_BasicModels/word2vec.py">aymericdamien/TensorFlow-Examples</a></p><ul><li>Pytorch implementation word2vec :-<a href="https://github.com/Andras7/word2vec-pytorch">https://github.com/Andras7/word2vec-pytorch</a></li></ul><p><strong>8. Resources</strong></p><p>[1] Original research paper- Efficient Estimation of Word Representations in Vector Space: <a href="https://arxiv.org/pdf/1301.3781.pdf">https://arxiv.org/pdf/1301.3781.pdf</a><br>[2] A Neural Probabilistic Language Model research paper : <a href="https://www.jmlr.org/papers/volume3/tmp/bengio03a.pdf">https://ai.googleblog.com/2016/06/wide-deep-learning-better-together-with.html</a><br>[3] Recurrent Neural Network based Language Model research paper: <a href="https://www.isca-speech.org/archive/archive_papers/interspeech_2010/i10_1045.pdf">https://www.isca-speech.org/archive/archive_papers/interspeech_2010/i10_1045.pdf</a> <br>[4] Hierarchical version of softmax research paper: <a href="http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.221.8829&amp;rep=rep1&amp;type=pdf#page=255">http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.221.8829&amp;rep=rep1&amp;type=pdf#page=255</a></p><blockquote>Thanks for taking the time to read the post. I hope it was helpful. Please let me know what are your thoughts/ comments. Feel free to reach out to me if you have any queries and suggestions.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=205cb7eecc30" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/word2vec-research-paper-explained-205cb7eecc30">Word2Vec Research Paper Explained</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>