[Paper Review] Aspect and Opinion Term Extraction for Hotel Reviews using Transfer Learning and Auxiliary Labels
This paper proposes a BERT-based model with conditional random fields (CRF) and auxiliary labels for aspect and opinion term extraction in Indonesian hotel reviews. By leveraging multilingual BERT and a novel auxiliary labeling scheme for subword tokens, the method achieves state-of-the-art F1 scores with only 2–4 training epochs, significantly outperforming a Bi-LSTM baseline that requires 200 epochs.
Aspect and opinion term extraction is a critical step in Aspect-Based Sentiment Analysis (ABSA). Our study focuses on evaluating transfer learning using pre-trained BERT (Devlin et al., 2018) to classify tokens from hotel reviews in bahasa Indonesia. The primary challenge is the language informality of the review texts. By utilizing transfer learning from a multilingual model, we achieved up to 2% difference on token level F1-score compared to the state-of-the-art Bi-LSTM model with fewer training epochs (3 vs. 200 epochs). The fine-tuned model clearly outperforms the Bi-LSTM model on the entity level. Furthermore, we propose a method to include CRF with auxiliary labels as an output layer for the BERT-based models. The CRF addition further improves the F1-score for both token and entity level.
Motivation & Objective
- To evaluate the effectiveness of transfer learning using multilingual BERT for aspect and opinion term extraction in low-resource, informal Indonesian text.
- To address the challenge of BERT's subword tokenization disrupting CRF-based sequence labeling in token classification tasks.
- To improve sequence labeling performance by introducing auxiliary labels (A, Z, X, Y) for special tokens and subwords to maintain BIO consistency.
- To compare the proposed BERT+CRF model with a strong Bi-LSTM baseline in terms of F1-score and training efficiency on Indonesian hotel reviews.
- To demonstrate that end-to-end fine-tuning of BERT with CRF and auxiliary labels yields robust, high-performing ABSA models with minimal training epochs.
Proposed method
- Fine-tuned multilingual BERT-base (uncased) on 4,000 Indonesian hotel reviews using a learning rate of 1e-4, weight decay of 1e-2, and a batch size of 32.
- Applied CRF as an output layer to enforce BIO tagging constraints, ensuring valid label transitions (e.g., I-ASPECT only follows B-ASPECT).
- Introduced four auxiliary labels: A ([CLS]), Z ([SEP]), X (for subword tokens belonging to aspect/sentiment), and Y (for subwords not part of any target entity).
- Used X-ASPECT and X-SENTIMENT to label trailing subwords (e.g., "##nya" in "tempatnya"), preserving entity boundaries across subword splits.
- Employed the PyTorch-CRF library for CRF layer implementation, with hyperparameters tuned on a 1,000-sample validation set.
- Trained the BERT+CRF model for 3 epochs on token-level and 4 on entity-level tasks, while the vanilla BERT model was trained for only 2 epochs due to early overfitting.
Experimental results
Research questions
- RQ1Can multilingual BERT fine-tuned on Indonesian hotel reviews achieve competitive performance in aspect and opinion term extraction compared to specialized models like Bi-LSTM with CMLA and double embeddings?
- RQ2How does the integration of CRF with auxiliary labels for subword tokens affect the F1-score in aspect and opinion term extraction on informal Indonesian text?
- RQ3To what extent does the proposed method reduce training time and resource consumption compared to models requiring hundreds of epochs?
- RQ4Does the use of auxiliary labels mitigate the issue of invalid BIO sequences (e.g., I-ASPECT without preceding B-ASPECT) introduced by BERT’s subword tokenization?
- RQ5How does the model perform at both token-level and entity-level classification, especially in detecting complete aspect and sentiment phrases?
Key findings
- The BERT+CRF model with auxiliary labels achieved a token-level F1-score of 78.4%, outperforming the Bi-LSTM baseline by up to 2% absolute improvement.
- On the entity level, the BERT-based models achieved the highest F1-scores for both aspect and sentiment detection, surpassing the Bi-LSTM model.
- Vanilla BERT without CRF produced 65 invalid BIO sequences (e.g., I-ASPECT without preceding B-ASPECT), demonstrating the necessity of CRF for label consistency.
- The BERT+CRF model required only 3–4 epochs to converge, compared to 200 epochs for the Bi-LSTM model, significantly reducing training time and computational cost.
- The addition of CRF with auxiliary labels improved the F1-score by up to 2% on both token and entity levels, confirming its effectiveness in handling subword segmentation.
- The model achieved a 75.4% coverage of test set unique tokens in the training set, indicating strong generalization despite the informal and noisy nature of the text.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.