Elamur Research

Fine-grained Semantic Textual Similarity for Serbian

Paper · 2018 · Vuk Batanović, Miloš Cvetanović and Boško Nikolić

Summary

Two news sentences can cover the same event while giving readers different information about it. A yes-or-no paraphrase label leaves little room for that distinction. Semantic similarity gives the comparison a scale, with room for pairs that share a topic, an action, or most of their meaning. Batanović and colleagues build a Serbian benchmark for this task and use it to ask how well relatively simple scoring methods track human judgments. At the time of the study, most public resources for fine-grained sentence comparison were in English, and the authors knew of no previous dataset of this kind for a Slavic language.

The Serbian Semantic Textual Similarity News Corpus, or STS.news.sr, contains 1192 sentence pairs drawn from an existing Serbian paraphrase collection. Five annotators scored every pair independently on a 0 – 5 scale. The authors retained the general SemEval annotation procedure but replaced its examples with professionally translated news pairs chosen to clarify the scoring levels. The benchmark uses the average of the annotators’ scores for each pair. On average, an individual annotator’s scores had a Pearson correlation of 0.92 with the average scores of the other annotators.

The experiments compare exact word overlap, sentence representations built by averaging word vectors, and methods that match individual words across sentences. The authors’ method, POS-TF STSS, combines spelling and word-vector evidence for each match and weights it using corpus frequency and grammatical category. On STS.news.sr under 10-fold cross-validation, it achieved the highest Pearson correlation in the comparison, 0.7665, with a Croatian stemmer. The best pairing matters because reducing inflected words to stems or lemmas consistently helped the full-corpus overlap and combined baselines, while it consistently hurt the baseline that relied only on averaged word vectors.

The paper releases the corpus, annotation instructions, STSAnno annotation software, and the STSFineGrain evaluation framework. Together they make it possible to study how a sentence scoring method responds to surface resemblance, grammatical information, and inflection on the same Serbian news pairs. The results give that comparison a shared reference point and show how the effect of preprocessing depends on the kind of evidence a method uses.

Deep dive: Fine-grained Semantic Textual Similarity for Serbian

How a Serbian news corpus makes sentence similarity measurable and how word frequency, grammar and stemming affect agreement with human judgments. · about 33 minutes to read

The problem and its context

How much meaning do the sentences share?

Semantic textual similarity, or STS, asks for a numerical judgment about the meaning shared by a pair of short texts. The bottom of the scale corresponds to meanings with no connection. The top corresponds to meanings that are effectively the same. The space between those endpoints is where much of the practical difficulty lies. Two sentences can describe a common event but convey different details, or say nearly the same thing using different expressions. A graded scale gives the evaluator a way to preserve these distinctions.

A sentence pair is the unit of judgment. Comparing the sentences requires deciding how much of what each one conveys is shared with the other. The paper distinguishes this task from the broader study of semantic relatedness, mentioning work on Polish in that connection. Two texts can have an evident association through a topic, event, or participant. The closer they come to conveying the same information, the stronger the case for a rating near the upper end of the scale. A useful test collection needs pairs for which that distinction has consequences.

The paper places this problem among several tasks that can benefit from comparing short texts by meaning. In information retrieval, a relevant passage can use unfamiliar wording for a familiar request. In question answering, comparison by meaning offers a way to recognize corresponding information across formulations. The authors also name machine translation and textual entailment as related applications. Their experiment isolates the sentence comparison itself and gives it a graded human reference.

A binary paraphrase resource offers a useful starting point because it already contains paired sentences. Its existing labels answer a coarser question, however. Two pairs that both fall on the same side of a paraphrase decision may differ substantially in what they share. Replacing that decision with a graded judgment makes those pairs informative for evaluation. It also makes training more demanding, because a scoring procedure needs to learn some of the distinctions people make within what used to be a single category. The paper traces this change from binary resources such as the Microsoft Research Paraphrase Corpus to graded shared-task data.

The shared-task precedent

The authors cite earlier work on measures that compare texts through the words they contain. A central problem with such measures is that surface evidence and semantic evidence can diverge. An exact match offers direct evidence of shared wording, while a pair of different but related words can still contribute to shared meaning. The research line that the paper draws on includes both string comparison and corpus evidence, allowing these sources to enter the same scoring procedure. Measuring the Semantic Similarity of Texts

SemEval gave the task a common evaluation setup beginning in 2012. Participating methods could be assessed against the same human judgments, using a consistent annotation procedure and openly available datasets. This gave Batanović and colleagues a procedural starting point for Serbian. They could adopt the scoring scale and the general task instructions while adapting the examples that tell annotators how to apply them. The distinction between the common scale and its examples becomes important when they prepare the Serbian annotation. SemEval-2012 STS pilot

The paper describes a field in which fine-grained datasets were concentrated in English. The authors identify STS work involving Spanish, French, Portuguese, Chinese, Japanese, Arabic, and Hindi, with public datasets available for Spanish, Portuguese, and Arabic among those languages. The work they mention on Polish concerns a broader kind of relatedness. They therefore present a Serbian corpus as filling a resource gap both for Serbian and, to their knowledge, for fine-grained STS in Slavic languages at the time.

News was a practical domain for this first collection. Serbian sentence pairs were already available, and earlier shared tasks offered news datasets against which the authors could describe the resulting benchmark. Using an existing collection put the main annotation effort into judging similarity and gave the corpus a documented source. It also carried forward the pairing preferences of that source. Any comparison based on the finished benchmark is therefore a comparison on the kinds of sentence pairs that the paraphrase collection supplied.

