Bilingual Sentiment Embeddings: Joint Projection of Sentiment Across Languages
Paper · 2018 · Jeremy Barnes, Roman Klinger and Sabine Schulte im Walde
Summary
A hotel review can contain a clear opinion even when the language it is written in has few examples labeled for sentiment. Barnes, Klinger, and Schulte im Walde ask whether a classifier can learn from annotated English reviews and then recognize opinions in Spanish, Catalan, or Basque. Their method, Bilingual Sentiment Embeddings (BLSE), starts with word embeddings learned separately for each language. It uses a small dictionary to connect the languages and the English review labels to decide which distinctions matter for sentiment analysis.
BLSE learns a separate linear transformation for each language. One training objective brings known translations toward the same location after transformation. The other teaches a classifier to recognize sentiment in English sentences represented in those new coordinates. As that second objective reshapes the English representation, the dictionary objective draws the corresponding target-language words towards the reshaped positions. A target-language sentence can then go through its own transformation and use the English-trained classifier. Target-language review labels guide the choice of settings on a development split, while the training losses use English review labels and bilingual word pairs.
The experiments use sentences from hotel reviews. The authors test both a positive-versus-negative decision and a four-class decision that also distinguishes strong from ordinary sentiment. BLSE significantly beats the two bilingual embedding baselines in four of the six settings. On the binary test sets, its macro F₁ is 74.6 in Spanish, 72.9 in Catalan, and 69.3 in Basque. Its advantage over the embedding baselines carries over to the Spanish four-class task, while an approach that translates complete reviews into English scores higher than BLSE across the four-class tests. On binary Basque, the authors find no significant difference between BLSE and that translation approach. Combining their predictions can also improve on translation alone.
The analysis explains why the target-language transformation matters. Removing it leaves a classifier that learns sentiment in English but fails to transfer it in the reported comparison. With both transformations, same-polarity words tend to move closer together, and opposite-polarity words tend to move apart. This specialization has a cost. Some function words and words about transport acquire an association with positive sentiment in the projected Spanish space, and the classifier has difficulty using modifiers to distinguish an ordinary opinion from a strong one. The paper thus offers a way to transfer polarity with modest bilingual supervision and shows where that supervision falls short.
Deep dive: Bilingual Sentiment Embeddings: Joint Projection of Sentiment Across Languages
Bilingual Sentiment Embeddings use English reviews and a small translation dictionary to transfer sentiment classification to other languages. · about 38 minutes to read
The problem and its context
A shortage of labels for a particular task
Sentiment classification asks a system to assign an opinion label to a piece of text. In this study the unit is a sentence, and the label describes the direction of the opinion and, in the finer-grained task, its strength. A language can have enough written material to learn useful word representations while still having too few human-labeled reviews to train a good classifier for a particular domain. The authors use Catalan to make this distinction concrete. The size of a language community gives little assurance that annotated examples exist for the task an engineer wants to solve.
The paper treats this as a problem in cross-lingual transfer. A source language supplies reviews with known sentiment labels. A target language supplies the reviews whose labels the system should predict. Words from the target language need to reach a classifier trained on source-language examples in a representation it can use. One way to do that is to change the text into the source language. Another is to change the numerical representation of the text so that a common classifier can interpret it.
The distinction matters when bilingual resources are scarce. A collection of aligned documents or sentences can show how speakers express the same idea in different languages, including how a phrase changes under translation. A word dictionary offers a narrower kind of evidence. It can say which individual forms correspond, and it can be assembled without collecting equivalent versions of entire reviews. The paper asks what can be learned from this narrower bilingual connection when labeled opinions already exist on the source side.
What earlier transfer methods needed
Earlier work used machine translation at several points in the process. Translating a sentiment lexicon produces target-language entries from a list that already carries opinion information. Translating an annotated corpus produces text that can be paired with existing labels, with word alignments available to carry annotations attached to particular words or spans. The authors describe these routes through work on multilingual subjective language and multilingual subjectivity analysis. Learning Multilingual Subjective Language via Cross-Lingual Projections and Multilingual Subjectivity Analysis Using Machine Translation.
The literature also tried to get more out of translated material by treating different versions of the data as distinct views. Co-training is one of the approaches the authors mention in this connection. The paper also describes methods that use parallel text directly. These strategies offer several ways to move annotations or features between languages, and their practicality depends on the availability of good translation or sufficiently substantial parallel collections. Co-Training for Cross-Lingual Sentiment Classification.
The authors discuss a different route based on adversarial training. A feature extractor learns from text in both languages, and a language discriminator tries to tell which language the extracted features came from. Training the extractor to defeat the discriminator encourages features that look similar across languages. This approach can dispense with parallel examples, although it still draws on substantial amounts of unlabeled text. It represents another way to ask which information should remain available after language-specific differences are reduced. Adversarial Deep Averaging Networks for Cross-Lingual Sentiment Classification.
What bilingual word spaces were built to preserve
A word embedding is a vector, an ordered list of numerical coordinates associated with a word. In distributional semantics, the contexts in which words appear provide evidence about their meanings and relationships. Words with related uses can have similar vectors within a language. Embeddings trained independently for different languages have independently learned coordinates, so matching positions in their vectors have no guaranteed common interpretation. A bilingual mapping uses known correspondences between words to estimate how the coordinate systems relate.
Some earlier bilingual approaches learned their representations from parallel corpora. The paper also discusses a less data-intensive strategy that trains each language separately and uses a dictionary to link the resulting spaces. Mikolov and colleagues explored a linear mapping that can rotate and scale a space. Subsequent work by Artetxe and colleagues imposed an orthogonality condition, which preserves the internal geometry of the original vectors under the mapping. In the present study, the line of work associated with Artetxe supplies one of the baselines. Exploiting Similarities among Languages for Machine Translation and Learning principled bilingual mappings of word embeddings while preserving monolingual invariance.
Another approach uses a small dictionary earlier, while constructing a corpus on which to train embeddings. Gouws and Søgaard concatenate texts from the two languages and introduce translations by randomly replacing eligible words. The resulting contexts contain words from both languages. A standard embedding algorithm can then learn vectors from that mixed text. In the paper’s experiments, this approach is called BARISTA.
Both routes give sentiment classification a way to share lexical evidence across languages. They also make the importance of a task-specific objective easier to see. Words with opposite opinions can fit into much the same sentence. A reviewer might use either a favorable or an unfavorable adjective to describe a room, and the neighboring words can remain unchanged. Those shared contexts tell an embedding learner something about what the words describe. A sentiment classifier needs a representation that also makes the direction of the opinion easy to read.
What sentiment-specific embeddings added
The paper traces sentiment-aware word representations to work that combined evidence about language use with evidence from labeled text. Maas and colleagues used a topic-based objective to capture semantic information and added an objective that connected words to the sentiment labels of their documents. A word could therefore acquire a position influenced by both its usage and the opinions expressed around it. Learning Word Vectors for Sentiment Analysis.
Tang and colleagues studied sentiment in tweets using distant annotation, where the supervision is obtained indirectly. Their approach combined a preference for real word sequences over corrupted ones with prediction of tweet polarity. The precedent for BLSE is the use of a sentiment objective alongside an objective that organizes words for other reasons. The bilingual setting adds the need to communicate changes in the representation across languages. Learning Sentiment-Specific Word Embedding for Twitter Sentiment Classification.
The paper also describes earlier bilingual sentiment embeddings that translated the source data into the target language and the target data into the source language. That approach already put bilingual representation and sentiment learning together. BLSE changes the source of the bilingual supervision to a list of word pairs. Its premise is that the classifier can learn what to emphasize from labeled English sentences and that a suitably chosen dictionary can give a second language access to those distinctions.
The method, step by step
How an English label changes a target-language representation
Start with two independent collections of word vectors. One contains English words. The other contains words in the target language. A dictionary identifies pairs that ought to have similar representations after transformation. A labeled collection of English sentences supplies the separate information that some differences between sentence representations should lead to different sentiment predictions.
The authors give each language its own linear projection. A projection here is multiplication by a learned matrix, which produces a new set of coordinates. The two outputs occupy a common space: an English word and its target-language translation can be compared there, and sentences from both languages can ultimately be scored by the same classifier. The original word vectors stay fixed. The learned matrices determine which aspects of those vectors remain prominent in the shared coordinates.
Training alternates conceptually between two questions. Given a translation pair, how far apart do its members land after projection? Given an English review sentence, how well does its projected representation predict the known label? Both questions involve the English projection. When it changes to make English sentiment easier to classify, the target projection can change in response because it is also trying to keep translations together. The connection is indirect. The label on an English sentence supervises the English path, while translated words provide the supervision on the target path.
At prediction time only the target path is needed. The classifier looks up the target sentence’s words in the target vocabulary, averages their vectors, and applies the target projection. The resulting sentence representation is then scored using the classifier learned on English. There is no step that generates an English version of the review.
Learning and applying bilingual sentiment embeddings
The steps in order.
The dictionary objective
The source word matrix is called S, and the target word matrix is T. Each row is the vector for a word. The paper uses v for the size of the source vocabulary and v′ for the size of the target vocabulary. It uses d and d′ for the corresponding embedding dimensions. Allowing different dimensions in the notation clarifies the job of the projections. Both projections must produce outputs of the same width, even when the original vectors have different widths.
L = {(s₁, t₁), (s₂, t₂), …, (sₙ, tₙ)}
L is the bilingual dictionary used for projection, and n is the number of pairs under consideration. For a pair indexed by i, sᵢ is the source-language word and tᵢ is the target-language word. Parentheses group the two entries of each pair, braces enclose the collection, and the ellipsis stands for the intervening pairs.
zᵢ = S[sᵢ] · M
In this expression zᵢ is the projected source word for pair i. S[sᵢ] means the row of the source embedding matrix S associated with word sᵢ. M is the source projection matrix. The dot denotes multiplication of the row vector by the matrix.
ẑᵢ = T[tᵢ] · M′
Here ẑᵢ is the projected target word for the same pair i. T[tᵢ] retrieves the row for target word tᵢ from T. M′ is the target projection matrix, with the prime distinguishing it from the source matrix M. The multiplication puts the target vector into the same coordinates as zᵢ.
MSE = (1/n) ∑ᵢ₌₁ⁿ ‖zᵢ − ẑᵢ‖²
MSE denotes the mean squared error on the translation pairs. The sum runs over the pair index i, and n is the number of pairs being averaged. The subtraction gives the coordinate-wise difference between the projected source vector zᵢ and its target counterpart ẑᵢ. The squared Euclidean norm, written ‖ ‖², sums the squared coordinate differences. Dividing by n gives the mean over pairs. The vector norm makes explicit how to read the square of a difference between vectors in the paper’s display.
This loss tells the projections which words should agree across languages. It can encourage a favorable English adjective and its translation to move together, but the pair itself supplies no positive-versus-negative class decision. That decision comes from the sentence objective. The authors tried using cosine distance for training and report that it worked worse than Euclidean distance. They still use cosine similarity in the analysis, where the question is how the angles between learned vectors change over training.
There is a further distinction between holding the original spaces fixed and preserving their geometry in the projected space. Fixing the original vectors keeps the training losses from rewriting a separate row for every vocabulary item. A learned projection can still change similarity, distance, and the relative prominence of directions in its output. A target word outside the dictionary can receive such a transformed representation as long as it has an original vector. What it lacks is a direct translation-pair constraint on where that representation should land.
The sentiment objective
A source example consists of a sentence xᵢ and its label yᵢ, with i now indexing sentences. For each word of xᵢ, the classifier retrieves the corresponding vector from S. It averages those vectors to obtain aᵢ. The averaging step keeps the sentence representation the same width as a single source word vector, so the source matrix M can act on both words and sentences.
zᵢ = aᵢ · M
The aᵢ in this expression is the average source word vector for sentence xᵢ. M is the same source projection learned from the dictionary pairs. The projected sentence is zᵢ, reusing the symbol for a source projection output. The context determines whether the subscript i refers to a sentence or to a dictionary entry.
The average treats a sentence as a collection of words. Reordering its tokens leaves the same average, and an isolated occurrence of a negation word contributes through its own vector. This is useful for understanding what the learned projection can do. Since the matrix multiplication is linear, projecting the average has the same effect as taking the average of the individually projected vectors. Training on labeled sentences therefore changes how individual word contributions appear in the sentence representation. The architecture follows the averaging approach described by Iyyer and colleagues, with a linear transformation after averaging so the same weights can serve in the dictionary mapping. Deep Unordered Composition Rivals Syntactic Methods for Text Classification.
ŷᵢ = softmax(zᵢ · P)
P is the shared classification matrix. Multiplying zᵢ by P gives a score for each sentiment class. Softmax converts those scores into probabilities that sum to one across the classes. The resulting prediction is denoted by ŷᵢ. The class with the largest probability is the classifier’s choice.
H = −∑ᵢ₌₁ⁿ [yᵢ log(ŷᵢ) + (1 − yᵢ) log(1 − ŷᵢ)]
H is cross-entropy, a loss that penalizes putting low probability on an observed class. In this binary expression, yᵢ denotes the true class encoded as 0 or 1, and ŷᵢ denotes the probability assigned to the class encoded as 1. The terms 1 − yᵢ and 1 − ŷᵢ are the complementary label indicator and probability. The logarithm is written log. The sum uses i for the example index and n for the number of labeled examples in the sum. Grouping the terms under the leading minus sign gives the usual reading of the binary cross-entropy displayed by the authors. In the four-class setting, the softmax supplies a probability for each label, and cross-entropy penalizes the negative log probability assigned to the label that was observed.
The classifier can assign separate scores for ordinary and strong sentiment. Whether those scores distinguish intensity depends on the information in the average after projection. The label set makes room for a strength distinction. The architecture still has to learn that distinction from individual word contributions to a sentence whose order has been discarded.
How joint training couples the languages
J = ∑₍ₓ,ᵧ₎∈Cₛₒᵤᵣ꜀ₑ α H(x, y) + ∑₍ₛ,ₜ₎∈L (1 − α) · MSE(s, t)
J is the combined objective. Cₛₒᵤᵣ꜀ₑ is the labeled source corpus, x is a sentence in it, and y is the associated sentiment label. L is the dictionary, and s and t are a source word and its target translation. H(x, y) denotes the classification loss associated with a labeled example, while MSE(s, t) denotes the projection loss associated with a word pair. The membership symbol ∈ marks the collection over which each sum runs. The hyper-parameter α weights the sentiment term, and 1 − α weights the dictionary term. A hyper-parameter is a setting chosen for training, distinct from the matrix entries learned by minimizing the loss.
These objectives place different demands on M. The dictionary term asks it to cooperate with M′ so translations agree. The sentiment term asks it to cooperate with P so the labels are predictable. As the source projection changes under both demands, M′ is adjusted through the dictionary loss. This is the path that transmits sentiment information to the target representations. P receives supervision from the source classifier objective, and the target representation comes to be useful to P through the alignment.
This coupling clarifies what the dictionary can and cannot contribute. Suppose an English word’s direction becomes helpful in distinguishing favorable from unfavorable sentences. Its known translation has a reason to move in the corresponding direction in the shared space. If a target word has no dictionary entry, any comparable effect must come from the structure of the original target vectors and the general action of M′. A shared linear map applies to the whole vocabulary, so it can generalize beyond the matched words. It cannot make an independent correction to every particular use of a word.
The authors train BLSE in PyTorch and use Adam to minimize the mean loss of training batches. They tune α, the number of training epochs, and batch size using target development performance. An epoch is a pass through the training data, and a batch is the group of examples used to calculate a training update. The selected settings are then used for the test evaluation. The paper identifies a public implementation under the name BLSE.
What gets computed for a target sentence
ẑᵢ = aᵢ · M′
Here aᵢ is the average of the target word vectors in target sentence i. It consequently has the width of the target embedding vectors, d′ in the original notation for the two spaces. M′ maps that average into the shared representation, and ẑᵢ is the resulting target sentence vector.
ŷᵢ = softmax(ẑᵢ · P)
In the target prediction, ẑᵢ is the projected target sentence and P is the classification matrix learned with the English labels. Softmax again turns class scores into probabilities, now represented by ŷᵢ for the target example. The classifier can use the same P because both language paths produce vectors in the shared coordinates.
This design makes the source of each kind of supervision explicit. Unlabeled monolingual text supplies the original embeddings. Word pairs align the spaces. Labeled source sentences determine which distinctions in the shared space help to predict sentiment. Target development labels help select the training configuration, and target test labels supply the evaluation.
How the direct mapping baseline differs
The paper presents the ARTETXE baseline as a mapping from source vectors into target coordinates. For dictionary entries, the fitted transformation tries to make the transformed source rows close to the corresponding rows in the target matrix. BLSE instead adapts both sides and introduces a separate sentiment objective.
arg min_W ‖S′W − T′‖²ꜰ
The expression asks for the value of W that minimizes the displayed quantity. W is the mapping matrix, S′ is the matrix of source vectors selected by the dictionary, and T′ contains the corresponding target vectors in the same pair order. The squared Frobenius norm, indicated by ‖ ‖²ꜰ, sums the squares of all the matrix entries. Here those entries are the coordinate differences left after applying W.
S′⁺ = (S′ᵀS′)⁻¹S′ᵀ
S′⁺ denotes the pseudoinverse of the source dictionary matrix. The superscript ᵀ denotes transpose and ⁻¹ denotes matrix inverse. This expression gives the pseudoinverse when the indicated inverse exists. The paper also names singular value decomposition as a way to compute the solution.
W = S′⁺T′
In the least-squares expression, the source pseudoinverse S′⁺ is multiplied by the aligned target rows T′ to obtain W. The paper’s discussion of earlier Artetxe work also notes the use of an orthogonality constraint. The inverse expression above describes the least-squares relation, while orthogonality is an additional condition on how the fitted map can change distances within a language.
Ŝ = SW
S in this last expression is the entire source word matrix. Ŝ is the mapped source matrix, and W is the learned transformation. The mapping thus extends to source entries outside the dictionary, just as the BLSE matrices extend to words beyond the translation pairs on which they were learned. The difference is where the representations go and whether they move in response to sentiment supervision.
Experiments and results
Turning hotel reviews into sentence classification data
The starting annotations belong to hotel reviews and identify sentiment at the aspect level. An aspect is a particular subject of an opinion within the review, such as a room, service, or an amenity. The English and Spanish annotations come from OpeNER. Catalan and Basque come from the hotel-review collection MultiBooked.
For the sentence task the authors take the most frequent aspect label within a sentence and remove cases of mixed polarity. The four-class labels are Strong Negative, Negative, Positive, and Strong Positive. In the binary version, the strong and ordinary labels are combined within each polarity. The text can therefore be the same in the two setups while the classifier faces a different question. A sentence that counts as a correct positive prediction in the binary task can still be an error in the finer task if the predicted strength differs from the annotation.
The English data contain 1731 sentences, with 1258 positive and 473 negative under the binary labeling. Spanish contains 1472 sentences, with 1216 positive and 256 negative. Catalan has 1185 sentences, of which 718 are positive and 467 negative. Basque has 1129 sentences, with 956 positive and 173 negative. These are counts for the sentence datasets before the experimental splits.
Some strength categories are sparse even within those totals. The Strong Negative category contains 74 English sentences, 38 Spanish sentences, 58 Catalan sentences, and 20 Basque sentences. This matters in interpreting the four-class task. A classifier needs to distinguish strength as well as direction, while the examples available for the strong negative decision are relatively few. The Spanish and Basque target datasets also have visibly different balances from Catalan, which affects what an overall class-averaged result represents.
The experiments allocate 70 percent of the data to training, 20 percent to test, and 10 percent to development. These splits have distinct uses across systems. In a source-trained transfer run, English provides the labeled training sentences. In the target-trained comparison, the target training sentences are labeled inputs to the classifier. The target development split guides setting selection and the target test split supplies the reported evaluation.
Monolingual text and bilingual word pairs
The English embeddings are the public GoogleNews vectors. For Spanish, Catalan, and Basque, the authors train skip-gram Word2Vec embeddings on 2016 Wikipedia text. Skip-gram learns vector representations by using a word to predict words in its surrounding context. The authors split the text into sentences, use IXA pipes for tokenization, and lower-case the text. They use 300 dimensions, a context window of 5, sub-sampling of 10⁻⁴, and negative sampling of 15. Sub-sampling reduces the training prominence of very frequent words, while negative sampling gives the learner examples of word-context combinations to score as alternatives to the observed ones.
The Wikipedia collections differ substantially in size. Spanish has 23 M sentences and 610 M tokens, producing a vocabulary of 0.83 M embeddings. Catalan has 9.6 M sentences and 183 M tokens, with 0.4 M embeddings. Basque has 0.7 M sentences and 25 M tokens, with 0.14 M embeddings. Those counts describe the material behind the word vectors, not the hotel-review sentences that supply the evaluation. The monolingual corpora and the annotated task data play different roles.
The main bilingual resource comes from the sentiment lexicon by Hu and Liu, which the authors call Bing Liu. They use Google Translate to obtain candidate translations and discard multi-word entries. The resulting dictionaries contain 5700 translations for Spanish, 5271 for Catalan, and 4577 for Basque. The authors reserve ten percent of the translation pairs for development. These held-out pairs let them see whether the projections also bring together translations omitted from projection training. This check uses word correspondences and is separate from tuning on target review sentiment.
The lexicons are shared across the comparable bilingual embedding approaches. As a consequence, BLSE’s main comparison is with methods given much the same lexical links. Its advantage cannot be explained simply by giving it a sentiment-oriented dictionary and withholding that dictionary from the baselines. What differs is when each system uses those pairs, how it builds the representation, and whether source sentiment labels reach the representation directly.
Which systems answer which question
ARTETXE uses the dictionary to map source vectors towards the target space. A linear support vector machine, or SVM, is trained on the averages of those mapped source vectors. At test time the target vectors already occupy the coordinates towards which the source vectors were fitted. A linear SVM learns class decisions from weighted combinations of the input coordinates. The bilingual mapping, in this baseline, is learned separately from the sentiment classifier.
BARISTA uses the same dictionary to create a mixed-language corpus. The source and target monolingual text are concatenated. When a word can be replaced by its translation, the choice between retaining it and substituting the translation is random, with probability 0.5. The authors train skip-gram on the resulting text with the same Word2Vec settings used for the target monolingual embeddings. The bilingual signal enters through the contexts in which tokens occur, and a linear SVM learns sentiment from averaged vectors after those vectors have been trained.
The machine translation comparison, MT, translates the target sentiment corpora into English through the Google Translate API. It can then apply an English classifier to those translations. The authors treat it as a comparison requiring more resources because it assumes access to an effective translation system for complete reviews. That assumption is distinct from obtaining translations for a limited list of words. The paper treats the latter as a task that a human translator could also carry out.
MONO trains and tests in the target language. Its SVM uses averaged target word vectors and sentiment labels from target training sentences, with the development split used for tuning. The authors describe MONO and MT as empirical upper bounds because they draw on resources beyond the principal training setup. An empirical upper bound in this context is a reference point. Its score can depend on the embeddings, classifier, and data available, so a system with fewer resources can exceed it on a particular test.
The authors use a linear SVM for those comparisons because it supplies a stronger comparison in their setup than substituting BLSE’s averaging network throughout. They tune the SVM’s c parameter on the target development split. The BLSE architecture incorporates its classifier during representation learning and tunes its own training settings on that development split. Later, the qualitative analysis changes the classifiers to put the representations under a more comparable diagnostic.
There is also an ensemble comparison. The authors train a random forest on predictions from MT and one bilingual embedding approach at a time. A random forest combines the decisions of multiple trees. Its inputs here are predictions from the component systems. An improvement over MT under this procedure indicates that some of the component predictions can be combined to make better decisions than translation alone in the tested setup.
How to read the scores
The results include precision, recall, and macro F₁. For a class, precision measures how frequently a prediction of that class is correct. Recall measures how often the classifier finds examples that truly belong to the class. F₁ combines precision and recall through their harmonic mean. Macro F₁ averages the class-specific F₁ scores with equal weight. A rare sentiment label therefore has the same influence on this final average as a common one.
That distinction matters for the hotel reviews. A strategy that mostly predicts positive could classify many examples correctly on a positively skewed dataset while scoring poorly on negative examples. Splitting ordinary and strong sentiment also increases the ways a classifier can be wrong. An ordinary positive prediction on a Strong Positive sentence counts against performance for the relevant classes even though the predicted polarity agrees.
To assess differences, the authors use approximate randomization with 10,000 runs. In a comparison of two systems on the same test items, randomization provides a reference for how large a score gap might appear if the systems’ outputs were exchangeable. The paper marks results at p < 0.01 and p < 0.05. Its marked comparisons for BLSE concern the two bilingual embedding baselines. A visual gap between any two bars does not by itself specify the outcome of such a test.
Binary polarity transfers most consistently
Spanish OpeNER binary test macro F₁
BLSE leads the bilingual embedding baselines while machine translation has the highest score shown.
The numbers
| System or setting | macro F₁ |
|---|---|
| BARISTA | 61.2 |
| ARTETXE | 67.1 |
| BLSE (this paper) | 74.6 |
| Machine translation | 79.0 |
On Spanish binary test sentences, BLSE reaches 74.6 macro F₁. Its reported precision is 72.1 and recall is 80.1. ARTETXE obtains 67.1 macro F₁ and BARISTA 61.2. MT obtains 79.0. The results show why it helps to keep the bilingual baselines and translation comparison separate. The former ask what can be gained from the same kind of dictionary supervision, while the latter asks how close the dictionary-trained approach gets to using an existing translation service on the full text.
On the Catalan binary test, BLSE reaches 72.9 macro F₁. ARTETXE scores 60.7 and BARISTA 60.1, while MT scores 77.2. In Basque, BLSE scores 69.3, with ARTETXE at 45.6 and BARISTA at 54.8. MT scores 69.4 in this Basque binary setting, and the authors report no significant difference between it and BLSE. The Basque comparison shows that the quality of the bilingual representation matters even when the competing systems have access to the same dictionary. It also puts the near match with MT in its proper setting, a binary test on one target language.
The binary macro F₁ improvements over the two bilingual embedding baselines are significant in each of the target languages. Precision and recall provide additional context. For binary Basque, BLSE reports precision of 67.5 and recall of 72.7, while MT reports precision of 75.6 and recall of 66.5. Their aggregate F₁ scores are close, and the component measures show different patterns of prediction. This is one reason the authors examine combinations of the systems’ outputs.
Splitting polarity by strength changes the result
Spanish OpeNER four-class test macro F₁
BLSE retains an advantage over the bilingual embedding baselines, and machine translation leads the comparison.
The numbers
| System or setting | macro F₁ |
|---|---|
| ARTETXE | 34.9 |
| BARISTA | 39.5 |
| BLSE (this paper) | 41.2 |
| Machine translation | 48.8 |
On the Spanish four-class test, BLSE’s 41.2 macro F₁ is marked significant at p < 0.05 against the bilingual baselines. BARISTA scores 39.5 and ARTETXE 34.9. MT scores 48.8. The ordering among the bilingual approaches remains favorable to BLSE, but performance is far lower than on binary polarity. Collapsing the strength labels had allowed all the approaches to obtain credit for preserving opinion direction even when the strength of the opinion might have been uncertain.
Basque MultiBooked four-class test macro F₁
BARISTA leads BLSE among the bilingual embedding approaches, and machine translation scores highest.
The numbers
| System or setting | macro F₁ |
|---|---|
| ARTETXE | 21.3 |
| BLSE (this paper) | 30.0 |
| BARISTA | 33.8 |
| Machine translation | 43.6 |
In the other four-class target tests, BLSE scores below BARISTA. On Catalan, the macro F₁ scores are 35.9 for BLSE, 36.2 for BARISTA, 23.0 for ARTETXE, and 52.7 for MT. On Basque, BARISTA obtains 33.8, BLSE 30.0, ARTETXE 21.3, and MT 43.6. The stronger of the bilingual embedding baselines therefore depends on both the language and the label set. ARTETXE beats BARISTA on binary Spanish and Catalan, while BARISTA beats ARTETXE on all the four-class tests.
Taken together, the statistically supported wins over both bilingual embedding baselines occur on the binary tests in Spanish, Catalan, and Basque and on four-class Spanish. The paper’s conclusion reports an average advantage of 14 percentage points in F₁ for binary transfer and 4 pp for four-class transfer over methods with comparable data requirements. The individual comparisons show the variation behind those averages, especially in the fine-grained target tasks.
What the stronger-resource comparisons add
The authors report useful complementarity between BLSE and machine translation in the ensemble experiment. The two paths expose the sentiment classifier to different information. MT passes through a translated sentence and an English representation. BLSE passes directly from the target words into the learned bilingual space. Their aggregate scores can be similar while their useful predictions occur on different sentences. The forest tests whether those predictions jointly help under the evaluation setup.
MONO addresses a separate practical question by providing target review labels during training. It illustrates what a conventional classifier can achieve when the transfer problem is removed from its training conditions. Comparing with both MONO and MT places BLSE in relation to two distinct resources: the ability to label target examples and the ability to translate target texts. A strong result relative to the dictionary baselines shows the value of changing the representation objective. A comparison with MT or MONO shows how far that change goes under the available conditions.
The authors suggest that differences in embedding quality and the greater morphological complexity of Basque help explain differences across the targets. Here morphology refers to the ways words vary in form. With word-level vectors and a dictionary of particular forms, those variations can affect which entries are represented and directly aligned. The scores and corpus sizes make these explanations plausible, but the main comparison varies language, corpus, and dataset together. The paper investigates some components more directly in the analyses that follow.
What the ablations show
Removing the target projection
The architecture comparison holds on to the source-side prediction path while removing M′. In the simplified variant, M maps English vectors into the target coordinate system and P predicts sentiment. The target vectors remain fixed at the point where the classifier must use them. The source representation can adapt to English sentiment training, while the relevant target representation has no corresponding trainable transformation.
The authors track mean cosine similarity for translations and sentiment F₁ for each language during training. Cosine similarity measures how closely vector directions agree. Following it alongside F₁ helps distinguish agreement on individual dictionary entries from the ability to classify complete sentences. A system can improve one aspect of this comparison while still having difficulty with the other.
The variant without M′ learns to predict sentiment on the source side. In the reported comparison it fails to learn to predict target sentiment successfully. The full BLSE architecture transfers that ability. This is the clearest controlled test of the proposed mechanism. Since the initial target vectors are fixed, a trainable target map is what lets their representation respond when source sentiment training reshapes the space.
The comparison supports a claim about this specific design. Its intervention removes the target transformation while retaining the fixed-vector approach and a shared classifier. A design with another route for changing the target features would pose a different question. For BLSE, the ablation identifies which path carries the effect of the English classification objective across the dictionary.
Varying the size and content of the dictionary
The authors vary the translation pairs for the Spanish four-class task while using the best hyper-parameters from the earlier experiment. This analysis asks whether the effect comes from having more matched words in general or from having matched words especially relevant to sentiment. It compares a translated sentiment lexicon, a general dictionary, a different sentiment lexicon, and a small hand-translated set expanded using information about target word forms.
The general dictionary contributes 10,000 entries from Apertium. This choice follows the practice, described in earlier mapping work, of using frequent words as anchors. Familiar words can cover much of a collection and provide repeated contexts. For a task that depends on the strength or direction of an opinion, the usefulness of those anchors also depends on which distinctions they let the projection transmit. Hubness and Pollution.
The alternative sentiment dictionary comes from the NRC hashtag sentiment lexicon. The authors translate it and retain 22,984 word-to-word pairs. It offers many sentiment-associated entries, but its source is distinct from the Bing Liu list. The result therefore compares both coverage and the selection of words. A larger list can constrain more of the space while still failing to constrain the aspects that matter most for this particular collection of hotel review sentences. NRC-Canada.
The paper lists training sizes of 0, 100, 300, 600, 1000, 3000, 6000, 10,000, and up to 20,000 pairs in the size experiment. Different dictionaries support different portions of that range. The 0 condition represents training without pair constraints, which removes the direct route through which the target projection receives its supervision. The intermediate sizes let the authors observe whether additional entries improve the Spanish four-class macro F₁ when the dictionary source stays the same.
The Bing Liu curve rises as the authors add pairs. The general Apertium dictionary and the translated NRC list perform worse than the translated Bing Liu lexicon in the reported comparison. That result separates the contribution of dictionary size from the choice of entries. Adding useful pairs within one lexicon can help, while switching to a larger lexicon does not guarantee better sentiment transfer.
The hand-built list starts with 200 translated pairs and reaches 657 after expansion with morphological information from the target language. The expanded dictionary is competitive in the Spanish four-class experiment. Its performance offers direct evidence that the bilingual resource can be assembled in a compact form for at least this setting. It does not assign a separate effect to manual translation and morphological expansion, since the reported result concerns the expanded list as a whole.
Where the mistakes arise
The authors annotate test phrases by the kind of evidence a classifier needs. Their categories cover vocabulary, adverbial modification, negation, external knowledge, and other cases. This is an error analysis of naturally occurring examples. It can show where performance differs across categories, while a controlled test that changed one word in an otherwise identical sentence would address a different question.
The vocabulary category includes phrases whose sentiment follows mainly from the words used. An adjective may carry an obvious opinion, and a noun naming a desirable amenity may imply one. This was the most common source of errors in raw counts, in part because so many examples belonged to the category. The paper reports an average of 71 vocabulary errors per system in the binary setup and 167 in the four-class setup. The prevalence of the category makes the scores within it more useful for comparing systems than its raw count alone.
On vocabulary-dependent examples, MT scores 81 F₁ in the binary condition and 54 in the four-class condition. BLSE gives 79 and 48. ARTETXE scores 70 and 35, and BARISTA 67 and 41. Those comparisons fit the intended mechanism of BLSE. Among the systems using dictionary-based bilingual embeddings, the ones whose projected lexical features directly receive sentiment supervision are better placed to recover polarity from important words. Even there, the lower four-class scores show that recognizing the opinion-bearing vocabulary leaves some of the intensity question unresolved.
For negation, the authors consider cases where the negation applies to the element supplying the opinion. A reviewer can use a negative adjective inside an overall favorable remark, as when saying that a hotel is hardly bad. The authors are interested in whether the classifier recovers the opinion of the phrase rather than the isolated adjective. They report that the systems generally do reasonably well on negation in the binary task. BLSE achieves 82.9 F₁ there, the best result for the category, and 36.9 F₁ in the four-class condition. Negation Scope Detection for Twitter Sentiment Analysis.
These scores give two different views of negation. The binary result shows that an averaged representation can contain enough evidence to classify many observed negated sentences. The four-class result shows that representing a distinction in strength is harder within the same category. Since averaging does not track word order or syntactic scope, the binary success cannot identify the rule the classifier used to reach the correct answer. It may reflect how particular words co-occur in these review phrases.
Adverbial modifiers are particularly informative for the comparison between label sets. An adverb can make favorable praise emphatic while leaving the sign of the opinion untouched. The paper reports that all systems exceed 55 F₁ on modifier examples in the binary setting. In the four-class setting, BLSE obtains 27.2 F₁, compared with 46.6 for MT and 31.3 for BARISTA. The authors suggest BLSE has difficulty capturing the semantics of these target adverbs. If useful distinctions depend on what an adverb modifies, averaging provides limited evidence about that relationship.
The external knowledge category includes phrases whose evaluation depends in part on what a reader knows about the world. The distance from a hotel to a beach may be welcome when a review mentions 350 meters and unwelcome when it mentions 3 kilometers. The number and unit help express the opinion, even in the absence of an evaluative adjective. The authors report F₁ of 63.5 for BLSE, 62.5 for MT, and 43.6 for BARISTA in their comparison of this category. These are scores on the examples classified under external knowledge. The setup does not separately test whether a classifier can compare distances in new contexts or explain how the distance affected its decision.
The authors summarize the change from binary to four-class classification by reporting average macro F₁ decreases of 26.8 for MT, 31.4 for ARTETXE, 22.2 for BARISTA, and 36.6 for BLSE. The pattern joins up with the modifier and negation analyses. BLSE gives the direction of sentiment a prominent role in the shared space. An evaluation that asks for finer intensity distinctions reveals how much remains unavailable to the classifier.
Inspecting what the learned space brings together
The authors collect two groups of 100 positive words and one group of 100 negative words to probe the representation. They compare words that share polarity with words that have opposite polarity. The paper calls these sentiment synonyms and antonyms. The terms refer to the comparison by opinion direction. Words in the same group need only agree in polarity for this diagnostic, even if they describe different things.
After each training epoch, the authors measure mean cosine similarity for these relationships in the source and target representations. They also follow average similarity on held-out translations and macro F₁ on the source and target development sets. To compare representation learning with ARTETXE and BARISTA, they replace the original SVM classifiers for this analysis with the type of classifier used in BLSE and inspect the representations at the hidden layer.
BLSE brings same-polarity words closer in direction and gives the opposite-polarity group negative cosine similarity in the reported analysis. The baselines display some sensitivity to this distinction as well, with clearer separation when alignment and sentiment are trained jointly. The presence of a polarity pattern in target words is important because there is no corresponding target sentiment loss. The learned geometry gives a more direct view of what transfers than the final sentence scores alone.
A second analysis compares the Spanish word space before and after projection using t-SNE, which maps high-dimensional vectors to a visual display intended to make neighborhood patterns easier to inspect. The display covers positive words, negative words, function words, verbs, animals, and transport vocabulary. The positive and negative groups appear more clearly separated after BLSE’s projection. Function words and transport words also show a strong association with the positive side.
The latter pattern helps explain why improving polarity separation can come with a cost for other lexical distinctions. Function words largely serve grammatical roles, so grouping them with positive vocabulary can give them a sentiment contribution that does not fit all their uses. The authors connect this observation to the difficulties with modifiers. The visualization and the error analysis support a plausible connection, while neither intervention directly changes that association to measure its effect on the modifier scores.
Limitations
Limits the authors identify
The authors identify excessive sentiment associations for function words as a weakness of the learned space. Their Spanish visualization also draws attention to transport vocabulary that sits near positive words after projection. These observations follow naturally from an objective that rewards successful sentiment prediction. A direction in the embedding space can become predictive within hotel reviews because of recurring contexts, including contexts where a word carries little opinion on its own. Once the representation emphasizes that direction, the association can appear more general than the underlying evidence warrants.
The paper also points to the gap between learning from individual words and recognizing composed sentiment in phrases. Negation can change the polarity contributed by a word, and a modifier can change its strength. The authors propose extending the projection to multi-word phrases as future work. The suggestion responds to errors they observed, particularly in the four-class evaluation. The paper presents evidence for the need to represent more than individual words in some cases, while the prospective phrase extension has no reported evaluation.
The resource assumptions are also part of the authors’ account. BLSE needs separate word vectors and a bilingual lexicon, along with annotated examples in the source language. The dictionaries used in the principal experiment were machine-translated for convenience. The authors explain that a person could translate a list of this size and provide the Spanish experiment with an expanded hand-translated dictionary as a concrete test of that option. The main comparison still draws on a translation service for dictionary construction, and the evidence for the hand-built alternative comes from one target and task setting.
Limits visible in the evaluation
The distinction between labeled training data and labeled development data is important for any use of the results. The target-language sentence labels do not enter BLSE’s joint training objective. They do enter the selection of α, the number of epochs, and batch size, because these choices are evaluated on target development examples. Similar target development tuning is used for the SVM comparisons. The paper therefore establishes transfer under a protocol with target-side label information for tuning. The scores do not establish what happens if configuration selection must also proceed without target annotations.
The task comes from a single review domain. In these data the transfer starts with English hotel reviews and ends with hotel reviews in the target languages. This shared domain can make a sentiment lexicon effective by emphasizing words useful for recurrent topics and descriptions. It also means that the reported results provide no direct estimate for cross-domain transfer or for the effect of a sentiment dictionary whose content is better matched to a different kind of text.
The way sentences are constructed sets further boundaries on what is measured. Each original annotation concerns an aspect. The sentence label is formed by selecting the most frequent label, and mixed-polarity cases are excluded. A traveler can praise a hotel’s location while criticizing its service, but the experiment evaluates sentences after removing the mixed cases and collapsing the aspect information. Success indicates the ability to assign an overall sentiment category under that procedure. Identifying which phrase expresses which opinion about which aspect is a different task.
The four-class labels are ordered in ordinary interpretation, yet the evaluation scores predicted classes as categories. Predicting Positive for Strong Positive and predicting Negative for Strong Positive are both errors, with different implications for a reader. Macro F₁ shows how well each class is retrieved, and it gives the rare categories equal influence in the average. The reported result alone cannot tell how often errors preserve direction and miss intensity. That motivates reading the binary and finer-grained experiments together, while the per-phenomenon analysis illustrates some ways the finer distinction breaks down.
The language comparison also mixes several causes. Spanish, Catalan, and Basque have different Wikipedia corpus sizes, different embedding vocabulary sizes, different bilingual lexicons, and different distributions of review labels. The authors suggest embedding quality and morphology as explanations for the trend across languages. The evaluation does not hold all the other quantities constant while changing either proposed cause. Its strongest language-specific claims therefore concern the measured performance on each dataset, with the proposed explanations remaining interpretations of the pattern.
Likewise, the main system comparisons vary both how the bilingual representations are learned and which classifier is used. BLSE’s classifier participates in learning its space, while the standalone baselines train SVMs on vectors created in a prior stage. The authors choose the SVM because it is the stronger comparison in their setup and use a shared classifier design in the qualitative analysis. The architectural ablation isolates the contribution of the target matrix within BLSE more directly than the headline comparisons isolate the contribution of every differing component between systems.
The ensemble scores show that combining predictions works under the reported procedure, but they leave the source of the benefit open. An ensemble can exploit several kinds of differences between its inputs, including which classes they favor or which sentences they find difficult. The reported complementarity does not specify which translation decisions or target embeddings account for it. The negation, modifier, and vocabulary categories suggest where the systems behave differently, while the ensemble comparison evaluates the usefulness of their predictions in aggregate.
Finally, the qualitative results have their own scope. A set of selected words and its average cosine similarities tell us about polarity in that sample. A visual map of selected Spanish categories shows how neighborhoods appear under a particular projection and visualization. Together with the sentence tests, these are several forms of evidence that BLSE incorporates target sentiment. The plots cannot establish that the projected space preserves general-purpose lexical semantics, or that every word’s sentiment association will carry over when context and domain change.
What came after
From polarity to emotion and aspect
Cross-lingual Emotion Intensity Prediction takes up a closely related transfer problem. In BLSE, the prediction concerns positive or negative sentiment, with strong labels supplying a coarser indication of intensity. The later work’s stated subject is prediction of emotion intensity across languages. The relationship is particularly visible in the difference between BLSE’s binary and four-class results. Once direction alone is insufficient, a useful shared representation has to preserve evidence about degree. The citation establishes the connection to the earlier study, while the later work’s title identifies the prediction problem it pursues. Cross-lingual Emotion Intensity Prediction.
MSMO-ABSA addresses cross-lingual aspect-based sentiment analysis using multi-scale and multi-objective optimization. Aspect-based prediction returns to the question of what the opinion is about. That is a meaningful change from BLSE’s sentence evaluation, which starts with aspect annotations but collapses them into a sentence label. The multi-objective part of the later work’s stated approach also has a clear point of contact with BLSE, which joins lexical alignment to sentiment prediction. The relationship concerns the joint treatment of transfer and sentiment. The citation and title leave open whether the later work uses the same projection matrices, dictionary loss, or averaging classifier. MSMO-ABSA.
Broader questions about cross-lingual evaluation
XTREME moves the evaluation question to a massively multilingual, multitask benchmark for cross-lingual generalization. BLSE evaluates a particular kind of transfer, from English hotel-review labels to sentence sentiment in several target languages. A multitask benchmark asks how cross-lingual generalization looks when the evaluation extends beyond a single prediction problem. BLSE’s own contrast between binary and fine-grained sentiment gives a concrete reason to care about that broader question. Transfer can look different as soon as the decision demanded of the classifier changes, even when the review domain is held fixed. XTREME.
XCOPA develops a multilingual dataset for causal commonsense reasoning. This changes the kind of information a cross-lingual evaluation is intended to recover. BLSE can classify some hotel-review sentences whose opinion depends on external knowledge, but its error category only identifies examples where readers need such knowledge to interpret sentiment. A causal commonsense dataset puts reasoning at the center of the task. The link between the works is their interest in how far a capability carries across languages, with a different target capability in each case. XCOPA.
A Call for More Rigor in Unsupervised Cross-lingual Learning addresses how evidence for cross-lingual learning should be assessed. BLSE offers a concrete illustration of the distinctions that matter in such an assessment. A study can withhold target sentiment labels from the training loss while still choosing settings with a labeled target development set. It can reduce dependence on translation of complete texts while using a translation service to prepare a word dictionary. Both facts affect the practical meaning of a low-resource result. The later title identifies the methodological concern, and the BLSE setup shows why documenting the role of each resource matters when interpreting transfer claims. A Call for More Rigor in Unsupervised Cross-lingual Learning.
These citations connect BLSE to work on broader multilingual evaluation, different prediction targets, and the accounting of supervision in transfer. They establish that the later authors refer to the paper. The stated scope of each work supports those comparisons, while the precise role of BLSE in its experiments or design is unspecified.
Cite
Cite as Jeremy Barnes, Roman Klinger and Sabine Schulte im Walde. 2018. Bilingual Sentiment Embeddings: Joint Projection of Sentiment Across Languages. Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).
@inproceedings{barnes2018bilingual,
title = {{Bilingual Sentiment Embeddings: Joint Projection of Sentiment Across Languages}},
author = {Jeremy Barnes, Roman Klinger and Sabine Schulte im Walde},
booktitle = {Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
year = {2018},
doi = {10.18653/v1/p18-1231},
url = {https://doi.org/10.18653/v1/p18-1231}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/barnes-2018-bilingual-sentiment-embeddings-joint-projection/