Evaluation Benchmarks for Spanish Sentence Representations
Paper · 2022 · Vladimir Araujo, Andrés Carvallo, Souvik Kundu et al.
Summary
A system can recognize the opinion in a Spanish movie review and still struggle to tell where a sentence belongs in a paragraph. These abilities call for different tests. The authors introduce Spanish SentEval and Spanish DiscoEval to compare them under a common evaluation procedure. The benchmarks examine sentence embeddings, lists of numbers that represent sentences. By holding the encoder fixed and testing what a small predictor can recover from those numbers, the authors ask how useful the representations are for different tasks. Some tests work directly with the vectors, without fitting a predictor. The study gives Spanish sentence representations a common set of evaluation benchmarks.
Spanish SentEval covers classification of individual sentences, judgments about pairs, semantic similarity, and probes for specific linguistic properties. Its examples include movie reviews, questions, sentences with human similarity ratings, and items designed to test properties such as tense. Spanish DiscoEval asks how a sentence fits into a larger text. Its tasks include restoring a displaced sentence to its original position, spotting a sentence taken from another passage, identifying whether a sentence comes from a news subhead or body, and labeling rhetorical relations. Its data come from sources that include Wikipedia articles, Chilean thesis abstracts, news, and dialogue. The two suites combine existing datasets with tests the authors construct for Spanish discourse analysis.
Different encoders lead on different tests. BETO has the highest group accuracy for single-sentence classification, at 76.34, while ELMo leads sentence-pair classification at 61.62. Sent2Vec has the strongest reported semantic-similarity group score, with a Pearson correlation figure of 76.05 on the paper’s reporting scale. Multilingual BERT leads the linguistic probing group and most discourse groups. Even for this encoder, sentence position reaches only 43.21% group accuracy. Its strongest discourse result relative to the other encoders is one part of the picture: BERTIN leads news section prediction, and the relative strengths of the encoders can change from one text source to another.
The authors also change which layer supplies the sentence representation. Strong results frequently come from layers 10 through 12, but news section prediction already works comparatively well with early layers. Sentence position stays difficult across layers. Together, the results show that the choice of evaluation task, text source, and representation matters to what a score can establish. The authors make the benchmark code and datasets available so that future Spanish encoders can be tested under comparable conditions.
Deep dive: Evaluation Benchmarks for Spanish Sentence Representations
Spanish SentEval and DiscoEval test what sentence embeddings capture about meaning, grammar, and how sentences fit together in Spanish texts. · about 34 minutes to read
The problem and its context
What can a sentence vector tell us?
A sentence encoder turns a stretch of text into a vector. The same vector might then be used by an application that identifies an opinion, matches questions with similar meanings, or decides how to arrange sentences. Each application needs a different kind of information. A positive review and a negative review can share most of their vocabulary, so classification needs a way to recover the writer’s attitude. Two sentences can use different vocabulary and still describe much the same event. A sentence can also be perfectly clear by itself while fitting poorly between its neighbors. An evaluation that combines several types of tasks can expose differences that an isolated success would leave hidden.
The paper addresses a gap between the availability of Spanish encoders and the means of comparing them. As the authors describe the field, self-supervised pretraining had already led to several resources for Spanish. Researchers had also produced datasets for individual tasks. The practical difficulty was that independent datasets can come with different conventions for training and assessment. If two studies use different downstream predictors or process similar tasks in different ways, their results can be hard to compare. A common protocol lets researchers look at the behavior of different representations under shared conditions. That concern applies even when the underlying datasets and encoders are all publicly available.
There is a second distinction between having a collection of tasks for Spanish and having one designed specifically for sentence representations. The authors describe prior cross-lingual work that examined words, sentences, and discourse. They point out that the available probing resources for Spanish frequently concentrated on word representations or basic linguistic properties. Those properties matter, but they leave open questions about broader sentence meaning and about relations between neighboring sentences. The paper sets out to cover both the information recoverable from an individual sentence and the information useful when a sentence appears in a larger context.
Adapting an encoder and reading a fixed representation
The authors situate their work alongside benchmarks that assess adaptation. In the approach associated with GLUE and SuperGLUE, a pretrained system can be adjusted to perform a downstream task. The authors identify GLUES as a Spanish benchmark in this tradition. An evaluation of that kind asks how successfully an existing system can learn a new task after seeing its training examples. The resulting performance includes the effect of fine-tuning.
The authors instead start with a sentence vector produced by a fixed encoder. A separate predictor learns to associate those vectors with labels, or the experiment uses a direct comparison between vectors. A strong result then says that the tested property is accessible from the representation through the selected procedure. A weak result leaves several possibilities. The relevant information may be hard to recover from the vector, the chosen readout may be too simple, or the dataset may pose difficulties that are specific to its genre or labels. Keeping the encoder fixed gives the result a more specific interpretation than an adaptation score, while still leaving the quality of the measurement dependent on the task.
The closest precedents are SentEval and DiscoEval. SentEval organizes a set of evaluations around sentence embeddings. Some involve a single sentence and some use a pair. A predictor can assign a category, as it would for sentiment, or estimate a graded value, as it would for relatedness. Pre-defined, relatively simple predictors reduce the scope for one representation to benefit from a more extensively optimized head. DiscoEval extends that style of evaluation to how sentences relate to surrounding text. The Spanish benchmarks inherit both the general pipeline and many of the questions those evaluations ask.
A linguistic probe is a test with a narrower target. Rather than asking whether a representation supports an end task such as review classification, a probe might ask whether a classifier can recover the tense of a sentence or recognize a disturbance in word order. The authors adopt the Spanish portion of X-Probe and place it beside tasks drawn from ordinary applications. The pairing is useful because a review label and a grammatical label support different conclusions. A review test shows that useful signals for the judgment survived encoding. A tense probe gives a more specific account of which signal the predictor can recover. The paper places this approach in the tradition of probing sentence embeddings for linguistic properties.
The paper also distinguishes probing from stress tests and other targeted linguistic diagnostics. In the authors’ account, stress tests use examples designed to confuse a system or expose a weakness. Linguistic diagnostics can put a particular construction or capacity under closer scrutiny. The examples in Spanish SentEval and Spanish DiscoEval sometimes make a narrow property central to a classification task, but the overall project is to make a range of reusable tests available under one procedure. The paper cites earlier work on stress tests for inference and psycholinguistic diagnostics for BERT as related approaches.
Why surrounding text changes the question
A discourse evaluation can ask about the same unit, a sentence, while changing the evidence needed to answer. A thesis abstract may first announce its objective, then explain the method or state a finding. A sentence reporting a finding may contain enough clues to suggest its role. Deciding its precise position among the other statements still requires some account of how the ideas develop. In news, a sentence that summarizes the story may sound different from a sentence reporting one detail in the body. Those distinctions concern the organization and function of sentences in a text.
The paper treats discourse as a family of problems. Order concerns whether sentences have been arranged plausibly. Coherence concerns whether they belong together at all. Section prediction concerns the role of a sentence in the document. Rhetorical classification concerns a named relationship between parts of a text. A benchmark can make one of those questions measurable by defining an answer key: preserve the original position, record where a sentence came from, or use a human-annotated relation. The choice of answer key determines what success means. For instance, recovering the recorded sequence tests a different kind of judgment from telling whether a paragraph includes an unrelated sentence.
Language and genre both matter to this design. The Spanish news section task draws on subheads and bodies, while the original English DiscoEval uses sections of scientific papers. The underlying question, whether a representation gives clues about a sentence’s function, survives the change. The linguistic signals available to solve it can differ with the source. The paper builds Spanish versions by taking advantage of available Spanish material, combining tasks comparable in purpose with datasets suited to local sources. Its comparison therefore concerns encoders on a defined set of Spanish tasks, rather than a translation of every decision made in the English benchmarks.
The method, step by step
From text to a prediction
An evaluation example starts with text and a target. The target can be a category, such as a question type, or a human judgment of how closely a pair of sentences matches in meaning. The authors use spaCy for tokenization and store the data in a shared file format using UTF-8. An encoder supplies a vector for each sentence. In a single-sentence task, that vector can go straight to the predictor. A pair or group task gives the predictor a feature vector built from several encodings and, where appropriate, mathematical comparisons between them.
For the supervised tasks, training adjusts the predictor above the representations. In the experiments, the PyTorch predictors from the adapted evaluation setup are trained for four epochs using Adam and batches of 64. A batch is the set of training items used for an update, and an epoch is a pass through the training data. The authors keep those settings consistent. The unsupervised similarity tests follow a separate route. Once both vectors are available, the procedure scores how closely they point in the same direction and compares those scores with human ratings.
How Spanish sentences become benchmark scores
The steps in order.
The handling of vectors follows a shared notation. Square brackets around several vectors indicate concatenation, which means placing their coordinates end to end in the stated order. Subtraction acts coordinate by coordinate. The symbol ⊙ multiplies matching coordinates, and vertical bars around a vector take the absolute value of each coordinate. These operations let a small predictor see particular relationships between vectors without having to discover every possible combination from scratch. The benchmark uses different combinations when it needs to preserve sentence order and when it needs a symmetric description of a pair.
Choosing the sentence representation
The authors compare encoders with several designs. Sent2Vec is described as bilinear, and the Spanish ELMo encoder uses recurrent processing in both directions. The paper’s background describes ELMo sentence representations in terms of pooling contextual word vectors. An individual word’s vector can depend on the surrounding words, and pooling combines those word vectors into one sentence representation. For Sent2Vec and ELMo, the experiments take the encoders’ final representations.
The other encoders use the Transformer. BETO is a Spanish version of BERT, and mBERT provides a multilingual comparison. BERTIN and RoBERTa-BNE are Spanish versions of RoBERTa. The authors also include a Spanish ELECTRA encoder trained as part of a tutorial using a small amount of data. They use the base version where applicable, with the small ELECTRA variant as the stated exception.
For a Transformer, the main comparison uses the average of the vectors at the special [CLS] token across layers. The token gives the authors a consistent location from which to read a sentence vector. Averaging means that the representation supplied to the downstream task can carry signals from several stages of processing. In the analysis that follows the main experiments, the authors use [CLS] from individual layers. The difference in extraction matters when interpreting the results. A score for a late layer describes performance under that extraction rule, while the group tables describe the shared across-layer representation.
Spanish SentEval and single-sentence judgments
The single-sentence classification group, abbreviated SC, brings together labels used for different purposes. MuchoChine supplies movie reviews for sentiment classification. The authors illustrate it with a review that praises how a director turns a crime story into a memorable example of its genre. The phraseology can be incidental to the label, while the favorable judgment is what the classifier needs to recover. In TASS 2020, the polarity and emotion tasks have separate sets of labels. A polarity category summarizes the direction of an attitude. An emotion category asks the predictor to choose among a more detailed set of affective judgments. These are both ways of evaluating sentiment and emotion.
FilmAffinity supplies the distinction between subjective and objective sentences. Subjectivity concerns whether the sentence conveys an opinion or viewpoint. That lends the evaluation a different target from sentiment polarity, since an opinion can be expressed in either a favorable or an unfavorable way. Spanish QC supplies question types. The input is a question, and the label describes its type. The benchmark uses the sentence vector directly across these tasks, even though the evidence useful for deciding the label varies. In review analysis it can be evaluative wording, while in question classification it can be the way the requested information is expressed. Each task is an instance of text classification.
The dataset appendix helps put these results in context. It lists 14.4k instances for TASS1 and 8.4k for TASS2. Their label sets contain 3 and 7 classes, respectively. MuchoChine has 2.6k instances and 2 classes, and FilmAffinity has 5k instances and 2 classes. Spanish QC has 6.7k instances and 6 classes. These are dataset totals. A result for the group summarizes performance over tasks with different label spaces and types of language. The detailed results allow the reader to see which of those tasks account for a particular encoder’s strength.
Classifying sentence pairs
Sentence pair classification, or SPC, looks at a relation that depends on both inputs. An entailment task asks about the connection between a premise and a hypothesis. The paper’s example puts a first-person account beside a sentence describing an event coming to an end and labels the pair as entailment. The target belongs to the pair. A paraphrase task asks whether both sentences express the same meaning. The Spanish portion of PAWS-X, called PAWS-es in the paper, is designed around pairs with high lexical overlap. Shared vocabulary alone therefore gives an incomplete basis for a paraphrase decision.
SICK-es-E supplies entailment examples from a Spanish adaptation of SICK that was translated and manually curated. The authors build NLI-es with particular split assignments because of the scarcity of Spanish inference data. They use the XNLI test set for training in their benchmark and keep the XNLI development set for development. They take the esXNLI set as the benchmark test set. The names of the original splits thus need to be read separately from the purpose they serve in NLI-es. The paper cites the esXNLI work in its discussion of translation artifacts in cross-lingual transfer.
The authors encode the two sentences independently and build the classifier’s input as follows.
[|x₁ − x₂|, x₁ ⊙ x₂]
Here x₁ is the first sentence vector and x₂ is the second. The minus sign subtracts corresponding coordinates. The vertical bars turn those differences into magnitudes, and ⊙ multiplies corresponding coordinates. The brackets and comma specify that the difference vector and the product vector are concatenated. The first part shows how far apart the coordinates are, and the second gives the classifier another way to inspect how they vary together. Exchanging the sentences leaves both parts unchanged. That symmetry fits an equivalence question such as paraphrase and is a constraint on the evidence made available for a directional premise–hypothesis judgment.
Measuring similarity with and without supervision
The semantic similarity group, abbreviated SS, assigns graded judgments to pairs. There is room for two sentences to describe related situations, share a topic, or express almost the same proposition. The benchmarks use human ratings between 0 and 5. The paper illustrates a near match with a pair rated 4.8 out of 5. The rating makes that pair useful as a measurement of degree. A class label such as paraphrase would answer a coarser question about the same kind of relationship.
SICK-es-R supplies the supervised relatedness test. The authors train a predictor above the sentence embeddings to estimate the target. The remaining tests use the Spanish tracks of the SemEval tasks from 2014, 2015, and 2017. They take the cosine similarity of each vector pair and compare the sequence of resulting scores with human judgments. Cosine similarity measures the agreement in direction between vectors by dividing their dot product by the product of their lengths. It gives a test of the geometry that the encoder produced before seeing the similarity labels.
The paper names Pearson and Spearman correlations for this comparison. Pearson measures linear agreement between the numerical scores. Spearman compares the ordering induced by the scores. An encoder might rank the strongest matches above the weakest ones while placing the scores at intervals that differ from the human ratings. Those two measures describe different aspects of that outcome. The main results table uses Pearson for the semantic similarity group. The dataset appendix gives 804 instances for STS14, 751 for STS15, and 250 for STS17. SICK-es is listed with 9.8k instances for the resource used for entailment and relatedness.
Probing individual linguistic properties
The linguistic probing group, abbreviated LPT, uses the Spanish tasks from X-Probe. Each predictor receives a single sentence vector and assigns a discrete label. The tasks are designed around a more specific target than sentiment or pairwise similarity. Their labels can ask about surface properties of the sentence, syntactic properties, or the phenomena the paper groups under semantic probing. The resulting collection gives the authors a way to examine a sentence representation at several degrees of linguistic specificity.
The surface tests are SentLen, for sentence length, and WC, for word content. Their targets can in principle be recovered by examining the original tokens. The experiment asks whether the relevant evidence survives in a sentence vector. The syntactic group includes TreeDepth and BiShift. These give the classifier targets involving structural depth and a disturbance in word order. Results on these tasks concern particular tests derived from sentence form. Other aspects of syntax and grammar remain separate questions.
The paper places Tense, SubjNum, and ObjNum in its semantic probing group alongside SOMO and CoordInv. The tense example is a sentence about someone participating in a failed defense, where the verb describes a past event. The number tasks target grammatical number of the subject or object. The benchmark uses the X-Probe tasks as defined in that resource, and the authors direct readers to the original work for their detailed construction. This group makes an overall probing score easier to interpret through the component tasks, since the representation might preserve tense particularly well while offering weaker evidence about another property.
Finding a displaced sentence or an incorrect order
Spanish DiscoEval’s sentence position task, SP, starts from five consecutive sentences. One is randomly selected and moved to the front, while the other sentences supply its context. The label records where the selected sentence originally appeared. An example labeled 1 starts with the original first sentence. The other labels identify another original location, up to position 5. The authors construct versions from Spanish Wikipedia, Chilean university thesis abstracts, and MLSUM news. For Wikipedia they specify the first five sentences of the articles. The thesis abstracts are collected from public repositories at the Pontificia Universidad Católica de Chile and the Universidad de Chile. The news comes from the Spanish portion of MLSUM.
The example drawn from a thesis abstract begins with a finding about silica nanoparticles increasing stiffness. The sentence introducing the study’s objective follows it in the altered sequence. The recorded answer puts the finding in the second position. To recover that label, a predictor can draw on signals that distinguish an objective from a result and on the relation of the candidate sentence to the other sentences in the abstract. The answer comes from the original sequence, which allows the authors to build a labeled item without asking someone to write a new paragraph for the experiment.
[x₁, x₁ − x₂, x₁ − x₃, x₁ − x₄, x₁ − x₅]
Here x₁ is the vector for the sentence presented first, and x₂ through x₅ are the vectors for the subsequent sentences in their displayed order. Each minus sign denotes coordinatewise subtraction. Each comma separates a vector in the concatenation enclosed by the brackets. The classifier receives the candidate itself followed by a comparison with each of the other sentences. Its output is the candidate’s original position. The ordering of the difference vectors gives a comparison with an earlier neighbor a distinct location in the input from a comparison with a later neighbor.
Binary sentence ordering, BSO, reduces this problem to a pair. The authors take the first two sentences from texts in the same three domains and ask whether the presented order is correct. The Wikipedia example describes the period of European art that a museum specializes in and then introduces the museum by name. Putting the introduction first restores the original order. As with position prediction, the sentences are encoded separately, and the classifier has to use their vectors to make a decision about the sequence.
[x₁, x₂, x₁ − x₂]
Here x₁ and x₂ stand for the first and second sentences as presented. The brackets concatenate the sentence vectors and the coordinatewise difference, with commas separating the components. Reversing the pair swaps the positions of the raw vectors and reverses the sign of their difference. That makes the feature construction sensitive to which sentence comes first. The classifier’s target is binary. It distinguishes a pair in the source order from a pair in the reversed order.
Detecting a sentence from another passage
The discourse coherence task, DC, uses six consecutive sentences as its positive example. To make a negative example, the authors replace a sentence at a position chosen uniformly from 2 to 5 with a sentence from another sequence. This keeps the boundaries of the passage intact. The source of the replacement stays within the same domain, so a predictor has to deal with alternatives drawn from the same broad kind of text. The resulting datasets are balanced between the original sequences and those containing a replacement.
The authors construct dialogue versions using OpenSubtitles and the Gutenberg Dialogue dataset. They sample dialogues from OpenSubtitles and create splits for the benchmark. For Gutenberg Dialogue, they keep the source dataset’s splits. For the Wikipedia version, they use one coherent passage from each selected article and make the splits randomly. Across the sources, paragraphs shorter than six sentences are discarded. Other dialogues or articles within the relevant domain provide the replacements.
The Gutenberg example shows why an intruder can be well formed yet interrupt the passage. Most of the exchange turns into a sequence about someone wanting to smoke a pipe and then finding it. The inserted sentence recalls an offer to use someone’s house. It reads as a line of dialogue, but its content does not follow the same conversational thread. The benchmark label belongs to the whole sequence. The classifier decides whether a replacement is present, without having to name its location.
[x₁, x₂, x₃, x₄, x₅, x₆]
Here x₁ through x₆ are the sentence vectors in passage order. The brackets and commas concatenate them in that same order. This input gives the classifier access to the representation at each position. It can use patterns across the positions to distinguish a source passage from a corrupted one. The construction leaves open which patterns it will learn. Topical continuity is one possible signal, and the relation between adjoining utterances is another.
Identifying a news section
Sentence section prediction, SSP, treats document function as a single-sentence label. English DiscoEval draws this distinction from scientific articles. The Spanish adaptation uses news because MLSUM has articles with headlines, subheads, and bodies. The comparison uses subheads and bodies. A subhead may give the reader a compact sense of the story, and a sentence from the body may develop an aspect of it. For the positive item, the authors pick a sentence at random from the subhead. For the negative item, they pick a sentence at random from the body.
The paper illustrates the categories with sentences from coverage of a military parade attended by the Spanish monarchs. In one, their role is the focus, while the other foregrounds the location and mentions who will preside. The example gives both sentences similar subject matter. It also shows why the way information is presented could help the predictor distinguish the two sections. In the actual evaluation the classifier sees the vector of one sentence, with no paired comparison or neighboring text supplied to it.
Classifying rhetorical relations
The discourse relations task, DR, uses the Spanish RST Treebank. Rhetorical Structure Theory represents a text as elementary discourse units, or EDUs, linked by relations. An EDU is a segment participating in that structure, so the benchmark encodes these units before building representations of larger spans. The paper distinguishes nucleus–satellite relations from multinuclear relations. In a nucleus–satellite relation, the satellite contributes something to the nucleus, such as background or a condition. A multinuclear relation links parts of comparable status, as in a list. The Spanish annotations apply this kind of analysis to individual documents, following a tradition represented by the RST Discourse Treebank.
Relations in the tree can involve multiple units. The authors convert branches with more than two children into right-branching binary structures. This makes a left side and a right side available at each classification point. The representation of a side is obtained by averaging the EDU vectors belonging to its subtree. An individual EDU can therefore occupy the left side while a span covering several EDUs occupies the right. The example in the paper combines a relation of elaboration with list structure in a passage about commentary on a work by Kant. The target in each classification case is the relation assigned at that node.
[xₗ, xᵣ, xₗ ⊙ xᵣ, |xₗ − xᵣ|]
Here xₗ is the average EDU vector for the left subtree and xᵣ is the corresponding vector for the right subtree. The symbol ⊙ takes their coordinatewise product. The minus sign takes their coordinatewise difference, and the vertical bars take its absolute value at every coordinate. The brackets and commas concatenate the left vector, right vector, product, and absolute difference in that order. Including the original vectors preserves the distinction between the sides, while the comparison features give the predictor evidence about how the two spans relate. The task uses the 29 coarse relations defined for the Spanish treebank and keeps its original training and test splits.
The authors release the code and datasets for Spanish SentEval and Spanish DiscoEval under the Spanish Sentence Evaluation project. That release brings together the input preparation, representation readouts, and downstream tests that define the experiment. Other comparisons can reuse the same task definitions, including the choices of source, labels, and split assignments that make each result interpretable.
Experiments and results
Reading a group score and a dataset score
The main table reports an average over the datasets in each task group. The metric is accuracy for the classification groups. It describes the frequency with which a predicted label agrees with the target, whether the target is an emotion class, a position, or a rhetorical relation. Semantic similarity uses Pearson correlation instead. The figures in that group follow the paper’s correlation reporting scale. Their values describe agreement with a graded judgment and should be read separately from the accuracy figures. The appendix then gives scores for individual datasets, which is important where a group combines very different sources.
The comparative baselines are the encoders evaluated under those common settings. The paper’s main contribution is the shared evaluation, with the existing encoders serving as alternatives for comparison. The data for the Spanish SentEval classifications span movie reviews, sentiment and emotion tasks, and questions. The pair and similarity groups bring in translated and manually curated material as well as Spanish tracks from multilingual resources. Discourse results reflect another set of domains. The dataset appendix lists 18k instances under the shared Wikipedia and MLSUM size entries for SP and BSO, and 14k for the thesis entry in each task. The results appendix presents scores for the sources separately.
The discourse coherence appendix lists 18k instances under the Wikipedia and OpenSubtitles grouping and 6.6k for Gutenberg Dialogue. The section prediction dataset is listed with 18k instances and the relations dataset with 3.3k. These are descriptions of dataset size. How informative a score is depends on what the item tests, as well as how many instances the dataset contains. For instance, the balanced coherence task and the 29-class relations task yield different interpretations of a similar-looking accuracy value.
Classification favors different encoders for different labels
In single-sentence classification, BETO leads at 76.34 group accuracy, followed by Sent2Vec at 75.11. BERTIN scores 73.54 and RoBERTa-BNE 72.51. BETO’s result is consistent with broadly useful features for these datasets, and the authors suggest that general-domain Spanish pretraining helps it transfer across classification tasks. The detailed scores locate that advantage more precisely. BETO has 77.01 accuracy on MuchoChine, 97.60 on FilmAffinity, and 79.70 on Spanish QC. These are the highest scores in the respective dataset columns.
The TASS scores show different leaders. RoBERTa-BNE scores 64.10 on TASS 1 polarity classification, ahead of BETO at 62.95. Sent2Vec scores 65.47 on TASS 2 emotion classification, while RoBERTa-BNE reaches 64.62 and BETO reaches 64.44. FilmAffinity has high figures for every encoder in the comparison. ELECTRA has 94.18 on that dataset despite its 41.33 on Spanish QC. Seen together, the scores suggest that the evidence for subjectivity in FilmAffinity is comparatively accessible to these readouts. Ease of classifying subjectivity in other genres would require a separate measurement.
ELMo has the strongest sentence-pair classification group score, at 61.62, and mBERT follows at 60.05 in the main table. ELMo also leads each of the three detailed columns. It has 58.8 accuracy on PAWS-es, 49.28 on NLI-es, and 76.78 on SICK-es-E. The two inference evaluations have especially different score ranges. For mBERT, the corresponding accuracies are 48.63 on NLI-es and 74.01 on SICK-es-E. The paired design depends on the split and source data as well as on whether the encoders preserve features useful for comparing sentences.
The classification results answer related but distinct questions. The review, question, and subjectivity tests show how well a predictor maps one vector to a label. The pair classifier sees only the difference magnitudes and products of coordinates after encoding both sentences. Its accuracy depends on that feature construction as well as on the underlying vectors. The paper observes that the pair group is generally harder for the evaluated encoders than the single-sentence group. The difference in test format, coupled with the different labels and datasets, limits any attempt to attribute that pattern to a single underlying capability.
Sentence similarity favors Sent2Vec
Sent2Vec has the highest semantic similarity group entry at 76.05 on the Pearson reporting scale. It also leads the detailed results across supervised SICK-es-R and the unsupervised similarity tracks. On SICK-es-R it has 78.98, with ELMo at 75.56. In STS14, where the scores come directly from cosine comparisons with human ratings, Sent2Vec has 83.12 and ELMo has 69.76. STS15 is lower for both encoders, at 60.02 and 45.88. The results show why the choice of test set matters even when the prediction procedure and metric are shared.
Encoder comparison on Spanish STS17 by Pearson correlation
Sent2Vec gives the closest agreement with the human similarity ratings on this track.
The numbers
| System or setting | Pearson correlation, paper scale |
|---|---|
| Sent2Vec (this paper) | 82.10 |
| ELMo | 57.02 |
| BETO | 45.01 |
| mBERT | 36.71 |
| BERTIN | 28.38 |
| ELECTRA | 26.74 |
| RoBERTa-BNE | 6.31 |
STS17 makes the differences under the selected cosine readout particularly visible. The dataset contains 250 rated pairs, and the chart describes performance on those examples. The ordering in STS17 also illustrates why success under an encoder’s ordinary extraction rule matters. A direct cosine test asks whether distances in the finished space align with human judgments. A learned similarity predictor can use the embeddings in other ways, so success under supervision cannot establish the same geometric property by itself.
The main table and the detailed appendix warrant some care here. The main similarity table prints 67.77 for mBERT, and the appendix also prints 67.77 for its SICK-es-R result. In the same appendix, mBERT’s entries for STS14, STS15, and STS17 are 62.14, 43.96, and 36.71. The reported group figure thus merits caution when used to rank the runners-up. The detailed scores and the group table agree on the leading encoder, Sent2Vec. The figures are best read at their stated level, without treating a group cell as a substitute for the results on individual tracks.
Linguistic probes reveal different strengths
The linguistic probing group puts mBERT first at 71.41. ELMo follows in the main table at 69.90, with BETO at 69.38. The detailed tests show what can lie behind a ranking of this kind. mBERT leads Tense at 95.30 and CoordInv at 86.02. It also has 54.10 on SOMO. Tense is one of the highest-scoring individual probes for several encoders. For example, ELMo has 94.65 and RoBERTa-BNE has 93.63 on that target. The SOMO results are much closer together at a lower level, including 53.80 for BERTIN and 53.76 for ELMo.
Other probes favor encoders that trail mBERT in the group average. ELMo has 66.43 on WC, while BETO has 41.60 and mBERT has 41.27. RoBERTa-BNE leads SentLen with 77.27, while BERTIN has the leading SubjNum result, 89.71. ELMo also has the highest ObjNum result at 80.21. The group result is evidence of strength across several tests. The detailed pattern shows why it is unsafe to read the group winner as the best source of every kind of linguistic information.
Order and coherence depend on the text source
For sentence position, the highest overall accuracy is mBERT’s 43.21%. RoBERTa-BNE has 41.82 and BERTIN 41.66. The task requires the readout to choose the original location in a sequence, and the group accuracy is low even for the leading encoder. Results on the individual sources show that the difficulty is uneven. On Wikipedia, mBERT reaches 51.95 and BETO 48.90. On the thesis abstracts, mBERT has 44.46 and BERTIN 43.71. On MLSUM news, RoBERTa-BNE leads at 35.10, with mBERT at 33.23. An encoder’s overall strength can therefore coexist with a weaker result on one of the domains.
Binary sentence ordering yields a higher group accuracy than sentence position for mBERT, at 57.97. BETO has 57.53 and RoBERTa-BNE 57.02. The decision is different because the classifier chooses between the original and reversed pair rather than identifying a location among five positions. In the detailed results, mBERT leads on Wikipedia at 53.79 and on theses at 68.36. On MLSUM news, ELECTRA has the best listed result at 52.83, while mBERT has 51.75. The comparatively stronger thesis results fit the paper’s motivation for using several sources. A local ordering decision can pose a different challenge in a thesis abstract from the same decision at the start of a news article.
For discourse coherence, the main table gives mBERT 63.45 and BETO 60.89. The Wikipedia results put mBERT at 80.00 and BETO at 75.62. In the subtitle data, the range at the top is much narrower, with BERTIN at 53.52 and mBERT at 53.33. In Gutenberg Dialogue, ELECTRA and mBERT both reach 57.03. Thus the Wikipedia test supplies the strongest reported domain performance for the group winner. The dialogue results also show that a randomly inserted sentence from the same domain can be difficult to identify using the selected representations.
Encoder comparison on Wikipedia discourse coherence by accuracy
The multilingual encoder leads on detecting a replacement sentence in Wikipedia passages.
The numbers
| System or setting | accuracy % |
|---|---|
| mBERT (this paper) | 80.00 |
| BETO | 75.62 |
| ELMo | 68.73 |
| RoBERTa-BNE | 68.12 |
| Sent2Vec | 66.67 |
| BERTIN | 60.75 |
| ELECTRA | 57.88 |
The ordering and coherence results show why the overall description of mBERT is best read as a tendency. In both ordering groups it leads the main table but loses the lead on the news version. Coherence also yields a different leader in subtitles and a tie in the Gutenberg set. Treating the detailed scores as domain-specific measurements preserves information that the group results are designed to compress.
News sections and rhetorical relations
BERTIN is the leading encoder for the MLSUM section task at 78.42 accuracy. mBERT reaches 77.80 and RoBERTa-BNE 76.83. BETO has 75.33 under the across-layer extraction used in the main results. Other discourse tasks give the classifier vectors from both sides of a relation or from several positions in a text. Here it receives just one vector. The results demonstrate that a single Spanish sentence can carry evidence about whether it came from a news subhead or a body. Any claim about identifying other document sections would depend on the form and source of those sections.
Discourse relations are harder for these readouts. mBERT leads at 51.08 on the RST Spanish Treebank classification task, and BETO is next at 47.84. ELMo and BERTIN are comparatively close to each other, at 45.14 and 45.86. The task involves classifying relations after representing the two subtrees through averaged EDU vectors and comparison features. That setup asks whether the vectors preserve useful information about a rhetorical relation when the relevant spans may cover several units.
Encoder comparison on Spanish RST Treebank relations by accuracy
mBERT gives the highest accuracy for the annotated rhetorical relations.
The numbers
| System or setting | accuracy % |
|---|---|
| mBERT (this paper) | 51.08 |
| BETO | 47.84 |
| BERTIN | 45.86 |
| ELMo | 45.14 |
| RoBERTa-BNE | 39.21 |
| ELECTRA | 37.59 |
| Sent2Vec | 36.69 |
The authors describe the broad pattern as similar to what had been observed with the English sentence and discourse evaluations. The Spanish results themselves identify where the available encoders differ under this benchmark. Sentence classification and semantic similarity have different leaders. The strongest multilingual scores are concentrated in linguistic probing and discourse, with section prediction the exception among the discourse groups. The high score on Wikipedia coherence and the lower scores on dialogue coherence sharpen that account. There is a difference between ranking well across related tests and solving the same problem consistently across domains.
What the ablations show
Reading one layer at a time
The paper contains no component-removal ablation. Its controlled analysis varies which layer supplies the [CLS] vector, and its comparisons across sources and encoders show how much the results depend on those choices. The layer experiment keeps the encoder in place and changes the representation passed to the downstream task. The paper plots performance using the [CLS] vectors from layers 1 through 12. Each layer is therefore an alternative location from which to read information already produced by the encoder.
Across several task groups, the strongest readouts appear late, mainly between layers 10 and 12. The best point fluctuates within that range. This supports the narrower conclusion that the final stages often expose features a simple predictor can use. It also motivates reading a result for a particular layer as a result for that extraction choice. The main experiments average across layers and can yield a different ordering. In the layer analysis, the authors report that BETO exceeds mBERT in the final layers for single-sentence classification, semantic similarity, and section prediction. In the main section result, BERTIN leads and BETO trails mBERT. Those observations come from different readouts.
Section prediction already reaches accuracy near 0.7 in early layers, in the units used in the layer discussion. The authors interpret this as evidence that the task is comparatively straightforward for the tested representations. The construction makes that plausible: summary-like language and report detail may be recognizable without first building a representation of the whole article. The layer analysis shows when evidence useful for the task is accessible. It does not identify the particular words, styles, or other properties that the predictor uses to separate the sections.
The sentence position analysis peaks at slightly higher than 0.4, with the paper describing the representations as ineffective at finding the sentence’s place in the discourse. Looking across layers helps put that result in context. The difficulty persists when the classifier can read a middle or late [CLS] vector. It cannot be attributed solely to averaging across layers in the main setup. The rhetorical relations task also stays difficult under the layer comparisons, with the paper describing late-layer results as close to 0.5. Late readouts may improve access to the relevant evidence while leaving many distinctions unresolved.
What the training comparisons can explain
The authors relate mBERT’s results to the fact that its pretraining includes multiple languages. They also point out that mBERT and BETO were trained with more data than some of the compared encoders, including ELECTRA and BERTIN. The results are consistent with language coverage and amount of training data each being relevant. The comparison changes both at once, along with aspects of the encoders and their training setups. It therefore provides an observation about these particular pretrained systems and a hypothesis about the source of the difference.
The paper also calls attention to the comparatively weak scores from RoBERTa-BNE at several early and late layers. The observations concern tasks that include coherence, rhetorical relations, and sentence-pair classification. The domain results add detail: RoBERTa-BNE leads sentence position on MLSUM and wins the TASS polarity dataset. A layer profile or a grouped average can obscure such particular strengths. Conversely, the domain comparisons change the source text and the examples themselves, so they capture the combined effects of genre and dataset construction. They do not isolate a single genre characteristic as the cause of a score change.
The within-task contrasts on the linguistic probes serve a related purpose. High recoverability of tense accompanies more modest recoverability of other properties from the same general family of representations. Across the evaluated systems, the relative results on WC and TreeDepth also differ. These comparisons show that a probe should be interpreted through its target and its readout. They stop short of identifying an internal mechanism that represents tense, word content, or syntax in a particular way.
Limitations
Limits identified by the authors
The authors describe the two suites as a basis for more systematic evaluation and leave room for additional tasks. Their conclusion specifically points to stress tests and linguistic diagnostics taking account of properties of Spanish. That direction follows from what the current experiments measure. They use classification, relatedness, and similarity tasks built from a defined set of sources. Purpose-built tests could ask more sharply whether a predictor handles a construction under difficult conditions or relies on a more general cue.
The authors also identify weaknesses from their results. Sentence position remains difficult when individual Transformer layers are tested, and rhetorical relations are challenging even for the stronger late-layer representations. The inclusion of different domains broadens the comparison, but the paper points to room for improvement in the encoders available at the time of the evaluation. Its conclusion presents the benchmarks as a way to compare future representations under shared conditions. The findings concern the encoders and data studied in the experiments.
Limits of the comparison
A reading of the setup adds a limit on causal interpretation. The comparison between multilingual mBERT and Spanish-only encoders does not hold architecture, training data size, and pretraining procedure fixed while changing just the languages. ELECTRA is also represented by a small variant trained on a small amount of data. The study can identify what the available encoders achieve on these tests. Estimating the separate contribution of multilingual training would require a comparison designed to vary that factor independently. BETO’s strong results for several tasks illustrate how much the observed advantage depends on the intended use.
The extraction rule is part of each reported outcome. ELMo and Sent2Vec are represented by their final outputs, and the Transformer comparison uses a [CLS] average. Those are explicit operational choices that make a large evaluation manageable. They also determine which information reaches the predictor. The layer analysis explores one alternative for Transformers. Other pooling rules and other ways of representing sentence pairs remain outside the measured comparison. In particular, the results do not reveal what a predictor could achieve by jointly encoding both sentences or a whole passage.
The pairwise features illustrate that constraint concretely. The absolute difference and elementwise product in SPC are invariant to an exchange of the two sentence vectors. A pair presented with its premise and hypothesis reversed would generate the same input features. That means the classifier cannot use the direction as a separate signal, even where direction could matter to the inference judgment. The evaluation still shows how the tested feature construction performs on the selected data. A low result is evidence about that combination of encoder and readout, with a limited basis for conclusions about all possible inference procedures.
Limits of the datasets and their targets
The constructed discourse tasks have clear answer keys, and the meaning of each key has boundaries. Sentence position rewards recovery of the original position. Some passages can plausibly be written in more than one order, so the recorded order is a specific target. Similarly, the coherence task distinguishes an intact passage from one with a sentence replaced by material from another sequence. A predictor can use a sudden topic change to succeed in some cases. A score on the task gives limited evidence about subtler failures of coherence, such as a passage whose topic stays constant but whose argument becomes inconsistent.
Section prediction is anchored to MLSUM news. Subheads and bodies may differ in cues of style and sentence structure. The classifier could use them without forming a broad account of document structure. The rhetoric task has a different boundary. It predicts the treebank’s coarse labels from paired spans and a supplied tree arrangement after binarization. It gives evidence about classifying the relation of those units. Recovering the boundaries and rhetorical structure of a new document from scratch would be a separate problem.
The paper combines originally Spanish materials with translated or adapted resources. That makes it possible to include tasks for which the authors identify a shortage of Spanish data, particularly inference. It also means that the sources differ in how their sentences and labels were obtained. The split choices for NLI-es, including an esXNLI test set, are therefore part of the conditions attached to its score. The experiment did not vary translation status independently across otherwise matched examples. Differences between entailment datasets cannot by themselves isolate a translation effect.
Group metrics also conceal the mix of examples within each dataset. Accuracy gives the frequency of correct decisions, but the main classification figures do not show which labels account for the remaining errors. A reader interested in one rhetorical relation or one emotion category needs more detail than the group score provides. Pearson correlation summarizes agreement with human similarity ratings and leaves a separate question about the quality of the rankings. Dataset-specific results already qualify several group findings, and the main table’s mBERT similarity entry should be read with the detailed STS figures in view. These limits put the strongest claims at the level the experiments actually measure: a specified representation, a known input construction, and a defined set of targets.
What came after
There is no documented follow-up study to discuss. The paper closes by proposing extensions to the benchmarks and further evaluations tailored to Spanish. These include adding tasks and designing stress tests or linguistic diagnostics around properties of the language. Those directions would extend the questions asked by the existing suites. New benchmark tasks could test whether a representation transfers to more varieties of text, while targeted diagnostics could examine how a particular construction affects a prediction. The results reported here establish the starting comparison for the encoders and tasks the authors evaluated.
Cite
Cite as Vladimir Araujo, Andrés Carvallo, Souvik Kundu, José Cañete, Marcelo Mendoza, Robert E. Mercer, Felipe Bravo-Marquez, Marie-Francine Moens and Alvaro Soto. 2022. Evaluation Benchmarks for Spanish Sentence Representations. Proceedings of the Thirteenth Language Resources and Evaluation Conference.
@inproceedings{araujo2022evaluation,
title = {{Evaluation Benchmarks for Spanish Sentence Representations}},
author = {Vladimir Araujo, Andrés Carvallo, Souvik Kundu, José Cañete, Marcelo Mendoza, Robert E. Mercer, Felipe Bravo-Marquez, Marie-Francine Moens and Alvaro Soto},
booktitle = {Proceedings of the Thirteenth Language Resources and Evaluation Conference},
year = {2022},
url = {https://aclanthology.org/2022.lrec-1.648/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/araujo-2022-evaluation-benchmarks-spanish-sentence-representations/