What Serbian changes about the comparison

Serbian’s rich morphology makes a simple overlap count sensitive to the way a word is inflected. If the same underlying word appears in different forms in the two sentences, an exact comparison can miss the link. A stemmer or lemmatizer may make the forms coincide, letting a surface comparison recover evidence that would otherwise be split across separate entries. The paper evaluates this intervention directly because the treatment of word forms is part of how a scoring method decides what counts as a match.

At the same time, a method that compares individual words can use more than their normalized spelling. The paper considers grammatical categories such as nouns, verbs, and numerals. If the importance assigned to a match varies with category, a system can treat evidence about a main action differently from evidence carried by a function word. It can do so with a word-level tagger. The authors restrict the supervised comparison to bag-of-words methods because work on more advanced Serbian syntactic tools, including dependency parsing, was only beginning.

This leaves the paper with two connected tasks. It needs a Serbian reference collection whose labels make intermediate degrees of similarity observable. It also needs a comparison that can show how much common word-level evidence can accomplish on those examples. The collection establishes what the scoring procedures are trying to predict. The experiments ask how string matching, frequency, grammatical category, and normalization affect the prediction.

The method, step by step

Preparing the sentence pairs

The starting material was paraphrase.sr, the Serbian Paraphrase Corpus. It supplied 1194 pairs from the news domain. The authors reviewed the text, corrected typographical errors by hand, and restored missing diacritics. They removed a duplicate pair and another pair in which an item extended beyond a single sentence. This left 1192 pairs for annotation. The resulting inputs were still the original collection’s news pairs, with corrections and exclusions to make the comparison consistent at the sentence level.

That cleanup matters for both sides of the experiment. A missing diacritic is something a human reader may mentally restore, while an exact comparison can treat the resulting spelling as a separate token. A duplicate would make a particular example count more heavily in the finished benchmark. An item containing more than a sentence would also change what the reader is comparing. The cleanup addressed these issues before any similarities were assigned, so the raters and the scoring procedures worked from the same corrected material.

The task then moved from a paraphrase resource to graded linguistic annotation. Each annotator saw a pair of sentences and assigned it a score using the SemEval 0 – 5 scale. The levels serve as ordered descriptions of how much meaning the sentences share. The finer reference values used later come from averaging the independent judgments for a pair. An intermediate reference value can therefore reflect the combined judgment of readers who placed the example at different levels.

Showing annotators how to use the scale

The authors kept the general instructions from the 2013 semantic textual similarity shared task. Early consultations with the annotators revealed a problem with the sample pairs, especially around scores 2 – 4. Readers needed examples that helped separate nearby degrees of similarity. At those intermediate levels, deciding whether the sentences broadly concern the same thing is only part of the job. The annotator also has to decide how much of their information coincides.

The authors replaced the examples throughout the scale and used three per level. They took candidate pairs from the English 2012 MSRPar corpus and from the 2013-2016 SemEval headline collections known as HDL. These were news sources, so the kinds of short texts used to demonstrate the scale resembled the task’s own domain. Professional translation made the examples available in Serbian. The final choice was discussed with the annotators so that the examples would work as illustrations of their intended levels. SemEval-2016 semantic textual similarity

Eligibility also depended on the existing annotations. The authors considered examples with integer averages, treating a whole-number average as a useful clue that readers had converged on the intended level. As a matter of interpretation, such an average can also result from different scores that balance around the same value. The screening rule therefore helped identify candidates for the examples, and consultation helped determine whether those candidates communicated the distinctions clearly.

Choosing candidates from already scored English news pairs gave the authors an external starting point for the examples. The annotation could keep the shared-task scale and draw on pairs already used to study it. The translations and the final selection adapted those examples for the Serbian readers. The paper makes the instructions and examples available in both languages, so the judgments can be understood alongside the material used to teach the scale.

Collecting independent judgments

After the instructions were settled, the annotators first scored a random subset of 60 pairs, described as ~5% of the corpus. They then rated the entire corpus. The initial subset reappeared in the full annotation, giving the authors a way to compare each reader’s preliminary judgments with that same reader’s judgments on the corresponding items during the complete pass. This is the basis of the reported self-agreement.

The full annotation took roughly two months. Five annotators rated the pairs independently. The group included a computational linguist, linguists, and people outside linguistics, and the first author was among the annotators. Each reader’s completed set of judgments made it possible to compare that person with individual colleagues and with the average judgment of the rest of the group. The final reference for a pair was the mean of all the judgments on it.

The authors developed STSAnno to support this work offline. It displays the sentences side by side, accepts a score, and lets an annotator change or erase an earlier choice. A reader can also mark a difficult pair for later attention. Color distinguishes completed, unscored, and temporarily skipped pairs, and a progress display provides a running overview. Readers can proceed through the corpus in sequence or choose another order. These controls support independent judgment while leaving room to revisit a decision.

Establishing the word-level evidence

The simplest sentence comparison asks which words appear on both sides. The original SemEval baseline splits text on whitespace and represents each sentence in a vocabulary space. In that representation, each coordinate corresponds to a token, and its value records presence or absence. Repeating an already present token leaves its coordinate unchanged. Cosine similarity then measures how closely the directions of the two sentence vectors align. Here the evidence is shared membership in the sentences’ token sets.

