Elamur Research

Aspect-Based Sentiment Analysis as a Multi-Label Classification Task on the Domain of German Hotel Reviews

Paper · 2023 · Jakob Fehle, Leonie Münster, Thomas Schmidt et al.

Summary

A guest can praise the staff and complain about the location in the same sentence. A single verdict on the review loses the connection between each opinion and what it concerns. Aspect-based sentiment analysis preserves that connection. This paper asks how well it can do so for German hotel reviews when the task is framed as text classification. The classifier receives a sentence and returns a set of labels. The most detailed labels identify what the guest is discussing, which feature of it they are discussing, and whether their assessment is positive, neutral, or negative.

The authors collected 1,512 German-language TripAdvisor reviews of hotels in Regensburg. They selected 5,000 sentences for independent annotation by pairs of readers and then curated their decisions. The resulting dataset contains 4,254 sentences with identifiable aspects and 5,617 annotations. Each annotation can be read at different levels of detail. A remark about sleeping poorly because of noise, for instance, can be represented as a comment about rooms, a negative comment about rooms, or a negative comment specifically about room quietness. The reader who assigns the label works at sentence level. The annotation records what the sentence conveys without requiring the reader to mark the exact words that convey it.

The authors compared three pretrained German BERT classifiers through cross-validation on the hotel dataset. The strongest, deepset-gbert-large, reached a micro F1 of 0.906 for identifying broad aspects and 0.809 for identifying broad aspects together with their sentiment. Micro F1 pools correct, missed, and extra label decisions across classes before calculating a score. The same classifier reached 0.651 on that measure when it also had to identify the attribute. Its macro F1, which gives each class equal weight, was 0.173 on this detailed task. It made a correct prediction for 17 of the 53 evaluated classes.

The study thus establishes how well this sentence-level approach works at several resolutions on the same collection. Broad labels such as rooms or service were recognized well. Detailed predictions concentrated on combinations that occurred frequently, especially positive ones, and human annotators also agreed less often as the labels became more specific. The strongest comparisons are within the Regensburg corpus, where the authors could vary what the classifier had to predict. Comparisons with earlier hotel and German-language studies help place the scores, but those studies used different categories, datasets, and definitions of success.

Deep dive: Aspect-Based Sentiment Analysis as a Multi-Label Classification Task on the Domain of German Hotel Reviews

The study tests how well multi-label classification identifies what guests discuss in German hotel reviews and how they feel about each aspect. · about 31 minutes to read

The problem and its context

What a hotel review tells you

Knowing whether a review is favorable can be enough to summarize the prevailing tone of a collection. It answers a different question from whether guests praise the food, find the rooms noisy, or consider the hotel expensive. Those judgments may all appear in the same review. They may even appear in the same sentence. A system that gives the sentence a single polarity, meaning an evaluative direction, has to compress several potentially independent judgments into one decision. Keeping track of which judgment belongs to which subject is the problem that aspect-based sentiment analysis addresses.

The distinction matters even when the direction of the sentiment is clear. A complaint about noise is easy to recognize as unfavorable, but the place where the noise occurs changes what the complaint tells a reader. The paper's annotation scheme distinguishes traffic noise, noise in the dining area, and noise that affects sleep in a room. It can represent these through a shared attribute, quietness, attached to different aspects. A summary of complaints about location would then have a different meaning from a summary of complaints about rooms, even if guests used similar words.

A related distinction concerns what the analyst wants the system to return. Consider a review sentence that comments on the helpfulness of the staff. One project may want the exact phrase referring to those staff members. Another may want the category Service. A third may want Service linked to a positive sentiment. The corresponding tasks are what the authors call “aspect term extraction” and two forms of classification, “aspect category classification” and “aspect sentiment classification.” A span of text, a category, and a category associated with an evaluation are different outputs. A study can do well at one of these and leave the others open.

Fehle and colleagues focus on the category and sentiment outputs. Their input is a sentence from a review, and their output describes the subject and sentiment at the chosen level of detail. There are no marked target phrases supplied to the classifier. A sentence can support several output labels, so the authors formulate the problem as multi-label classification. That formulation retains the association between an opinion and its subject while making sentence-level supervision possible.

How earlier research defined the task

The paper traces much of the growth of aspect-based sentiment analysis to the 2014 SemEval task, the 2015 SemEval task, and the 2016 SemEval task. The shared tasks used English restaurant and laptop reviews. Their definitions evolved. Early annotations included the words denoting the aspect, a category, and a polarity. Subsequent editions distinguished the entity under discussion from the feature of that entity. This makes it possible to ask a more specific question about an opinion, and it increases the number of labels that an annotation scheme has to support.

The paper describes a wider range of English datasets that grew up alongside those benchmarks, including hotel reviews, financial microblogs, and product reviews. These resources differ in what they mark and how finely they distinguish opinions. The authors also describe a shift in methods. Earlier approaches often relied on hand-written rules, word counts, or lists of sentiment-bearing words. Later work made more use of neural architectures and attempted to combine subtasks within one system, including approaches such as the unified generative framework for aspect-based sentiment analysis.

