<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>N. T. Thuy); thindv@uit.edu.vn (D. V. Thin)
 https://nlp.uit.edu.vn/ (D. V. Thin)</journal-title>
      </journal-title-group>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>An Empirical Study of Prompt Engineering with Large Language Models for Hope Detection in English and Spanish</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Nguyen Thi Thuy</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Dang Van Thin</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
          <xref ref-type="aff" rid="aff1">1</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>University of Information Technology-VNUHCM</institution>
          ,
          <addr-line>Quarter 6, Linh Trung Ward, Thu Duc District, Ho Chi Minh City</addr-line>
          ,
          <country country="VN">Vietnam</country>
        </aff>
        <aff id="aff1">
          <label>1</label>
          <institution>Vietnam National University</institution>
          ,
          <addr-line>Ho Chi Minh City</addr-line>
          ,
          <country country="VN">Vietnam</country>
        </aff>
      </contrib-group>
      <pub-date>
        <year>2024</year>
      </pub-date>
      <volume>000</volume>
      <fpage>0</fpage>
      <lpage>0001</lpage>
      <abstract>
        <p>Hope is one of the exceptional human capacities that allows for flexible anticipation of future events and possible expected outcomes. Hope speech detection is a crucial task in understanding and fostering positive discourse within online communities. Shared task HOPE at IberLEF 2024 encompasses two distinct but complementary subtasks, each addressing diferent facets of hope speech. Task 1 is called as “Hope for Equality, Diversity, and Inclusion” and aims to detect hope speech related to Equality, Diversity, and Inclusion. Task 2, “Hope as Expectations” focuses on expectations and desirable and undesirable facts. In this paper, we present our unsupervised approach to solve both tasks. Our main idea is to leverage the power of a large language model, ChatGPT 3.5, and the prompting technique to solve two tasks. We used ChatGPT 3.5 with three prompting techniques: zero-shot, few-shot (one-shot, three-shot), and chain of thought, combined with six diferent information strategies. Our best prompts achieved top 1 in task 1 with a Macro F1-score of 0.7161. However, the performance did not meet expectations in the sub-tasks of task 2.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Hope speech detection</kwd>
        <kwd>ChatGPT</kwd>
        <kwd>Prompt Engineering</kwd>
        <kwd>Spanish Language</kwd>
        <kwd>English Language</kwd>
        <kwd>Few-shot prompt</kwd>
        <kwd>Large language models</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>
        Hope is one of the exceptional human capacities that allows for flexible anticipation of future
events and possible expected outcomes. These visions significantly influence emotions,
behaviour, and mood (Bruininks and Malle [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ]). Nowadays, people often post articles to share
their feelings, thoughts, and opinions on social media. But in addition to posts with positive
messages, there are also massive posts of ofensive messages posted against people because
of their race, colour, ethnicity, gender, sexual orientation, nationality, or religion. Research
by Chakravarthi [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] has pointed out that posts on social media have a significant efect on
vulnerable groups. It plays an essential role in shaping the individual’s personality and view of
society (Burnap et al. [
        <xref ref-type="bibr" rid="ref3">3</xref>
        ], Kitzie [
        <xref ref-type="bibr" rid="ref4">4</xref>
        ], Milne et al. [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ]) during their use of social media. Therefore
hope speech detection becomes a meaningful task in the Natural language processing (NLP)
community. It helps to prevent toxic posts and spread hope speech, which is the type of speech
that can relax a hostile environment (Palakodety et al. [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ]) and that helps, gives suggestions,
and inspires good feelings in several people when they are in times of illness, stress, loneliness,
or depression (Chakravarthi [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ]).
      </p>
      <p>
        Inspired by applying Large language models (LLMs) or ChatGPT to solve Sentiment analysis
tasks (Fatouros et al. [
        <xref ref-type="bibr" rid="ref7">7</xref>
        ], Belal et al. [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ], Sudirjo et al. [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ], Zhang et al. [
        <xref ref-type="bibr" rid="ref10">10</xref>
        ]) and the eficiency of
applying Zero-shot ChatGPT for hope speech setection in the HOPE at IberLEF 2023 (Ngo and
Tran [
        <xref ref-type="bibr" rid="ref11">11</xref>
        ]), we only use ChatGPT 3.5 to solve both tasks. However, we not only use Zero-shot
as [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ] but also carry out experiments on many prompting techniques and various strategies to
provide information to find the most efective prompts to solve this task.
      </p>
      <p>
        Prompt Engineering helps to efectively design and improve prompts to get better results
on diferent tasks with LLMs. There are many techniques have been proven to be efective
when working with LLMs, in this study we only focus on three techniques Zero-shot,
Fewshot, and chain of thought promptings. In the prompting context, the term “shot” refers to
the demonstration or example of what exactly the user wants LLMs to do. Zero-shot means
no examples are provided for LLMs, and instruction tuning has been shown to improve
zeroshot learning (Wei et al. [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]). Although LLMs can achieve remarkable results with the
Zeroshot technique, however, Few-shot - prompting with some illustrations is better for complex
situations. (Min et al. [
        <xref ref-type="bibr" rid="ref13">13</xref>
        ]) present some tips exemplars when doing few-shots such as the label