The paper also tests cleaning and segmenting the text with the Serbian ReLDI tokenizer, while lowercasing and removing punctuation. Tokenization determines which pieces of text can count as matching units. Lowercasing lets case variants share an entry, and filtering punctuation concentrates the comparison on the remaining tokens. These steps form a package in the baseline comparison. The authors use that package in subsequent experiments.

A second comparison represents each sentence by averaging its word embeddings. An embedding gives a word a vector learned from patterns in a corpus. Two different words can have vectors pointing in similar directions, so this sentence representation can register a kind of resemblance that exact token overlap misses. Each sentence is collapsed to its mean word vector before anything is compared across the pair. The cosine between the resulting vectors gives the sentence score. The underlying word representations come from word2vec.

For these embeddings the authors train the skip-gram form of word2vec, using gensim and the Serbian web corpus srWaC. The source corpus contains 555 million tokens. The authors filter out punctuation and words outside Serbian and convert the remaining material to lower-case. The processed corpus contains around 470 million tokens and a vocabulary of around 3.8 million entries. The setting uses 100-dimensional word vectors and a window size of 10. The remaining training parameters are the gensim defaults. This training supplies word-level information from outside the rated pairs, independently of their sentence similarity labels. Skip-gram word representations

The joint baseline puts the binary token vector and the mean embedding end to end for each sentence. It then applies cosine to the resulting concatenated representations. The resulting score can respond both to exact token matches and to proximity between the averaged word vectors. The combination happens before the cosine calculation. It therefore differs from fitting a weighted average of the two separate baseline scores against annotated sentence pairs.

The authors also try a limited negation heuristic. They prefix the word immediately following a negation word so that its marked form is distinguished from its ordinary form. This changes the representation of a local context while leaving the sentence comparison itself intact. The paper draws on earlier uses of related techniques in sentiment analysis, where the vicinity of a negation can affect how a word should contribute. Thumbs up? Sentiment Classification using Machine Learning Techniques

Comparing inflected forms

The authors vary morphological normalization in the sentence comparisons. Stemming reduces related forms to a shared stem for matching. Lemmatization aims to map an inflected form to the corresponding dictionary form. Both make it possible for different forms to coincide, but the output that counts as a successful reduction differs. A stem serves as a common matching representation. A lemma represents a particular lexical entry.

For stemming, the comparison includes the optimal and greedy procedures of Kešelj and Šipka, Milošević’s refinement of the greedy procedure, and a Croatian stemmer by Ljubešić and Pandžić. The implementations come from SCStemmers. Including a Croatian tool treats the close relationship between Croatian and Serbian as a possibility to test on Serbian data. Its performance is assessed on the same sentence pairs and with the same scoring procedures as the Serbian alternatives.

The lemmatization comparison includes BTagger with suffix normalization and a BTagger variant that also handles prefixes. The authors also try the CST lemmatizer with a Croatian configuration by Agić and colleagues, and the Serbian lemmatizer of Ljubešić and colleagues. The latter uses a large inflectional lexicon and a morphosyntactic tagger. The alternatives vary in how they turn word forms into common entries. The experiment asks which outputs work well for the sentence comparison at hand.

Matching words across the pair

The supervised family starts with the approach of Islam and Inkpen. Instead of first reducing each sentence to a mean embedding, it compares individual words across the pair. A word in the shorter sentence is paired with its most similar counterpart in the longer sentence. Determining which counterpart is most similar uses a combination of spelling-based scores and word-vector similarity. Supervised fitting chooses the balance between these two sources of evidence using rated pairs.

The spelling part combines three string similarity measures inherited from Islam and Inkpen’s procedure. The paper points to that work for the definition of the mixture. For the semantic part, the authors take the cosine of the words’ 100-dimensional word2vec vectors. The embeddings are the same word-level resource used for the averaging baseline. The difference is in their use. Word alignment applies the cosine to possible correspondences while the words are still individually represented.

LInSTSS, short for Language-independent Short-text Semantic Similarity, adds term-frequency weighting to the matching procedure. Its frequencies are estimated from srWaC. They describe corpus usage, so the weight can depend on how frequently the words occur in the web collection independently of their occurrence in a particular news pair. The procedure takes something that would otherwise be a similarity of forms or vectors and adjusts its contribution using those corpus statistics.

POST STSS, short for Part-of-speech Tag-supported Short-text Semantic Similarity, uses part-of-speech tagging to produce a different kind of weight. The tagger of Ljubešić and colleagues assigns morphosyntactic descriptors, or MSDs, following MULTEXT-East version 5 for Croatian. A descriptor starts with a letter that gives the broad part of speech. More specific descriptor information can distinguish, for example, common nouns from proper nouns. These distinctions let the scoring procedure give different contributions to matches involving different kinds of words.

POST STSS also uses an interaction matrix to determine which part-of-speech combinations may be paired. This is a separate decision from weighting the matches. An entry in the matrix governs eligibility for a category combination. The category weights determine the strength of similarity evidence from permitted combinations. A cross-category pairing can remain available even when the corresponding POS weights give it relatively little influence.

The new method, POS-TF STSS, applies the term-frequency and part-of-speech weights together. It uses the same sources for the two adjustments as the earlier methods. Frequency comes from the large web corpus, while grammatical category comes from the tagger and the importance assigned to each category is fitted using annotated similarity judgments. The procedure can be followed from the news pair through to a held-out prediction.

