Source-linked AI summary

InstructABSA: Instruction Learning for Aspect Based Sentiment Analysis

Kevin Scaria, Himanshu Gupta, Siddharth Goyal, Saurabh Arjun Sawant, Swaroop Mishra, Chitta Baral

arXiv:2302.08624v6cs.CLcs.LG

TL;DR

Fine-grained sentiment understanding requires identifying aspects and their sentiment in user reviews. InstructABSA instruction-tunes Tk-Instruct for ABSA subtasks using task-specific prompts and examples. It surpasses prior scores on several tasks and is competitive on the rest, including gains over SOTA on Rest14 ATE and Rest15 ATSC.

  • Problem

    ABSA aims to understand fine-grained sentiment expressed by users by extracting aspects and classifying their sentiment polarity.

    Source: §1 · p. 1
  • Method

    InstructABSA instruction-tunes Tk-Instruct for six ABSA subtasks using task-specific prompts followed by positive, negative, and neutral examples.

    Source: §1 · p. 1
  • Results

    InstructABSA surpasses prior scores on several tasks and is competitive on the rest; it exceeds SOTA by 5.69% points on Rest14 ATE.

    Source: §1 · p. 1, §4 · p. 4
  • Takeaways & Limitations

    Delusive examples reduce InstructABSA’s results by about 10%, providing evidence of the impact of instructions on performance.

    Source: §1 · p. 2

    The study covers SemEval 2014–16 and English Tk-Instruct models, so its findings may not directly apply to other languages.

    Source: Limitations · p. 5

Abstract

from arXiv · show

We introduce InstructABSA, an instruction learning paradigm for Aspect-Based Sentiment Analysis (ABSA) subtasks. Our method introduces positive, negative, and neutral examples to each training sample, and instruction tune the model (Tk-Instruct) for ABSA subtasks, yielding significant performance improvements. Experimental results on the Sem Eval 2014, 15, and 16 datasets demonstrate that InstructABSA outperforms the previous state-of-the-art (SOTA) approaches on Term Extraction (ATE), Sentiment Classification(ATSC) and Sentiment Pair Extraction (ASPE) subtasks. In particular, InstructABSA outperforms the previous state-of-the-art (SOTA) on the Rest14 ATE subtask by 5.69% points, the Rest15 ATSC subtask by 9.59% points, and the Lapt14 AOPE subtask by 3.37% points, surpassing 7x larger models. We also get competitive results on AOOE, AOPE, and AOSTE subtasks indicating strong generalization ability to all subtasks. Exploring sample efficiency reveals that just 50% train data is required to get competitive results with other instruction tuning approaches. Lastly, we assess the quality of instructions and observe that InstructABSA's performance experiences a decline of ~10% when adding misleading examples.

1 Introduction

InstructABSA applies instruction learning to six ABSA subtasks, addressing fine-grained sentiment expressed in user reviews. The introduction reports gains over prior systems on several tasks and describes analyses of sample efficiency, instruction quality, and domain generalization.

1 Introduction

  • InstructABSA instruction-tunes Tk-Instruct for six ABSA subtasks using task-specific prompts with positive, negative, and neutral examples.The prompts provide task definitions followed by examples.Source: §1 · p. 1
  • 5.69% points on Rest14 ATE and 9.59% points on Rest15 ATSC: InstructABSA surpasses SOTA; it also beats SOTA by 3.37% points on Lapt14 ASPE.For ASPE, it also surpasses SOTA by 1.4% points on Rest14.Source: §1 · pp. 1–2
  • Roughly 20% of training samples yields competitive scores against Varia et al. (2023), while delusive examples reduce results by about 10%.The introduction also reports a sizable performance gap of approximately 20% between InstructABSA and LoRA methods.Source: §1 · p. 2
  • The 200M model outperforms or matches prior SOTA models with 1.5B parameters, with evidence of cross-domain and joint-domain generalization.The introduction also reports competitive results on AOOE and AOSTE.Source: §1 · p. 2

2 InstructABSA: Instruction Learning for ABSA