space and the distribution of the input text specified by the demonstrations are both important,
the format prompting also plays a key role in performance, selecting random labels from a true
distribution of labels also helps. Chain of thought (CoT) prompting enables final results to be
derived through intermediate inference steps (Wei et al. [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]).
      </p>
    </sec>
    <sec id="sec-2">
      <title>2. Task description</title>
      <p>
        The shared task on hope speech detection was held many times in the past at the second
workshop on Language Technology for Equality, Diversity and Inclusion (LT-EDI-2022), as a
part of ACL 2022 (Chakravarthi et al. [
        <xref ref-type="bibr" rid="ref14">14</xref>
        ]), at LT-EDI-2023, within RANLP 2023 and the shared
task HOPE in IberLEF 2023 (Kumaresan et al. [
        <xref ref-type="bibr" rid="ref15">15</xref>
        ]). This new edition - HOPE in IberLEF 2024
(García-Baena et al. [
        <xref ref-type="bibr" rid="ref16">16</xref>
        ], Chiruzzo et al. [
        <xref ref-type="bibr" rid="ref17">17</xref>
        ]) is novel when researching Hope through two
perspectives corresponding with two tasks in this shared task
• Task 1: Hope for Equality, Diversity and Inclusion
      </p>
      <p>This task is related to the inclusion of vulnerable groups and focuses on the study of the
detection of hope speech in pursuit of Equality, Diversity, and Inclusion. Given a tweet
written in Spanish, participants must identify whether it contains hope speech or not.
Specifically, this task is divided into two subtasks, but participants will participate in both
of them at the same time.</p>
      <p>
        With given training data on LGTBI tweets from García-Baena et al. [
        <xref ref-type="bibr" rid="ref18">18</xref>
        ] (tweets related
to vulnerable groups are the Lesbian, Gay, Bisexual, and Transgender community),
participants must classify each tweet in the test set in one of the following categories:
– hs: if the tweet contains hope speech.
      </p>
      <p>– nhs: if the tweet does not contain hope speech.
where the test is set in subtask 1.a only contains LGTBI-related tweets while subtask 1.b
contains tweets on unknown domains.
• Task 2: Hope as expectations.</p>
      <p>
        Hope is characterized as “openness of spirit toward the future, a desire, expectation, and
wish for something to happen or to be true” that remarkably afects a human’s state of
mind, emotions, behaviours, and decisions (Bruininks and Malle [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ], Balouchzahi et al.
[
        <xref ref-type="bibr" rid="ref19">19</xref>
        ]). This task focuses on expectations and desirable and undesirable facts. Specifically,
it is divided into two subtasks.
      </p>
      <p>– Subtask 2a: Binary hope speech detection from English and Spanish Texts
Given training data, the participant will classify the text into two categories. In this
problem, each text will be assigned one of the following labels :
∗ Hope: tweets that convey a mention of hope.</p>
      <p>
        ∗ Not Hope: tweets that do not convey hope, expectation, or desire.
– Subtask 2b: Multiclass hope speech detection from English and Spanish Texts
(Balouchzahi et al. [
        <xref ref-type="bibr" rid="ref20">20</xref>
        ])
This subtask is similar to Subtask 2a. However, it becomes more challenging when
each tweet is considered Hope. The participant must specify the specific type of
Hope to which it belongs, whether Generalized Hope, Realistic Hope, or Unrealistic
Hope, where:
∗ Generalized Hope: is expressed as a general hopefulness and optimism that is
not directed toward any specific event or outcome (Wiles et al. [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ], Webb [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ],
Ezzy [
        <xref ref-type="bibr" rid="ref23">23</xref>
        ], Lohne and Severinsson [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ], Lohne and Severinsson [
        <xref ref-type="bibr" rid="ref24">24</xref>
        ], Smith and
Sparkes [
        <xref ref-type="bibr" rid="ref25">25</xref>
        ]).
∗ Realistic Hope: is about expecting something reasonable, meaningful, and
possible thing to happen (Wiles et al. [
        <xref ref-type="bibr" rid="ref21">21</xref>
        ], Eaves et al. [
        <xref ref-type="bibr" rid="ref26">26</xref>
        ], Garrard and Wrigley
[27]).
∗ Unrealistic Hope: is usually in the form of wishing for something to become
true, even though the possibility of happening is remote or significantly less or
even zero (Webb [
        <xref ref-type="bibr" rid="ref22">22</xref>
        ], Eliott and Olver [28], Links and Kramer [29]).
      </p>
      <p>∗ Not Hope: tweets that do not convey hope.</p>
    </sec>
    <sec id="sec-3">
      <title>3. Approach</title>
      <p>We designed prompts to solve this shared task and experimented to research two aspects of the