Hotel reviews present a particular opportunity and a particular measurement problem. A review platform may already ask users to rate individual features of a stay. Earlier hospitality studies cited by the paper used such ratings as a source of labels for reviews or aspects. That can supply supervision without requiring a person to read and label every sentence. It also defines the evidence differently. A rating records a judgment about the stay or about a feature at the level requested by the platform. A sentence annotation records the judgment attributed to a particular piece of review text. The new corpus uses the platform's categories to help design the scheme and relies on readers to decide which categories and sentiments the text expresses.

Some earlier hotel studies also divided the task into stages. The paper describes Chang and colleagues using support vector machines and tree kernels to classify categories. It describes Tran and colleagues extracting phrases and their polarity, then using topic information to identify categories. Qiang and colleagues took the reverse approach, inferring a review’s overall sentiment from information about its individual aspects. These designs reflect different goals. The present study starts with a sentence and asks which categories or category–sentiment combinations can be assigned directly.

Why German reviews were a separate empirical question

The authors describe German as having fewer ready-to-use resources for this task and fewer evaluated methods. The available corpora also cover different kinds of text. SCARE contains app reviews, USAGE contains Amazon reviews, and PotTS concerns political messages on Twitter. Other examples in the paper include historical plays and the TDDL corpus on a German-language literary event. The schemes differ across these collections. A collection that marks an opinion target and its accompanying expression, for example, supplies a kind of supervision that a sentence-level set of hotel categories does not.

The most direct precedent is GermEval 2017, a German shared task based on feedback about Deutsche Bahn. It supplies examples organized around entities, attributes, and polarity. Aßenmacher and colleagues treated the problem as multi-label classification with BERT, building on an earlier neural classifier. The related-work discussion reports their treatment of aspects and aspect–polarity combinations. When the hotel paper later compares scores, it identifies the class inventories used for those comparisons. The precedent gave the authors a reason to try the same general formulation in hospitality. It did not supply the hotel-specific labels or a test of whether a system trained in transportation would work on hotel reviews.

The cost of annotation is part of the motivation. For a task that requires locating words, a reader may have to mark the phrase that identifies the target, mark the phrase that conveys the judgment, and decide which phrases belong together. Sentence-level classification removes the span decisions and retains the relationship within each label. It still asks the reader to interpret the sentence and choose an aspect and polarity, with an attribute where the scheme calls for it. The study investigates what that form of supervision can support in a German review domain that, to the authors' knowledge, had received little attention.

The method, step by step

From reviews to sentences

The authors began with 1,512 German-language TripAdvisor reviews covering five mid-class hotels in Regensburg. They looked for hotels with substantial review activity and a range of distances from the city center. The distance criterion was intended to give writers reason to express different views about location. The hotels also needed comparable features, such as restaurants and parking, so that recurring topics would make sense across establishments.

The reviews were split automatically into sentences, and the authors inspected the divisions by hand. They corrected boundaries when separating the text would make the guest's statement hard to understand. In rare cases an item consequently contained up to two sentences. The paper calls the items sentences throughout. At this point the collection comprised 21,182 items. For the annotation study, the authors organized the material into chunks of 200 units, allocated the chunks to participants, and obtained a subset of 5,000 items with paired annotations. The source review count and the annotation count therefore refer to different stages of the corpus.

Starting from sentences changes what the classifier is asked to interpret. A whole review may establish that a guest is discussing the room and then refer to it indirectly. A single sentence frequently contains enough context for a label, but the representation emphasizes what a reader can identify from that item. Manual boundary correction helped preserve comprehensible statements at the preparation stage. The paper does not describe a classifier that receives the surrounding review to resolve references beyond the item.

From German hotel reviews to sentence-level predictions

The steps in order.

From German hotel reviews to sentence-level predictionsStep 1: Collect reviews from comparable hotels1. Collect reviews from comparable hotelsStep 2: Split reviews and check sentence boundaries2. Split reviews and check sentence boundariesStep 3: Label aspects, attributes, and sentiments independently3. Label aspects, attributes, and sentiments independentlyStep 4: Curate both sets of annotations4. Curate both sets of annotationsStep 5: Encode label presence at each granularity5. Encode label presence at each granularityStep 6: Fine-tune BERT classifiers on training folds6. Fine-tune BERT classifiers on training foldsStep 7: Evaluate predicted labels on held-out folds7. Evaluate predicted labels on held-out folds

Designing the labels

An aspect names the part of the hotel experience being discussed. The scheme uses Hotel, Rooms, Location, Service, and Food & Drinks. An attribute describes what the guest is assessing within that aspect. The attribute inventory consists of General, Price, Quietness, Cleanliness, and Style. A polarity says whether the assessment is positive, neutral, or negative. The complete annotation is a tuple, an ordered grouping in which the role of each entry is fixed. Rooms, Quietness, Negative is a possible tuple because Rooms is the aspect, Quietness narrows the subject, and Negative gives the judgment.