How POS-TF STSS scores a Serbian sentence pair

The steps in order.

How POS-TF STSS scores a Serbian sentence pairStep 1: Tokenize and optionally normalize the sentences1. Tokenize and optionally normalize the sentencesStep 2: Obtain morphosyntactic descriptors for the words2. Obtain morphosyntactic descriptors for the wordsStep 3: Compare word spellings and embedding directions3. Compare word spellings and embedding directionsStep 4: Apply corpus frequency and grammatical weights4. Apply corpus frequency and grammatical weightsStep 5: Find the best permitted word matches5. Find the best permitted word matchesStep 6: Combine the matches into sentence similarity6. Combine the matches into sentence similarity

The combined word score

In the combined method, each proposed correspondence receives a score that uses both string and vector evidence, with two multipliers. The relationship can be written as follows.

SIM(i, j) = (wₛₜᵣ × STR(i, j) + wₛₑₘ × SEM(i, j)) × TF(i, j) × POS(i, j)

Here i is a word from one sentence and j is a candidate word from the other sentence. SIM is their combined similarity. STR is the mixture of string similarity measures for that pair, and SEM is the corpus-based similarity, computed as the cosine between the two word vectors. The symbols wₛₜᵣ and wₛₑₘ are the weights on the string and semantic components. TF is the frequency-based weighting function inherited from LInSTSS, using estimates from srWaC. POS is the part-of-speech weighting function. In these experiments its value is the arithmetic mean of the learned weights for the categories of i and j. The parentheses group the two similarity signals before the multiplications by TF and POS. Addition combines the string and semantic contributions, and each multiplication applies the indicated weight.

wₛₜᵣ + wₛₑₘ = 1

The symbols wₛₜᵣ and wₛₑₘ again denote the string and semantic weights. Their sum is fixed at 1, so choosing the string weight fixes the remainder available for the semantic weight. The paper gives this constraint and the combined word-pair equation explicitly. It refers to the earlier work for the internal definition of STR and the frequency weighting function instead of restating their formulas.

The placement of the multipliers is consequential. Spelling and vector proximity are combined first, and both kinds of evidence are then subject to the same frequency and category adjustments for that proposed correspondence. When the method looks for a strongest match, the weighted similarities are what matter. A candidate that would be attractive on spelling alone can receive a different relative score once the two adjustments are applied. Conversely, a candidate can gain influence through grammatical weighting even when the string component is unchanged.

Fitting the supervised settings

POST STSS and POS-TF STSS share an optimization procedure. The initial search works with broad categories. Nouns have descriptors starting with N, verbs with V, adverbs with R, and adjectives with A. Pronouns start with P, numerals with M, and the remaining descriptors go in an Other group. This coarse representation gives the initial search a manageable set of word weights and possible interactions.

The next stage expands the weighting scheme to 29 classes and uses steepest ascent hill climbing. The classes use category and type distinctions where the MULTEXT-East inventory and the tagger supply them. Nouns, for example, separate into common nouns, Nc, and proper nouns, Np. Numerals distinguish types including cardinal, ordinal, multiple, and special numerals. Adpositions use a weight for the whole category. The finer distinctions give the search the ability to find a useful separation inside a broad group that shared a weight in the initial stage.

The tag inventory bounds the distinctions that can be used. The specification makes room for a copular verb type, Vc, but the tagger supplies no annotations under it, so there is no separate weight to fit for that type. The residual category receives a single weight because foreign words are the only residual type encountered in STS.news.sr. Punctuation has already been filtered during tokenization and is left out of the category weighting. In each case the configuration follows the categories that actually contribute evidence.

The first phase is a pseudo-exhaustive search. Some choices about its starting point are selected using nested three-fold cross-validation, which takes place within the training portion of the outer evaluation. The authors tune the initial POS weights and the initial settings of the interaction matrix this way, using the options considered in the earlier POST STSS work. The inner selection gives them a way to decide on a starting configuration before testing the resulting procedure on an outer held-out portion of the corpus.

For efficiency, the authors carry over the other starting choices from earlier POST STSS experiments. The string weight starts at 0.5, the part-of-speech weights for a candidate pair are combined by arithmetic mean, and the optional weight-minimization step at the end of the first search phase is left out. The frequency values in POS-TF STSS already come from srWaC through an unsupervised procedure. Adding the frequency function therefore leaves the supervised search procedure the same as in POST STSS.

Across the supervised methods, the authors optimize weights in steps of 0.1. They search [0.3, 0.7] for the string similarity weight and [0.7, 1.3] for the part-of-speech weights. Hill climbing proceeds through moves that improve the training objective. To restrain the search, they stop when the best remaining move would reduce training error by less than 5% of the reduction achieved by the first move. The rule ties the stopping point to the improvement the search achieved at the start, giving the authors a practical way to limit pursuit of smaller training gains.

Experiments and results

A shared human reference

The evaluation uses the averaged human scores as the gold standard. Pearson correlation, written as r, measures the linear association between a set of predicted similarities and those reference values. A high value means that higher reference scores tend to be accompanied by higher predictions in a approximately linear pattern. It leaves room for differences in absolute score levels and spread. The paper uses the same correlation coefficient to describe agreement among annotators and to evaluate sentence scoring procedures against the benchmark.