The section formulates ABSA subtasks as language-model input-output mappings and describes instruction tuning through task-specific prompts. It also identifies F1 for ATE and accuracy for ATSC in the supplied result-table captions.

2 InstructABSA: Instruction Learning for ABSA

  • ABSA inputs are review sentences with aspect terms, corresponding opinion terms, and sentiment polarities labeled positive, negative, or neutral.The formulation treats aspect terms and their associated opinions and polarities as sentence-level task elements.Source: §2 · p. 2
  • The supplied captions identify ATE results by F1 score and ATSC results by accuracy.The captions name prior systems whose results appear in the respective tables.Source: Table 1 · p. 2, Table 2 · p. 2
  • Instruction tuning prepends task-specific prompts to each subtask input to produce an instruction-tuned model.The section refers to further details in §G.Source: §2 · p. 2

3 Results and Analysis

InstructABSA reports strong benchmark results on ATE, ATSC, ASPE, and AOOE, alongside weaker AOPE and AOSTE results. The analysis also examines cross- and joint-domain evaluation, instruction configurations, training-data efficiency, and LoRA.

3.1 Sub Task Results

  • InstructABSA surpasses SOTA on ATE across Lapt14, Rest14, Rest15, and Rest16, on Rest15 ATSC, and on all four ASPE datasets; it also outperforms IOG and ONG on Lapt14 AOOE.The ASPE results are reported as F1 scores in Table 3.Source: §3.1 · p. 2, Table 3 · p. 3
  • In AOPE, InstructABSA falls short of existing models, while Seq2Path has the highest AOSTE F1 scores; InstructABSA remains competitive on Rest14 AOSTE.The authors attribute weaker AOPE and AOSTE performance to exposure bias when opinion terms are not grounded and may be any vocabulary word.Source: §3.1 · pp. 2–3

3.2 Analysis

  • In cross-domain evaluation, InstructABSA-2 scores 80.56 ATSC accuracy versus 75.53 for InstructABSA-1 when trained on Lapt14 and tested on Rest14; joint-domain ATE surpasses prior SOTA.Joint-domain training combines laptop and restaurant data and evaluates on both test sets.Source: §3.2 · p. 3, Table 8 · p. 3
  • InstructABSA-1 and -2 outperform vanilla models across most ABSA subtasks, while the instruction analysis compares task definitions and example configurations, including delusive examples.Figure 2 distinguishes vanilla T5, instruction-tuned T5, positive-example configurations, and a delusive configuration with incorrect input-output mappings.Source: §3.2 · pp. 3–4, Figure 2 · p. 4
  • With roughly 50% of training samples, InstructABSA achieves competitive scores with its best results, and vanilla T5 performs consistently worse at matched sample sizes.Figure 3 compares sample sizes as percentages of training data.Source: §3.2 · p. 4, Figure 3 · p. 4
  • Compared with InstructABSA, LoRA has score drops of 13.32 points on ATE, 26.8 on ATSC, and 19.8 on ASPE.The authors note LoRA can improve memory and computational efficiency, but characterize these performance drops as significant.Source: §3.2 · p. 4, Table 9 · p. 4

4 Conclusion

The conclusion presents InstructABSA as an instruction-tuned approach for all ABSA subtasks. It reports better-than-prior scores on several tasks and competitive scores on the rest using a smaller model than previous approaches.

  • InstructABSA is an instruction-tuned modeling approach for all ABSA subtasks.Source: §4 · p. 4
  • The approach surpasses previous scores on several tasks and achieves competitive scores on the rest using a significantly smaller model than previous approaches.Source: §4 · p. 4
  • The authors report analyzing the approach’s performance along several lines of enquiry and releasing the code.Source: §4 · p. 4

Limitations

The study’s findings are bounded by its datasets, model, and language setting. The authors identify broader datasets, smaller models, and multilingual evaluation as future directions.

  • The study is limited to the Sem Eval 2014, 15, and 16 datasets.Source: Limitations · p. 5
  • Experiments use a 200M model, which the authors say may limit applicability to smaller models.Source: Limitations · p. 5
  • The study uses English Tk-Instruct models, so the authors caution that findings may not directly apply to other languages.Source: Limitations · p. 5