prompt design technique are Providing information strategies and Prompting techniques with
ChatGPT 3.5.</p>
      <sec id="sec-3-1">
        <title>3.1. Providing information strategies</title>
        <p>This aspect aims to research which information is essential and eficient for Large language
models to solve this shared task. We propose four kinds of information and combine them to
create six providing information strategies.</p>
        <sec id="sec-3-1-1">
          <title>Strategy 2: &lt;information 2&gt; &lt;information 1&gt;</title>
        </sec>
        <sec id="sec-3-1-2">
          <title>Strategy 3: &lt;information 3&gt;\n&lt;information 1&gt;</title>
        </sec>
        <sec id="sec-3-1-3">
          <title>Strategy 4: &lt;information 4&gt; &lt;information 1&gt;</title>
        </sec>
        <sec id="sec-3-1-4">
          <title>Strategy 5: &lt;information 2&gt;\n&lt;information 3&gt;\n&lt;information 1&gt;</title>
        </sec>
        <sec id="sec-3-1-5">
          <title>Strategy 6: &lt;information 4&gt; &lt;information 2&gt;\n&lt;information 3&gt;\n&lt;information 1&gt;</title>
          <p>• Information 1 - Request: This information simply points out what we want Large
language models to do.
• Information 2 - Concept of problem: This information provides the concept or
definition of the key problem LMMs must solve.
• Information 3 - Meaningful of classes: In this study, we apply ChatGPT for
classification tasks, so the meaning of classes might be the essential information.
• Information 4 - Role defining: In most situations, it is better to clearly understand
that Someone must do something with a specific role. In this study, we defined ChatGPT
as an NLP engineer expert and a language specialist, and it is labelled to create a dataset
for this shared task. We use this role throughout subtasks in this shared task.
Fig 1 illustrates the way we use four kinds of information above to create six information
strategies. In which:
• Strategy 1 - Only request: This strategy simply provides directly what we want Large
language models to do without any additional information.
• Strategy 2 - Concept of problem and Request: Except for the request information,
this strategy also provides the concept of key problem LMMs must do.
• Strategy 3 - Meaningful of classes and Request: Except for the request information,
this strategy also provides the meaning of each class LLMs must classify.
• Strategy 4 - Role defining and Request: Before giving the request, this strategy
provides information about the role of LLMs with the hope that LLMs will understand
more about their context and tasks.
• Strategy 5 - Combination 1: Simply, this strategy is the combination of Information 2,
3 and 1.
• Strategy 6 - Combination 2: Simply, this strategy is the combination of Information 2,
3, 4, and 1.</p>
        </sec>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Prompting techniques</title>
        <p>This aspect focuses on how to give the request and instructions for Large language models
to generate the answer. In this study, we experimented with three prompting techniques:
zero-shot, few-shot, and chain of thought (CoT). Additionally, we experimented with One-shot
and Three-shot for the few-shot prompt setting. Specifically, each technique is as follows:
Normal answer format:
Tweet: “&lt;given tweet&gt;”
Label:
CoT answer format:
Tweet: “&lt;given tweet&gt;”
Explanation:
Label:</p>
        <p>Zero-shot prompting:
&lt;Strategy&gt;\n&lt;normal answer format&gt;
One-shot prompting:
&lt;Strategy&gt;\n&lt;One-shot demontration&gt;\n&lt;normal answer format&gt;
Three-shot prompting:
&lt;Strategy&gt;\n&lt;Three-shot demontration&gt;\n&lt;normal answer format&gt;
CoT prompting:
&lt;CoT Strategy&gt;\n&lt;CoT answer format&gt;\n&lt;CoT answer format&gt;
• Zero-shot: With the Zero-shot technique, the final prompts are the strategies of the</p>
        <p>Providing information strategies aspect without providing additional information.
• Few-shot: Except for the instructions information of the Providing information strategies,
this technique will provide some examples to demonstrate what exactly the LMMs must
do and what our expected output is. In this study, with the One-shot technique, we
will provide one demonstration corresponding to each class. Similar to the Three-shot
technique, we will provide three demonstrations corresponding to each class.
• Chain of thought: Applying the chain of thought technique for general classification
tasks is a form that requires LLMs to provide explanations for their classification results.
Because of the diferences in the content of the expected answers in the Chain of thought
and other techniques. We need to define two separate answering formats: the normal answer
format and the CoT answer format. The harmony between Strategy, Prompting techniques, and
answering format to create the final promptings is presented in Figure 2.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Experimental Setup</title>
      <sec id="sec-4-1">
        <title>4.1. Dataset and Evaluation Metrics</title>
        <p>We solve this shared task by using an unsupervised method, and during the process of carrying
out the experiment, we nearly don’t need the training data except to take some samples of
training to serve for the Few-shot technique. We join all subtasks in this shared task and evaluate
each subtask according to the metrics of the organizer.</p>
      </sec>
      <sec id="sec-4-2">
        <title>4.2. Prompting design</title>
        <p>Because we join all subtasks in this shared task, each subtask has a diferent goal, concept, or
