The Overlooked Repetitive Lengthening Form in Sentiment Analysis
Organizations: Temple University, Philadelphia, PA, USA
Abstract
Individuals engaging in online communication frequently express personal opinions with informal styles (e.g., memes and emojis). While Language Models (LMs) with informal communications have been widely discussed, a unique and emphatic style, the Repetitive Lengthening Form (RLF), has been overlooked for years. In this paper, we explore answers to two research questions: 1) Is RLF important for sentiment analysis (SA)? 2) Can LMs understand RLF? Inspired by previous linguistic research, we curate Lengthening, the first multi-domain dataset with 850k samples focused on RLF for SA. Moreover, we introduce Explainable Instruction Tuning (ExpInstruct), a two-stage instruction tuning framework aimed to improve both performance and explainability of LLMs for RLF. We further propose a novel unified approach to quantify LMs' understanding of informal expressions. We show that RLF sentences are expressive expressions and can serve as signatures of document-level sentiment. Additionally, RLF has potential value for online content analysis. Our results show that fine-tuned Pre-trained Language Models (PLMs) can surpass zero-shot GPT-4 in performance but not in explanation for RLF. Finally, we show ExpInstruct can improve the open-sourced LLMs to match zero-shot GPT-4 in performance and explainability for RLF with limited samples. Code and sample data are available at https://github.com/Tom-Owl/OverlookedRLF
Figures & tables
| Domain | Dataset | Original Tag | #Document | RLF Ratio(%) | #Samples | Label Distribution (1/0) | #Unique RLF Word | #Unique Root Word |
|---|---|---|---|---|---|---|---|---|
| Books | Amazon Review | 1-5 stars | 51,312k | 5.41 | 255k | 92/8(%) | 11,813 | 1,592 |
| Electronics | Amazon Review | 1-5 stars | 20,994k | 4.32 | 212k | 74/26(%) | 11,367 | 1,541 |
| Restaurants | Yelp | 1-5 stars | 6,990k | 11.28 | 315k | 74/26(%) | 11,642 | 1,587 |
| Social Media | binary | 1,600k | 13.36 | 44k | 46/54(%) | 5,337 | 1,149 | |
| Hotels | TripAdvisor | 1-5 stars | 879k | 10.01 | 24k | 76/24(%) | 4,558 | 1,250 |
| ALL | Lengthening | binary | 850k | 100 | 850k | 78/22(%) | 19,610 | 1,677 |
| Domain | Lengthening Style | POS | Lengthening Word | Root Word | Label | Example Sentence |
|---|---|---|---|---|---|---|
| Books | Punctuation | Noun | book!!!!! | book! | 1 | Do yourself a favour a read this book!!!!! |
| Electronics | Letter | Verb | loooove | love | 1 | I loooove my new phone case. |
| Restaurants | Punctuation | Adj | amazing!!!!! | amazing! | 1 | We are from Seattle and this coffee is amazing!!!!! |
| Letter | Adv | SOOOO | SO | 0 | SOOOO bummed i’m going to miss sam’s party tonight. | |
| Hotel | Punctuation | Noun | year…………. | year… | 0 | I am looking to go back next year…………. |
| Metric | Acc(%) | F1(%) | ||
|---|---|---|---|---|
| Backbone Model | RLF | w/o RLF | RLF | w/o RLF |
| RoBERTa (Large) | 85.94 0.03 | 84.40 0.04 | 90.67 0.04 | 89.56 0.03 |
| GPT-2 (Medium) | 79.56 0.07 | 77.56 0.08 | 85.76 0.08 | 84.22 0.06 |
| T5 (Base) | 83.22 0.06 | 81.93 0.04 | 88.71 0.07 | 87.85 0.03 |
| LLaMA2 (13B) | 76.25 1.76 | 70.41 0.57 | 84.30 1.28 | 82.64 0.39 |
| GPT-4 | 86.26 0.93 | 86.20 1.45 | 90.12 0.75 | 90.08 1.14 |
| Backbone Model | RoBERTa (Large) | GPT-2 (Medium) | T5 (Base) | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Metric | Acc(%) | F1(%) | Acc(%) | F1(%) | Acc(%) | F1(%) | ||||||
| Domain / Group | RLF | w/o RLF | RLF | w/o RLF | RLF | w/o RLF | RLF | w/o RLF | RLF | w/o RLF | RLF | w/o RLF |
| Books | 87.36 0.17 | 86.90 0.16 | 92.76 0.10 | 92.46 0.10 | 80.65 0.07 | 81.21 0.18 | 88.45 0.06 | 88.84 0.11 | 86.09 0.17 | 87.07 0.08 | 92.01 0.10 | 92.63 0.05 |
| Restaurants | 88.46 0.07 | 85.93 0.09 | 92.07 0.07 | 90.24 0.06 | 82.67 0.20 | 79.04 0.02 | 87.60 0.18 | 84.70 0.02 | 85.26 0.23 | 82.79 0.14 | 89.70 0.19 | 87.95 0.09 |
| Electronics | 84.56 0.08 | 82.54 0.19 | 88.86 0.10 | 87.27 0.16 | 76.35 0.09 | 73.28 0.17 | 81.72 0.16 | 78.99 0.21 | 80.53 0.12 | 77.84 0.05 | 85.65 0.02 | 83.54 0.09 |
| 66.30 0.36 | 66.87 0.40 | 68.64 0.35 | 68.41 0.43 | 66.84 0.13 | 65.71 0.57 | 66.11 0.14 | 65.53 0.98 | 65.55 0.35 | 64.56 0.05 | 66.36 0.50 | 65.22 0.19 | |
| Lengthening Style | Punctuation Repetitive | Letter Repetitive | Overall | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Backbone Model | Acc(%) | F1(%) | Acc(%) | F1(%) | Acc(%) | F1(%) | |||
| Zero-shot | |||||||||
| RoBERTa (Large) | 0.24 .001 | 86.65 0.01 | 91.19 0.01 | 0.10 .001 | 83.61 0.16 | 88.93 0.17 | 0.21 .001 | 85.94 0.03 | 90.67 0.04 |
| GPT-2 (Medium) | 0.49 .001 | 80.55 0.11 | 86.57 0.08 | 0.07 .001 | 76.34 0.11 | 82.98 0.15 | 0.39 .002 | 79.56 0.07 | 85.76 0.08 |
| T5 (Base) | 0.20 .001 | 83.97 0.04 | 89.30 0.04 | 0.11 .001 | 80.75 0.10 | 86.74 0.16 | 0.18 .001 | 83.22 0.06 | 88.71 0.07 |
| LLaMA2 (13B) | 0.18 .004 | 77.25 2.62 | 85.23 1.89 | 0.25 .003 | 73.54 3.86 | 81.46 2.88 | 0.20 .004 | 76.25 1.76 | 84.30 1.28 |
| PP | PN | NP | NN | |
|---|---|---|---|---|
| RLF | 127 | 9 | 11 | 53 |
| w/o RLF | 120 | 16 | 13 | 51 |
| Backbone Model | IAA | Reliability | |
|---|---|---|---|
| RoBERTa (Large) | 0.41 | 0.57 .159 | 0.22 .010 |
| GPT-2 (Medium) | 0.44 | 0.59 .110 | 0.29 .005 |
| T5 (Base) | 0.42 | 0.48 .093 | 0.23 .002 |
| GPT-4 | 0.43 | 0.79 .055 | 0.38 .005 |
| ExpInstruct | 0.34 | 0.67 .105 | 0.35 .019 |
| Metric | Acc(%) | F1(%) | ||
|---|---|---|---|---|
| Backbone Model | Zero-shot | Fine-tuned | Zero-shot | Fine-tuned |
| RoBERTa (Large) | 93.99 0.13 | 95.99 0.51 | 95.82 0.13 | 97.18 0.36 |
| GPT-2 (Medium) | 89.79 0.38 | 94.14 0.16 | 92.72 0.35 | 95.94 0.11 |
| T5 (Base) | 92.61 0.64 | 93.37 0.06 | 94.84 0.47 | 95.38 0.04 |
| LLaMA2 (13B) | 71.06 0.42 | 94.18 0.63 | 83.04 0.34 | 95.96 0.37 |
| Acc(%) | F1(%) | ||
| # Training Samples | |||
| 0 | 0.20 .004 | 76.25 1.76 | 84.30 1.28 |
| 500 | 0.33 .005 | 82.09 0.89 | 86.94 0.35 |
| 1,000 | 0.35 .015 | 85.36 0.18 | 89.58 0.26 |
| ExpInstruct (1,600) | 0.35 .019 | 87.20 0.69 | 90.96 0.51 |
| Instruction Strategy |
| Backbone Model | Acc(%) | F1(%) | |
|---|---|---|---|
| Fine-tuned with subset & Test on subset | |||
| RoBERTa (Large) | 0.19 .005 | 84.70 0.83 | 89.18 0.59 |
| GPT-2 (Medium) | 0.38 .016 | 79.00 0.76 | 84.32 0.59 |
| T5 (Base) | 0.12 .003 | 79.52 0.76 | 84.97 0.65 |
| Zero-shot with OOD (randomly sample 3k) | |||
| GPT-4 | 0.35 .008 | 87.55 0.92 | 91.61 0.53 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | #Dataset (k) | #train (k) | #val (k) | #test (k) | data split | experiment |
|---|---|---|---|---|---|---|
| PLMs | 850 | 595.2 | 84.8 | 170 | 7 : 1 : 2 | 3 runs |
| ExpInstruct | 3 | 1.6 | 0.4 | 1.0 | custom | 3-fold |
| Lengthening Style | POS Tag | Ratio (%) | Examples of normalized forms |
|---|---|---|---|
| Letter Repetitive | ADV | 14.41 | ’so+’, ’wa+y’, ’way+’, ’reall+y’, ’wa+y+’ |
| Letter Repetitive | INTJ | 6.67 | ’hmm+’, ’ah+’, ’oh+’, ’um+’, ’aw+’ |
| Letter Repetitive | others | 3.20 | ’all+’, ’to+’, ’go+d’, ’bu+t’, ’al+’ |
| Letter Repetitive | VERB | 3.19 | ’lo+ve’, ’love+’, ’lo+ved’, ’recomm+end’, ’lo+ves’ |
| Letter Repetitive | ADJ | 3.06 | ’lo+ng’, ’hu+ge’, ’slo+w’, ’long+’, ’litt+le’ |
| Letter Repetitive | NOUN | 1.71 | ’boo+k’, ’go+d’, ’a+s’, ’wa+y’, ’boo+’ |
Sentiment Analysis
Sentiment analysis detects and measures opinions, emotions, and evaluative stance in text and multimodal data.
See all 127 papers