Self-agreement was assessed on the preliminary 60-pair sample. The correlations shown for the annotators are 0.95, 0.97, 0.97, 0.85, and 0.92, with a reported average of 0.93. This captures how similarly a reader evaluated the same news pairs across the preliminary and full passes. The variation shows that some readers changed their assessments more than others, while their judgments still displayed substantial consistency by the paper’s measure.

The pairwise inter-annotator correlations include 0.84 at the lower end and 0.90 at the upper end. The correlations of individual annotators with the average of their colleagues’ scores range from 0.90 to 0.94, with a reported average of 0.92. Comparing an individual with a pooled judgment asks a different question from comparing two individuals. The pooled reference brings together several readers’ decisions and can smooth out differences specific to one of them.

The authors report that the agreement levels were broadly similar across the annotators’ different backgrounds. They also say the average agreement is around 0.05 – 0.1 higher than the values reported for news datasets in the earlier SemEval work they compare against. They credit the quantity and quality of the revised examples as a likely explanation. This is a comparison between resources. The study’s design leaves the separate effect of the examples open. SemEval-2014 multilingual semantic textual similarity

The average reference score of STS.news.sr is 2.51 on its 0 – 5 scale. The authors describe a moderately balanced distribution with a pronounced peak at 3.0. The corpus overview also reports grouped percentages for scores rounded to scale levels. In that view 39.43% of the Serbian pairs fall into the level 3 group. The average and the distribution answer different questions. The mean gives the center of the ratings, while the concentration around the middle shows which distinctions receive much of the evaluation’s weight.

How the corpus compares with other news resources

The authors compare STS.news.sr with several public news collections. Among the English resources are MSRPar, Deft-news, and the combined HDL headline collections. The multilingual comparison also includes Spanish SemEval News, the European and Brazilian Portuguese parts of ASSIN, and an Arabic translation of part of MSRPar. This is a comparison of corpus properties such as sentence length, size, and the distribution of similarity judgments. Its organizing feature is the common news domain. SemEval-2015 semantic textual similarity SemEval-2017 semantic textual similarity

STS.news.sr has 64 K alphanumerical tokens and an average sentence length of ~27 tokens. The English MSRPar collection, which the authors regard as the closest comparison in source material, type, and size, has 54 K alphanumerical tokens and an average sentence length of ~18 tokens. The mean similarity for English MSRPar is 3.30 on its 0 – 5 scale. The Serbian mean of 2.51 lies nearer the middle of the same scale, and the authors describe the Serbian collection as more balanced.

HDL is a different point of comparison because its items are news headlines, with an average length of ~7 tokens. Its mean score is 2.62 on a 0 – 5 scale, and the authors describe its score distribution as more uniform. They suggest that length may contribute to that pattern. A longer pair gives each text more opportunity to supply a detail that the other lacks. It also gives the two texts more opportunities to share some information, even when they diverge overall. Both possibilities can pull judgments away from the extreme endpoints.

The Spanish and Portuguese comparisons also illustrate the importance of knowing what a number measures. The Spanish news collection uses a 0 – 4 scale. The two Portuguese portions of ASSIN use a 1 – 5 scale. The frequency of ratings at a given number is meaningful within its own scale and corpus design. The authors emphasize recurring concentrations around intermediate values, leaving open how strongly such concentrations influence training and evaluation.

Full-corpus baselines

The authors first evaluate the unsupervised baselines on all of STS.news.sr. These procedures use token overlap or word-vector evidence to produce scores without fitting to the sentence pairs’ similarity labels. They can therefore be compared against the complete set of reference judgments directly. The distinction between evaluation on the complete corpus and evaluation in folds matters when reading the later supervised comparison.

The whitespace overlap baseline yields Pearson r of 0.6461 on the full corpus. With Serbian tokenization, lowercasing, and punctuation removal, overlap reaches 0.6869. The result establishes that the preprocessing package makes the exact-matching baseline substantially more effective on these data. The word-vector average with the same Serbian preprocessing records 0.6211. This gives exact overlap the stronger result of the two individual baselines in this setup.

Concatenating the two representations yields 0.6949 on the full corpus with the Serbian tokenizer and without negation marking. Even though the averaged embeddings are weaker on their own, they contribute to the best result of the initial unsupervised comparison. The combination preserves explicit token identity and adds information from the sentence mean vectors. It does so without learning any weights from the benchmark judgments.

Unsupervised baselines on all of STS.news.sr by Pearson correlation

The joint representation leads the initial baseline comparison, and Serbian preprocessing improves word overlap.

Unsupervised baselines on all of STS.news.sr by Pearson correlationWord overlap with whitespace tokenization: 0.6461Word overlap with whitespacetokenization0.6461Word overlap with Serbian preprocessing: 0.6869Word overlap with Serbian preprocessing0.6869Mean word2vec vectors with Serbian preprocessing: 0.6211Mean word2vec vectors with Serbianpreprocessing0.6211Joint overlap and mean vectors with Serbian preprocessing (this paper): 0.6949Joint overlap and mean vectors withSerbian preprocessing (this paper)0.6949
The numbers
System or settingPearson r
Word overlap with whitespace tokenization0.6461
Word overlap with Serbian preprocessing0.6869
Mean word2vec vectors with Serbian preprocessing0.6211
Joint overlap and mean vectors with Serbian preprocessing (this paper)0.6949

The authors relate the strength of overlap to the collection procedure inherited from paraphrase.sr. The set contains pairs with enough surface resemblance for repeated words to carry useful evidence about shared meaning. A sentence mean can respond when different words have related usage, but averaging also combines the clues from individual words into a single vector. The comparison establishes the relative strengths of those representations on this corpus as assembled.