The categories grew out of the rating fields on TripAdvisor and categories used in earlier hospitality research. The platform's fields gave the authors a starting point because guests might also use those categories when writing their reviews. Earlier studies supplied additional distinctions relevant to hotel stays. The resulting scheme is specific enough to distinguish features of the same aspect. It also gives a broad assessment a place through General. For instance, a remark about friendly or helpful staff can fall under Service with the General attribute, while a remark about sleep disturbed by noise can fall under Rooms with Quietness.

The scheme specifies which aspect–attribute pairs are valid. In the appendix, Location combined with Quietness covers traffic noise, and Location combined with Price can cover transport or taxis. Quietness under Food & Drinks covers noise in the dining area or a lack of privacy there. Style is also broader than the word might suggest. Under Rooms it can cover size, comfort, and furniture, while under Food & Drinks it can cover food options and extras. These definitions matter when reading a result for a label. A classifier has to recover the same distinction that annotators were instructed to use, even when the review employs quite different vocabulary.

A sentence can contain any number of distinct applicable tuples within the inventory. A favorable remark about service and an unfavorable one about location can both be represented. Readers could also skip a sentence if it contained no identifiable aspect. A neutral label is an assessment assigned to an identifiable aspect. Skipping leaves the item without an aspect annotation. Those decisions have different consequences for the eventual dataset because the reported experiments use the curated sentences in which an aspect could be discerned.

Getting from two readings to a reference dataset

The linguistic annotation study involved 27 students, each responsible for 200 or 400 sentences. The instructions explained the purpose of the work, listed allowed combinations, and supplied examples. The readers entered labels with pre-defined options in INCEpTION. Constraining the options reduced the opportunity to enter labels outside the scheme. It still left readers with the substantive decisions about what the sentence referred to and how the guest was evaluating it.

Each item was read independently by two annotators. Their answers are sets, which makes agreement more complicated than in a task that asks for a single category. If both readers mark service but one also marks location, their readings overlap. If they mark service with different sentiments, their answers still agree at the broad-aspect level. The authors used Krippendorff's α to summarize agreement with MASI distance, a way of comparing set-valued answers. In its usual form, the agreement coefficient is expressed as follows.

α = 1 − Dₒ / Dₑ

Here α is Krippendorff's agreement coefficient, Dₒ is the disagreement observed between the annotations, and Dₑ is the disagreement expected by chance. The number 1 is the value attained when observed disagreement is absent and expected disagreement is positive. The slash denotes division, and the minus sign subtracts the disagreement ratio from 1. In this study the distance used to assess disagreement reflects how the sets of labels relate to each other.

The authors worked with these independent decisions first and curated all 5,000 items afterward. They accepted matching tuples. When a tuple appeared in only one reading, its inclusion was decided individually. They also examined disagreements involving the aspect, attribute, or polarity and decided what the reference annotation should contain. This is the distinction between measuring how two readers interpret the instructions and building the reference labels used in the experiments. The classifier was scored against the curated judgments. The agreement figures describe the independently produced annotations that preceded curation.

The curated corpus contains 4,254 sentences. A further 746 sentences had no clearly identifiable aspect and were left out. The retained sentences carry 5,617 annotations. That annotation total is a count of tuples before converting them into classification targets. It is distinct from both the number of sentences and the number of label classes. An item with several different opinions can contribute several tuples. When the task uses fewer fields, some of those tuples may be represented by the same output label.

Representing different questions about the same sentence

The authors built the experiments from four views of the annotations. The broadest one asks which of the 5 aspects occur. Including attributes gives an inventory of 18 aspect–attribute pairs. Asking for aspects with polarity instead gives 15 aspect–polarity classes. Combining both kinds of detail gives a scheme with 54 possible tuples. The neutral Food & Drinks–Quietness combination was absent from the dataset, leaving 53 classes in the evaluated full-tuple task.

These views are projections of the same kind of annotation. Take the paper's example of a guest who compliments the staff and considers the hotel's location inconvenient. For broad aspects, the target includes Service and Location. For aspect with polarity, it includes positive Service and negative Location. A positive sentiment somewhere in the sentence cannot compensate for assigning it to the wrong aspect. The class being predicted is the combination. At full detail, the attribute also has to be part of the correct combination.

For each sentence and each task, the authors use a binary indicator for every available class. One way to write the encoding is as follows.

y꜀ = 1 if c ∈ S, and 0 otherwise

Here c is a class in the current task's inventory, S is the set of reference labels for the sentence at that granularity, and y꜀ is the corresponding entry of the target vector. The symbol ∈ means that c belongs to S. The value 1 marks a present class and 0 marks an absent one. The vector can have several entries equal to 1. Repeated mentions with the same class still produce a single positive entry for that class.

That last property matters when moving between tasks. A sentence with comments about room comfort and room cleanliness can have distinct labels in the aspect–attribute view. Once the attributes are removed, the broad-aspect target only records that Rooms occurs. If the comments differ in polarity, those polarities can still produce distinct room labels in the aspect–polarity view. The same source passage can therefore contribute different numbers of positive decisions depending on which configuration is being evaluated. The classifiers learn each target directly from its corresponding version of the reference data.

