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
Figure 1: An overview of our work for RLF. (1) We introduce Lengthening in Section 3 . (2) We propose the ExpInstruct framework and describe prompt details in Section 4.1 . (3) Experiments details are in Section 5 .
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
Twitter
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
Table 1: Summary statistics for our dataset. Lengthening is the first large-scale dataset featuring RLF for SA task, grounded in 4 public datasets with an average of 5.8% documents containing RLF. More details of the generation process of our dataset are described in Section 3
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!!!!!
Twitter
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………….
Table 2: Samples from our Lengthening dataset.
Figure 2: Prompt Design and Template for ExpInstruct. (a) Prompt with CoT for word-level explainability. (b) Simple Prompt for SA. (c) Prompt Template for Instruction tuning
Figure 3: Comparing normalized WIS for an RLF sentence from zero-shot GPT-4 and fine-tuned RoBERTa.
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
Table 3: Overall zero-shot accuracy and F1 score for sentences with RLF and without RLF words (w/o RLF). Bold denotes the best results in a column and underline highlights the second best results. ± indicates standard deviation score.
Figure 4: Comparison of accuracy between the RLF and w/o RLF groups using zero-shot and fine-tuned models by sentence length. The lines represent average values, and the error bar indicate the standard deviation for each length group across 3 runs. Both results across 3 fine-tuned models show a convergence between the RLF and w/o RLF groups when the sentence character length is around 80.
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
Twitter
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
Table 4: Zero-shot accuracy and F1 score for sentences with/without RLF words in different domains. We report RoBERTa (Large), GPT-2 (Medium) and T5 (Base) because limited test samples for GPT-4 and LLaMA2-13B. Bold and underline indicate best and second best results. ± indicates standard deviation score.
Lengthening Style
Punctuation Repetitive
Letter Repetitive
Overall
Backbone Model
Sexp
Acc(%)
F1(%)
Sexp
Acc(%)
F1(%)
Sexp
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
Table 5: Comparision performances between zero-shot and finetuned models with two lengthening styles. In each column, the best result is highlighted in bold, and the second best result is underlined.
PP
PN
NP
NN
RLF
127
9
11
53
w/o RLF
120
16
13
51
Table 6: Confusion matrices for sample distribution. We categorized data with combinations of document and sentence labels (e.g., PP represents Positive document with Positive sentence).
Backbone Model
IAA
Reliability
Sexp
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
Table 7: Detail results of Explanation Reliability for zero-shot GPT-4 and the 4 fine-tuned models (RoBERTa, GPT-2, T5, and ExpInstruct). The correlation coefficient between the reliability score and Sexp is 0.91.
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 ↑
Table 8: Document-level gains for LMs fine-tuned with Lengthening . We observe average improvement in accuracy as 7.6% and F1 score as 4.5% among the models.
Sexp
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
Table 9: Results of ablation study for effects of sample size and instruction strategy.
Backbone Model
Sexp
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
Table 10: Comparision performances on the subset, PLMs finetuned on Lengthening and test on subset
Table 12: Examples of normalized forms by lengthening style and POS tag.
Figure 5: Our customized user interface for human evaluation. Annotators are asked to do two tasks: annotation for sentiment labels and explanation reliability.
School of Computing and Information Systems, Singapore Management University, 80 Stamford Rd, Singapore 178902, Singapore · Research and Development, Mastercard, 4250 Fairfax Dr, Arlington, VA 22203, USA