Ethical Considerations

The authors note that the T5 model may carry biases from its pretraining and instruction-tuning data. They also state that stress testing was not conducted.

A Choosing Samples as Instruction Exemplars:

The appendix describes how instruction exemplars are selected and how task definitions and examples are varied. It reports that InstructABSA configurations perform best for most ABSA subtasks, while vanilla models do not.

A Choosing Samples as Instruction Exemplars:

B Instruction Effectiveness Study

C Detailed Dataset Description:

The dataset description reports aspect-count statistics for extraction subtasks and sample statistics for ATSC. Reviews without aspect terms or corresponding polarities are present in both Lapt14 and Rest14, and conflict labels are excluded for ATSC.

C Detailed Dataset Description:

  • 1,557 Lapt14 and 1,020 Rest14 training reviews have no aspect terms or corresponding polarities.The test set also includes 378 such Lapt14 reviews and 194 such Rest14 reviews.Source: C Detailed Dataset Description · p. 8
  • ATSC dataset statistics are presented in Table 10, and conflict labels are ignored to remain consistent with previous approaches.The table caption defines Pos., Neg., and Neut. as positive, negative, and neutral.Source: C Detailed Dataset Description · p. 8, Table 10 · p. 8

D Experimental Setup

The experimental setup uses SemEval review datasets and Tk-Instruct-based instruction tuning to evaluate ABSA subtasks. The extended related work situates this approach among instruction-learning research on generalization, task reframing, and performance.

D Experimental Setup

  • InstructABSA uses Tk-Instruct-base-def-pos as its instruction-tuned model, with prompts defining ABSA subtasks and examples.InstructABSA-1 uses two positive examples; InstructABSA-2 uses two each of positive, negative, and neutral examples.Source: D Experimental Setup · p. 8
  • Experiments use SemEval 2014, 2015, and 2016 customer reviews from laptop, hotel, and restaurant domains.The datasets include Lapt14, Hotel15, Rest14, Rest15, and Rest16.Source: D Experimental Setup · p. 8
  • Figure 4 compares instruction configurations on ATE, AOSTE, and ATSC, including task-definition-only, example-based, and incorrectly mapped prompts.The caption identifies vanilla models trained without instructions and five example configurations.Source: Figure 4 · p. 9
  • Evaluation uses F1-score for ATE, AOPE, AOOE, and AOSTE, and accuracy for ATSC.The stated metrics follow previous approaches (Luo et al., 2020).Source: D Experimental Setup · p. 9

E Extended Related Work

F Additional Tables for Plots

The additional tables document instruction-effectiveness and sample-efficiency analyses across three ABSA subtasks. The prompt examples show task inputs and outputs and illustrate several prompt configurations.

F Additional Tables for Plots

  • The analysis spans ATE, ATSC, and AOSTE, chosen to represent increasing task difficulty from term extraction to sentiment association and triplet extraction.The passage describes ATE as easiest, ATSC as more complex because it links aspect terms with sentiment polarity, and triplet extraction as most difficult.Source: F Additional Tables for Plots · p. 10
  • Tables 12–14 report F1 scores for instruction configurations on ATE, ATSC, and AOSTE, while Table 15 provides raw sample-efficiency values.The passages identify these as unaggregated values underlying the instruction-effectiveness and sample-efficiency plots.Source: F Additional Tables for Plots · p. 10, Table 12 · p. 10, Table 13 · p. 10

G InstructABSA prompt examples

  • For ATSC, an instruction prompt and sentence are input, and the output is the sentiment polarity for the corresponding aspect.The prompt examples include InstructABSA-2 formats for ATE, ATSC, and AOPE.Source: Figure 5 · p. 10, G InstructABSA prompt examples · p. 10
  • The appendix illustrates AOPE prompting with task definition only, two negative exemplars, two neutral exemplars, one positive, one negative and one neutral exemplar, and delusive instructions with output labels incorrectly mapped to inputs.Source: Table 22 · p. 15, Table 23 · p. 15, Table 24 · p. 15
Loading 2302.08624v6…