Held-out evaluation in folds

For supervised fitting, the authors use 10-fold cross-validation with sorted stratification. The similarity scores guide how the pairs are distributed among folds so that the subsets cover the score range. Each outer fold provides held-out pairs for evaluation, while the remaining pairs are available for fitting. The selected settings must therefore transfer to pairs outside the portion used to choose them. For comparison under the same protocol, the authors also rerun the unsupervised baselines in folds.

The cross-validation experiment compares text without morphological normalization with text processed by the Croatian stemmer of Ljubešić and Pandžić or the Serbian lemmatizer of Ljubešić and colleagues. The authors choose these two tools following the wider unsupervised experiment, in which each was strongest overall in its category. The reduced set of normalizers keeps the supervised comparison focused on the effects of the most promising representative of each approach.

With no morphological normalization, Islam and Inkpen’s alignment procedure reaches Pearson r of 0.7387 on STS.news.sr under cross-validation. LInSTSS reaches 0.7534 and POST STSS reaches 0.7538 under the same conditions. POS-TF STSS reaches 0.7599. The two individual weighting approaches give similar results, and the strongest score comes from using both frequency and part-of-speech information within the same alignment procedure.

With the Ljubešić and Pandžić stemmer, the underlying alignment procedure reaches 0.7444, LInSTSS reaches 0.7573, and POST STSS reaches 0.7593. POS-TF STSS reaches 0.7665, the highest cross-validation result. Under this preprocessing condition the authors can compare the systems while holding the stemmer fixed. The resulting order shows what each approach achieves from the same normalized inputs.

Supervised word matching with stemming on STS.news.sr under 10-fold cross-validation

The method that combines frequency and part-of-speech weights has the highest correlation with human judgments.

Supervised word matching with stemming on STS.news.sr under 10-fold cross-validationIslam and Inkpen: 0.7444Islam and Inkpen0.7444LInSTSS: 0.7573LInSTSS0.7573POST STSS: 0.7593POST STSS0.7593POS-TF STSS (this paper): 0.7665POS-TF STSS (this paper)0.7665
The numbers
System or settingPearson r
Islam and Inkpen0.7444
LInSTSS0.7573
POST STSS0.7593
POS-TF STSS (this paper)0.7665

With the selected lemmatizer, the corresponding cross-validation correlations are 0.7350 for Islam and Inkpen, 0.7494 for LInSTSS, 0.7491 for POST STSS, and 0.7606 for POS-TF STSS. The joint weighting procedure leads this condition too. It improves slightly on its own performance without normalization, while the other supervised procedures score lower with this lemmatizer than without normalization. All four supervised procedures have their strongest result with stemming.

The fold-based results also show how competitive word overlap becomes after normalization. With the selected stemmer, it reaches 0.7417, while the joint unsupervised baseline reaches 0.7367. Without morphological normalization, the corresponding scores are 0.7050 and 0.6970. Both configurations can be compared with the supervised procedures in the same cross-validation setting. The best stemmed overlap result approaches that of the stemmed Islam and Inkpen procedure, while the weighted alignments maintain their lead.

The paper makes these comparison procedures available in STSFineGrain, a Java framework that brings the supervised and unsupervised implementations into one evaluation setup. The separate corpus and annotation resources document how the target judgments were obtained. These releases allow the scoring setup and the benchmark to be understood together: a prediction is evaluated against a mean human judgment on pairs that have a specific origin, preprocessing history, and score distribution.

What the ablations show

What the simplest representation gains from preprocessing

The baseline experiments deliberately change individual settings or packages of settings and measure the resulting correlations. The whitespace comparison tests tokenization together with lowercasing and punctuation removal. Its improvement makes the package a sound basis for the rest of the study. Since those elements are changed together, the comparison establishes the value of their combination. The separate contribution of Serbian segmentation, case handling, and punctuation filtering remains open.

The negation comparison makes a narrower change. With the Serbian tokenizer, prefixing the token immediately after a negation word moves averaged word2vec from 0.6211 to 0.6257 on the full corpus. The corresponding word-overlap correlations are 0.6869 without marking and 0.6862 with marking. For the joint representation they are 0.6949 without and 0.6943 with it. The modest gain is specific to the averaged embeddings in this experiment. The authors leave the heuristic out of subsequent work because it slightly reduces the results for the stronger representations.

The comparison concerns one fixed rule for which word falls within the scope of the marker. Its effect can therefore depend on whether the next token provides the evidence the scorer needs. It can also alter an otherwise useful exact match. A treatment of negation based on a wider linguistic analysis could behave differently. The experiment establishes how this particular local marking convention interacts with the three baseline representations.

Normalization changes what the representation can recover

On the full corpus, every tested morphological normalizer improves word overlap and the joint representation over the same baseline without normalization. Every normalizer reduces the performance of pure word2vec averaging. This repeated pattern matters because the experiment changes the input representation in the same general way for different scoring procedures. Grouping inflectional variants helps a system that needs common tokens to see a correspondence. The same intervention changes the inputs to vector averaging, where the evidence is already a learned representation associated with a word.