label, so to be convenient for us to present full prompting for each subtask, we will pre-define
some variables to store some part of the text. In this report, We only present design prompting
results for task 1; pre-define and complete prompting for all subtasks can be found in this
request: request for the Zero-shot and Few-shot technique for task 1
Please classify whether a given text conveys hope or not. Only return the label from [Hope Speech, Non Hope Speech] without
any other text.</p>
        <p>request_CoT: request for the Chain of thought technique for task 1
Please classify whether a given tweet conveys hope or not. Only return one label from [Hope Speech, Non Hope Speech] and
explain your classification results.</p>
        <p>concept: the concept of Hope in task 1
Hope speech is the type of speech that is able to relax a hostile environment and that helps, gives suggestions and inspires for
good to a number of people when they are in times of illness, stress, loneliness or depression.</p>
        <p>class: Meaningful of classes in task 1
Describe the sentiment of the given text using one of these two attributes: “Hope Speech”, “Non Hope Speech”. Knowing that
a text is considered as “Hope Speech“ if the text: (1) explicitly supports the social integration of minorities or otherwise
distinct groups in society; (2) promotes tolerance, equality, positivity, and healing for all. And knowing that a text is
considered “Non Hope Speech” if it: expresses the negative sentiment, discrimination, violence; or uses insults toward people.</p>
        <p>one-shot: one demonstration for task 1
Tweet: “Hay que tratar de aislar democrÃ¡ticamente los argumentos polÃticos que justifican a machistas, xenÃ³fobos, racistas
y las expresiones de odio a los colectivos LGTBI. El odio genera violencia y la violencia no tiene medida en sus consecuencias”
Label: Hope Speech
Tweet: “Los fundadores del socialismo,-Karl Marx: “Los homosexuales son peores que pederastas”.- Friedrich Engels: â€oeLa
homosexualidad es una aberraciÃ³n de la burguesÃa degeneradaâ€.- IÃ³sif Stalin: “La homosexualidad es un vicio burguÃs””
Label: Non Hope Speech
three-shot: three demonstrations for task 1. It is similar to one-shot_1, however, the number of demonstrations in
each class is three
repository1. Detailed pre-variable to create prompting for task 1 as Fig 3. In Table 1, we show
our detail syntax for final prompting in 6 strategies with three techniques: Zero-shot, One-shot,
and Chain of thought for task 1. Because of paper length limitations, other subtasks are not
presented in this table. But it’s easy to deduce based on the pre-defined variables and syntax
we’ve provided at this repository1. Additionally, in Figure 4 we present full prompting according
to One-shot prompting technique and providing information Strategy 5 - prompting helps us
achieve top 1 on the test set of task1.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>5. Main result</title>
      <p>Table 2 shows the Macro Recision, Macro Recall, and Macro F1-score of all prompting we
designed on the validation set for task 1. Through this table, we can see that all prompts
achieved positive performance. Although there are small diferences between classifications,
on average, strategy 3 and strategy 6 generally perform better than the others, especially as
they often significantly improve over strategy 1. Strategy 1 is better than Strategy 2 in almost
all techniques, although Strategy 2 includes the concept of Hope. This unfortunate situation
may be because the concept we have defined is somewhat non-standard compared to the data
set, causing ChatGPT to be confused in the process of providing the final classification results.</p>
      <p>Concept of</p>
      <p>problem
Meaningful
of classes</p>
      <p>Request
One-shot</p>
      <p>Hope speech is the type of speech that is able to relax a hostile environment and that helps, gives
suggestions and inspires for good to a number of people when they are in times of illness, stress,
loneliness or depression.</p>
      <p>Describe the sentiment of the given text using one of these two attributes: “Hope Speech”, “Non
Hope Speech”. Knowing that a text is considered as “Hope Speech“ if the text: (1) explicitly supports
the social integration of minorities or otherwise distinct groups in society; (2) promotes tolerance,
equality, positivity, and healing for all. And knowing that a text is considered “Non Hope Speech” if
it: expresses the negative sentiment, discrimination, violence; or uses insults toward people.</p>
      <p>Please classify whether a given text conveys hope or not. Only return the label from [Hope Speech,
Non Hope Speech] without any other text.</p>
      <p>Tweet: “Hay que tratar de aislar democrÃ¡ticamente los argumentos polÃticos que justifican a
machistas, xenÃ³fobos, racistas y las expresiones de odio a los colectivos LGTBI. El odio genera
violencia y la violencia no tiene medida en sus consecuencias”
Label: Hope Speech
Tweet: “Los fundadores del socialismo,-Karl Marx: “Los homosexuales son peores que
pederastas”.Friedrich Engels: â€oeLa homosexualidad es una aberraciÃ³n de la burguesÃa degeneradaâ€.- IÃ³sif
Stalin: “La homosexualidad es un vicio burguÃs””</p>
      <p>Label: Non Hope Speech</p>
      <p>Normal