Training the classifiers

The authors initialized their classifiers from three German BERT checkpoints. The identifiers used in the results are deepset-gbert-large, dbmdz-bert-base-german-uncased, and distilbert-base-german-cased. The first is the larger German checkpoint associated with the work on German BERT pretraining. The last belongs to the more compact DistilBERT family. The paper says the DBMDZ and distilled checkpoints were pretrained on the same dataset.

Pretraining supplies an initial set of parameters, and supervised fine-tuning adapts them to the hotel labels. The classifiers came from Hugging Face. The implementation used PyTorch and the Transformers library, and the evaluation metrics were calculated with scikit-learn. In the sentence-level setup, the classifier returns a score for each available class. It uses sigmoid activation so that the scores for several different classes can be high on the same item.

p꜀ = σ(z꜀) = 1 / (1 + e⁻ᶻ꜀)

Here z꜀ is the unscaled score for class c, σ denotes the sigmoid function, and p꜀ is its output for the class. The symbol e is the base of natural logarithms. The exponent is the negative of z꜀. The slash indicates division, the plus sign adds 1 in the denominator, and the parentheses group that denominator. The result is a number between 0 and 1 for each class. The scores need not share a fixed total across all classes, which suits sentences containing several labels.

Training uses binary cross-entropy to penalize disagreements between those scores and the reference indicators. Expressed for a single class in a single sentence, the loss has this form.

ℓ꜀ = −[y꜀ log(p꜀) + (1 − y꜀) log(1 − p꜀)]

Here ℓ꜀ is the contribution to the loss from class c, y꜀ is its reference indicator, and p꜀ is the score after the sigmoid. The notation log denotes the natural logarithm. Juxtaposed terms are multiplied, the plus sign adds the two terms, and the leading minus sign negates the bracketed expression. The expressions 1 − y꜀ and 1 − p꜀ refer to the absent-class outcome in the target and the prediction. For a present class, the first term makes a low predicted score costly. For an absent class, the second makes a high predicted score costly. This treats the labels as separate binary decisions in the loss while allowing them to be predicted from the same sentence representation.

The authors used AdamW to update the parameters. They evaluated the classifiers with stratified 4-split cross-validation. In each rotation, 3 parts of the hotel dataset served as training data and the remaining part as evaluation data. Rotating the held-out portion allows every part to contribute to the evaluation. The reported design tests predictions on held-out items drawn from this corpus.

Choosing the training settings

The authors used Optuna for 20 trials per evaluation run. They searched for settings that minimized Hamming loss, the proportion of individual label decisions that disagree with the reference. A false positive contributes an error for a class absent from the reference. A false negative contributes an error for a class present in it. This criterion is sensitive to the individual entries in the label vector. The authors used micro F1 as the main measure for reporting results.

The search used a tree-structured Parzen estimator to propose settings. The learning rate controls the size of training updates, the batch size determines how many examples are processed together for an update, and an epoch is a pass through the training data. The paper specifies these candidate ranges and sets.

η ∈ [2e − 5, 5e − 5]

Here η is the learning rate. The square brackets enclose the endpoints of an inclusive interval, and the comma separates those endpoints. The sign ∈ denotes membership in that interval. In these printed values, the e within 2e − 5 and 5e − 5 is scientific notation, with the signed exponent applied to a power of ten.

B ∈ {8, 16, 32}

Here B is the batch size. The braces enclose the allowed values, the commas separate the choices, and ∈ means that B is chosen from that set. The values are the possible numbers of items in a training batch.

E ∈ {2, 3, 4}

Here E is the number of epochs. The braces and commas delimit separate options, and ∈ indicates that the chosen epoch count must be one of them. The same search space was available across the classification settings. The authors report the selected configuration for each combination of checkpoint and task as well as its average runtime for a single training and evaluation run.

Experiments and results

What the comparison measures

The experiments compare three classifiers on the same German hotel-review corpus, at each of four label granularities. The DBMDZ BERT and DistilBERT checkpoints supply the within-corpus comparisons for deepset-gbert-large. The reported results from GermEval 2017 supply context from another German review domain. They come from a separate evaluation, so the distinction between an in-corpus comparison and an external reference point matters throughout.

The primary measure is micro F1. F1 combines precision, the share of predicted labels that match the reference, with recall, the share of reference labels that the classifier recovers. Applied to a set of correct and incorrect label decisions, its count form can be written as follows.

F1 = 2TP / (2TP + FP + FN)

Here TP counts true positives, labels predicted and present in the reference. FP counts false positives, labels predicted but absent from the reference. FN counts false negatives, labels in the reference that the classifier missed. The factor 2 multiplies TP, juxtaposition denotes that multiplication, and the denominator adds the three terms shown. The parentheses group the denominator and the slash denotes division. For micro F1 the counts are pooled across the evaluated labels before this calculation. For macro F1 the calculation is made for each class and the class scores are then averaged with equal weight.

