Exploring Distributional Representations and Machine Translation for Aspect-based Cross-lingual Sentiment Classification.
Paper · 2016 · Jeremy Barnes, Patrik Lambert and Toni Badia
Summary
A hotel guest can praise the room and complain about the service in the same sentence. A single sentiment label for that sentence would hide one of those judgments. Jeremy Barnes, Patrik Lambert and Toni Badia ask whether a classifier trained on English reviews can tell how strongly a Spanish reviewer feels about a particular aspect of a hotel. Their study concerns the polarity of opinions whose parts have already been identified. This lets them focus on what happens when the language of the review changes and the English supervision has to carry across. The broader motivation is to make fine-grained sentiment analysis possible where building a full set of language-specific resources would be costly.
The authors compare methods that transfer different kinds of information. A dictionary-based approach learns to move Spanish word vectors into an English vector space and retrieves a nearby English word for each input word. Jointly trained bilingual word embeddings instead give Spanish and English words coordinates that are intended to work together from the outset. A stacked denoising autoencoder learns a shared representation by trying to reconstruct paired sentences. The machine translation approaches turn Spanish test material into English. One translates the opinion phrases in isolation, while the other uses sentence context and constrains translation to preserve the organization of the annotated units.
On the Spanish OpeNER hotel-review test set, constrained statistical machine translation leads the cross-lingual comparisons with an accuracy of 75.76%. The stacked autoencoder reaches 74.5% in the setting listed at 49M English tokens of parallel training data, and Google Translate reaches 72.81%. The autoencoder also exceeds Google Translate on weighted F1 in that comparison. The simple dictionary mapping fares poorly, and the bilingual word embeddings fall between that mapping and the strongest approaches. The monolingual Spanish classifier, trained with Spanish sentiment labels, attains 80.86% accuracy on the same test set.
The results also depend on the data budget and on how the experiment measures success. In the 15.9M-token comparison, the autoencoder loses much of its advantage, while the bilingual embeddings yield a higher reported accuracy and a lower weighted F1 than in their 49M setting. The constrained translation system performs best on sentiment even though the paper reports a higher translation score for Google Translate. A learned bilingual representation can therefore compete with a phrase-translation baseline on this task, but the choice of representation, the quantity and domain of the bilingual text, and the treatment of opinion spans all matter to that comparison.
Deep dive: Exploring Distributional Representations and Machine Translation for Aspect-based Cross-lingual Sentiment Classification.
This study compares word embeddings, autoencoders and machine translation for classifying sentiment about specific aspects in hotel reviews. · about 36 minutes to read
The problem and its context
Where the opinion lives
A review often gives a reader several pieces of advice at once. Someone deciding where to stay may care about the room, the service or both, and the review can give different reasons to choose the hotel on each count. Aspect-based analysis attaches judgments to the features being discussed. It can therefore preserve information that disappears when the unit of analysis is an entire document. A sentence can have the same problem at a smaller scale whenever it expresses more than one judgment.
The paper separates the jobs that would go into a full system. An aspect or target has to be identified. The system may also need to identify who holds the opinion. Once these pieces and the relevant expression have been located, a classifier assigns the sentiment. The authors study this last job, taking the opinion unit as given. The label is about the particular judgment represented by that unit, and a review containing more than one opinion can supply more than one instance.
That division matters for understanding the kind of resource the study aims to transfer. Finding the portion of a review that matters to an aspect is one problem. Learning that a particular expression of dissatisfaction counts as negative, or strongly negative, is another. When an English example supplies that supervision, it can inform a Spanish prediction only if the Spanish input reaches the classifier in a form that carries comparable evidence. The paper asks how to create that form without relying on Spanish sentiment labels for training the cross-lingual system.
Why language-specific features are hard to carry over
The authors describe several ways earlier work approached monolingual aspect classification. Hu and Liu used WordNet-based methods, and Zhu and colleagues drew on sentiment lexicons. Moghaddam represented an aspect through an associated adjective and estimated its rating from neighboring instances. A system from Kiritchenko and colleagues gathered features from several levels of analysis, including part-of-speech tags, parsing, sentiment lexicons and surface patterns. It passed those features to a support vector machine, a classifier that uses the feature values to distinguish examples assigned to different classes. NRC-Canada-2014
Resources like these can do more than mark a review as favorable or unfavorable. A lexicon can supply prior evidence about a word's polarity, and a parser can help relate the word to the feature under discussion. The difficulty is that both depend on the language whose text they process. A good English lexicon supplies no direct feature for an unfamiliar Spanish expression, and an English parser does not provide the same analysis for Spanish text. Rebuilding each resource takes annotation, tool development and quality control. The paper treats cross-lingual transfer as a way to get more use out of work already done for a well-resourced source language.
The authors also distinguish their question from that of earlier research on aspects across languages. They describe work by Zhou and colleagues, Lin and colleagues, and Klinger and Cimiano as mainly addressing the discovery or extraction of aspects across languages, with less attention to improving sentiment classification. Hass and Versley used translation and word alignment to carry annotations associated with syntactic nodes from English to German. These approaches help explain why the fine-grained problem is partly about locating the material to which the opinion applies. The present experiments supply that material through annotation and concentrate on its classification.
What translating the text solves
Machine translation offers a direct way to reuse English supervision. If a Spanish review can be rendered in English, an English classifier can read that output. Another possibility from the earlier work is to translate annotated English examples or sentiment resources into a target language and train or apply a system there. The paper describes prior research on which direction to translate, what classifier to use and which features to extract from the translated text. Where a strong translation system is available, those are practical ways of moving existing resources across languages. Multilingual Subjectivity Analysis Using Machine Translation
Translation also changes the input on which the classifier depends. A poor rendering can obscure a judgment or alter the words the classifier would use to recognize it. The authors cite earlier research arguing that even good translation leaves a problem of adaptation. A word and its translation may differ in how often they appear in opinionated contexts or in the polarity they typically convey. Researchers had also used translation to project annotations or create resources for another language. Such projection requires some way to associate the translated material with the original labels. Learning Multilingual Subjective Language via Cross-Lingual Projections
For aspect-level classification, the association between a label and a particular part of the input is especially important. An unrestricted translation can move the words attached to an aspect, place them farther apart, or mix them with material from a different part of the sentence. Translating an opinion phrase on its own helps keep the resulting text attached to the right annotation, but removes surrounding words that may guide the translation. Lambert's earlier constrained approach was designed to keep the units identifiable while letting the rest of the sentence inform how they are translated. The authors present it as a demanding comparison because it requires a capable translation system for the language pair and takes specific steps to preserve the parts the downstream classifier needs.
Why use a shared representation
Previous work had also tried to reduce reliance on a single translation by providing several views of the data. Wan used machine translation to construct a bilingual view and let classifiers with complementary errors provide training information to one another through co-training. The paper notes a question raised about this line of work. Some of the gain might come from learning with unlabeled examples, which is a feature of the training procedure as well as a means of crossing a language boundary. Other bilingual approaches described by the authors could use sentiment lexicon information or unlabeled pairs of parallel or approximately parallel texts. Co-Training for Cross-Lingual Sentiment Classification
Another line of work made the representation itself bilingual. For document classification, Prettenhofer and Stein used recurring features as points of correspondence and represented documents through relationships involving those features. Klementiev and colleagues used bilingual distributed word representations for cross-lingual document classification. Zhou and colleagues brought a related idea to sentiment by learning a common representation with denoising autoencoders and using it as input to a linear classifier. The paper treats these as precedents with different units of analysis. Evidence that a shared representation works for documents or sentences gives a reason to try it on opinion units, whose smaller size can put more weight on each word.
The general intuition comes from distributional semantics. Words can be represented through patterns in the company they keep, so that words with related usage have related numerical representations. A bilingual method has to introduce a correspondence between usage patterns in the two languages. It can do that through dictionary pairs, through individual words aligned within translated sentences, or through pairs of sentences presented to a reconstruction procedure. These signals impose different requirements on the available text. They also ask the classifier to rely on different kinds of evidence, from an English word retrieved from a vocabulary to an internal representation with no English wording attached.
The study brings those alternatives to the same downstream prediction problem. This narrows a broad question about transfer to something that can be checked using labels already assigned to Spanish opinion units. The challenge for every system is to make the input to an English-trained classifier informative about the same judgment the Spanish reviewer made.
The method, step by step
Start with a labeled opinion unit
The sentiment examples come from the hotel-review portion of the English and Spanish OpeNER corpora. The annotations identify the holder of an opinion, its target and its sentiment. The paper groups these elements under the name opinion unit. This is the unit the classifier receives. Whole reviews provide the setting for the opinion, and in one translation condition the surrounding sentence also helps translate it, but the label being predicted belongs to the individual unit.
The available labels are strong positive, positive, negative and strong negative. The setup therefore asks the classifier about both direction and strength. A guess of positive on a strong positive example preserves the direction of the judgment while missing the class. The collection includes no neutral category, so the experiment is about deciding how to classify an already identified opinion from the given set of labels.
In the cross-lingual runs, the English training split supplies these labels. The authors prepare a representation of each English training unit, train a classifier and prepare the Spanish test units in a compatible form. The Spanish reference labels are used to score the predictions. A separate monolingual Spanish experiment uses Spanish labels for training and serves as a comparison on the same test cases. The cross-lingual test material is thus kept constant even when an approach changes how an opinion is encoded.
From annotated opinions to Spanish sentiment predictions
The steps in order.
The authors use sequential minimal optimization, or SMO, from the WEKA toolkit for the main experiments. This is the procedure used to train their support vector machine. Using the same classifier family makes the comparison easier to read, since the cross-lingual systems differ primarily in what the classifier receives. The feature inputs still vary. In the translation runs they are English unigrams, meaning features for individual words. In the representation runs they are dense vectors, computed by averaging word vectors or by encoding each unit with the trained autoencoder.
Give word sequences a fixed-size representation
An opinion unit can contain a short expression or a longer stretch of text. A classifier that expects vectors of a fixed size needs both kinds of units to have the same number of input coordinates. For the word-embedding approaches, the authors solve this by averaging the vectors of all words in a unit. A vector for a short expression and a vector for a longer one then have the same dimensionality as the underlying word embeddings. The authors cite earlier work on using unordered word representations for text classification. Deep Unordered Composition
avg = (∑ᵢ₌₁ⁿ oᵢ) / n
Here avg is the vector for the opinion unit. The symbol n is the number of word positions in that unit, i indexes a position, and oᵢ is the vector assigned to the word at that position. The summation sign ∑ adds those vectors coordinate by coordinate, starting at i = 1 and ending at i = n. Division by n gives the arithmetic mean of the vectors.
This operation preserves a contribution from every word supplied to it. A repeated word contributes at each position where it occurs, and two units with the same word vectors in a different order return the same average. The operation therefore has a clear tradeoff. It gives the classifier a compact description of the words that occur together within the opinion, while leaving the order and the relationships between particular positions implicit. The paper's later tests of summation and a sequence-based classifier explore alternatives to parts of this choice.
The source of each oᵢ differs between the dictionary and joint-embedding runs. In an English training unit, it comes from an English embedding vocabulary. In a Spanish test unit, the dictionary approach retrieves an English embedding after mapping the Spanish one into the English space. The joint-embedding approach can average Spanish embeddings directly because the two languages' coordinates were learned together. The averaging formula stays the same even though the two methods supply it with different evidence.
Use a dictionary to learn a mapping
The dictionary-based experiment is the paper's attempt to make the bilingual bridge with the lightest kind of supervision it tries. It starts from two independently trained sets of word embeddings. Each set is learned through Skip-gram, which uses the relationships between words and their surrounding context to learn vector coordinates. Both sets in this experiment are trained on the respective English and Spanish sides of Europarl v7. The authors set the dimensionality to 300 and the context window to five words, using ten negative samples. Negative samples give the training procedure contrasts with the contexts observed around a word.
An English vector and a Spanish vector have the same number of coordinates, but learning their coordinates separately gives no reason for a corresponding word to have similar numbers in each position. The bilingual dictionary supplies known correspondences from which to learn a transformation. The authors start with the 8000 most frequent words from English Wikipedia. They obtain translations from Bing Translator, keep its first suggestion for each word and remove entries judged erroneous or ambiguous. This leaves 4518 English–Spanish pairs for training the transformation. The recipe follows earlier work by Mikolov and colleagues on mapping between independently learned word spaces. Exploiting Similarities among Languages for Machine Translation
The paper illustrates what the mapping should accomplish with the Spanish word interesante and its English translation interesting. The Spanish vector, after transformation, should be close to the vector the English embedding assigns to the English word.
R(interesante) · W ≈ R(interesting)
The notation R(interesante) denotes the vector looked up for interesante in the Spanish space, and R(interesting) denotes the vector for interesting in the English space. The letter W is the learned translation matrix. The dot · denotes multiplying the Spanish word vector by that matrix, and ≈ means the result is intended to approximate the English vector.
The example describes the prediction for one word. The matrix is chosen by minimizing an aggregate error over the bilingual dictionary.
min_W ∑ᵢ₌₁ⁿ ‖x_eng,ᵢ − x_spa,ᵢ · W‖²
The expression min_W means to choose W to minimize the sum that follows. The index i identifies a dictionary pair, and n is the number of pairs in this objective. The vector x_eng,ᵢ is the English member's embedding, and x_spa,ᵢ is the Spanish member's embedding. The dot again indicates multiplication by the matrix. Subtraction gives the discrepancy between the English vector and the mapped Spanish vector. The double bars ‖ ‖ give the Euclidean length of that discrepancy, and ² squares it before the summation over dictionary entries. The authors use stochastic gradient descent to adjust the matrix.
The fitted matrix yields a point in the English space for a Spanish input word. The procedure then takes an additional step. It searches the existing English vocabulary for a nearby vector, using nearest neighbors with cosine as the comparison measure. Cosine similarity compares the directions of vectors. The English vector selected at this step is what represents the Spanish word when the authors construct the average for the test unit.
The term zero-shot learning concerns what the sentiment classifier sees. It is trained with English polarity labels and then asked to classify the mapped Spanish inputs. The matrix still depends on bilingual information from the dictionary. The authors' experiment therefore tests the adequacy of this particular route from paired words to labeled English features. There is an opportunity for error both in where the matrix places a word and in which English entry the search retrieves at that location.
Learn the two vocabularies together
The bilingual word embedding approach uses parallel sentences and word alignments. An alignment records which words in one sentence correspond to words in the other. The authors train on English–Spanish Europarl and on the parallel hotel-domain material used by Lambert. They report running 3 iterations of the Berkeley Aligner to obtain word correspondences. The idea is to give evidence about the relationship between languages to the embedding learner while it is constructing the representations.
The algorithm is Bilingual Skip-gram. Its within-language objective uses contextual information, while the bilingual objective exploits the correspondences in the paired text. In effect, the vector assigned to a word needs to serve within its own language and also take account of evidence from the other language. The authors work with 300-dimensional vectors and use ten negative samples and a five-word window. They train for 3 epochs, with an epoch meaning a pass through the training data. This version of bilingual training follows Luong and colleagues. Bilingual Word Representations with Monolingual Quality in Mind
Once the word vectors are trained, the authors average the English vectors within each English training unit. They create the Spanish inputs by doing the same with the Spanish vectors. The classifier can use the resulting averages because the coordinates come from the same bilingual learning procedure. Bilingual Skip-gram thus avoids the separate conversion from a mapped point to a particular English vocabulary item. Any mismatch between related Spanish and English expressions is still reflected in the coordinates the classifier receives.
This difference matters for diagnosing the methods. In the dictionary approach, a nearby English word can replace the information in a Spanish word with a specific, possibly inappropriate choice. In the bilingual approach, the Spanish vector reaches the average directly. Its usefulness depends on whether joint training brings the relevant meanings together and keeps distinctions that matter to sentiment. Learning that two words occur in similar surroundings is only part of that job. The authors return to the special difficulties posed by multiple meanings and opposite polarities in their analysis.
Learn a representation by reconstructing parallel sentences
The stacked denoising autoencoder starts with a different unit of bilingual supervision. It learns from whole paired sentences in Europarl. An autoencoder takes input through an internal representation and tries to reconstruct the original input from it. A lower-dimensional internal representation has to retain enough information to support reconstruction. Denoising adds a further constraint by deliberately damaging part of the representation during training, so successful reconstruction has to make use of information that remains available.
The paper describes the sentence input in terms of vocabulary-sized one-hot vectors. In that description, the vocabulary supplies the possible input positions, and the representation starts from indications of word identity. The learned part of the procedure is the conversion from that vocabulary-indexed input to hidden coordinates. It is those coordinates, rather than a lookup of individual word vectors followed by averaging, that will later supply the sentiment features. The prior approach the authors follow was applied at sentence level, making its use on opinion units a transfer across granularity as well as across languages.
The authors first create source and target autoencoders with 1000 hidden units, followed by a mapping to 500 hidden units. A hidden unit contributes one coordinate to a learned internal representation. The corruption level is 0.5. For each parallel input, they join the 500 source hidden units with the 500 target hidden units, then scale the resulting vector to length one. Concatenation places the two sets of coordinates in one vector, and normalization rescales that vector while preserving its direction. They then feed it to the bilingual autoencoder, again using a corruption level of 0.5.
Reconstruction is the training task at this stage. Parallel sentences give the encoder examples of related content expressed in the two languages, and corruption is intended to encourage it to find features that help recover the input in spite of missing information. The English polarity labels are introduced after this training, when the authors encode the OpeNER English opinion units using the learned weights. Each is represented by a 500 dimensional vector in the bilingual latent space. They train the sentiment classifier on these English vectors and encode Spanish test units for prediction in that space.
The separation between reconstruction and sentiment classification sets a limit on what the encoder is directly asked to learn. A feature can help recover a bilingual sentence whether or not it helps distinguish praise from complaint. The sentiment classifier can assign weight to useful coordinates when it sees labeled English units, but transfer depends on those coordinates retaining similar significance in Spanish. Training the encoder on parliamentary sentences and applying it to hotel opinions also asks it to generalize across domains.
Translate into the classifier's language
The two translation experiments prepare English word features on both sides of the classification problem. The training features come from the original English opinion units. Spanish units are translated into English and represented with the same kind of unigram features. In this setup, the translation system supplies the bridge by producing English text, and the classifier can score familiar words from that output.
With Google Translate, the authors translate the opinion phrases in isolation. Each output corresponds to the phrase submitted for translation, making its association with the existing opinion annotation straightforward. The output has to be produced without the rest of the sentence, however. A short phrase can leave a choice of meaning unresolved, and an English word selected in the absence of context may have a different effect on sentiment classification from one chosen with that context.
Lambert's constrained statistical machine translation method gets access to the sentence and applies constraints to keep the parts of the opinion identifiable. This arrangement aims to capture the contextual benefit of sentence translation without making the resulting opinion units difficult to recover. The English classifier still receives unigram evidence from the appropriate unit. The translation method also has hotel-domain text in the component that favors likely word sequences. The comparison with Google Translate changes the underlying translation system as well as whether it has context, whether it preserves the units through constraints, and how it has been adapted to the domain.
Across all of these routes, the stage that learns English sentiment comes after the choice of representation. That makes it possible to ask how well a bilingual resource supports an English decision rule on the Spanish test inputs. It also means that general translation quality, word retrieval or reconstruction can matter only insofar as the information they preserve is accessible to that rule.
Experiments and results
Labeled reviews and bilingual resources
The OpeNER hotel subset provides 2780 English training examples and 929 English test examples. The corresponding Spanish splits contain 2991 training examples and 999 test examples. The English training split is the source of sentiment supervision for all the cross-lingual approaches. The Spanish test split is the common evaluation set for those approaches and for the Spanish monolingual baseline. The English test split is used for the English monolingual result. It comprises different examples, so its score gives context for classification within English without controlling for the difficulty of the Spanish test cases.
The class distribution matters for interpreting all of these results. Positive is the largest category, strong positive is also common, and strong negative has the smallest share. The Spanish test split is 50.34% positive and 29.23% strong positive. Its negative share is 17.42%, and its strong negative share is 3.00%. In the English training split, the corresponding shares are 46.08% positive, 23.38% strong positive, 25.61% negative and 4.93% strong negative. The distribution of training evidence therefore differs from the distribution of the examples on which the cross-lingual classifiers are evaluated.
The paper describes both Wikipedia and Europarl resources. The Wikipedia dumps are from January 2016. The authors remove markup, lower-case the text, divide it into sentences and words, and retain punctuation because it can provide sentiment evidence. They report 118,900,197 sentences and 2,055,786,401 tokens for English Wikipedia, and 26,777,415 sentences and 506,612,108 tokens for Spanish Wikipedia. English Wikipedia also supplies the frequency ranking used to build the translation dictionary. The corpus overview associates Wikipedia with embedding creation, while the recipe for the zero-shot embeddings specifically names Europarl. The training source reported for that run is therefore more specific than the general description of the Wikipedia data.
The English–Spanish portion of Europarl v7 supplies aligned sentences from the European Parliament. Each side has 1,965,734 sentences. The English side contains 49,093,806 tokens, and the Spanish side contains 51,575,784. This is separate from the labeled hotel reviews. Its primary role is to supply evidence about the languages and their correspondence, with the role depending on the transfer approach. The bilingual embedding procedure also names parallel hotel-domain material, and the constrained translation system uses resources adapted to the hotel domain. The results table reports the sizes attached to transfer conditions as English tokens where applicable. Those labels are distinct from both the exact corpus totals and the counts of OpeNER sentiment examples.
How sentiment performance is measured
Accuracy counts the share of test units assigned their exact reference label. Precision for a class asks how frequently a prediction of that class is correct. Recall asks how frequently the classifier finds the units that actually belong to that class. F1 combines precision and recall for a class, and the paper reports precision, recall and F1 as weighted averages over the classes. These metrics address the same set of predictions from different directions. When a set of classes is unevenly represented, a weighted average also gives greater influence to the classes with more examples.
The monolingual benchmarks show how the same broad classification setup fares when sentiment supervision is available in the test language. On the Spanish OpeNER test set, the Spanish classifier reaches 80.86% accuracy and .800 weighted F1. On the English OpeNER test set, the English classifier reaches 82.22% accuracy and .820 weighted F1. The Spanish benchmark is the direct reference for the transfer systems because it classifies the same Spanish units. A gap from that baseline combines whatever happens in the cross-lingual bridge with differences in the sentiment supervision available to each system.
The strongest transfer results
The main comparison uses the 49M settings for the bilingual embeddings and the stacked autoencoder, and the 15.9M setting for constrained translation. It includes Google Translate with an unspecified training-data amount and the dictionary mapping with 4518 word pairs. Those conditions compare the methods as implemented by the authors. The common Spanish test cases and the English source of sentiment supervision anchor the comparison, while the resources available to each bridge differ.
Classification accuracy on the Spanish OpeNER hotel-review test set
Constrained translation leads the cross-lingual systems, followed by the stacked autoencoder.
The numbers
| System or setting | accuracy % |
|---|---|
| Spanish monolingual baseline | 80.86% |
| Constrained statistical machine translation (this paper) | 75.76% |
| Stacked denoising autoencoder, 49M | 74.5% |
| Google Translate, isolated phrases | 72.81% |
| Bilingual word embeddings, 49M | 59.76% |
| Zero-shot dictionary mapping | 50.25% |
Constrained translation has the strongest cross-lingual result on weighted F1 as well as accuracy. On the Spanish test set it records .779 weighted precision, .758 weighted recall and .755 weighted F1. The 49M autoencoder records .682 weighted precision, .590 weighted recall and .633 weighted F1. Google Translate records .670 weighted precision, .568 weighted recall and .615 weighted F1. The autoencoder's advantage over isolated-phrase translation thus appears in weighted F1 as well as the accuracy column. The constrained method leads both on this test, so the comparison that supports the paper's headline about competitive distributional representations is clearest against the isolated-phrase translation baseline.
The 49M bilingual embeddings produce .632 weighted precision, .598 weighted recall and .567 weighted F1 on the Spanish test set. Their accuracy ranking gives them a clear place between the dictionary mapping and the strongest systems. The weighted metrics qualify that picture. For instance, the embeddings have a higher reported weighted recall than the 49M autoencoder even though they have lower weighted F1 and accuracy. Such differences make it important to name the column when comparing a setting or drawing a conclusion about a method. The aggregate figures cannot identify whether the same Spanish units are classified correctly by both.
The paper describes the zero-shot experiment as ineffective. The dictionary system's reported weighted F1 is .434 in the main result column and .351 in the companion column, both on the Spanish OpeNER test set. Both entries list 4518 word pairs. The paper does not specify a distinct dictionary size or a distinct mapping procedure for these entries. The two scores can be read as weak results in the reported comparisons, but their difference does not establish the effect of any specified change to the dictionary.
There is also a reporting issue in the results table. Under the usual class-support weighting on a single set of predictions, weighted recall corresponds to accuracy, expressed on a different scale. Several rows have weighted recall and accuracy entries that do not correspond in that way. The paper identifies the weighted columns in the table caption and gives no further account of the discrepancy. The figures here retain the reported entries by column. Their exact relationship is uncertain, which makes comparisons of the overall pattern more defensible than attempts to infer a breakdown of individual errors from the table.
The authors also discuss translation quality using BLEU, a measure of overlap between translated text and reference translations. In the translation comparison the paper reports 48.6 BLEU for Google Translate and 45.3 for constrained translation in a true-case setting. A separate note introducing the constrained method describes the language direction differently from the later comparison. The paper's consistent qualitative point is that the system with the higher reported BLEU receives the lower sentiment score. The BLEU values should be read as the paper's translation comparison, separately from the OpeNER classification metrics.
This ranking is understandable given the different jobs the metrics perform. BLEU evaluates the wording of a translation against a reference. The classifier has to recognize sentiment for a particular annotated unit. Preserving the expression that carries the judgment and keeping it associated with the unit can matter greatly to classification, even when the translation has less overlap with a reference elsewhere. The experiments establish the different rankings, while the differences between the translation systems leave room for several explanations of their cause.
The lower-data comparison
The authors repeat the comparison using a parallel-data budget measured at 15.9M English words. Constrained translation is already listed at that amount and appears with the same result in both settings. The two important changes in the weighted F1 chart are from 49M to 15.9M for the bilingual embeddings and for the stacked autoencoder. Google Translate has no matched budget reported. The dictionary system uses word pairs as its bilingual resource and cannot be put on the same token scale from the listed count.
Weighted F1 on the Spanish OpeNER test set by transfer setting
At the lower parallel-data budget, the autoencoder falls behind the bilingual embeddings.
The numbers
| System or setting | weighted F1 |
|---|---|
| Constrained translation, 15.9M (this paper) | .755 |
| Stacked denoising autoencoder, 49M | .633 |
| Bilingual word embeddings, 49M | .567 |
| Bilingual word embeddings, 15.9M | .473 |
| Stacked denoising autoencoder, 15.9M | .338 |
For the bilingual embeddings, the 15.9M condition has .49 weighted precision, .468 weighted recall and .473 weighted F1 on the Spanish test set. Its reported accuracy is 62%, compared with 59.76% in the 49M condition. The authors describe the method's performance as stable with less data. That description is most plausible when read as a comparison with the much larger deterioration the autoencoder exhibits, with the qualifications that the embedding system's weighted scores decline and that its accuracy moves differently. The lower-data experiment does not produce a uniform gain or a uniform loss across the reported columns for bilingual embeddings.
The 15.9M autoencoder has .254 weighted precision, .4 weighted recall and .338 weighted F1. Its reported accuracy is 55%, below the 74.5% reported at 49M. Its position relative to the embeddings therefore changes in both weighted F1 and accuracy. At 49M the autoencoder is the strongest system without full-text translation of the test units. At 15.9M the bilingual embedding system is ahead of it on those two measures. The relative usefulness of the latent representations depends on which data condition the comparison describes.
Constrained translation's result at 15.9M also puts the larger token budget in perspective. It exceeds the representation methods even when their reported training data reach 49M English tokens. The authors describe the constrained system's parallel material as higher quality and in-domain, and their translation setup is adapted to hotel data. The experiment compares methods that make different uses of different resources. The result shows that the larger corpus settings here are no guarantee of a better transfer system. It leaves the value of extra text of otherwise comparable quality and domain as a separate question.
What the ablations show
Parallel data amount and parallel data usefulness
The parallel-data comparison is the paper's clearest intervention on a training condition. The sentiment task stays the same, and the authors change how much parallel material is available to the representation methods. For the autoencoder, the lower-budget setting is substantially less effective. That finding matters because reconstruction can appear attractive in a setting with limited labeled data. It uses bilingual sentences for one stage and only then introduces the English labels. The results show that the stage without sentiment labels still carries a material data requirement in this setup.
Bilingual Skip-gram shows a weaker dependence on the larger setting if judged by the reported accuracy column. Its weighted F1 still benefits from the larger budget. This is reason to distinguish the two when talking about robustness. A method can retain a comparable rate of exact matches while changing which classes or examples it handles well. The table provides aggregate evidence about that possibility, with no class-level breakdown to say what happened here. The clearest common observation is that reducing the budget hurts the autoencoder more severely on the measures reported.
The constrained translation result is useful for interpreting the size comparison, but it is not an ablation of parallel-data amount within that method. Its training condition remains at 15.9M. The translation and representation systems also differ in domain adaptation, feature inputs and the objectives that their bilingual training serves. The authors suggest that smaller, well-chosen data collections might be useful for future representation learning. Their comparison gives a practical reason to consider the relevance of the text, while leaving the separate effects of selection, size and tuning unmeasured.
Translating a unit with and without its surroundings
Google Translate and constrained translation give a comparison between two ways to handle the opinion unit. In the first, the annotation defines the phrase submitted for translation. In the second, the system can take the sentence into account and use constraints to keep the opinion material recoverable. The latter performs better for sentiment. This fits the authors' account of a fine-grained task in which both the interpretation of a phrase and its association with the right annotation matter.
There are several changes between the two setups, so the comparison cannot assign the advantage to any one of them. Giving the same system both isolated phrases and sentences would vary its access to context. Turning constraints on and off within the same sentence translation system would vary the treatment of opinion boundaries. Changing the hotel adaptation while keeping the rest fixed would address the domain factor. The paper reports the whole-system comparison, which shows the practical outcome of bundling those choices together.
The contrast with BLEU supports a second, narrower reading. A translation system can rank higher on a conventional translation measure yet supply less usable evidence to the sentiment classifier. The paper does not show that context or constraints are responsible for that reversal on their own. It does show that judging a bridge by the downstream task can give a different answer from judging how closely its text matches reference translations. At aspect level, that is a consequential difference because the relevant part of the translated text may be short.
Averaging, summing and retaining sequence
The main word-vector runs use averages. The authors also try summing the vectors and report slightly worse results. The two procedures use the same contributions from each word but scale their combination differently. For a given opinion unit, the sum keeps the magnitude associated with the total contribution. The mean divides by unit length. Across variable-length units, a classifier presented with sums can therefore encounter a change in magnitude simply because one unit offers more words.
The authors take this as a possible explanation for the advantage of averaging. No per-setting scores are supplied for the sum comparison, and the paper does not establish that length is the cause. The result supports the choice of a mean in the main runs without showing that a mean captures everything needed for sentiment. In particular, both sum and mean leave the word vectors unchanged when their order is rearranged. They can use the presence of an important word through its contribution to the combined vector, but neither assigns that word a different vector according to its position in the unit.
A Long Short-term Memory network, or LSTM, offers an ordered alternative. It reads a sequence of word vectors and updates a hidden state as it goes. The authors test a hidden layer of 400 dimensions and use the final state to produce a softmax probability over the sentiment classes. Softmax turns the final class scores into a distribution over the available labels. In principle, the sequence can preserve distinctions that disappear under averaging. In the reported zero-shot and bilingual embedding experiments, the LSTM is less competitive than the support vector machine.
The authors suggest that a system trained on English sequences may find patterns that the Spanish transfer does not preserve. They also suspect that the labeled training set may be too small to train the recurrent classifier easily. Both explanations are plausible in this design. A richer classifier can take advantage of more structure when it is available in a form that generalizes to test inputs. If the transfer alters that structure, or if the source examples are too few to establish stable patterns, the extra capacity need not help. The paper does not vary training-set size to distinguish those explanations.
Changing the classifier on fixed-length inputs
The authors also try a deep averaging network in the zero-shot and bilingual embedding experiments. It uses a feed-forward classifier after the input is combined, with three hidden layers of 300 dimensions. The classifier processes a fixed-length representation through successive transformations. This changes the decision rule while keeping the basic strategy of learning from pooled word evidence.
The paper reports an improvement for the zero-shot setting and results similar to the support vector machine elsewhere in the comparison. The improvement shows that the choice of classifier can influence how much useful information the dictionary mapping yields. The report gives no numeric scores for these trials, so it does not establish how large the improvement was or how it affected the zero-shot system's position relative to the stronger bridges. The qualitative comparisons support retaining the simpler classifier for the main comparison and treating downstream classifier choice as one factor in the weaker setting.
The head-to-head classifier tests also help separate two kinds of architectural choice. The feed-forward experiment asks whether a more elaborate decision over averaged input helps. The LSTM experiment asks whether reading the vector sequence in order helps. The evidence here favors neither change consistently. That leaves the quality of the cross-lingual input as a plausible reason for the outcome, along with the amount of source-language supervision. A classifier can only exploit distinctions that survive the representation it receives.
What the error observations explain
In the dictionary experiment, the authors observe that certain English vectors become nearest neighbors of many mapped Spanish words, in spite of the words sharing little meaning. This is known as hubness. A word that acts as a hub can be returned repeatedly by the retrieval step even when it is a poor translation. Once those repeated choices are averaged into opinion vectors, different Spanish inputs can become harder to distinguish. The paper relates this observation to earlier research on the behavior of linear maps between embedding spaces. Hubness and Pollution
The authors also distinguish their use of mapping from the earlier dictionary-induction setting. In the earlier work, a simple mapping could help fill gaps in a dictionary and could be used alongside other sources of evidence. In this sentiment experiment, every Spanish opinion unit has to go through the bridge. A wrong retrieval on a word that expresses the opinion can therefore change the classifier's input at a consequential point. The experiment does not compare a hubness correction or test the classifier directly on projected vectors without English-neighbor retrieval, so it cannot estimate how much each stage contributes to the poor result.
For jointly learned embeddings, the authors discuss ambiguity and antonymy. If one representation covers several uses of a word, the vector may blend a sentiment-bearing sense with other senses. Words with opposing polarity can likewise occur in similar contexts and end up close together. A representation that places antonyms near one another can be useful for capturing similarities in grammatical behavior, yet pose a problem for a classifier whose purpose is to separate their evaluative meanings. The paper proposes prior word-sense disambiguation and adding an objective or feature space that pays attention to sentiment. These are explanations and proposed tests, without reported ablation scores for either change.
For the autoencoder, the proposed change is to train on shorter bilingual or approximately aligned sequences obtained through word alignment, bringing the reconstruction unit closer to the opinion unit. That suggestion addresses a difference in granularity between learning from aligned sentences and classifying pieces of a review. Taken together, the paper's error discussion identifies ways information can be lost during neighbor retrieval, in the geometry of word representations, and in the move from sentence training to unit classification. Only some of these explanations receive a controlled test in the reported experiments.
Limitations
Limits identified by the authors
The authors restrict the task to assigning sentiment to existing opinion units. They leave the construction of a full cross-lingual aspect system for future work. That would require identifying opinion holders and the entities or features being judged, as well as classifying sentiment. The unit-level scores therefore assume access to the annotations that make the review divisible into the judgments of interest. An end-to-end evaluation would also have to account for cases where a system finds the wrong feature or misses an opinion entirely.
They also stress that translation depends on the availability and quality of a system for the relevant language pair. The constrained translation approach benefits from tooling and from hotel-domain resources. Other language pairs may lack the parallel material or the translation quality that makes this configuration possible. Conversely, the experiment with the autoencoder shows how a bilingual representation can become less competitive when it receives less text. The alternatives make different demands on linguistic resources, and the study's budget comparison measures some of those demands while holding the language pair fixed.
For the distributional approaches, the authors name several ways the available representation can fail. Linear mapping followed by retrieval can repeatedly substitute an unsuitable English neighbor. Joint word embeddings can blend senses or place antonyms near each other. An encoder trained to reconstruct sentences sees units at a different scale from the ones the classifier labels. The authors suggest sense disambiguation, sentiment-aware training and reconstruction at a finer granularity as avenues for future study. They also propose combining translation and vector information in an ensemble and extending the evaluation to Catalan and Basque. These appear as proposed investigations.
Limits implied by the evaluation
The results concern English-to-Spanish transfer for hotel reviews. This is informative about a language pair for which the authors can draw on Wikipedia, substantial parallel parliamentary text and, in some conditions, parallel hotel material. A lower budget within that setting tests sensitivity to having less parallel text. Languages with scarce resources can differ in the availability of dictionaries, the reliability of translation, the fit between parallel corpora and the target domain, and the amount of monolingual text. None of those differences is measured simply by applying the 15.9M budget to this language pair.
The direction of transfer is also part of the result. The cross-lingual classifier learns from English labels and predicts Spanish sentiment. Reversing the direction would change which language provides labeled examples and which one supplies the test text. The class distributions of the two hotel corpora already differ, and the Spanish and English split sizes are different. The English monolingual score consequently cannot stand in for a reverse-direction evaluation. The Spanish monolingual result is the suitable reference for the direction the authors actually test.
The four-class task measures distinctions within opinionated material. It excludes the decision of whether a target has a neutral description or whether an expression carries sentiment at all. The test distribution also favors positive categories. The absence of per-class scores is particularly relevant for strong negative examples, whose share is small. A method could perform well overall while handling that class unevenly, and the aggregate results cannot resolve this. Similarly, the reported weighted F1 and accuracy disagreements in some rows limit attempts to infer class behavior from metric movements.
Some of the representation recipes are described less fully than would be necessary to reproduce each condition from the results table alone. The paper reports the main settings for training the embeddings and autoencoders, and it identifies the labeled splits and parallel sources. The table gives English-token budget labels for the applicable runs, but the account does not identify exactly how the lower-budget material was selected for each representation learner or explain every difference between table entries. Google Translate has no parallel-training amount attached to its score. This leaves the equal-budget comparison most interpretable for the systems with explicitly measured amounts.
The numerical results come from the reported splits. The paper gives no uncertainty estimates or repeated-run variation alongside the main scores. The ordering between the constrained method and the 49M autoencoder on accuracy is therefore an observed ordering on this test. The paper gives enough information to say which score is higher and which method also leads on weighted F1. It does not establish how stable the accuracy ordering is across a fresh sample of hotel reviews, a different parallel subset or repeated training.
The experiment also bundles design decisions that a narrower comparison would vary individually. Constrained translation uses context, keeps opinion units identifiable and benefits from domain adaptation. The bilingual embeddings and autoencoder use different learning objectives, different kinds of alignment and different procedures for representing the opinion unit. Their comparison is valuable as an evaluation of working systems, but the data do not establish how much of a particular score comes from each component. The separate investigations of composition and classifier choice provide some evidence within the word-vector methods, and several other questions remain at the level of hypotheses.
Finally, reconstruction quality and vector similarity serve as means to a downstream end. The paper evaluates that end directly, but its reported analyses do not trace individual Spanish errors back to a particular missing feature, mistranslation or alignment. Hubness is an observed problem for the mapping, while the proposed roles of sense ambiguity, antonymy, sentence granularity and insufficient training examples remain less isolated. The strength of the study is the common classification benchmark across several distinct ways of transferring information. Its explanatory reach is narrower than the breadth of that benchmark comparison.
What came after
Cross-lingual transfer as a response to sparse labels
Akhtar and colleagues' later work explicitly frames data sparsity in aspect-based sentiment analysis as a problem to address through cross-lingual and multilingual methods. That framing continues a question raised by Barnes and colleagues. If annotated judgments are expensive to collect in each language, evidence already available in other languages may help support aspect-level analysis. Barnes and colleagues examine a particular version of that question by fixing the direction of transfer and comparing ways of connecting the input representations. The later work's title places the emphasis on sparsity itself and identifies both cross-lingual and multilingual approaches to it. Its citation connects it to the earlier comparison, with no specific adoption of the dictionary mapping, autoencoder or translation constraints established. Solving Data Sparsity for Aspect Based Sentiment Analysis Using Cross-Linguality and Multi-Linguality
Multilingual data for aspect-level evaluation
Wu and colleagues' M-ABSA cites the earlier study in work centered on a multilingual dataset for aspect-based sentiment analysis. A dataset addresses a different part of the same resource problem. Barnes and colleagues rely on existing English and Spanish annotations to ask whether an English classifier carries over. Multilingual data make it possible to pose related questions wherever the dataset supplies suitable annotations, with the exact evaluations depending on what the resource contains. The established link here is the citation and the later paper's focus on multilingual data for the same broad aspect-level task. It does not establish that M-ABSA reproduces the OpeNER comparison or uses one of its transfer procedures. M-ABSA
These two citing works put the resource question in different places. The first treats cross-language information as a way to address sparse aspect-sentiment data. The second names multilingual dataset construction as its contribution. In Barnes and colleagues' experiment, bilingual resources determine what part of the Spanish opinion reaches an English classifier, and target-language annotations determine whether that transfer can be assessed. The later works connect to those two needs through their stated subjects, while leaving the earlier paper's measured findings specific to the English–Spanish hotel-review experiment.
Cite
Cite as Jeremy Barnes, Patrik Lambert and Toni Badia. 2016. Exploring Distributional Representations and Machine Translation for Aspect-based Cross-lingual Sentiment Classification. Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers.
@inproceedings{barnes2016exploring,
title = {{Exploring Distributional Representations and Machine Translation for Aspect-based Cross-lingual Sentiment Classification.}},
author = {Jeremy Barnes, Patrik Lambert and Toni Badia},
booktitle = {Proceedings of COLING 2016, the 26th International Conference on Computational Linguistics: Technical Papers},
year = {2016},
url = {https://aclanthology.org/C16-1152/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/barnes-2016-exploring-distributional-representations-machine-translation/