With the optimal Serbian stemmer of Kešelj and Šipka, full-corpus word overlap reaches 0.7291, and the joint representation reaches 0.7338. With the Croatian stemmer of Ljubešić and Pandžić, overlap is 0.7287 and the joint result is 0.7339. These are close results, with the better choice depending on which of the two representations is being scored. The authors favor the Croatian stemmer overall and carry it forward to the fold-based comparison.

The selected lemmatizer of Ljubešić and colleagues gives full-corpus correlations of 0.7225 for word overlap and 0.7283 for the joint representation. These improve on the unnormalized results for the same procedures. They sit below the corresponding scores of the two strongest stemmers. For mean word vectors alone, the same lemmatizer gives 0.5937, the Croatian stemmer gives 0.6077, and the original unnormalized condition gives 0.6211. The intervention’s usefulness depends on the representation even when the tool is one of the most effective for a neighboring method.

Full-corpus Pearson correlation for word overlap with representative normalizers on STS.news.sr

Both leading stemmers improve word overlap and give similar results, with the optimal Serbian stemmer narrowly ahead.

Full-corpus Pearson correlation for word overlap with representative normalizers on STS.news.srNo morphological normalization: 0.6869No morphological normalization0.6869Ljubešić and colleagues lemmatizer: 0.7225Ljubešić and colleagues lemmatizer0.7225Ljubešić and Pandžić stemmer: 0.7287Ljubešić and Pandžić stemmer0.7287Kešelj and Šipka optimal stemmer (this paper): 0.7291Kešelj and Šipka optimal stemmer (thispaper)0.7291
The numbers
System or settingPearson r
No morphological normalization0.6869
Ljubešić and colleagues lemmatizer0.7225
Ljubešić and Pandžić stemmer0.7287
Kešelj and Šipka optimal stemmer (this paper)0.7291

This pattern gives some perspective on the objective of a normalizer. Its value here is measured by agreement with sentence similarity ratings. A stem can be effective in that setting if it lets a matcher recover a correspondence across inflected forms. The comparison evaluates this downstream benefit. It supplies no separate accuracy measurement of how well the resulting forms represent dictionary entries or how many intended conflations each tool gets right.

Frequency and grammatical weighting make complementary contributions

The four supervised procedures form a comparison within a common alignment family. Islam and Inkpen’s procedure uses the surface and embedding components. LInSTSS adds term-frequency weights, and POST STSS uses category weights and restrictions on which categories can pair. POS-TF STSS brings the frequency function into the POST STSS setup. Each of the three extensions improves on the original alignment procedure under all of the reported normalization conditions.

The combined procedure also beats both of its individual weighting relatives in each condition. This supports a practical reading of complementarity. Corpus frequency and grammatical category give the scorer different information about a candidate correspondence. The first comes from how words occur in a much larger collection, and the second comes from the role indicated by the tagger. Their joint use is associated with better held-out correlation even though either source already improves the basic comparison.

The fitted settings provide context for this outcome. For the original Islam and Inkpen procedure, the string weight frequently reaches 0.7, leaving 0.3 for the word-vector component. In LInSTSS the preferred string weight is often 0.6. The authors interpret the lower string weight as evidence that the frequency adjustment gives the scorer room to rely more heavily on similarity beyond surface form. With both POS-aware procedures, the string weight typically stays at its initial 0.5, resulting in a semantic weight of 0.5 as well. These values describe the fitted mixture inside each procedure, alongside differences in the weights applied to that mixture.

Which categories receive weight

The final part-of-speech weights show how the supervised search treats grammatical distinctions within this dataset. Common nouns tend to keep a neutral weight of 1.0, while proper nouns commonly receive a weight around 0.8 – 0.9. Main verbs are typically given 1.3, the highest permitted value. Auxiliary verbs usually fall in the 0.7 – 0.9 range. The contrast inside the verb category illustrates why the optimization moves from broad categories to finer types once it has a starting configuration.

Participial adjectives consistently receive the maximum weight. Possessive adjectives tend to be upweighted less, and other adjectives commonly receive 0.9. Adverbial participles are often near 1.2, while ordinary adverbs typically receive 1.0 or 1.1. Numerals, particularly ordinals, tend to be near the upper weighting bound. The authors relate these patterns to the need to distinguish sentences that share a main action but differ in details. Such details can determine whether two news sentences convey essentially the same information.

Pronouns generally fall in the 0.7 – 1.0 range and abbreviations in the 0.8 – 1.0 range. Function words such as conjunctions, adpositions, and interjections typically receive weights in the 0.7 – 0.8 range. These are values attained within a search for sentence-level predictive performance. They describe how the matching procedure distributes influence on the benchmark, and the estimates reflect both the word categories and the rest of the scoring setup.

The initial POS weights selected by the nested search are usually neutral at 1.0, and the initial interaction settings typically allow all part-of-speech pairings. Many cross-category combinations remain available after the optimization. Some implausible pairings, such as a pronoun with a conjunction, are generally excluded. The authors take the comparatively permissive matrix, along with the changes in individual weights, as evidence that adjusting the contribution of matches does more of the work than establishing strict category barriers.

The parameter comparison also finds no systematic difference between the optimized POS settings selected for POST STSS and POS-TF STSS. The addition of term frequency improves the resulting correlation without producing an obvious change in the grammatical preferences the authors report. The analysis is descriptive. It shows recurring settings from the optimization and supports the interpretation that POS weighting is important, while a run holding the interaction matrix fixed throughout would be needed to assign it a separate performance effect.

Limitations

What the authors leave open