answer format</p>
      <p>Tweet: &lt;given tweet&gt;</p>
      <p>Label:
The average on strategies of each prompting technique, the performances are similar. However,
there is a special in the Chain of thought technique, Strategy 3, 4, 5, and 6 have significant
improvements compared to Strategy 1, and 2. Besides, Strategies 4, 5, and 6 in this technique
also give stable performance compared to the remaining techniques. This may be because
the Chain of thought technique requires more information to make inferences. In this report
result, the performance of the Few-shot (One-shot and Three-shot) technique does not improve
performance compared to Zero-shot but this is completely within our expectations. Because the
task in task 1 is described quite clearly, along with the meaning of the classes fed by strategy
3, it is enough for LLMs to understand its task. Providing additional demonstration with a
few shots increases the size of the input text, which can afect the accuracy of LLMs during
processing.</p>
      <p>Table 3 reports the Macro F1-score on the validation set for subtask 2a and subtask 2b for both
English and Spanish. In task 2, Performance seems more stable across techniques and strategies.
Three-shot is usually better in all cases, and among strategies, Strategy 3 and Strategy 5 often
give the most stable and highest results. If in binary classification tasks (task 1 and subtask
2. a), the Few-shot technique and strategy 3 have not made a diference from Zero-shot and
strategy 1. Then, in multi-classification tasks 2. b, Few-shot provides some demonstrations, and
strategy 3 has additional information on the meaning of classes compared to strategy 1, which
has shown significantly improved results. This demonstrates the efectiveness of providing the
meaning of classes and illustrative examples for LLMs in complex tasks.</p>
      <p>According to the performance report of both task 1 and task 2, if there is only concept
and request in the prompt (strategy 2), then concept information is not really efective in
this task. However, when combining the other information, such as the meaning of classes
or the role of LLMs (strategy 5, strategy 6), it is somewhat improved and more stable. With
role definition (strategy 4) for LLMs, in English tasks, it works quite poorly, actually reducing
accuracy compared to strategy 1 (just giving requests). However, we have an intuition about
the efectiveness of defining roles for LLMs in Spanish tasks. It cannot be denied that when role
information stands alone in strategy 4, it still produces quite bad results, but when combined
with other information in strategy 6 when working with Spanish, it can be efective use. We
are not saying that defining the role helps LLMs produce good results with Spanish. We would
like to suggest that defining the role as “an NLP engineer expert as a language specialist” when
working with Spanish helps Strategy 4 be more competitive when working with English.</p>
      <p>Because of the limitation of submission, we can’t conduct all the prompting that we designed
on the testing set. Table 4 presents the best result and our rank on the test set on all of the
subtasks in promptings we submitted on CodaLab. For all subtasks, one-shot techniques are the
best, and providing an information strategy is like what we observed on the validation set. We
achieved top 1 in task 1, while the results achieved in task 2 were not satisfactory. It is possible
that achieving top 1 in task 1 is due to the nature of the test set containing out-of-domain data
compared to training data. While applying LLMs can be efective in classification tasks such
Performance of all prompting on the validation set for task 1 on Macro Recision, Macro Recall, and
Precision</p>
      <p>F1-score</p>
      <p>Precision</p>
      <p>F1-score
Performance of all prompting on the validation set for task 2 on Macro F1-score
Macro F1-score
Final result and rank on the test set on all of the subtasks public on CodaLab</p>
      <p>Subtask</p>
      <p>Task 1
Subtask 2a - English
Subtask 2a - Spanish
Subtask 2b - English
Subtask 2b - Spanish</p>
      <p>Technique
One-shot
One-shot
One-shot
One-shot
One-shot</p>
      <p>Strategy
Strategy 5
Strategy 5
Strategy 6
Strategy 5
Strategy 6</p>
      <p>Rank
1
9
9
7
11</p>
      <p>Precision
0.64
0.75
0.73
0.46
0.47
as saving time, training costs, and the need to worry about training data. However, It is still
inferior to supervised learning methods when data are in a specific domain. In particular, LLMs
work based on the information we provide in the prompts, so a close description of the concept
and goal of the test set is a must. Describe information of test set non-standard will directly
afect the results of the method.</p>
    </sec>
    <sec id="sec-6">
      <title>6. Conclusion and Future Work</title>
      <p>In this study, we designed and carried out experiments on various promptings. With each
technique and strategy, we evaluate and explain the results. We achieved top 1 by using
prompting which combined of Zero-shot prompting technique and providing information
strategy 5, however, the results achieved in task 2 are quite modest. Applying LLMs like
ChatGPT 3.5 to solve hope speech detection can bring many benefits, but we need to focus
on describing the data. The concepts and problem objectives must be compatible with the
data. At the same time, it is necessary to evaluate the complexity of the problem to choose the
appropriate technique and strategy to take full advantage of the power of LLMs in tasks like
this.
and despair in chronic pain, Culture, Medicine, and Psychiatry 40 (2016) 35–58.
[27] E. Garrard, A. Wrigley, Hope and terminal illness: False hope versus absolute hope, Clinical</p>
      <p>Ethics 4 (2009) 38–43.