A classification that gets an aspect right but attaches the wrong polarity gives an extra prediction and misses the reference combination in the aspect–polarity task. It may still be right in the aspect-only task. Correctly leaving out a class that does not occur in a sentence is also different from successfully recognizing a class that does occur. F1 evaluates the latter through positive decisions, misses, and false alarms. This makes the choice of reporting metric particularly relevant when moving from broad aspects to a much larger set of complete tuples.

How the labels are distributed

At the broad-aspect level the annotations cover the categories fairly evenly compared with the finer tasks. Hotel accounts for 1,477 annotations, or 26.3 %, and Rooms for 1,457, or 25.9 %. Food & Drinks, the least frequent broad aspect, appears in 813 annotations, or 14.5 %. Each of the broad categories therefore has a substantial presence in the curated material.

The attribute distribution is more concentrated. General appears in 3,326 annotations, or 59.2 %, and Style in 1,201, or 21.4 %. Quietness has 289 annotations, or 5.1 %. The sentiment distribution is similarly skewed. There are 4,032 positive annotations, representing 71.8 %, compared with 957 neutral annotations at 17.0 % and 628 negative annotations at 11.2 %. These shares describe the annotations across the curated dataset, where an item can contribute several labels.

The concentration becomes clearer when looking at combinations. In the aspect–attribute inventory, Service paired with General has 901 annotations, and Service paired with Cleanliness has 6. In the aspect–polarity inventory, Hotel with positive sentiment has 1,062 annotations, against 36 for neutral Service. With all the fields included, positive Service–General has 740 annotations. Negative Service–Cleanliness and negative Location–Price each have 1. These are counts from the label inventory for the corpus as a whole. They show why an overall score and a per-class average can tell different stories about the detailed predictions.

Finding the aspects and attributes

Identifying only the broad aspects produced the highest scores in the comparison. On the held-out hotel-review folds, deepset-gbert-large recorded a micro F1 of 0.906 and a macro F1 of 0.910. The DBMDZ classifier reached 0.891 micro and 0.895 macro, while DistilBERT reached 0.880 micro and 0.886 macro. The closeness of the micro and macro results within each classifier means the broad task looks similar under both ways of averaging. The best classifier's individual class scores were about 0.92 for most aspects. Hotel was the exception, with an F1 of 0.86.

Micro F1 for broad aspect classification on German hotel reviews

The German large BERT checkpoint leads, with the other classifiers close behind.

Micro F1 for broad aspect classification on German hotel reviewsdeepset-gbert-large (this paper): 0.906deepset-gbert-large (this paper)0.906dbmdz-bert-base-german-uncased: 0.891dbmdz-bert-base-german-uncased0.891distilbert-base-german-cased: 0.880distilbert-base-german-cased0.880
The numbers
System or settingmicro F1
deepset-gbert-large (this paper)0.906
dbmdz-bert-base-german-uncased0.891
distilbert-base-german-cased0.880

The attribute task asks for exact aspect–attribute pairs. Saying that a sentence concerns Rooms earns credit in the aspect-only task, but the pair task additionally requires identifying the applicable feature, such as Style or Quietness. Deepset-gbert-large achieved 0.797 micro F1 and 0.542 macro F1 on the 18-class task. DBMDZ scored 0.774 micro and 0.504 macro. DistilBERT scored 0.744 micro and 0.432 macro. The ordering stays the same and the macro scores show a much weaker picture than the pooled results.

The paper's class-level inspection explains part of that divergence. The strongest classifier did not detect the four least frequent aspect–attribute classes. The four most common classes were all among its top 5 by classification performance. The classifier can therefore recover many labeled instances while entirely missing some pairs. An evaluation interested in the availability of a broad range of features needs to account for both results.

Linking sentiment to the right aspect

The aspect–polarity task takes the broad aspects and asks which sentiment applies to each one. Deepset-gbert-large reached 0.809 micro F1 and 0.659 macro F1 on the 15 classes. DBMDZ reached 0.779 micro and 0.599 macro. DistilBERT reached 0.741 micro and 0.490 macro. The macro score of 0.659 is the value given in the main results table and the task-specific results discussion. A later discussion passage gives 0.651 for this macro score. The main table assigns 0.651 to the best micro score for the full-tuple task.

Micro F1 for aspect and polarity classification on German hotel reviews

The large checkpoint performs best when the sentiment must be assigned to the correct aspect.

Micro F1 for aspect and polarity classification on German hotel reviewsdeepset-gbert-large (this paper): 0.809deepset-gbert-large (this paper)0.809dbmdz-bert-base-german-uncased: 0.779dbmdz-bert-base-german-uncased0.779distilbert-base-german-cased: 0.741distilbert-base-german-cased0.741
The numbers
System or settingmicro F1
deepset-gbert-large (this paper)0.809
dbmdz-bert-base-german-uncased0.779
distilbert-base-german-cased0.741