The authors give domain coverage as a direction for future work. STS.news.sr uses news pairs, and the paper proposes building Serbian collections with distinct subject matter to support a more extensive evaluation. The reported scores therefore describe performance on the types of news pairs inherited from paraphrase.sr. The paper also leaves open how irregularities in the distribution of gold scores influence training and evaluation. It documents the Serbian peak around 3.0 and notices concentrations in other resources, while the effects of those concentrations remain a research question.

The supervised experiment has a deliberate technical scope. It considers systems that can work without advanced syntactic analysis, given the state of Serbian resources described in the paper. The comparison consequently addresses what word alignment, surface resemblance, corpus vectors, and part-of-speech weights can achieve. A method using grammatical relations between words falls outside that experimental scope. The result of 0.7665 identifies the strongest evaluated configuration on STS.news.sr under cross-validation.

The authors interpret 0.92, the average individual annotator correlation with the other annotators’ mean, as an upper reference point for performance. It is a useful comparison with how humans agreed under the protocol. The individual scores and the gold reference are formed differently, however. A system is evaluated against the mean of all raters, while the human comparison holds out the rater whose judgments are being evaluated. A mean can be easier to reproduce than any individual’s decisions. The reported human agreement establishes an empirical reference under a particular calculation, with no mathematical ceiling following from that calculation.

What follows from the design

The starting corpus has consequences for the kind of evidence rewarded. The study specifically connects the strength of overlap to how the original collection obtained its pairs. Cross-validation tests how a fitted scorer handles held-out examples from that collection. Transfer to pairs drawn under a different sampling procedure, including collections with more dissimilar wording at the same degree of meaning equivalence, would require further evaluation. The score distribution and the lexical overlap of examples are part of the conditions under which the results were obtained.

The cross-language corpus overview has a related constraint. The collections differ in their typical sentence lengths and annotation scales. The relatively even distribution of headline scores and the more pronounced intermediate concentrations elsewhere are compatible with the authors’ explanation about length. They are also comparisons across datasets with several design differences. An experiment drawing comparable pairs under different length conditions would be needed to isolate that particular explanation.

The stronger agreement reported for Serbian is consistent with the authors’ view that clearer and more numerous examples helped. The study uses the revised instructions for its final annotation, so it supplies no parallel ratings of the same data by another group using the earlier examples. The effect of revising the examples is therefore difficult to separate from the mix of raters, the sentence pairs, and other details of the procedure. Likewise, strong scores from the annotators outside linguistics show what those participants achieved with the chosen instructions. The group is too limited to quantify the effect of annotator background more generally.

A mean reference score makes every pair usable in the same evaluation, while it collapses the spread of judgments into a single target. Two pairs with the same reference value can have different patterns of agreement. One may elicit closely clustered scores and another may divide readers about which information is essential. Pearson correlation against the average captures how predictions track that pooled target across pairs. It leaves the distribution of human disagreement and errors at particular levels of the scale to other analyses.

The normalized supervised comparisons use tools screened on the same corpus in the earlier unsupervised experiments. The outer cross-validation holds out pairs during supervised fitting, while the broader choice of which stemmer and lemmatizer to carry forward came from the full-corpus baseline results. That distinction matters when interpreting the score as an estimate of a procedure that includes normalizer selection. A separate corpus evaluation could test whether the same tools and scoring choices retain their advantage after this screening step.

The paper reports correlations as point estimates. The highest score gives the observed ordering of configurations, while the evidence for small differences depends on how variable those correlations would be across samples. The close scores of the leading stemmers illustrate this. The strongest conclusion about morphology comes from the consistent directions across the wider normalizer comparison. Choosing between nearby configurations on the basis of the reported ordering is a more specific conclusion.

Finally, learned category weights belong to a particular search and scoring rule. The maximum weight assigned to main verbs indicates where this search typically puts them, within its tested range and alongside all the other sources of evidence. A maximum can show that the procedure would prefer more weight within the choices it was given, while leaving the behavior beyond that boundary unresolved. The weights summarize regularities in the fitted scorer. Their wider linguistic interpretation would need evidence from other data or a direct comparison of differently constrained scorers.

What came after

The paper sets out a follow-up program centered on new Serbian collections from different domains. Such data would let the authors evaluate how well the same word-matching procedures carry across topics and pairing conventions. They also propose studying how concentrations in the reference scores affect prediction and evaluation. Those questions follow from two observations in the study itself: the Serbian benchmark has a prominent middle peak, and the overlap baseline benefits from the kinds of pairs the source collection supplies.

There are no later studies to discuss here. The paper’s documented contribution to subsequent investigation is the public release of STS.news.sr, the annotation guidance and STSAnno, and the STSFineGrain comparison framework. The corpus provides a fixed set of human judgments for comparing methods. The annotation materials also make it possible to build a distinct collection using the same scale, which is the follow-up needed to test how far the reported patterns extend beyond Serbian news.

Cite

Cite as Vuk Batanović, Miloš Cvetanović and Boško Nikolić. 2018. Fine-grained Semantic Textual Similarity for Serbian. Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{batanovic2018fine,
  title = {{Fine-grained Semantic Textual Similarity for Serbian}},
  author = {Vuk Batanović, Miloš Cvetanović and Boško Nikolić},
  booktitle = {Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018)},
  year = {2018},
  url = {https://aclanthology.org/L18-1219/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/batanovic-2018-fine-grained-semantic-textual-similarity/