Word Embedding Evaluation for Sinhala
Paper · 2020 · Dimuthu Lakmal, Surangika Ranathunga, Saman Peramuna et al.
Summary
A word can appear in several forms in Sinhala, and a meaning that fits into a single word in another language may require a phrase. Both facts matter when deciding whether a computer representation captures the relationships among Sinhala words. Lakmal and colleagues compare word embeddings, which represent words as lists of numbers, using tests designed around Sinhala usage. They ask whether the numbers preserve recognizable relations between words and whether supplying them to a language application improves its predictions. Earlier Sinhala embeddings were already available, but the authors identify a gap in systematic comparisons on shared data and tasks.
The authors clean a Sinhala portion of Common Crawl and use it to train Word2Vec in its continuous bag-of-words and skip-gram variants, FastText, and GloVe. They also test a publicly available FastText release trained on Common Crawl and Wikipedia. For the direct tests, they build a Sinhala analogy collection with grammatical and factual relations and a relatedness collection scored independently by native speakers. The application tests use existing Sinhala data for positive or negative sentiment in news comments and for assigning grammatical categories to words in sentences.
Locally trained FastText with 300 dimensions leads most of the comparisons. It scores 0.650 in Spearman correlation with human relatedness judgments when its training text excludes stop words. With those words retained, it reaches 87.76% F1 on sentiment and 90.97% accuracy on grammatical tagging. It also leads the inflectional and derivational analogy categories. Word2Vec’s continuous bag-of-words variant leads the encyclopedic category, which asks about associations such as places and capitals. The two Word2Vec variants also trade places across tasks. GloVe generally gives the weakest results in the tested configurations.
The paper releases the cleaned corpus, trained embeddings, and benchmarks. Its comparisons give researchers a way to choose a representation for a particular Sinhala task and to see which relationships remain difficult even when a representation performs well elsewhere. The authors connect FastText’s performance to its use of recurring character sequences within words, a design suited to the variation in Sinhala word forms. The comparison with the public FastText release also changes training data and settings, so the results establish the performance of the tested configurations more directly than they establish the contribution of any single design choice.
Deep dive: Word Embedding Evaluation for Sinhala
A Sinhala word embedding benchmark compares FastText, Word2Vec and GloVe on word relations, sentiment in news comments and grammatical tagging. · about 30 minutes to read
The problem and its context
What a word vector gives an application
A program that sees words as distinct entries in a vocabulary starts with little information about how they are connected. A vector gives each word coordinates in a shared space. Training arranges those coordinates using evidence from text, so it becomes possible to compare words by their directions or to ask whether the shift between one pair resembles the shift between another. An application can use the same coordinates as input when it has to predict a label from words in context. The paper investigates both uses because each reveals something different about what the representation retains.
The earlier work discussed by the authors traces a move from traditional distributional representations to dense vectors learned with neural methods. Dense vectors describe many words using the same relatively compact set of coordinates. In the authors’ account, this gave a practical alternative to sparse representations, whose large sets of features contain many empty entries. They cite early neural work by Bengio and colleagues and the introduction of Word2Vec by Mikolov and colleagues. They also discuss GloVe as a way to draw on aggregate word counts while learning a compact representation. The paper’s comparison brings these approaches together under a shared Sinhala training setup. Bengio and colleagues’ neural approach · Word2Vec
Embeddings had already shown promise in Sinhala sentiment classification. As the authors describe that research, vectors could supply features to statistical classifiers and neural networks even when features such as grammatical categories were unavailable. The distinction matters in a setting where building a reliable tagger or a word-form analyzer can itself be a research project. A supply of unlabeled text makes it possible to train embeddings before such tools are ready. Once vectors become a plausible input to several applications, however, each application faces a new decision about which training approach and settings to use.
The authors situate the study in natural language processing for low-resource languages. Sinhala is widely spoken in Sri Lanka, yet the paper describes an uneven supply of computational resources. It points to work on clustering texts, named entity recognition, and machine translation as signs of active research. It also describes these applications as still mostly investigational. Word2Vec and FastText vectors trained on different sources were available, but a researcher looking at those releases had little basis for deciding whether a difference in performance came from the choice of embedding or from the text and settings used to train it.
Why the benchmark has to fit Sinhala
A test can travel across languages at the level of its question format while losing the relation that made its original items useful. An English analogy may rely on an affix, a particular single-word verb, or a conventional term for a sound. Translating the words can produce expressions of different lengths, shift the relation, or leave the translator without a natural equivalent. An embedding that represents individual Sinhala words would then be judged against an item asking for a kind of expression outside the scope of the representation.
This matters especially for morphology, the structure of words and the ways their forms change. A benchmark designer who wants to test regular changes in Sinhala has ample material in Sinhala itself. The challenge is to identify relationships that recur across suitable pairs and to write questions in which the same relationship holds on both sides. A benchmark imported intact can miss those relationships while devoting space to distinctions that do little work in Sinhala.
The paper uses the Bigger Analogy Test Set, or BATS, as a design precedent. BATS grouped its questions by kinds of grammatical and semantic relationship, assembling material from existing datasets and trying to avoid ambiguous or homonymous entries. It contained 99,200 questions. The Sinhala study borrows the principle of organizing questions by relation. The exact choice of relations and words becomes a separate design decision. For human judgments of relatedness, WordSim-353 and MEN illustrate an established alternative format in which people assign scores to pairs of words. That format permits a different kind of adaptation because the paired words and their numerical ratings can be reconsidered separately. BATS
Relatedness also depends on social usage. If two terms regularly come together in reporting about a familiar institution or practice, speakers may judge them closely connected even when their dictionary meanings are quite different. A translated pair can therefore remain intelligible while the score attached to it becomes a poor description of how speakers of the other language associate its terms. The authors treat semantic similarity in vector space as a way to probe these associations and collect Sinhala judgments as the standard against which to check it.
Why use direct tests and applications
Earlier research, as described in the paper, distinguishes intrinsic and extrinsic evaluation. An intrinsic test compares the vectors directly with human judgments about words or with known relationships. An extrinsic test supplies the vectors to an application and measures the application’s output. Earlier intrinsic methods included grouping words into categories and testing which kinds of words fit a particular context. The Sinhala study selects analogy and relatedness because both are widely used and give interpretable views of the vectors. Evaluation methods for unsupervised word embeddings
The distinction changes how a result can be used. A direct test can show which sort of relationship a particular representation makes easy to recover with a specified operation. It cannot reproduce the work of an application that sees a longer input, learns from labeled examples, and makes a different kind of decision. Earlier work used embeddings in tasks such as identifying phrases or entities and assigning text categories. The Sinhala paper keeps the same logic for its extrinsic tests. It asks whether the vectors help inside applications with their own data and prediction procedures. Word representations for semi-supervised learning
A systematic benchmark consequently needs several forms of agreement. The embeddings trained for comparison need reasonably consistent access to text. The direct tests need Sinhala items with a defensible relation or human rating. The application tests need comparable evaluation conditions so that the choice of input vectors is meaningful. Fulfilling those requirements is part of the paper’s contribution. A comparison based only on which embedding files happen to exist would leave several of those decisions to whoever trained each release.
The method, step by step
Prepare the training text
The authors start from the Sinhala portion of a preprocessed Common Crawl collection. The paper gives 0.007% as the Sinhala share of the monthly Common Crawl data and explains that this still offered a substantial starting point relative to other publicly available Sinhala corpora. Web markup had already been removed. The authors further clean the material by discarding characters outside the set they retain for Sinhala and removing punctuation and special characters. This step defines what the training procedures can see before any vector is learned.
They prepare a version with stop words and a version without them. Stop words are common items selected for removal in some text-processing setups. Two Sinhala linguists help prepare the list. The cleaned corpus with stop words contains 94,648,911 tokens, meaning occurrences in the text rather than distinct vocabulary entries. The paper reports 11,114,600 stop-word occurrences in that corpus. Removing those items changes the context from which vectors are learned. A word can have different neighbors after filtering, and the context window can reach other surviving words when intervening items are removed. This comparison concerns filtering the embedding training text.
Preparing and evaluating Sinhala word embeddings
The steps in order.
Train alternative representations
Word2Vec learns from local context. Its continuous bag-of-words variant, typically abbreviated CBOW, uses the surrounding words to predict the word in the middle. Skip-gram reverses the direction of prediction and uses the middle word to predict surrounding words. In both cases the paper describes the context in terms of its words rather than their exact ordering. The learned coordinates reflect the different prediction jobs. Similar contexts can bring words close together, but the treatment of evidence from a common word and a rare one can differ between the variants. Word2Vec
The FastText embeddings the authors train use the skip-gram architecture and build word representations from character n-grams, recurring sequences of characters of a given length. The procedure sums vectors associated with a word’s character sequences. Related forms can then draw on some of the same learned material. A rare spelling or word form can benefit from character sequences encountered elsewhere, and the approach can construct a vector for a form that did not appear as a whole during training. The paper describes that capability as a reason to consider FastText for a language with a rich system of inflection. It is a property of the representation, with the analogy scoring rules placing their own conditions on how absence is handled. FastText and subword information
GloVe starts from counts of how often words occur near other words. The paper describes its learning procedure as global log-bilinear regression, a way to fit a vector representation to aggregate patterns of co-occurrence. A local window still determines which occurrences contribute evidence. The training procedure then works with the collected counts across the corpus. The motivating idea is that ratios of co-occurrence probabilities can carry information about relations. In that setup, a word’s representation draws on patterns across its recorded neighbors. FastText’s shared character sequences and GloVe’s co-occurrence counts are different ways of deciding which observations can inform a vector.
For each locally trained embedding, the authors test 100, 200 and 300 dimensions on the version of the corpus that retains stop words. A dimension is one coordinate in a word vector. Increasing the number gives the training procedure more coordinates with which to represent variation. It also changes how much must be learned from the same text. For the corpus with stop words removed, the authors evaluate only the 300-dimensional setting, after observing that the larger setting generally performed best in the initial comparison.
The locally trained Word2Vec variants and FastText use a context window of 9. Their settings list 5 for negative sampling, 1 as the minimum count, and 0.001 for downsampling. Negative sampling supplies examples of words that were outside the observed prediction pair so that training can distinguish observed contexts from sampled alternatives. The minimum count determines the frequency cutoff for vocabulary inclusion, and downsampling reduces how often frequent items dominate training updates. Downsampling and stop-word removal operate differently. The former limits the participation of frequent items during training, while the latter changes the text supplied to the procedure.
GloVe uses a window of 10. The settings table lists its maximum count and alpha as 100 and 0.75, respectively. These are parameters for how much influence co-occurrence counts have in fitting the vectors. The externally pretrained FastText vectors have 300 dimensions, use a window of 5, and were learned using CBOW on Common Crawl and Wikipedia. The paper treats this release as a practical baseline. It is a comparison with a set of vectors already available to Sinhala researchers, including the consequences of choices the authors did not make for it.
Build analogies around Sinhala relations
An analogy question starts with two pairs that express a relationship in the same direction. A first pair can show a grammatical change, such as a shift between a singular and a plural form. The question supplies the first word of the second pair and asks for its partner. An encyclopedic item follows the same format with an association such as an institution and its head. Each question uses the relation embodied by the pairs, so consistency in constructing and orienting the pairs matters as much as the general category assigned to them.
The authors use BATS for inspiration but replace material that would make unsuitable Sinhala questions. Some English terms for animal sounds have no corresponding word in Sinhala in the authors’ account. Several derivational patterns in BATS also lack direct counterparts. An English construction such as adding a prefix meaning repetition to a verb does not necessarily pick out a productive Sinhala word relation that can be instantiated throughout a benchmark. The authors instead draw on derivational constructions found in Sinhala.
The requirement for single-word entries also rules out some otherwise ordinary translations. The paper illustrates this with the equivalents of believe and develop, which it gives as compound verbs. Each contains a component written separately. The authors replace such items with verbs that meet the single-word requirement, giving the Sinhala verb for sing as an example. That choice keeps the items compatible with the vectors being assessed. It also means the analogy set samples a narrower range of Sinhala verbs than a benchmark that could use phrase representations.
The resulting collection has 8 inflectional relations, 8 derivational relations, and 6 encyclopedic relations. The inflectional group includes plural and superlative forms and several pairings of present, past, and participial forms. The derivational group includes relations labeled adjective to adverb, adjective to noun, and verb to verbal noun, along with the dative form of a noun. The encyclopedic group includes place and capital, names and nationalities, things and colors, and institutions and their heads. These are the benchmark’s organizing labels. The authors reserve the assessment of graded lexical associations for the separate relatedness task.
For each relation, the authors generate questions from the possible combinations of eligible pairs. The inflectional and derivational groups together supply 27,382 analogy questions. The encyclopedic group supplies 5,364. The combinatorial procedure puts each relation to work across multiple word choices. It also gives the resulting questions a shared structure. A word pair can appear in several items, so repeated success or failure involving that pair contributes to several judgments of the same relation.
Turn a relation into a vector query
The paper uses an offset to go from the first pair to the missing word in the second pair. The offset is the change in coordinates needed to move from the first word’s vector to the second’s. Adding the same change to the third word’s vector supplies a target location for the answer.
t = w2 − w1 + w3
Here w1 and w2 are the vectors of the first and second words in the example pair. The minus sign makes w2 − w1 the displacement from the first vector to the second. The symbol w3 is the vector for the supplied word in the second pair, and the plus sign applies the displacement to that vector. The equals sign defines t, the vector used to search for the answer. The paper uses W1, W2, and W3 for the words themselves and W4 for the expected word. There is no need to use the vector of W4 in the arithmetic that produces t.
The procedure ranks candidate words by cosine similarity to the target. Cosine compares the direction of vectors, so the candidate with the closest direction receives the highest similarity regardless of a difference in vector lengths. The paper first describes the usual closest-candidate procedure and then explains its own scoring rule. An answer counts as correct when the designated target occurs among the top 5 results. If a word required by the question is absent from the embedding vocabulary, the paper counts the question as wrong.
The authors motivate the broader rank cutoff using Sinhala word forms. A dative suffix can apply to the words for king and queen, giving forms meaning to the king and to the queen. Other choices involve greater variation. The paper gives two Sinhala plural forms for man, for instance. A target could plausibly be surrounded by forms with related meanings and spellings, so requiring it to outrank every other word is a demanding criterion. The top-5 rule gives the designated target room to appear below another candidate. It still tests for a designated target, so an alternative form only helps if the target itself also appears within the cutoff.
Collect human judgments of relatedness
The relatedness test uses pairs rather than analogies. A pair asks how closely people associate its words, without requiring the words to complete the same transformation as another pair. WordSim-353, the starting point, contains 353 pairs. The paper reports directly translating 87% of its pairs and gives 345 as the size of the Sinhala collection. The original material therefore supplies much of the vocabulary while the resulting benchmark has its own set of items.
The authors collect fresh scores in Sinhala. They illustrate the reason with president and medal, which may be strongly associated for readers familiar with Sri Lankan reporting about presidential medals. That is a connection grounded in usage and institutions. It belongs in a relatedness test even though the words refer to different kinds of things. Carrying over an existing numerical score would carry over assumptions about which associations are salient to the people who assigned it.
Two native speakers independently rate each pair. Their scores are averaged to produce the reference value. Each set of embeddings supplies its own score for the same pair through the cosine similarity between its word vectors. The evaluation then uses Spearman correlation, which compares the ordering by cosine with the ordering by human judgment. The comparison rewards an embedding for giving relatively larger similarities to pairs that the annotators rate as relatively more related. The underlying human scores and the cosine values may be on different scales because the evaluation works with ranks.
This test and the analogy test use cosine for different purposes. In relatedness, the vectors of the paired words are compared directly. In analogy, the comparison comes after constructing a new vector that represents a candidate shift. An embedding can therefore put associated terms near each other yet make the displacement between examples of a particular relation difficult to reuse. Conversely, a recurring change such as a grammatical ending can produce a recognizable offset without fixing the order in which unrelated pairs should be ranked by human association.
Supply the vectors to applications
For the sentiment experiment, the authors reuse an existing Sinhala study of news comments. The task is text classification: each comment receives a positive or negative label. The previous study compared statistical and neural approaches. Logistic regression gave the strongest results among its statistical classifiers, and a recurrent network with long short-term memory, or LSTM, gave the strongest result overall. The embedding comparison uses the latter architecture. An LSTM passes information along the input sequence so its classification can depend on how words occur together in a comment. The embeddings supply the word inputs, and the labeled comments provide supervision for the prediction task.
The part-of-speech tagging experiment uses an existing implementation that combines a bidirectional LSTM with a conditional random field, abbreviated CRF. A part-of-speech tag gives the grammatical category assigned to a word in its sentence. The bidirectional network brings information from both earlier and later words into the representation used for a tag. The CRF accounts for relationships among tags across the sentence when choosing the output sequence. The same training and test sentences are used for each embedding, so changes in the comparison occur within a common tagging setup. Earlier work on bidirectional LSTMs for part-of-speech tagging
These applications make different demands of their inputs. Sentiment assigns a label to a whole comment, and grammatical tagging assigns a sequence of labels aligned to the words. Both systems can learn from the words around the current input. Their results measure how the vectors serve as features within the training and decision procedure used for that task. The authors publicly release the cleaned Common Crawl material, their embeddings, and the benchmark datasets, so the resources for training and direct evaluation accompany the comparisons.
Experiments and results
Analogy accuracy varies by relation
The analogy experiment reports accuracy as the percentage of questions on which the expected word enters the top 5. Its results are grouped by relation, with separate averages for inflectional, derivational, and encyclopedic questions. The first two groups include grammatical changes among word forms. The last involves associations such as geography or institutional roles. The public FastText release is reported alongside the embeddings trained for the study, supplying a baseline at 300 dimensions.
For inflections, locally trained 300-dimensional FastText with stop words scores 34.7% for the category, and Word2Vec skip-gram under the same conditions scores 34.1%. Word2Vec CBOW scores 28.9%, and GloVe scores 7.59%. For derivations, the corresponding category scores are 28.7% for FastText, 28.0% for skip-gram, 22.3% for CBOW, and 5.84% for GloVe. The public FastText vectors score 20.9% for inflections and 20.6% for derivations. The locally trained skip-gram approaches are close on these category averages, even though particular relation scores can differ.
The ordering changes for encyclopedic questions. At 300 dimensions with stop words, CBOW reaches 21.1%, FastText 17.1%, skip-gram 16.7%, and GloVe 12.7%. The public FastText vectors score 6.8%. Word2Vec skip-gram with 200 dimensions and stop words scores 20.3%, higher than its own 300-dimensional result. The category is consequently an exception both to FastText’s general lead and to the tendency for a larger vector to score higher.
The relation-level scores show how much these category averages can conceal. With stop words and 300 dimensions, FastText scores 62.2% on the superlative relation and 34.7% on inflections as a group. Within the derivational group, its score for the dative relation is 64.3%, and its score for the verb-to-verbal-noun relation is 0.8%. Both belong to a category on which FastText has the best average. The same embedding can give the expected answer fairly often for one morphological relation and almost never for another, even with the top-5 rule.
Relatedness favors the locally trained FastText vectors
The relatedness evaluation uses the 345 Sinhala pairs and compares cosine rankings with the averaged human ratings. The scores in this experiment are Spearman correlations. With the stop words retained, FastText scores 0.597 at 100 dimensions, 0.641 at 200, and 0.644 at 300. Word2Vec skip-gram gives the strongest correlation at 100 dimensions, with 0.625, and scores 0.640 at 300. CBOW and GloVe produce lower correlations in the corresponding settings.
The best reported relatedness score is 0.650 for locally trained 300-dimensional FastText without stop words. All the locally trained approaches improve on their corresponding 300-dimensional scores when those words are removed. The following comparison uses the stop-word-filtered corpus for the locally trained vectors. The published FastText score comes from its own training sources and settings.
Spearman correlation on the Sinhala word relatedness benchmark
Locally trained FastText leads the embeddings trained without stop words and the public FastText baseline.
The numbers
| System or setting | Spearman correlation |
|---|---|
| GloVe without stop words | 0.428 |
| Word2Vec CBOW without stop words | 0.573 |
| Pretrained FastText | 0.611 |
| Word2Vec skip-gram without stop words | 0.643 |
| Locally trained FastText without stop words (this paper) | 0.650 |
The comparison between the native judgments and vector scores is informative at the level of ordering. A correlation of 0.650 says how the rankings agree across the benchmark. It cannot be read as the percentage of word pairs a system got right or as the share of individual annotations it reproduced. The task assigns graded relationships, and pairs with especially high similarity are only part of the ranking the evaluation measures.
Sentiment classification on news comments
The annotated comments come from 276 Sinhala news articles covering topics that include politics, sports, crime, the economy, and culture. Each prediction is positive or negative. The paper reports F1 as a percentage. F1 combines precision, which concerns how often predicted labels are correct among the relevant predictions, and recall, which concerns how frequently the system recovers the relevant labeled cases. The results table compares embeddings used in the recurrent sentiment system. The paper does not state an F1 averaging convention or give a sentence-style count for the sentiment train and test splits.
The best reported F1 is 87.76% for locally trained FastText with 300 dimensions and stop words. Word2Vec skip-gram is the closest of the other embeddings at that dimensionality and preprocessing setting, with 87.34%. The public FastText release scores 84.98%. CBOW reaches 83.94% and GloVe 84.34% in the 300-dimensional comparison with stop words, illustrating that GloVe’s generally low scores include individual settings in which another approach falls below it.
F1 on Sinhala news comment sentiment with 300-dimensional embeddings
Locally trained FastText with stop words has the highest F1, followed by Word2Vec skip-gram.
The numbers
| System or setting | F1 % |
|---|---|
| Word2Vec CBOW with stop words | 83.94 |
| GloVe with stop words | 84.34 |
| Pretrained FastText | 84.98 |
| Word2Vec skip-gram with stop words | 87.34 |
| Locally trained FastText with stop words (this paper) | 87.76 |
The ordering is sensitive to the size of the representation. At 100 dimensions, with stop words, skip-gram gives 87.26% F1 and FastText gives 86.40% F1. At 200 dimensions, the corresponding scores are 86.71% and 86.58%. FastText takes the lead at 300 dimensions. CBOW with stop words reports 84.22% at 100 dimensions, above its results at the larger sizes. A comparison that sampled just the smallest size or just the largest size would therefore support different choices within the same sentiment application.
Removing stop words gives FastText 87.48% F1 and skip-gram 87.21% at 300 dimensions, both below their scores with the words retained. CBOW moves in the other direction, reporting 85.33% without stop words. GloVe gives 82.91%. The authors’ general observation that removing stop words did not improve the best sentiment result is compatible with an improvement for CBOW. There are two distinct questions here: whether preprocessing raises the leading score and whether it helps a particular embedding.
Part-of-speech accuracy on held-out sentences
The tagging data contain 28,630 sentences for training and 3,182 for testing. Every evaluated embedding is used with those splits. The reported measure is percentage accuracy for the tagging task. With stop words and 300-dimensional vectors, locally trained FastText produces the highest accuracy, 90.97%. CBOW follows with 89.64%. The public FastText vectors lead locally trained Word2Vec skip-gram and GloVe at that size and preprocessing setting.
Accuracy on the Sinhala part-of-speech test set with 300-dimensional embeddings
Locally trained FastText gives the highest tagging accuracy and Word2Vec CBOW is the strongest alternative.
The numbers
| System or setting | Accuracy % |
|---|---|
| GloVe with stop words | 87.10 |
| Word2Vec skip-gram with stop words | 87.44 |
| Pretrained FastText | 88.48 |
| Word2Vec CBOW with stop words | 89.64 |
| Locally trained FastText with stop words (this paper) | 90.97 |
Among the locally trained embeddings with stop words, every approach improves from 100 through 200 to 300 dimensions on this task. At 100 dimensions, FastText gives 88.78% and CBOW 86.30%. At 200 dimensions, they give 90.85% and 88.60%, respectively. The progression within FastText is smaller between the larger settings. GloVe rises from 83.02% at 100 dimensions to 87.10% at 300. Its improvement across sizes is visible even though it still gives the lowest accuracy in the 300-dimensional comparison with stop words.
When the authors filter the embedding corpus, the 300-dimensional tagging scores fall for all the locally trained approaches. FastText gives 89.33% without stop words and still leads that set of embeddings. CBOW follows at 87.68%, skip-gram at 86.84%, and GloVe at 85.29%. The test sentences are held fixed, so this is a result about the usefulness of features learned from differently preprocessed training text for the same tagging task.
What the ablations show
Vector size has a clearer effect in some tasks than others
The study offers controlled comparisons of dimensionality and stop-word treatment, comparisons among embedding approaches, and a breakdown by analogy relation. The comparison across sizes is clearest when reading down the results for one approach trained on the corpus with stop words. This holds the named training source and preprocessing condition fixed. Relatedness and grammatical tagging favor the largest tested size for all of the locally trained approaches in that condition. In tagging, each intermediate setting also improves over the smallest. Those regular patterns give the authors their main basis for favoring 300 coordinates.
Sentiment shows why that conclusion has to be qualified. FastText and GloVe improve as the size increases with stop words retained, but CBOW does best at 100 dimensions and skip-gram dips at 200 before scoring highest at 300. A ranking based on one size thus combines properties of the learning procedure and its capacity under that setting. Analogy results are more variable still. Besides the skip-gram result on encyclopedic questions, GloVe’s inflectional average is 9.3% at 100 dimensions, 6.92% at 200, and 7.59% at 300. More coordinates give the procedure more room to encode variation, but that extra room does not ensure that a particular vector operation becomes more successful.
Stop words have a task-dependent effect
The stop-word comparison holds the chosen dimension at 300 and varies the corpus. The direction of the relatedness result is consistent across locally trained approaches. For example, CBOW’s Spearman score goes from 0.548 with stop words to 0.573 without them. For the tagging task, all locally trained approaches give higher accuracy with the words retained. Because the design filters the training corpus, the tagging result shows that the presence of frequent words during embedding training can be helpful to the application. It does not tell us how a tagger would fare if those words were deleted from its own sentences.
Analogy results give a less uniform picture than the overall conclusion about the leading scores might suggest. FastText’s inflectional and derivational averages are both higher with stop words. Its score on the dative relation, however, is 69.9% after removal, compared with 64.3% with the words retained. For skip-gram, the encyclopedic average is 17.1% without stop words and 16.7% with them. In both cases, a particular embedding or relation improves even though removing the words does not produce a higher best category score across the comparison.
Removing frequent words may change what kinds of neighboring words supply evidence to the embedding procedure. Relatedness is measured through global ordering of pair similarities, and tagging uses vectors in sentences where grammatical context matters. Those are different uses of the information learned from context. The experiment measures the net effect of filtering in each use. It does not identify individual stop words that cause a gain or loss, nor does it separate the effect of the removed tokens from the effect of the new neighborhoods created by removal.
Comparing prediction directions and subword features
Within Word2Vec, skip-gram gives higher relatedness correlations and sentiment F1 than CBOW at the matched settings. CBOW gives higher tagging accuracy. The authors suggest that the way CBOW treats rare words during training could help explain some of the skip-gram advantage. The results establish the task-dependent ranking. A frequency-stratified analysis or a controlled change to the handling of rare words would be needed to measure the proposed explanation directly.
The analogy comparison adds a qualification to the authors’ general observation that CBOW is stronger than skip-gram on that task. With stop words at 300 dimensions, CBOW leads the two Word2Vec variants for encyclopedic analogies, whereas skip-gram leads for inflections and derivations. At the same dimension without stop words, CBOW leads across those category averages. The relation groups therefore matter to the description of which variant wins. A reader interested in grammatical analogies would draw a different conclusion from the stop-word-retaining comparison than a reader interested in encyclopedic facts.
The locally trained FastText and Word2Vec skip-gram comparisons give some evidence for the value of sharing character information. They are trained on the same processed source, use the same prediction direction, and have the same listed window size. FastText’s higher relatedness and tagging scores at the strongest settings are consistent with a benefit from its construction of word vectors out of character sequences. The paper does not run a separate intervention that switches character information off inside the FastText procedure or measures which sequences help answer particular questions. Its support for the sub-word explanation comes from the design of the representations, the matched comparisons, and the linguistic examples.
The comparison with the pretrained FastText vectors offers a different kind of evidence. Both approaches have character-based representations, but the local release uses skip-gram and a window of 9, while the public release uses CBOW and a window of 5. The training sources and cleaning also differ. The authors propose that a wider window helps surround Sinhala expressions that span several words and that cleaning and the choice of prediction direction could also matter. The local release’s higher scores show that a Sinhala-specific training setup can give a better result on the tasks studied. The comparison leaves the relative contributions of those choices unresolved.
Some relations are hard across approaches
The authors highlight the derivational relations labeled D06 and D07. The first pairs verbs with forms labeled gerunds in the benchmark and the second pairs verbs with verbal nouns. With stop words at 300 dimensions, the D07 accuracy is 1.8% for CBOW, 0.6% for Word2Vec skip-gram, 0.52% for GloVe, and 0.8% for locally trained FastText. On D06, the same systems give 14.6%, 15.2%, 1.85%, and 15.5%, respectively. These scores show that the difficulty is shared, even though the systems differ in their category averages and downstream rankings.
Part of the interest of that breakdown is that the dative relation behaves very differently. With the same corpus and dimension, CBOW scores 72.0% on the dative and FastText 64.3%. A category label such as derivational is therefore too coarse to explain what vector arithmetic will recover. The experiment shows which relations yield repeatable displacements for this benchmark and which usually fail to put the target near the top. It cannot tell from these scores alone how much of a relation’s difficulty comes from the forms in its items, the training evidence available for them, or the suitability of a common vector offset.
Limitations
Limits the authors identify
The paper evaluates embeddings for individual words. The authors flag phrase representations as an important direction because Sinhala frequently expresses verbs using multiple words. The study accommodates this issue by excluding compounds from the analogy items when the representation cannot handle them as a unit. The resulting questions remain meaningful tests of the vectors as designed. They leave open how representations that operate on multiword expressions would capture the same kinds of grammatical or semantic change.
The authors also stress the scarcity of downstream Sinhala work and datasets available for this comparison. The extrinsic evidence comes from sentiment in news comments and grammatical tagging. Both are informative because their predictions work at different levels, but the paper’s discussion treats performance as application dependent. Training a new tagger and testing comments from a different source are separate experiments, even if they start from the same vectors. The study’s broader point about using multiple evaluations rests partly on that division of evidence.
The authors propose extending the comparison to representations such as BERT and XLNet and exploring embeddings that explicitly use morphological or syntactic features. These suggestions define additional experiments beyond the study’s word-vector setup. They also note that even the large Sinhala corpus they assembled might be a limitation for the count-based approach. The claim about corpus size is offered as an explanation for GloVe’s weak performance. The paper does not vary the amount of training text to test it. BERT · XLNet
The authors regard their Sinhala analogy adaptation as a response to real limits of translation. It is a benchmark with its own relations and a modified scoring rule. An analogy score consequently belongs to this combination of linguistic material and procedure. The benefit of using locally appropriate items comes with a narrower basis for directly comparing these accuracy figures with the earlier English and Arabic evaluations discussed in the paper. Differences in item design and answer cutoffs can change the significance of a reported accuracy.
Limits visible in the evaluation design
The paper gives a clear rule for absent words in analogy scoring. It counts their questions as errors. The resulting category accuracy combines vocabulary coverage with the quality of the vector offsets and cosine rankings. This is practical if the question is how frequently the representation answers a benchmark item as supplied. As a diagnostic, however, the score leaves two important situations joined. An embedding can fail because it encountered too little evidence to represent a needed form, or it can fail after producing vectors for all the words. The report does not split those contributions. The omission matters especially when interpreting FastText, since its character-based design is motivated in part by its ability to represent unfamiliar forms.
The top-5 rule also changes what it takes to succeed. It measures whether the designated word is retrieveable among several candidates. A system expected to choose a single response would have the added problem of identifying which candidate to use. The paper’s morphology discussion explains why the designated form may compete with legitimate alternatives. Yet the procedure still checks the designated answer instead of accepting every valid form. A comparison against a set of permissible forms, or a side-by-side report of the closest candidate and the larger cutoff, could answer different questions. The published accuracy supports the test the authors actually specify.
The analogy questions are generated in combinations from pairs within relations. As a result, the number of questions does not describe the amount of independent lexical evidence in the benchmark. A difficult pair can contribute to several failed analogies, and a well-represented pair can contribute to several successful ones. This design is helpful for asking how frequently a relationship transfers across available examples. It gives a different kind of sample from one made up of independently elicited analogies. The category breakdown reveals differences across relations, but it does not establish how performance would vary on a fresh sample of source pairs.
Averaging two native speakers’ relatedness judgments gives the cosine rankings a shared reference. The paper does not report agreement between those annotators. A low agreement on a pair might reflect legitimate differences in experience, uncertainty about a meaning, or ordinary variation in rating. A high disagreement rate would affect how a reader interprets the correlation with the average. The paper also does not spell out in the relatedness procedure how absent words are handled. The analogy rule should not be assumed to apply automatically to a task that evaluates a rank order across pairs.
The data selection for each extrinsic task determines how far its results travel. The sentiment experiment concerns annotated news comments with a positive or negative label. Its F1 scores establish performance for that setup, without a breakdown by news subject or a test on a different source of comments. The tagging experiment uses the same sentences for each embedding and provides explicit sizes for its splits. It reports aggregate accuracy. That leaves open how much the strongest score depends on common tags and whether its advantage extends to rare forms or difficult categories.
The results are reported as point estimates. They show which configuration achieved the higher value in the evaluation, but the paper does not give uncertainty estimates across repeated training runs for the close comparisons. For example, the reported F1 of 87.76% for FastText and 87.34% for skip-gram come from one specified sentiment setup. The numerical ordering is straightforward. The size and stability of the advantage under training variation are separate questions. The same distinction applies to small improvements when stop words are removed.
Finally, the comparisons vary some choices together and leave others unexplored. The stop-word comparison is made only at 300 dimensions, so the study cannot tell whether the lower-dimensional cases respond similarly. The locally trained and public FastText results mix different context windows, prediction directions, and training sources. The GloVe comparison uses one reported configuration of its count-weighting settings. These are appropriate comparisons of the resulting embeddings, including useful choices a practitioner actually faces. Their scope is the measured performance of those configurations. The authors’ explanations about morphology, context width, and corpus scale remain hypotheses about which parts of the setup gave rise to it.
What came after
SinhaLegal: A Benchmark Corpus for Information Extraction and Analysis in Sinhala Legislative Texts (2026) cites the embedding evaluation and develops a benchmark corpus for Sinhala legislative texts. It moves the focus from general-purpose word vectors to information extraction and analysis within a specific kind of document. Where Lakmal and colleagues supply shared material for comparing representations on word relations and language applications, SinhaLegal supplies benchmark material for work on legislative language.
The connection is clearest at the level of the evaluation resource. Lakmal and colleagues show how the choice of Sinhala examples determines the questions a benchmark can meaningfully ask. A legislative corpus gives a later evaluation a defined body of Sinhala usage. It can support questions about what a system extracts from those texts, whereas an analogy collection asks whether a known word relation is recoverable from vectors. Both contributions build the evaluation around Sinhala material and state its intended domain through the data and task.
The citation establishes a connection between the studies. Reuse of the cleaned Common Crawl corpus, the analogy and relatedness items, or the trained embeddings is unestablished. The later contribution that can be attributed to SinhaLegal is the legislative benchmark itself. It extends the range of Sinhala material available for evaluation and illustrates how the underlying question changes once a study moves from measuring relations among words to extracting information from documents.
Cite
Cite as Dimuthu Lakmal, Surangika Ranathunga, Saman Peramuna and Indu Herath. 2020. Word Embedding Evaluation for Sinhala. Proceedings of the Twelfth Language Resources and Evaluation Conference.
@inproceedings{lakmal2020word,
title = {{Word Embedding Evaluation for Sinhala}},
author = {Dimuthu Lakmal, Surangika Ranathunga, Saman Peramuna and Indu Herath},
booktitle = {Proceedings of the Twelfth Language Resources and Evaluation Conference},
year = {2020},
url = {https://aclanthology.org/2020.lrec-1.231/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/lakmal-2020-word-embedding-evaluation-sinhala/