The highest individual class F1 reported for the strongest classifier in this task was 0.931. Recognition varied with the sentiment and with the frequency of the combination. Positive combinations worked best overall, followed by negative and then neutral ones. The rarest combination, neutral Service, had 36 occurrences in the corpus and was never recovered by the classifier. Neutral sentiment in aggregate occurs more frequently in the annotations than negative sentiment. The order of recognition shows that the overall polarity counts alone do not describe how the corresponding aspect–polarity classes performed.

This is the task behind the paper's headline end-to-end score. It combines identification of an opinion's broad subject and identification of the sentiment in a single output class. A classifier earns credit for returning the right pairing from the input sentence. End-to-end here describes that joint category decision. The result does not include recovery of the precise expression in the review or the addition of an attribute.

Predicting the full annotation

The full task requires the classifier to return the correct aspect, attribute, and sentiment together. Deepset-gbert-large again ranked first, with 0.651 micro F1 and 0.173 macro F1. DBMDZ reached 0.592 micro and 0.119 macro. DistilBERT reached 0.561 micro and 0.107 macro. Those scores express a different benchmark from the broader aspect–polarity score, even though both tasks involve sentiment. A sentence can express a negative judgment about the room quite clearly while leaving the feature harder to place in the inventory.

Macro F1 for full aspect, attribute, and polarity tuples on German hotel reviews

The large checkpoint leads on the detailed task, where class-balanced performance is low across the comparison.

Macro F1 for full aspect, attribute, and polarity tuples on German hotel reviewsdeepset-gbert-large (this paper): 0.173deepset-gbert-large (this paper)0.173dbmdz-bert-base-german-uncased: 0.119dbmdz-bert-base-german-uncased0.119distilbert-base-german-cased: 0.107distilbert-base-german-cased0.107
The numbers
System or settingmacro F1
deepset-gbert-large (this paper)0.173
dbmdz-bert-base-german-uncased0.119
distilbert-base-german-cased0.107

The authors report a correct prediction for 17 of the 53 classes from the leading classifier. Positive tuples were the most successfully recognized, and neutral tuples were recognized only rarely. In this setting, pooling decisions gives more influence to classes with many instances. Giving every class equal weight reflects the many classes for which the classifier made no correct prediction. Thus, 0.651 micro F1 describes useful recovery of some of the annotated distinctions, while the 0.173 macro score describes a system with limited coverage of the inventory as a whole.

Putting the scores beside other studies

The authors compare their aspect-only results with English-language hotel studies. They report a micro F1 of 0.89 for Andono and colleagues on 5 aspects, and a macro F1 of 0.80 for Chang and colleagues on 8 hotel categories. The German hotel study has higher reported scores under those respective forms of averaging. Each result belongs to its own corpus and category scheme, so the figures describe the level reached in the respective evaluations. They do not estimate how the German hotel classifiers would perform on those English data.

Studies that divide sentiment extraction into stages provide a different comparison. In the paper's account, Tran and colleagues obtained 0.873 F1 for extracting aspect phrases together with binary polarity and reported 0.80 accuracy for deciding the category in the discussion comparison. That accuracy has a different denominator from the present study's joint micro F1. The paper also reports separate F1 scores of 0.85 for category and 0.91 for sentiment from Afzaal and colleagues. Those component scores do not give the rate at which a single prediction is correct on both parts. The hotel paper's direct label prediction avoids needing to combine the outputs of separately scored stages, but it was not directly tested against either pipeline on common data.

The most closely related German-language numbers come from Aßenmacher and colleagues. The hotel paper reports the average over their two GermEval 2017 evaluation datasets, which were collected at different times. For the category comparison, the hotel result is 0.797 micro F1 on 18 classes, beside 0.776 on 20 categories in GermEval. For detailed sentiment prediction, the hotel result is 0.651 micro F1 on 53 classes, beside a reported 0.672 on 60 classes in GermEval. The comparisons show that the multi-label formulation can produce scores in a similar range on two German applications. They cannot isolate the effect of changing domains, since the category schemes, corpora, and winning checkpoints also differ.

What the ablations show

Varying the prediction target

The paper reports no component-removal ablation. Its main controlled comparison changes which fields the classifiers must predict from the same underlying annotations, and its accompanying analyses examine class frequency, annotation agreement, and training settings. These comparisons help explain what makes the detailed tasks difficult. They leave open which individual design changes would improve them.

The clearest pattern comes from adding attributes. Across all three classifiers, predicting an aspect–attribute pair was harder than predicting a broad aspect. Adding the attribute to an aspect–polarity label also brought down both reported F1 measures for every classifier. In the leading case the change is visible in micro F1 from 0.809 on aspect–polarity labels to 0.651 on complete tuples. In macro F1 it is visible from 0.659 to 0.173. A common task outline and the same source sentences make these comparisons easier to interpret than the cross-corpus numbers.

Several things change together when the label is refined. The classifier has to recover another semantic distinction. The set of possible outputs expands, and the available evidence is divided among more classes. The standard of a correct answer changes because the finest task requires all fields to match at once. A good prediction of Rooms and negative sentiment has no exact match in the full-tuple evaluation if the classifier attaches the wrong attribute. When finer distinctions also split common classes into rare ones, the training data offer fewer examples of particular complete labels.