[28] J. Eliott, I. Olver, The discursive properties of “hope”: A qualitative analysis of cancer
patients’ speech, Qualitative health research 12 (2002) 173–193.
[29] M. Links, J. Kramer, Breaking bad news: realistic versus unrealistic hopes, Supportive
Care in Cancer 2 (1994) 91–93.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Bruininks</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. F.</given-names>
            <surname>Malle</surname>
          </string-name>
          ,
          <article-title>Distinguishing hope from optimism and related afective states</article-title>
          ,
          <source>Motivation and emotion 29</source>
          (
          <year>2005</year>
          )
          <fpage>324</fpage>
          -
          <lpage>352</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          ,
          <article-title>Hopeedi: A multilingual hope speech detection dataset for equality, diversity, and inclusion</article-title>
          ,
          <source>in: Proceedings of the Third Workshop on Computational Modeling of People's Opinions, Personality, and Emotion's in Social Media</source>
          ,
          <year>2020</year>
          , pp.
          <fpage>41</fpage>
          -
          <lpage>53</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>P.</given-names>
            <surname>Burnap</surname>
          </string-name>
          , G. Colombo,
          <string-name>
            <given-names>R.</given-names>
            <surname>Amery</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Hodorog</surname>
          </string-name>
          ,
          <string-name>
            <surname>J.</surname>
          </string-name>
          <article-title>Scourfield, Multi-class machine classification of suicide-related communication on twitter</article-title>
          .
          <source>online social networks and media</source>
          ,
          <volume>2</volume>
          ,
          <fpage>32</fpage>
          -
          <lpage>44</lpage>
          ,
          <year>2017</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>V.</given-names>
            <surname>Kitzie</surname>
          </string-name>
          ,
          <article-title>" i pretended to be a boy on the internet": Navigating afordances and constraints of social networking sites and search engines for lgbtq+ identity work</article-title>
          , First
          <string-name>
            <surname>Monday</surname>
          </string-name>
          (
          <year>2018</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D. N.</given-names>
            <surname>Milne</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Pink</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Hachey</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R. A.</given-names>
            <surname>Calvo</surname>
          </string-name>
          ,
          <article-title>Clpsych 2016 shared task: Triaging content in online peer-support forums</article-title>
          ,
          <source>in: Proceedings of the third workshop on computational linguistics and clinical psychology</source>
          ,
          <year>2016</year>
          , pp.
          <fpage>118</fpage>
          -
          <lpage>127</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Palakodety</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. R.</given-names>
            <surname>KhudaBukhsh</surname>
          </string-name>
          , J. G. Carbonell,
          <article-title>Hope speech detection: A computational analysis of the voice of peace</article-title>
          , arXiv preprint arXiv:
          <year>1909</year>
          .
          <volume>12940</volume>
          (
          <year>2019</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>G.</given-names>
            <surname>Fatouros</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>Soldatos</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Kouroumali</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Makridis</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Kyriazis</surname>
          </string-name>
          ,
          <article-title>Transforming sentiment analysis in the financial domain with chatgpt</article-title>
          ,
          <source>Machine Learning with Applications</source>
          <volume>14</volume>
          (
          <year>2023</year>
          )
          <fpage>100508</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>M.</given-names>
            <surname>Belal</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.</given-names>
            <surname>She</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Wong</surname>
          </string-name>
          ,
          <article-title>Leveraging chatgpt as text annotation tool for sentiment analysis</article-title>
          ,
          <source>arXiv preprint arXiv:2306.17177</source>
          (
          <year>2023</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>F.</given-names>
            <surname>Sudirjo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Diantoro</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. A.</given-names>
            <surname>Al-Gasawneh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. K.</given-names>
            <surname>Azzaakiyyah</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. M. A.</given-names>
            <surname>Ausat</surname>
          </string-name>
          ,
          <article-title>Application of chatgpt in improving customer sentiment analysis for businesses</article-title>
          ,
          <source>Jurnal Teknologi Dan Sistem Informasi Bisnis</source>
          <volume>5</volume>
          (
          <year>2023</year>
          )
          <fpage>283</fpage>
          -
          <lpage>288</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>W.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>Deng</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Liu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. J.</given-names>
            <surname>Pan</surname>
          </string-name>
          , L. Bing,
          <article-title>Sentiment analysis in the era of large language models: A reality check</article-title>
          ,
          <source>arXiv preprint arXiv:2305.15005</source>
          (
          <year>2023</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A.</given-names>
            <surname>Ngo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H. T. H.</given-names>
            <surname>Tran</surname>
          </string-name>
          , Zootopi at hope2023iberlef:
          <article-title>Is zero-shot chat-gpt the future of hope speech detection</article-title>
          ,
          <source>in: Proceedings of the Iberian Languages Evaluation Forum (IberLEF</source>
          <year>2023</year>
          ),
          <article-title>co-located with the 39th Conference of the Spanish Society for Natural Language Processing (SEPLN 2023), CEURWS</article-title>
          . org,
          <year>2023</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <given-names>J.</given-names>
            <surname>Wei</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Bosma</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V. Y.</given-names>
            <surname>Zhao</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Guu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. W.</given-names>
            <surname>Yu</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Lester</surname>
          </string-name>
          ,
          <string-name>
            <given-names>N.</given-names>
            <surname>Du</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. M.</given-names>
            <surname>Dai</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Q. V.</given-names>
            <surname>Le</surname>
          </string-name>
          ,
          <article-title>Finetuned language models are zero-shot learners</article-title>
          ,
          <source>arXiv preprint arXiv:2109.01652</source>
          (
          <year>2021</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref13">
        <mixed-citation>
          [13]
          <string-name>
            <given-names>S.</given-names>
            <surname>Min</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Xinxi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Ari</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Mikel</surname>
          </string-name>
          ,
          <string-name>
            <given-names>L.</given-names>
            <surname>Mike</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Hannaneh</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Z.</given-names>
            <surname>Luke</surname>
          </string-name>
          ,
          <article-title>Rethinking the role of demonstrations: What makes in-context learning work?</article-title>
          ,
          <source>arXiv preprint arxiv:2202.12837</source>
          (
          <year>2022</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref14">
        <mixed-citation>
          [14]
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Muralidaran</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Priyadharshini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Cn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. P.</given-names>
            <surname>McCrae</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Á. García</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Jiménez-Zafra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Valencia-García</surname>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Kumaresan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.</given-names>
            <surname>Ponnusamy</surname>
          </string-name>
          , et al.,
          <article-title>Overview of the shared task on hope speech detection for equality, diversity, and inclusion</article-title>
          ,
          <source>in: Proceedings of the second workshop on language technology for equality, diversity and inclusion</source>
          ,
          <year>2022</year>
          , pp.
          <fpage>378</fpage>
          -
          <lpage>388</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref15">
        <mixed-citation>
          [15]
          <string-name>
            <given-names>P. K.</given-names>
            <surname>Kumaresan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. R.</given-names>
            <surname>Chakravarthi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Cn</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Á</surname>
          </string-name>
          .
          <string-name>
            <surname>García-Cumbreras</surname>
            ,
            <given-names>S. M.</given-names>
          </string-name>
          <string-name>
            <surname>Jiménez-Zafra</surname>
            ,
            <given-names>J. A.</given-names>
          </string-name>
          <string-name>
            <surname>García-Díaz</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Valencia-García</surname>
            ,
            <given-names>M.</given-names>
          </string-name>
          <string-name>
            <surname>Hardalov</surname>
            ,
            <given-names>I. Koychev</given-names>
          </string-name>
          ,
          <string-name>
            <given-names>P.</given-names>
            <surname>Nakov</surname>
          </string-name>
          , et al.,
          <article-title>Overview of the shared task on hope speech detection for equality, diversity, and inclusion</article-title>
          ,
          <source>in: Proceedings of the Third Workshop on Language Technology for Equality, Diversity and Inclusion</source>
          ,
          <year>2023</year>
          , pp.
          <fpage>47</fpage>
          -
          <lpage>53</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref16">
        <mixed-citation>
          [16]
          <string-name>
            <given-names>D.</given-names>
            <surname>García-Baena</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Balouchzahi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.</given-names>
            <surname>Butt</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Á</surname>
          </string-name>
          .
          <string-name>
            <surname>García-Cumbreras</surname>
            ,
            <given-names>A. Lambebo</given-names>
          </string-name>
          <string-name>
            <surname>Tonja</surname>
            ,
            <given-names>J. A.</given-names>
          </string-name>
          <string-name>
            <surname>García-Díaz</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Bozkurt</surname>
            ,
            <given-names>B. R.</given-names>
          </string-name>
          <string-name>
            <surname>Chakravarthi</surname>
            ,
            <given-names>H. G.</given-names>
          </string-name>
          <string-name>
            <surname>Ceballos</surname>
            , V.-
            <given-names>G.</given-names>
            Rafael, G.
          </string-name>
          <string-name>
            <surname>Sidorov</surname>
            ,
            <given-names>L. A.</given-names>
          </string-name>
          <string-name>
            <surname>Ureña-López</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Gelbukh</surname>
            ,
            <given-names>S. M.</given-names>
          </string-name>
          <string-name>
            <surname>Jiménez-Zafra</surname>
          </string-name>
          , Overview of hope at iberlef 2024:
          <article-title>Approaching hope speech detection in social media from two perspectives, for equality, diversity and inclusion and as expectations</article-title>
          ,
          <source>Procesamiento del Lenguaje Natural</source>
          <volume>73</volume>
          (
          <year>2024</year>
          ).
        </mixed-citation>
      </ref>
      <ref id="ref17">
        <mixed-citation>
          [17]
          <string-name>
            <given-names>L.</given-names>
            <surname>Chiruzzo</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Jiménez-Zafra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>F.</given-names>
            <surname>Rangel</surname>
          </string-name>
          , Overview of IberLEF 2024:
          <article-title>Natural Language Processing Challenges for Spanish and other Iberian Languages, in: Proceedings of the Iberian Languages Evaluation Forum (IberLEF 2024), co-located with the 40th Conference of the Spanish Society for Natural Language Processing (SEPLN 2024), CEUR-WS</article-title>
          .org,
          <year>2024</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref18">
        <mixed-citation>
          [18]
          <string-name>
            <given-names>D.</given-names>
            <surname>García-Baena</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Á</surname>
          </string-name>
          .
          <string-name>
            <surname>García-Cumbreras</surname>
            ,
            <given-names>S. M.</given-names>
          </string-name>
          <string-name>
            <surname>Jiménez-Zafra</surname>
            ,
            <given-names>J. A.</given-names>
          </string-name>
          <string-name>
            <surname>García-Díaz</surname>
            ,
            <given-names>R.</given-names>
          </string-name>
          <string-name>
            <surname>Valencia-García</surname>
          </string-name>
          ,
          <article-title>Hope speech detection in spanish: The lgbt case</article-title>
          ,
          <source>Language Resources and Evaluation</source>
          (
          <year>2023</year>
          )
          <fpage>1</fpage>
          -
          <lpage>28</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref19">
        <mixed-citation>
          [19]
          <string-name>
            <given-names>F.</given-names>
            <surname>Balouchzahi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Sidorov</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Gelbukh</surname>
          </string-name>
          ,
          <article-title>Polyhope: Two-level hope speech detection from tweets</article-title>
          ,
          <source>Expert Systems with Applications</source>
          <volume>225</volume>
          (
          <year>2023</year>
          )
          <fpage>120078</fpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref20">
        <mixed-citation>
          [20]
          <string-name>
            <given-names>F.</given-names>
            <surname>Balouchzahi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.</given-names>
            <surname>Sidorov</surname>
          </string-name>
          ,
          <string-name>
            <surname>A</surname>
          </string-name>
          . Gelbukh,
          <article-title>PolyHope: Two-level hope speech detection from tweets</article-title>
          ,
          <source>Expert Systems with Applications</source>
          <volume>225</volume>
          (
          <year>2023</year>
          )
          <article-title>120078</article-title>
          . doi:
          <volume>10</volume>
          .1016/j.eswa.
          <year>2023</year>
          .
          <volume>120078</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref21">
        <mixed-citation>
          [21]
          <string-name>
            <given-names>R.</given-names>
            <surname>Wiles</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Cott</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B. E.</given-names>
            <surname>Gibson</surname>
          </string-name>
          ,
          <article-title>Hope, expectations and recovery from illness: a narrative synthesis of qualitative research</article-title>
          ,
          <source>Journal of advanced nursing 64</source>
          (
          <year>2008</year>
          )
          <fpage>564</fpage>
          -
          <lpage>573</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref22">
        <mixed-citation>
          [22]
          <string-name>
            <given-names>D.</given-names>
            <surname>Webb</surname>
          </string-name>
          , Modes of hoping,
          <source>History of the human sciences 20</source>
          (
          <year>2007</year>
          )
          <fpage>65</fpage>
          -
          <lpage>83</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref23">
        <mixed-citation>
          [23]
          <string-name>
            <given-names>D.</given-names>
            <surname>Ezzy</surname>
          </string-name>
          ,
          <article-title>Illness narratives: time, hope and hiv</article-title>
          ,
          <source>Social science &amp; medicine 50</source>
          (
          <year>2000</year>
          )
          <fpage>605</fpage>
          -
          <lpage>617</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref24">
        <mixed-citation>
          [24]
          <string-name>
            <given-names>V.</given-names>
            <surname>Lohne</surname>
          </string-name>
          , E. Severinsson,
          <article-title>Hope during the first months after acute spinal cord injury</article-title>
          ,
          <source>Journal of Advanced Nursing</source>
          <volume>47</volume>
          (
          <year>2004</year>
          )
          <fpage>279</fpage>
          -
          <lpage>286</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref25">
        <mixed-citation>
          [25]
          <string-name>
            <given-names>B.</given-names>
            <surname>Smith</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A. C.</given-names>
            <surname>Sparkes</surname>
          </string-name>
          ,
          <article-title>Men, sport, spinal cord injury, and narratives of hope, Social science</article-title>
          &amp; medicine
          <volume>61</volume>
          (
          <year>2005</year>
          )
          <fpage>1095</fpage>
          -
          <lpage>1105</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref26">
        <mixed-citation>
          [26]
          <string-name>
            <given-names>E. R.</given-names>
            <surname>Eaves</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Nichter</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Ritenbaugh</surname>
          </string-name>
          ,
          <article-title>Ways of hoping: navigating the paradox of hope</article-title>
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>