The broad comparison between attributes and polarity is informative for the same reason. Both attach detail to an aspect, but the available distinctions and distributions differ. Deepset-gbert-large had a macro F1 of 0.542 with attributes and 0.659 with polarity. This tells a reader how the two sets of labels behaved in this evaluation. The difference cannot identify a general difficulty ranking between reading sentiment and reading attributes. The tasks have different class counts, and the boundaries between classes have different meanings.

Comparing the readers' judgments

Annotation agreement weakened as the readers had to preserve more information in their labels. Average Krippendorff's α was 0.61 for broad aspects and 0.48 when the attributes were included. Keeping the aspects and sentiments yielded 0.54. Agreement was 0.43 for complete tuples. The order broadly corresponds to the relative difficulty seen in the classifier results. There is more room for disagreement when annotators must agree both on which topic rules apply and on how to interpret the guest's stance.

Variation between pairs was also considerable. The appendix reports an aspect-only α of 0.76 for one pairing and 0.29 for another. The reported span for full tuples extends from 0.22 to 0.54. These are distances in agreement across annotation pairings before the curated reference was finalized. Each pairing worked on its assigned items. The figures do not establish how much of the variation comes from the readers, the items they saw, or the interaction between them.

Human agreement and classifier F1 also have different interpretations. Agreement asks how closely two independent sets of labels correspond after taking expected disagreement into account. Classifier F1 asks how the predictions compare with the curated reference. The human scores cannot be treated as an upper bound on the reported classifier F1. Their value here is to show that annotators needed more frequently to resolve competing interpretations on the tasks that proved most difficult for the classifiers.

Looking past pooled scores

The per-class analysis gives concrete examples of uneven recovery. At the broad level, Hotel has the highest annotation count and the lowest reported class F1 among the broad labels for deepset-gbert-large. Frequency alone gives an incomplete account of how easy a category will be. Some broad labels already have substantial representation, and the paper does not provide a breakdown that would explain which readings of Hotel led to the errors.

Within the finer inventories, the paper finds a clearer association between frequency and prediction performance. Some of the most common aspect–attribute pairs were among the best recognized. None of the rarest pairs in the group the authors identify were detected. When polarity was included, the missed neutral Service class illustrated how an aspect that can be recognized well at a broad level can still have a sentiment-specific part of its inventory that is effectively unavailable.

The full-tuple results show the same issue in stronger form. A correct result for a frequent positive category can account for many successful decisions in micro F1. Missing a class with only a handful of annotations has a smaller effect on that pooled measure, while its class-level score has the same weight as any other in macro F1. The observed combination of low macro F1 and success on only part of the inventory is consistent with weak coverage of rare labels. The study did not alter the class distribution to test whether increasing their frequency would recover them.

Comparing checkpoints and training settings

Deepset-gbert-large led at every resolution. It has 335 M parameters and 24 layers, and its pretraining data are listed as 161 GB. The DBMDZ checkpoint has 110 M parameters and 12 layers, while DistilBERT has 66 M parameters and 12 layers. The paper lists 16 GB of pretraining data for each of those smaller checkpoints. The authors regard the greater capacity and pretraining exposure of the large checkpoint as plausible reasons for its advantage. The checkpoint comparison changes both together, among other design differences, so it cannot tell how much each contributed.

The training times give that comparison a practical dimension. For broad aspect classification, the selected settings averaged 3 m 53 s per train–evaluation run for deepset-gbert-large, 4 m 00 s for DBMDZ, and 1 m 51 s for DistilBERT. For the full tuples, those times were 10 m 07 s, 3 m 58 s, and 1 m 51 s, respectively. The size of the runtime tradeoff depends on the task and the settings selected for it. The broad-aspect case is the one in which the scores were closest and the distilled checkpoint still had the shortest reported run time.

The search found a batch size of 8 with 3 or 4 epochs in the best configuration for 11 of the 12 runs. The exception was deepset-gbert-large on broad aspects, where the chosen batch size was 32. The authors also observed that with a batch size of 32 the classifiers frequently predicted no class at all for the complete tuples. That behavior identifies a training setting under which the specific implementation struggled with the detailed task. The paper does not present a controlled search that attributes the empty predictions solely to batch size across otherwise identical configurations.

The best learning rates often fell near the limits of the specified search interval, and the paper reports no consistent trend across the tasks and checkpoints. The authors suggest that better rates may lie beyond the interval. This qualifies what can be concluded from the comparison: each score reflects the best configuration found in the authors' search. The reported lead for deepset-gbert-large holds across the settings they evaluated, with the largest practical difference depending on the desired granularity and measure.

Limitations

Limits the authors identify

The authors describe the annotators' initial agreement as low to moderate, depending on the detail of the labels. They consider it plausible that unstable judgments affected the quality of the reference data and the resulting classifier performance. They also point to the substantial variation between reader pairings. Experience with annotation or familiarity with the subject could matter in principle. The paper does not test those explanations, and curation supplies a final reference without giving a second independent agreement estimate after the decisions were resolved.

The authors highlight class imbalance as a problem for detailed analysis. The number of available training examples varies greatly across the combinations. This is also a feature they recognize in earlier work on reviews. They propose expanding the corpus and improving curation, and they discuss class weighting or sub-sampling as possible ways to change the training balance. Those proposals leave the current results where they are. The paper supplies evidence of uneven recovery under its setup, with the effects of changing the balance left for later evaluation.

The paper also cautions against interpreting web reviews as a complete account of what guests think. People who choose to write reviews may differ from the wider population of hotel guests. Expressions of opinion may likewise differ across platforms, and the language-specific characteristics of German reviews may affect transfer to another language. The authors acknowledge that the resulting classifier could carry such biases forward. They avoided collecting identifying user information as part of the study and anonymized direct references to people and hotels. Those choices concern privacy, while the degree of representativeness remains an empirical question.

The authors make the review corpus and its annotations available on request for academic use. They report that their Python implementation and evaluation documentation are available through the absa-hotel-reviews repository. Access to curated data is relevant to reproducing these particular experiments because the labels reflect case-by-case judgments, which cannot be reconstructed from the aspects and attributes alone.

Limits of the evaluation design

The cross-validation result is an estimate within the curated collection. The reviews come from selected mid-class hotels in one city on one platform. Variation in distance from the center makes the location category more useful within that set. It does not substitute for testing on new hotel types or new cities. The paper does not report splits that hold out entire hotels or entire reviews, and it does not establish whether sentences originating in one review could appear in different folds. Accordingly, the numbers do not give a measured estimate for predicting labels in an entirely unseen review or establishment under a grouped evaluation.

Evaluation also occurs after sentences with no clear aspect have been removed. Though the annotation stage allowed readers to skip them, the reported classifier results concern the retained corpus. An application processing raw reviews would see such sentences alongside aspect-bearing ones. It would need to decide when to return no labels. The figures in the paper leave that decision's reliability on the omitted items unmeasured.

The output has no reference to the words that support a prediction. That follows directly from the annotation design, which records labels at sentence level. It is a suitable format for counting categories or sentiments across a collection. A reader who wants to know which expression made a comment negative, or which phrase refers to a facility, would need evidence beyond these outputs. Similarly, repeated occurrences of the same class in a sentence are collapsed. The result is a set of label presences, and it cannot be used to count distinct mentions that have the same label.

The classification experiments use a closed inventory. The absent neutral Food & Drinks–Quietness combination is excluded from the evaluation, and the task supplies predetermined categories instead of evaluating discovery of new ones. Some of the categories that do occur have too little support for confident statements about general recovery. The macro score captures their importance to coverage, but an aggregate cannot establish which unusual judgments the classifier would learn with more examples. Neither the macro score nor the count of detected classes identifies a fixed threshold at which every rare label becomes learnable.

Finally, the comparisons with previous work do not establish superiority on a shared benchmark. The authors themselves emphasize differences in the size, origin, quality, and detail of the available corpora. The closest comparisons use the same general formulation but substitute a different review domain and category scheme. Other comparisons switch between separate subtasks and a joint prediction, or between binary and three-way polarity. The consistent result within the hotel experiment is that broad aspects and their associated sentiments are recoverable with much greater coverage than the complete tuples. Claims about software performance across domains or annotation schemes require matching the meaning and conditions of the evaluation.

What came after

The later study German ABSA in the Wild appeared in 2025. It cites the hotel study and takes German aspect-based sentiment analysis into a business-to-business setting, combining dataset creation with cross-domain evaluation. The hotel study evaluates the same general classification approach in a new application and compares the resulting scores with previously published numbers from other corpora. The follow-up's stated focus puts the relationship between domains inside the evaluation itself.

That distinction matters because similar scores on separate datasets leave transfer untested. A result on hotel reviews depends on the topics guests discuss, the language they use, and the way the aspect inventory defines a correct answer. A cross-domain evaluation addresses what happens when the source and target domains differ. The follow-up's scope extends the question raised by the hotel study from performance within one annotated application to evaluation across applications.

Cite

Cite as Jakob Fehle, Leonie Münster, Thomas Schmidt and Christian Wolff. 2023. Aspect-Based Sentiment Analysis as a Multi-Label Classification Task on the Domain of German Hotel Reviews. Proceedings of the 19th Conference on Natural Language Processing (KONVENS 2023).

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

@inproceedings{fehle2023aspect,
  title = {{Aspect-Based Sentiment Analysis as a Multi-Label Classification Task on the Domain of German Hotel Reviews}},
  author = {Jakob Fehle, Leonie Münster, Thomas Schmidt and Christian Wolff},
  booktitle = {Proceedings of the 19th Conference on Natural Language Processing (KONVENS 2023)},
  year = {2023},
  url = {https://aclanthology.org/2023.konvens-main.21/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/fehle-2023-aspect-based-sentiment-analysis-as/