Abstract
This study aims to investigate the integration of generative artificial intelligence (GAI) and advanced large language models (LLMs) in financial sentiment research, focusing on improving the accuracy and robustness of financial sentiment classification from investor-generated textual data. The research employs advanced large language models, including XLNet, FinBERT, T5, Gemma-7B, Llama-2, and Llama-3, specifically fine-tuned to address the intricacies of financial language. We utilize generative AI models, such as GPT-4, GPT-3.5, and GPT-2, for data augmentation to mitigate scarcity. The fine-tuned Gemma-7b model proved to be the most successful, with a greater Success Rate (S-rate). The Gemma-7b model showed significant enhancements in performance after fine-tuning, highlighting its capacity to grasp the intricacies of financial emotion. This methodology provides a robust framework for financial sentiment classification and supports the extraction of meaningful sentiment signals from financial text. The results demonstrate the effectiveness of advanced LLMs for financial sentiment analysis and highlight their potential for supporting future research and analytical applications in financial text mining.
1. Introduction
Sentiment analysis (SA) entails the assessment of individuals’ feelings, attitudes, assessments, and views toward many subjects, including events, goods, services, organizations, and their characteristics [1]. Financial Sentiment Analysis (FSA) is a specialist field that concentrates on the examination of investor sentiment and financial textual data [2]. The intricacy of financial markets, influenced by varied cognitive habits in different contexts, presents substantial obstacles to precise analysis and informed decision-making [3]. Automated FSA has been an essential instrument in the last decade, supporting the analysis of financial opinions, narratives, and market-related communications [4]. Its applications encompass company disclosures, annual reports, earnings calls, financial news, and social media material [5]. Sentiment analysis is inherently domain-sensitive, with this reliance especially evident in the financial industry due to specialized vocabulary and focused subjects. For instance, financial contexts often view phrases like “liability” or “debt” as neutral, but general sentiment analysis perceives them negatively [6].
Sources categorize financial sentiment indicators into two primary types [7]: market-derived sentiments and human-annotated emotions [8]. Market-derived feelings are indirect indicators deduced from market activities, such as price variations and trade volumes [9]. Nevertheless, these indicators frequently include extraneous noise from unrelated variables. Positive news often induces transient price surges [10], but the effects of negative news generally last for a more extended period. On the other hand, experts or investors clearly identify human-annotated attitudes [11], which represent subjective interpretation [12]. The increasing accessibility of online resources, including digital news, social media, and the internet, has markedly enhanced financial sentiment analysis (FSA). Consequently, FSA has attracted significant interest from scholars and investors alike. Recently, the emphasis in FSA has transitioned from human-annotated emotions to market-derived sentiments, with its utilization in financial forecasting becoming more widespread.
This research emphasizes the significant impact of generative artificial intelligence models on sentiment analysis, especially within the financial sectors. Advanced LLMs utilize deep learning to generate outputs that, despite imperfections, mimic human creativity and judgment [13]. In finance, these models can produce synthetic financial documents, simulate market situations, and suggest approaches to investment. These algorithms provide new perspectives and insights by identifying patterns within large datasets, thereby complementing quantitative analysis. The merging of GAI and FSA facilitates a more thorough examination of complex market sentiments, thereby improving decision-making processes. This convergence signifies a significant change in financial analysis, enabling the development of innovative content that reflects the complex emotional nuances of financial discourse. Generative AI models, such as OpenAI’s GPT-based ChatGPT-4, constitute a comprehensive range of tools tailored for diverse applications and pricing structures. LLMs such as Meta’s Llama 2 and Alphabet’s Gemini models are crucial in the progression of AI-driven research. The integration of quantitative and qualitative textual analysis enhances the field of FSA through improved sentiment understanding and contextual interpretation of financial texts.
This research provides an FSA model that utilizes the advanced features of specific LLMs to detect and analyze sentiment in financial contexts. The primary goal is to improve the precision and comprehensiveness of SA in the financial sector, particularly in relation to news that significantly influences market dynamics and economic forecasts. Inflation-related statements influence investment decisions and market perceptions, motivated by concerns regarding increasing prices or optimism about continued growth. These sentiments are essential for navigating market uncertainty and influencing financial trends. Financial sentiment analysis has garnered significant attention in recent years, as evidenced through research conducted by Barbaglia et al. [14] and Picault et al. [15], which emphasize the importance of contextual comprehension. Existing models often need to be labeled by hand, which takes a lot of time and effort; they also have trouble with lexicon and contextual analysis; and they cannot easily adapt to multiple languages. This study explores how fine-tuned models can effectively identify sentiment in multiple languages, highlighting the current limitation that most models primarily focus on English. The globalization of financial risks [16] has rendered cross-linguistic sentiment analysis both essential and complex, necessitating a nuanced understanding of language, market emotions, and cultural diversity. In contrast to objective quantitative metrics, financial sentiment analysis is fundamentally subjective, shaped by individual biases, emotions, and perceptions.
The implementation of FSA in multiple languages poses considerable challenges that require attention to achieve accurate and reliable outcomes. The global and multicultural characteristics of finance complicate this task due to the diversity of languages, nations, and cultural contexts involved. A universal approach proves ineffective because language translation involves complex factors, including the preservation of context and the nuances of both linguistics and culture. Idioms, cultural references, and subtle linguistic variations significantly influence sentiment interpretation. Therefore, performing sentiment analysis in multiple languages is crucial for a thorough understanding of the international financial landscape. Moreover, the analysis of sentiment in both structured and unstructured textual data presents challenges. Structured sources, including financial reports, offer clear and organized information; however, they frequently lack explicit sentiment, complicating the extraction process. Unstructured data, including news stories, internet forums, and social media platforms, poses distinct challenges for sentiment analysis due to its informal language, utilization of sarcasm, abbreviations, and idiomatic expressions.
This research utilizes GPT and various large language models (LLMs) to enhance contextual comprehension. Although LLMs demonstrate strong generalization capabilities, they face persistent domain-specific challenges, particularly in the finance sector. We demonstrate the capability of fine-tuned models, utilizing private datasets focused on financial sentiment, to accurately interpret sentiment across multiple languages, thereby addressing complex challenges. The use of GAI in financial sentiment research signifies a significant advancement in the interpretation and prediction of market patterns based on investor emotion. This study’s principal contributions can be encapsulated as follows:
- Utilization of Advanced LLMs: The study applies cutting-edge LLMs, including FinBERT, XLNet, T5, Gemma-7B, Llama-2, and Llama-3, which are specifically fine-tuned to tackle the distinct linguistic and cultural complexities of financial communication. The models in question seek to enhance the accuracy and dependability of SA in the evolving financial sector.
- Domain-Specific Sentiment Analyzer: The research develops a specialized financial sentiment analyzer using six curated datasets: Fin-SoMe, Social Sentiment Indices (X-Scores), Taborda Dataset, Fin-Lin, SemEval-2017 Task 5 (SET5), and Sanders Dataset. These datasets, sourced from platforms like StockTwits and Twitter, capture diverse investor sentiments and provide a robust basis for model training and validation.
- Generative AI for Data Augmentation: Generative AI tools such as GPT-4, GPT-3.5, and GPT-2 were utilized to produce synthetic data, enhancing the dataset’s diversity and addressing data scarcity. Additionally, advanced word embeddings like Word2Vec and BERT were incorporated to represent semantic relationships in financial texts effectively.
- Model Optimization: The training process was directed by a cross-entropy loss function to reduce classification inaccuracies. Fine-tuning involved techniques such as ReAct, Chain-of-Thought reasoning, and few-shot learning, guaranteeing conformity with financial sentiment analysis goals. Efficiency improvements were achieved through Low-Rank Adaptation (LoRA) and four-bit quantization, which enabled selective parameter updates.
- Evaluation Metrics: Five metrics—Change Rate (C-rate), Success Rate (S-rate), Perplexity (PPL), Query Number (Q-N), and Time Overhead (T-O)—were utilized to thoroughly assess the model’s practical efficacy and dependability.
This study underscores the transformative role of GAI and advanced LLMs in financial sentiment analysis, offering a pathway for more accurate and impactful sentiment-based trading strategies. The subsequent sections of the article are organized as follows: Section 2 reviews numerous relevant studies that address similar topics. Section 3 enumerates the essential strategies and methods utilized in this research. Section 4 presents a series of experiments performed on real-world datasets to evaluate the efficacy of the suggested methodology, along with discussions and comparisons. Section 5 offers a comprehensive investigation of challenges encountered and potential future developments. Finally, we finish with a synthesis of findings and recommendations for prospective study avenues.
Problem Formulation
The integration of GAI in financial markets has generated potential for analyzing sentiment among investors, crucial for predicting market patterns and enabling data-driven trading methods. This research investigates the application of LLMs for SA, highlighting the conversion of textual input into actionable trading tips.
Financial sentiment is evaluated quantitatively by calculating sentiment scores from various textual sources, including news stories, financial reports, and social media discourse. The sentiment score, denoted as S, is derived from a textual dataset T. The objective is to develop a robust framework that connects T to S using advanced GAI approaches.
To establish this, we construct the emotion score S below:
where f maps textual material T to a numerical sentiment score. LLMs L can approximate f:
The matrix X can be used to represent the textual data T, where each row represents a document and each column represents a feature derived from the text. Let symbolize the feature matrix, where m is the number of documents and n is the number of features. The sentiment score S can then be described as:
where is the weight vector and b is the bias term.
A labeled dataset is required to train the model , where N is the number of samples. Minimizing the loss function L, which can be defined as:
To calculate the revisions for W and b, the following steps can be taken:
where η is the learning rate.
The subsequent step is to establish a mapping from sentiment scores to trade moves after the sentiment scores have been generated. Let A represent the action that an investor takes in response to the sentiment score S:
where g is a decision function that ascertains whether to purchase, divest, or retain an asset. A basic threshold-based methodology can be characterized as:
where θbuy and θsell are established thresholds for trading activities.
This approach offers a structured methodology for employing GAI to assess investor mood in financial markets. The use of LLMs integrates textual information with practical trading insights, consequently enhancing investors’ decision-making abilities.
2. Related Literature
2.1. Financial Sentiment Analysis
Scientists have investigated the distinctive expressions and specialized terminology of financial writings, creating FSA as a substantial research area. FinBERT, a specialized pre-trained language model, has made significant progress, routinely outperforming general-purpose frameworks for financial-related activities. Nonetheless, FinBERT struggles to adapt to the constantly evolving lexicon of the financial industry. Concurrently, Gite et al. [17] introduced a methodology to enhance stock price predictions by amalgamating pricing information with market sentiment. This method, while advantageous in certain contexts, is predominantly dependent on historical data, constraining its capacity to detect real-time fluctuations in market sentiment crucial for high-frequency trading tactics.
Dynamic market conditions emphasize the value of flexible models rather than fixed, pre-labeled data. Sharaff et al. [18] improved LSTM-based sentiment analysis by adding word embeddings. This made it easier to understand how financial news fits into larger contexts and changes over time. Notwithstanding these breakthroughs, dependence on semi-static information obstructs real-time application in dynamic financial contexts. Mishev et al. [19] emphasized the advantages of transformer-based models for sentiment analysis while identifying issues pertaining to data integrity and the applicability of outputs for real-time decision-making. Furthermore, there has been minimal exploration of specialized financial language, which includes acronyms and context-dependent emotion fluctuations. Ardekani et al. [20] proposed a model employing contextual language analysis; nevertheless, it inadequately addressed the intricacies of aspect-based sentiment analysis, which is essential for obtaining subtle financial insights. Certain academics investigated social media data to derive investor sentiment, promoting context-specific sentiment classifications such as “buy,” “hold,” or “sell” instead of generic labels.
2.2. Deep Learning-Based Approaches
Social media has led to a rise in content produced by users, including reviews, comments, postings, and updates [21]. Conventional rule-based systems and machine learning (ML) models find it challenging to efficiently analyze this extensive volume of unstructured data. As a result, models based on deep learning (DL) have become indispensable in NLP for extracting significant insights. These models demonstrate proficiency in applications such as emotion recognition, text summarization, and language translation, facilitating organizations in analyzing and utilizing internet material. Organizations can make informed decisions by finding trends and patterns in textual data [22]. Furthermore, deep learning models improve customer service with automated answers and tailored marketing campaigns aimed at certain consumer categories.
Certain platforms, like Hellopeter, provide essential consumer insights on financial institutions; however, the analysis of finance-related documents presents distinct challenges for conventional methodologies [23]. Recent improvements in NLP and LLMs have significantly improved SA. Improvements in model architecture and pre-training techniques and retrieval-augmented generation (RAG) have improved their capacity to contextualize results. RAG facilitates real-time access to external data for models and enhances answers with pertinent information [24]. Researchers like Liu et al. [25] and Fan et al. [26] have stressed how important RAG is for making financial sentiment analysis more reliable and accurate in its use of context.
These investigations underscore the significance of integrating knowledge retrieval into tasks involving NLP to enhance response reliability. Researchers have enhanced accuracy and contextual relevance in various applications, including FSA, through the integration of modeling and retrieval techniques. This connection has advanced natural language processing, improving decision-making and delivering actionable information for enterprises.
Retrieval-Augmented Generation (RAG) models encounter difficulties in efficiently and accurately navigating extensive corpora. Improvement is essential in the seamless integration of retrieved knowledge into the generative process. It is possible that future projects will improve retrieval systems by using real-time data and looking into hybrid strategies, such as combining RAG with meta-learning or reinforcement learning. Shivaprasad and Shetty [27] highlight the significance of comprehensive SA in product reviews for comprehending consumer attitudes and their impact on financial markets. LLMs combined with RAG frameworks improve the accuracy of sentiment prediction, facilitating more informed decision-making. Zhao and Welsch [28] demonstrate that pre-training techniques improve RAG models, illustrating the effectiveness of LLMs in FSA. This approach combines conversational fine-tuning with retrieval-augmented generation (RAG), enhancing performance in sentiment analysis tasks. Alghisi et al. [29] present methodologies for the adaptation of LLMs to conversation systems, thereby improving their capacity to handle nuanced and context-rich discussions. These strategies are essential for analyzing social media texts, offering enhanced understanding of customer behavior and market dynamics.
The extensive use of large language models, including ChatGPT, has initiated dialogs regarding their efficacy and limitations across various domains. Ref. [1] analyzed global perceptions of ChatGPT in education, revealing diverse opinions that highlighted the significance of cultural and contextual factors in evaluating AI. LLMs have demonstrated efficacy in tasks including aspect sentiment classification and question answering. Duan et al. [30] showed a hybrid neural network model for analyzing financial text. They showed better sentiment analysis performance by using advanced pre-training approaches and topic extraction. Ling et al. [31] proposed a retrieval-augmented approach that enhances semantic representations, facilitating sentiment classification across various domains through knowledge transfer. In 2018, Chen et al. [32] created a weakly supervised multimodal deep learning (WS-MDL) model for analyzing sentiment in tweets. It uses CNN and dynamic CNN architectures to make multimodal predictions and consistency scores. As text, videos, and audio from social media become easier to access, sentiment analysis has changed from focusing on text to using multimodal techniques. This shows how important it is to look at sentiments in different formats. Factors such as data size and model complexity significantly influence the selection of deep learning methods in ASC. Table 1, which contrasts embedding techniques, datasets, and model performances, illustrates the common use of metrics like recall, accuracy, and F1-score to assess sentiment analysis models.
2.3. Financial Market Behavior, Investor Sentiment, and Generative AI
Recent advances in financial sentiment analysis have emphasized the growing importance of domain-specific textual interpretation and the integration of artificial intelligence techniques for market behavior prediction. Tim Loughran and Bill McDonald [33] demonstrated that conventional sentiment dictionaries are often ineffective in financial contexts because many financial terms carry meanings that differ substantially from general language usage. Their study established the importance of finance-specific textual measurement and motivated the development of specialized sentiment analysis frameworks for financial applications. In parallel, behavioral finance studies such as the work of Meni Abudy, Mugerman, and Shust [34] highlighted the significant relationship between investor mood, collective sentiment, and stock market dynamics, confirming that emotional and psychological factors can influence market performance and trading behavior. More recently, the emergence of generative artificial intelligence and large language models has opened new directions for financial analytics. For instance, Matthias Pelster and Val [35] explored the potential of ChatGPT in stock selection and financial decision-making, illustrating the increasing relevance of generative AI in investment analysis. Building on these theoretical and empirical foundations, the present study integrates advanced large language models, generative AI-based augmentation, and finance-specific sentiment modeling to enhance financial sentiment analysis and market behavior prediction within a unified framework.
Table 1.
Deep Learning-Based Approaches summary.
3. Research Design and Experimental Configuration
This segment delineates a strategy for developing an FSA system using data from multiple financial sources. The methodology incorporates advanced LLMs, including FinBERT, XLNET, T5, Gemma-7B, Llama-2, and Llama-3, in conjunction with embedding techniques such as BERT and Word2Vec. We utilize generative AI to enhance data quality, and rigorous evaluation protocols ensure robust performance. The framework accommodates various commercial industries and cultural contexts. Figure 1 presents a detailed outline of the methodology. Each step is tailored to fulfill specific learning objectives.
Figure 1.
The methodological framework.
3.1. Large Language Model
This part offers a comprehensive examination of LLMs employed in FSA to enhance market prediction capabilities, including XLNET, FinBERT, T5, Gemma-7B, Llama-2, and Llama-3. Each of such approaches possesses distinct advantages. With its permutation-based training and bidirectional context learning, XLNET can fully understand complicated financial texts by detecting even the tiniest connections between tokens. FinBERT, which is specially trained on financial data, is very good at understanding feelings in market news, earnings call transcripts, and financial reports, providing accurate results for specific financial tasks. T5 changes how tasks are managed by turning all NLP problems into a single text-to-text format, making it flexible for tasks like summarization, translation, and classification in finance.
Designed to process diverse financial datasets, Gemma-7B delivers scalable and efficient performance, enabling profound insights for complex, sentiment-driven decisions. Llama-2, on the other hand, has gained recognition for its efficiency and adaptability in parsing nuanced financial language, offering precise sentiment analysis in diverse contexts like earnings reports and market commentaries. Finally, Llama-3 surpasses expectations by enhancing contextual comprehension and real-time processing capabilities, which guarantees accurate sentiment detection and timely insights to forecast market movements. Together, these models form a robust framework for advancing financial sentiment analysis, catering to the dynamic and complex nature of financial markets.
3.1.1. XLNet
XLNet [52] is a robust generalized autoregressive language model that demonstrates proficiency in comprehending intricate dependencies in text. XLNet provides a distinct advantage in financial sentiment analysis by processing bidirectional contexts through permutation-based training, which facilitates a deeper understanding of the sequential and contextual nuances present in financial texts. By leveraging fine-tuning on domain-specific datasets, including financial reports and news articles, XLNet enhances its predictive accuracy for sentiment classification. Its robust performance and versatility make it suitable for sentiment regression tasks and identifying subtle market sentiments, which are critical for informed decision-making in finance.
3.1.2. Finberg
FinBERT [53] is a tailored version of BERT developed for the analysis of financial texts. It is optimized with financial datasets, allowing it to manage the specific linguistic structures and terminologies of the finance sector. FinBERT demonstrates proficiency in sentiment analysis by categorizing text into positive, neutral, or negative sentiment classifications, thereby gaining insight into market trends and investor sentiment. The application encompasses tasks including the evaluation of financial news, processing of earnings call transcripts, and analysis of social media for market sentiment. FinBERT serves as an essential instrument for financial professionals aiming to quantify and forecast market behavior through sentiment analysis.
3.1.3. T5
T5 [54], or Text-to-Text Transfer Transformer, is an encoder–decoder model that reframes all NLP tasks into a text-to-text format. In financial sentiment analysis, T5’s ability to generate and process text proves highly effective in tasks like summarizing financial reports, translating financial data, and extracting sentiments. The model’s flexibility allows it to adapt to various financial datasets, enabling accurate identification of sentiment trends and patterns within textual data. Through advanced pretraining and fine-tuning, T5 delivers remarkable performance in handling nuanced language structures in financial contexts.
3.1.4. Gemma-7B
Gemma-7B [2] is a large-scale language model tailored for high-performance tasks in natural language processing, including financial sentiment analysis. Although there is not much detailed information about Gemma-7B, its large size and specialized training help it perform well in understanding feelings in various financial texts. Its ability to grow and adjust makes it good at managing complicated financial data and providing accurate sentiment predictions, helping financial analysts understand market trends and make decisions based on sentiment.
3.1.5. Llama-2
Llama-2 [55], created by Meta AI, is a sophisticated large language model intended for diverse natural language processing applications. Llama-2 is recognized for its scalability and efficiency, having been fine-tuned for domain-specific applications including FSA. Llama-2 demonstrates proficiency in processing and interpreting nuanced language structures, making it effective in analyzing complex financial texts, including earnings reports, news articles, and market commentary. The training on a diverse dataset allows for the capture of subtle sentiment signals and the generation of precise insights for decision-making in financial markets. The model’s adaptability and robust architecture render it a valuable instrument for analysts and traders seeking to extract actionable insights from extensive financial data sets.
3.1.6. Llama-3
Llama-3 [56] represents the subsequent development in the Llama series, enhancing the capabilities of Llama-2 through notable improvements in computational efficiency and language understanding. Llama-3 is engineered to manage larger datasets and intricate linguistic patterns, making it well-suited for financial sentiment analysis tasks that necessitate high accuracy and contextual comprehension. The enhanced capability to identify sentiment nuances in financial discourse, such as sarcasm, ambiguity, and implicit sentiment, renders it an effective instrument for assessing market sentiment. Llama-3’s ability for real-time data processing enables financial professionals to remain proactive regarding market trends through timely and actionable sentiment analysis.
3.2. Word Embedding (WE)
The advancement of embeddings for text representation has significantly improved NLP techniques. We are crucial for numerous applications, including recommendation systems, text classification, and machine translation. Previous techniques, including one-hot encoding, depicted words as sparse vectors where the dimensionality matched the vocabulary size, with a single active element designated as 1 to indicate the presence of a specific word. This method, while straightforward, faced challenges related to high dimensionality, insufficient conveyance of semantic meaning, and inadequate representation of word relationships [57].
Word embeddings employ dense vectors characterized by continuous values, which effectively capture semantic meanings and inter-word relationships. Machine learning methods, particularly neural networks, typically generate embeddings by training on extensive corpora to enhance vector representations based on contextual word usage. This research employs two WE approaches, namely Word2Vec and BERT for text analysis. Table 2 presents a comprehensive summary of the configurations employed for each embedding technique.
Table 2.
Configuration Settings of the Applied Word Embedding Models.
3.2.1. BERT
Devlin et al. [58] developed BERT, an advanced deep learning model, in 2019 to enhance natural language understanding. The Transformer architecture captures bidirectional context by analyzing both succeeding and preceding words in a sequence. Tasks such as the pre-trained model using next sentence prediction (NSP) and masked language modeling, allowing for effective adaptation to diverse downstream applications through fine-tuning. Figure 2 shows how self-attention mechanisms are used in the Transformer architecture. These mechanisms change the importance of input tokens on the fly, making their contextual representations better. BERT represents the meaning of a sentence S through a matrix , which comprises contextualized WE obtained from its final hidden layer.
Figure 2.
BERT architecture [58].
A submatrix signifies the specified terms, particularly those pertaining to Dr.
Dr ϵ Rml, where “m” specifies the required length. and denotes the contextual embedding of the i-th token and l represents the embedding dimension. The target vectors are utilized in max-pooling to select the most salient features from every word in the objective for each of the dimensions.
3.2.2. Word2vec
Word2Vec [59] is a key NLP approach that represents words as continuous vectors. These vectors show words with syntactic and semantic links. Word2Vec embeds semantically comparable words in vector space using shallow neural networks. This technique has improved NLP tasks like recommendation systems, machine translation, and information retrieval. The framework has two main models: Skip-gram and Continuous Bag of Words (CBOW) predict surrounding words based on a target word and contextual words, respectively.
The Skip-gram model optimizes the chance of guessing wc from wt mathematically. Maximize the following objective function:
T represents the corpus word count, C(t) represents context words around and is modeled using softmax:
V is the vocabulary size, and and are the context and target word vector representations. Optimization gives Word2Vec dense word embeddings that are useful for NLP tasks.
3.3. GPT-Driven Synthetic Data Augmentation Framework
According to Yenduri et al. [60], Generative Pretrained Transformer (GPT) models use autoregressive transformer designs to generate coherent and contextually relevant text in response to cues. These algorithms generate synthetic data, which enhances training dataset diversity and quality through data augmentation, according to Sufi [61].
Given a dataset where is the input text, and is the relevant label, the synthetic data Ω′ is generated as follows:
where represents the GPT model, c signifies task-specific constraints, and is the resulting synthetic text.
GPT models predict the subsequent token in a sequence by optimizing the conditional probability:
The model calculates transformer output probabilities using softmax. Enhancing GPT models for data augmentation entails minimizing the negative log-likelihood:
where indicates the sequence’s previous tokens. These criteria are used to select synthetic samples for quality and diversity:
And
where quantifies semantic or lexical dissimilarity, and λ represents a threshold. Furthermore, serves as a grading function for relevance and coherence, and represents a quality threshold. The enlarged dataset is utilized to train a downstream classifier , optimized as:
is for categorization. GPT-2, GPT-3.5, and GPT-4 produce diverse, high-quality synthetic data, boosting data augmentation (Algorithm 1). By using larger parameter sizes and more complex characteristics, this strategy greatly improves models’ generalization and performance across tasks. Table 3 lists the main features of these models, such as their largest token capacities, and Figure 3 shows the architecture that was used to create the datasets.
| Algorithm 1. Synthetic Dataset Expansion Using Generative Pre-trained Transformers |
| 1: Input: training dataset Ω = { (x1,y1), (x2,y2), (x3,y3),……, (xn,yn)} 2: GPT models for augmentation: M1(GPT-2), M2(GPT-3.5), M3(GPT-4) 3: Ouput: Augmented dataset Ω′ 4: BEGIN 5: Initialize Augmented Dataset: Ω = Ω′ 6: Step 1: Generate Synthetic Data with GPT Models 7: for i = 1,…….,n 8: for each xi in Ω: 9: Use M1, M2, M3 to generate augmented samples: 11: Add the generated samples to the augmented dataset: 12: Ω′ = Ω ∪ {(((} 13: end for 14: Step 2: Train Base Models on Augmented Data 15: Train each models on Ω′ 16: β1 = M1(Ω′), β2 = M2(Ω′), β3 = M3(Ω′) 17: end for 18: Step 3: Meta-Level Aggregation 19: Combine predictions from β1, β2, β3 to form a new dataset of predictions Φ 20: Φ = {((} 21: Where Φi(x) = Prediction by βi on input x 22: end for 23: Step 4: Generate Final Augmented Dataset 24: Use the meta-model M to synthesize additional data: 25: xnew = M(x) Φ 26: Add synthesized data to Ω 27: Return Final Augmented Dataset 28: Return Ω′ 29: END |
Table 3.
Comparative Analysis of GPT-Based Models Used for Financial Text Data Augmentation.
Figure 3.
Methodological Pipeline for Synthetic Dataset Generation.
3.4. API and Hyperparameter Optimization
In our study, the API implementation served as a pivotal component for seamless integration and evaluation of advanced LLMs, including XLNET, FinBERT, T5, Gemma-7B, Llama-2, and Llama-3, in financial sentiment analysis. These APIs enabled rapid deployment of pre-trained models while maintaining compatibility with custom datasets, facilitating sentiment classification and prediction of financial market trends. Furthermore, BERT and Word2vec were employed as word embedding techniques to enhance the quality of textual representation, ensuring that the semantic context of financial terminologies was effectively captured. GPT-based methodologies were employed for data enhancement, producing synthetic data to rectify class imbalance and enhance model resilience.
Hyperparameter optimization was critical to achieving optimal performance across tasks [62]. Techniques like grid search and Bayesian optimization were applied to fine-tune parameters, which include learning rate, sequence length, and batch size, tailored to each LLM’s architecture. For instance, FinBERT required adjustments to handle domain-specific jargon effectively, while Gemma-7B and Llama models benefited from larger token limits and fine-tuned attention mechanisms. Regularization methods, including dropout and weight decay, were employed to mitigate overfitting, and early stopping was used during training to prevent unnecessary computations. These optimizations significantly improved the models’ ability to predict market behavior with high accuracy.
4. Results Analysis and Discussion
4.1. Model Training
The optimization of sophisticated large language models, including XLNet, T5, Gemma-7B, Llama-2, FinBERT, and Llama-3, was explicitly intended to tackle the language and cultural intricacies of FSA. This procedure utilized domain-specific datasets, meticulously crafted prompts, and sophisticated techniques like LoRA and quantization to improve sentiment comprehension. Llama-2 and Llama-3 were enhanced with annotated datasets of financial evaluations, which exhibit distinct sentiment tendencies pertinent to the sector.
The training process used a cross-entropy loss function to reduce classifying errors. Structured input-output pairs, few-shot learning, chain-of-thought reasoning, and ReAct were used to modify pre-trained models for specific tasks. Computational efficiency was preserved by four-bit quantization, while LoRA facilitated targeted modifications to model weights for parameter-efficient adjustment [62].
Dynamic hyperparameter tuning, encompassing modifications to learning rates (1 × 10−4), gradient steps, batch size, and cosine learning rate scheduling, significantly improved performance [63].
Evaluation parameters, such as perplexity, success rate, time overhead, and query efficiency, demonstrated substantial advancements in the categorization of financial emotion, confirming the efficacy of this customized technique for industry-specific applications.
4.2. Data Source
Our methodology is explicitly tailored for sentiment analysis in the financial industry. We employed six financial datasets to construct and assess the model: Fin-SoMe, Social Sentiment Indices with X-Scores (X-Scores), SemEval-2017 Task 5 (SET5), the Sanders Dataset, Fin-Lin, and the Taborda Dataset. These datasets comprise information from sites such as StockTwits and Twitter, which are pertinent to discussions regarding financial markets. The following is a summary of each dataset and its role in the development process:
- Social Sentiment Indices (X-Scores) [64]: This dataset contains 2886 messages from Twitter and StockTwits, gathered between October 2011 and June 2015. Financial experts annotated the data on a 1–7 scale, later converted to a range of −1 to 1, providing a balanced sentiment classification (negative, neutral, and positive).
- Fin-SoMe [65]: Comprising 10,000 StockTwits posts, this benchmark dataset focuses on sentiments (bullish, bearish, neutral) and is labeled by treasury marketing and risk professionals.
- SemEval-2017 Task 5 (SET5) [66]: Developed for a financial sentiment competition, this dataset includes 1285 tweets and StockTwits posts, each tagged with a sentiment score between −1 and 1.
- Fin-Lin [67]: This dataset features 3204 StockTwits messages from July to September 2018, with sentiment scored between −1 and 1.
- Sanders Dataset [68]: Covering 5512 tweets about Apple, Google, Microsoft, and Twitter, this dataset includes manually labeled sentiments (positive, negative, neutral, or irrelevant) from 2007 to 2011.
- Taborda Dataset [69]: Containing 1300 tweets collected in 2020, this dataset focuses on financial tags like #SPX500 and $AAPL, with sentiment classified as positive, neutral, or negative.
Table 4.
Datasets summary.
Figure 4.
Datasets financial sentiment class distribution.
4.3. Data Processing and Normalization
Data is prepared for analysis in numerous steps [70].Everyone works to improve text quality, standardize structure [71,72], and eliminate unnecessary parts [73]. Figure 5 shows the next stages:
Figure 5.
Cleaning and Pre-processing of data.
Removing punctuation ensures text homogeneity by treating “hello” and “hello!” the same. The context determines whether punctuation is preserved. Python 3.14.5 punctuation uses symbols like “!”#()*+,-./:;<=>?@[\$%&’]^_{|}~, which can be customized.
- −
- Elimination of Numbers: Irrelevant numbers are discovered and extracted via regular expressions.
- −
- Stopword Removal: Frequently utilized terms with no analytical significance, such as “and” or “the,” are omitted. Domain-specific stopword lists are frequently customized for enhanced outcomes.
- −
- URL Elimination: Links and web URLs, commonly included in social media data, are eliminated to improve dataset pertinence.
- −
- Whitespace Reduction: Superfluous spaces are eliminated to enhance clarity and processing efficiency.
Lowercasing: Text is transformed to lowercase, guaranteeing uniformity and considering phrases such as “Data” and “data” as identical in analysis.
- −
- Lemmatization: Words are converted to their basic forms while preserving meaning, standardizing variants such as “runs” and “ran” to “run.”
- −
- Tokenization: To improve analysis, text is split into words or phrases. Its versatility makes word-level tokenization popular in natural language processing.
The preprocessing stages (Algorithm 2) are crucial for enhancing text, facilitating precise and rapid analysis.
| Algorithm 2. Data Cleaning and Pre-processing |
| 1: Input: training dataset Ω = {(x1, x2, x3,……, xn)}, where xi represents a text sample. 2: Pre-trained language model M 3: Stopword list S 4: Spell-checker module C , minimum length Lmin, and maximum length Lmax 6: Ouput: Cleaned and pre-processed dataset Ω’ 7: BEGIN 8: Step 1: Remove Invalid Samples 9: 10: meets basic criteria: 11: if Lmin ≤ length(xi) ≤ Lmax, continue processing. Else, discard. 12: end for 13: Step 2: Lowercase and Strip Whitespace 14: Convert xi to lowercase: 15: xi = lowercase (xi) 16: Remove leading/trailing whitespaces: 17: xi = strip(xi) 18: end for 19: Step 3: Remove Stopwords 20: Tokenize xi into words: 21: xi = tokenize(xi) 22: Remove stopwords from S: 23: xi = {w ∣ w ∈/ S,∀ w ∈ xi} 24: end for 25: Step 4: Correct Spelling and Normalize Text 26: For each token w ∈ xi: 27: Replace w with the corrected version: 28: w= C(w) 29: Reconstruct xi from corrected tokens 30: end for 31: Step 5: Semantic Deduplication 32: Compute semantic embeddings for xi using M: 33: vi = M(xi) 34: Compare vi with embeddings of all samples in Ω′: 35: if cosine_similarity (vi,vj) > θs, discard xi. 36: Else, add xi to Ω′. 37: end for 38: Step 6: Handle Outliers 39: Calculate the average word frequency distribution for xi: 40: fi = word_frequency (xi) 41: Remove samples with extreme values 42: end for 43: Step 7: Standardize Text Representations 44: Normalize contractions 45: Replace emojis with textual descriptions 46: Remove URLs, hashtags, and mentions: 47: xi = regex_replace (xi,patterns) 48: end for 49: Step 8: Validate Grammar 50: For high-quality data, validate grammar using M: 51: xi = grammar_check(xi,M) 52: Output Cleaned Dataset 53: Return Ω′ 54: END |
4.4. Empirical Design and Data Preparation Protocol
We merged six financial sentiment datasets (Fin-SoMe, X-Scores, Taborda, Fin-Lin, SemEval-2017 Task 5, and Sanders) into a single sentiment taxonomy of positive, negative, and neutral classes. For each dataset, the samples were divided into training (70%), validation (10%), and test (20%) sets using stratified sampling to preserve the class proportions. Only the training subset was augmented with data with GPT-2, GPT-3.5, and GPT-4, while the validation and testing samples were kept untouched to avoid data leakage. Generated synthetic instances were filtered for quality, duplicates, and semantic consistency before being included in the training corpus. Paired t-tests were used for statistical significance based on matched observations from identical dataset splits, folds, and evaluation runs across competing models, which ensured fair and consistent performance comparisons.
4.5. Prompt Engineering
Crafting effective prompts is crucial for guiding models to accurately classify sentiment, especially in specialized fields like financial product reviews. Advanced techniques, including few-shot learning [74], chain-of-thought reasoning [75], and ReAct [76], play a crucial role in augmenting the model’s understanding of nuanced reviews.
Few-shot Learning [74]: This approach involves providing the model with a carefully chosen set of examples within the prompt. These examples enable the model to generalize and accurately classify new data, even when training samples are limited.
Chain-of-Thought Reasoning [75]: This method improves the model’s ability to make informed decisions by following a step-by-step logical process. It helps the model evaluate factors like service quality, product features, and customer satisfaction before determining sentiment.
ReAct (Reason and Act) [76]: By integrating reasoning with adaptive behavior, ReAct allows the model to dynamically adjust its outputs as it processes input, ensuring more accurate and context-aware responses.
4.6. Evaluation Metrics
We assess our experiments using five evaluation metrics: Change Rate (C-rate) [77], Success Rate (S-rate) [78], Query Number (Q-N) [79], Perplexity (PPL) [80], and Time Overhead (T-O) [81].
Success Rate (S-rate): This metric calculates the proportion of test cases that effectively disrupt the threat model’s predictions. Examples where the model’s prediction does not align with the ground truth are excluded, ensuring the S-rate only reflects successful perturbations on correctly classified inputs. calculated as:
where represents the quantity of successful test instances, while N is the total number of examples.
Change Rate (C-rate): This measures the average percentage of words altered in the original text, highlighting the extent of modification between the original and perturbed instances. It is calculated as:
where is the number of altered words in text , and is its length.
Perplexity (PPL): This evaluates the fluency of the modified text, indicating how natural or coherent it appears based on the language model’s assessment. It is defined as:
where denotes the probability of a token contingent upon its context.
Time Overhead (T-O): This denotes the average duration required to produce a successful test case, offering insight into the method’s computing efficiency.
Query Number (Q-N): This monitors the average quantity of queries directed to the threat model for each successfully produced test case, complementing T-O in assessing the overall efficiency of the approach.
4.7. Results Exploration and Discussion
Using six datasets that capture distinct dimensions of investor mood derived from social media and financial discussions, the study presents a detailed evaluation of the performance of multiple LLMs for FSA. The evaluation is presented in the form of a comprehensive report. Elements such as XLNet, FinBERT, T5, Gemma-7B, Llama-2, and Llama-3 are among the models that have been tested. A number of key performance measures, including Change Rate (C-rate), Success Rate (S-rate), Query Number (Q-N), Perplexity (PPL), and Time Overhead (T-O), were studied across a variety of dimensions. A thorough perspective of the model’s correctness, stability, and computing efficiency may be obtained through the utilization of these measures.
4.7.1. X-Scores Dataset
It is highlighted in Table 5 that Gemma-7B outperformed all other models by achieving an S-rate of 98,695 and a PPL of 49,769. When compared to other networks, T5 had the lowest S-rate (46,480) and the highest PPL (50,221). The C-rate of Gemma-7B was substantially lower than average, which indicates that it has more consistent predictions over all iterations. A demonstration of Gemma-7B’s better efficiency is shown by Figure 6, which demonstrates that it needed just 626 s and 357 queries.
Table 5.
Performance Analysis of Large Language Models on the X-Scores Dataset.
Figure 6.
Comparative Evaluation of T-O and Q-N Using the X-Scores Dataset.
4.7.2. Fin-SoMe Dataset
The Gemma-7B was once again in the lead with an S-rate of 98,608 and a PPL of 49,725, as shown in Table 6. Following closely after was FinBERT, which had an S-rate of 96,660. Gemma-7B analyzed the dataset in 634 s with 361 queries, as shown in Figure 7. This demonstrates that it maintains a high level of computational efficiency and uses fewer resources than other algorithms.
Table 6.
Performance Analysis of Large Language Models on the Fin-SoMe Dataset.
Figure 7.
Comparative Evaluation of T-O and Q-N Using the Fin-SoMe Dataset.
4.7.3. SET5 Dataset
Table 7 of the SemEval-2017 Task 5 (SET5) Dataset demonstrates that Gemma-7B has maintained a steady level of performance, managing to achieve an S-rate of 98,519 and a PPL of 49,680. Additional evidence of its effectiveness can be seen in Figure 8, which shows that it has a time of operation (T-O) of 603 s and 344 inquiries, highlighting its applicability for real-time applications.
Table 7.
Performance Analysis of Large Language Models on the SET5 Dataset.
Figure 8.
Comparative Evaluation of T-O and Q-N Using the SET5 Dataset.
4.7.4. Fin-Lin Dataset
Having an S-rate of 98,469 and a PPL of 49,655, the findings of the Fin-Lin dataset, which are provided in Table 8, provide further evidence that Gemma-7B possesses better metrics. Additionally, FinBERT showed very good capabilities in the area of sentiment categorization, with an S-rate of 96,525. Figure 9 illustrates Gemma-7B’s time of operation, which was 617 s and consisted of 352 inquiries, further demonstrating its effectiveness.
Table 8.
Performance Analysis of Large Language Models on the Fin-Lin Dataset.
Figure 9.
Comparative Evaluation of T-O and Q-N Using the Fin-Lin Dataset.
4.7.5. Sanders Dataset
With an S-rate of 98,410 and a PPL of 49,625, Gemma-7B secured the top spot, as seen in Table 9. With an S-rate of 96,467, FinBERT was able to obtain results that were competitive. The short time-to-online (T-O) of Gemma-7B, which is 614 s and 350 queries, is highlighted in Figure 10. This makes it an ideal choice for processing urgent financial data.
Table 9.
Performance Analysis of Large Language Models on the Sanders Dataset.
Figure 10.
Comparative Evaluation of T-O and Q-N Using the Sanders Dataset.
4.7.6. Taborda Dataset
Table 10 concludes by presenting evidence of Gemma-7B’s consistent performance on the Taborda dataset, where it achieved an S-rate of 98,538 and a PPL of 49,690. In addition, Llama-3 performed admirably, with an S-rate of 88,844. Figure 11 illustrates Gemma-7B’s time of operation, which was 630 s and consisted of 359 queries. This further solidifies its status as the most efficient model used across all datasets.
Table 10.
Performance Analysis of Large Language Models on the Taborda Dataset.
Figure 11.
Comparative Evaluation of T-O and Q-N Using the Taborda Dataset.
The findings continuously place Gemma-7B in the position of being the most effective and efficient model for financial sentiment analysis. It excels in terms of accuracy, stability, and resource consumption. Because of this, it is an excellent option for applications that require accurate and speedy financial information.
The fine-tuned Gemma-7B model consistently outperformed competing LLMs across key benchmarks, including S-rate, PPL, T-O, and Q-N metrics. This demonstrates that leveraging generative AI techniques, particularly with the Gemma-7B model, significantly enhances the ability to analyze investor sentiment within financial markets.
The experimental evaluation has been extended with more widely used performance metrics in the literature, such as accuracy, precision, recall, and F1-score (Figure 12, Figure 13, Figure 14 and Figure 15). These metrics work in conjunction with the initially proposed measures (S-rate, C-rate, Q-N, PPL, and T-O) and enable a more comprehensive evaluation of the model’s effectiveness, robustness, and real-world applicability.
Figure 12.
Performance accuracy of LLM-Based Financial Sentiment Classification Models.
Figure 13.
Performance F1-score of LLM-Based Financial Sentiment Classification Models.
Figure 14.
Performance precision of LLM-Based Financial Sentiment Classification Models.
Figure 15.
Performance recall of LLM-Based Financial Sentiment Classification Models.
To evaluate the impact of the principal components of the proposed methodology, we have added a dedicated ablation study The results indicate that the most substantial performance gains are primarily driven by the domain-specific fine-tuning strategy combined with synthetic data augmentation, while reasoning-based prompting further improves robustness and contextual understanding (Table 11).
Table 11.
Ablation study of the principal components of the proposed financial sentiment framework.
To further strengthen the analysis, statistical significance testing (paired t-test with p < 0.05) has been included (Table 12), confirming that the observed improvements are statistically significant rather than resulting from random variation. These additions have been integrated into the revised Results and Discussion sections to improve methodological transparency and reproducibility.
Table 12.
Paired t-test statistical significance analysis of the proposed framework.
The ablation results indicate that performance improvements are not produced by a single component, but by the cumulative interaction between stronger LLM backbones, richer embeddings, GPT-based data augmentation, and prompt-engineering strategies. The largest gains appear after introducing GPT-3.5/GPT-4 augmentation and Llama-3, while ReAct contributes additional robustness by reducing query number and improving success rate. LLM-based augmentation and prompt optimization are consistent with recent work showing that generative models can improve financial sentiment analysis and downstream financial prediction tasks.
The paired t-test results show that each major component produces statistically significant improvements over the FinBERT baseline. The strongest gains are observed when GPT-4 augmentation, Llama-3, and ReAct prompting are integrated into the full framework. Since all comparisons use paired t-tests, the analysis assumes that results were obtained from the same folds, datasets, or repeated experimental runs. Paired testing is commonly used to compare model performance under matched experimental conditions.
The findings emphasize the importance of utilizing advanced LLMs for sentiment analysis, especially in the fast-paced financial industry, where timely and accurate insights can influence trading decisions. Integrating domain-specific knowledge further boosts these models’ effectiveness, enabling a deeper understanding and analysis of financial language. In summary, the research shows that GAI, such as the Gemma-7B model, greatly improves FSA. By tackling the distinct issues of the financial sector, these models facilitate the development of more precise and effective sentiment-driven trading techniques. This study underscores the promise of a revolution of GAI in financial markets and establishes a basis for future developments in sentiment analysis approaches.
4.8. Discussion and Analysis
This study’s results offer persuasive data about the efficacy of various LLMs in FSA. We made important comparisons between the models by looking at six different datasets. In particular, we focused on Gemma-7B’s performance, which consistently beat its competitors across a number of measures. This section will explore the consequences of these findings, the comparative efficacy of the models, and the overarching relevance of employing LLMs for evaluating investor mood in financial markets. Gemma-7B distinguished itself in our assessment, attaining the greatest Success Rate (S-rate) and the lowest perplexity (PPL) among the datasets. Gemma-7B’s consistent performance suggests that it has a thorough understanding of the subtleties of financial emotion. Its design and training may make it better at understanding the complexities of financial language than other models. Gemma-7B’s demonstrated stability, as evidenced by its reduced change rate (C-rate) values, suggests its ability to maintain exceptional performance even in the face of input data fluctuations. This is especially significant in financial environments where opinion may change swiftly and abruptly.
Conversely, despite being a formidable model, XLNet exhibited the lowest S-rate and the greatest PPL across many datasets. This inconsistency prompts inquiries regarding the appropriateness of XLNet for financial sentiment analysis, especially in contexts where precision is critical. The results indicate that, although XLNet may perform well in broad language tasks, its use in specific fields, such as finance, may need more fine-tuning or adaptation to improve its efficacy. FinBERT, a significant model, showed impressive performance, especially in datasets rich in financial terminology and context. Nevertheless, it continually lagged behind Gemma-7B, suggesting that, although FinBERT is a formidable competitor, it may not entirely capitalize on the enhancements provided by more recent designs, such as Gemma-7B. The competitive performance of Llama-2 and Llama-3, particularly in the Taborda dataset, suggests that further advancements in LLMs could potentially produce models that can rival the current leaders in the near future.
The efficiency measurements, comprising Time Overhead (T-O) and Query Number (Q-N), further emphasize the practical ramifications of our findings. The reduced T-O and Q-N of Gemma-7B across all datasets demonstrate its greater accuracy and time efficiency. This is especially pertinent for financial analysts and traders who depend on swift sentiment analysis to guide their decision-making processes. The capacity to rapidly handle substantial data sets without sacrificing accuracy can confer a considerable competitive edge in the dynamic financial markets. Furthermore, the ramifications of these discoveries transcend simple performance indicators. In an era of exponential data growth, using LLMs for real-time sentiment research might enhance investing strategies, risk evaluations, and market forecasts. The incorporation of these models into trading platforms might revolutionize investor engagement with financial data, rendering sentiment research a more attainable and practical element of investing strategy.
Although the results are encouraging, it is essential to acknowledge the study’s limitations. The utilized datasets, however varied, may not capture the complete range of investor sentiment articulated across all platforms and circumstances. Further research could explore additional datasets, particularly those that represent sentiment from emerging social media platforms or specialized financial forums. The dynamic nature of language and sentiment expression in financial situations requires the ongoing updating and retraining of models to maintain their relevance and precision.
This study mostly looked at how well LLMs work in sentiment analysis. However, it might be interesting to see what happens when these models are combined with other tools for analysis, like technical analysis or macroeconomic variables, to obtain a fuller picture of the market situation. Investigating the synergies between LLMs and conventional financial analysis techniques may result in the formulation of more advanced investment strategies.
5. Conclusions
The use of GAI and LLMs in financial sentiment research represents a significant development in comprehending market dynamics shaped by investor sentiment. This paper shows how well fine-tuning sophisticated models like XLNet, FinBERT, T5, Gemma-7B, Llama-2, and Llama-3 catches the subtleties of financial language, hence greatly enhancing sentiment analysis accuracy. The study creates a strong financial sentiment analyzer able to manage various investor expressions by using selected datasets like Fin-SoMe, X-Scores, SemEval-2017 Task 5, and others. Generative artificial intelligence models—including GPT-2, GPT-3.5, and GPT-4—used creatively for synthetic data creation serve to solve data shortages, thereby improving model generalization and robustness. Sophisticated word embeddings like BERT and Word2Vec enhance semantic understanding even more in financial writings. Methods such as few-shot learning, chain-of-thought reasoning, and low-rank adaptation (LoRA) also maximize model training by balancing great accuracy with computing efficiency, which is crucial for real-time market monitoring. A pragmatic evaluation of the models’ real-world performance is provided by the thorough assessment employing measures including change rate, success rate, perplexity, query number, and time overhead. Beyond academic significance, this study has major consequences for financial professionals by means of improved sentiment analysis, which in turn provides a robust framework for financial sentiment classification and supports future research on sentiment-informed financial analytics. Future extensions will include evaluation on genuinely multilingual and non-English financial datasets, including Arabic, French, and multilingual market communication corpora, to validate cross-cultural robustness more rigorously and ethical questions artificial intelligence raises in financial markets. By providing important insights to help future investment plans in an increasingly algorithm-driven financial world, our work lays a solid basis for using LLMs and generative artificial intelligence in forecasting market trends.
Author Contributions
N.H. (Nouri Hicham) conducted the experiments, analyzed the data, and drafted the manuscript. N.H. (Nassera Habbat) was responsible for data collection and contributed to the revision and finalization of the manuscript. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Our study does not collect any personal or private information from participants. All participants are treated fairly, equally, and in accordance with ethical standards.
Informed Consent Statement
All participants provided informed consent for the collection and use of their data for research and academic publication purposes.
Data Availability Statement
The datasets used in this study are described in the paper.
Acknowledgments
The authors acknowledge the use of generative artificial intelligence (AI) tools for language editing and improving the readability of the manuscript. The authors carefully reviewed and revised all AI-assisted outputs and take full responsibility for the content of this publication.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Liu, B. Sentiment Analysis and Opinion Mining. In Synthesis Lectures on Human Language Technologies; Springer International Publishing: Cham, Switzerland, 2012. [Google Scholar] [CrossRef] [Scilit]
- Eckhaus, E. Data-Driven Insights: Leveraging Sentiment Analysis and Latent Profile Analysis for Financial Market Forecasting. Big Data Cogn. Comput. 2026, 10, 24. [Google Scholar] [CrossRef] [Scilit]
- Xing, Y.; Zhang, J.Z.; He, Y.; Li, Y. Toward an ecosystem of non-fungible tokens from mapping public opinions on social media. Financ. Innov. 2025, 11, 6. [Google Scholar] [CrossRef] [Scilit]
- Theodorakopoulos, L.; Karras, A.; Theodoropoulou, A.; Klavdianos, C. LLMs for Integrated Business Intelligence: A Big Data-Driven Framework Integrating Marketing Optimization, Financial Performance, and Audit Quality. Big Data Cogn. Comput. 2026, 10, 110. [Google Scholar] [CrossRef] [Scilit]
- Ma, H.; Ma, J.; Wang, H.; Li, P.; Du, W. A Comprehensive Review of Investor Sentiment Analysis in Stock Price Forecasting. In Proceedings of the 2021 IEEE/ACIS 20th International Fall Conference on Computer and Information Science (ICIS Fall), Xi’an, China, 13–15 October 2021; IEEE: New York, NY, USA, 2021; pp. 264–268. [Google Scholar] [CrossRef] [Scilit]
- Hicham, N.; Nassera, H. Towards Improving E-Commerce Customer Review Analysis for Arabic Language Opinion Mining. Int. J. Comput. 2024, 23, 387–395. [Google Scholar] [CrossRef] [Scilit]
- Hicham, N.; Nassera, H. Improving emotion classification in e-commerce customer review analysis using GPT and meta-ensemble deep learning technique for multilingual system. Multimed. Tools Appl. 2024, 83, 87323–87367. [Google Scholar] [CrossRef] [Scilit]
- Belal, M.; She, J.; Wong, S. Leveraging ChatGPT As Text Annotation Tool For Sentiment Analysis. arXiv 2023, arXiv:arXiv:2306.17177. [Google Scholar] [CrossRef] [Scilit]
- Bonta, V.; Kumaresh, N.; Janardhan, N. A Comprehensive Study on Lexicon Based Approaches for Sentiment Analysis. Asian J. Comput. Sci. Technol. 2019, 8, 1–6. [Google Scholar] [CrossRef] [Scilit]
- Mathebula, M.; Modupe, A.; Marivate, V. ChatGPT as a Text Annotation Tool to Evaluate Sentiment Analysis on South African Financial Institutions. IEEE Access 2024, 12, 144017–144043. [Google Scholar] [CrossRef] [Scilit]
- Drivas, I.C.; Vraimaki, E.; Lazaridis, N. I Can’t Get No Satisfaction? From Reviews to Actionable Insights: Text Data Analytics for Utilizing Online Feedback. Digital 2025, 5, 35. [Google Scholar] [CrossRef] [Scilit]
- Hao, S.; Hoi, S.C.H.; Miao, C.; Zhao, P. Active Crowdsourcing for Annotation. In Proceedings of the 2015 IEEE/WIC/ACM International Conference on Web Intelligence and Intelligent Agent Technology (WI-IAT), Singapore, 6–9 December 2015; IEEE: New York, NY, USA, 2015; pp. 1–8. [Google Scholar] [CrossRef] [Scilit]
- Guo, B.; Zhang, X.; Wang, Z.; Jiang, M.; Nie, J.; Ding, Y.; Yue, J.; Wu, Y. How Close is ChatGPT to Human Experts? Comparison Corpus, Evaluation, and Detection. arXiv 2023, arXiv:2301.07597. [Google Scholar] [CrossRef] [Scilit]
- Barbaglia, L.; Consoli, S.; Manzan, S. Forecasting with Economic News. J. Bus. Econ. Stat. 2023, 41, 708–719. [Google Scholar] [CrossRef] [Scilit]
- Picault, M.; Pinter, J.; Renault, T. Media sentiment on monetary policy: Determinants and relevance for inflation expectations. J. Int. Money Financ. 2022, 124, 102626. [Google Scholar] [CrossRef] [Scilit]
- Ejara, D.D.; Krapl, A.A.; O’Brien, T.J.; Ruiz de Vargas, S. Comparison of Cost of Equity Models: New International Evidence. SSRN J. 2017. [Google Scholar] [CrossRef] [Scilit]
- Gite, S.; Khatavkar, H.; Kotecha, K.; Srivastava, S.; Maheshwari, P.; Pandey, N. Explainable stock prices prediction from financial news articles using sentiment analysis. PeerJ Comput. Sci. 2021, 7, e340. [Google Scholar] [CrossRef] [Scilit]
- Sharaff, A.; Chowdhury, T.R.; Bhandarkar, S. LSTM based Sentiment Analysis of Financial News. SN Comput. Sci. 2023, 4, 584. [Google Scholar] [CrossRef] [Scilit]
- Mishev, K.; Gjorgjevikj, A.; Vodenska, I.; Chitkushev, L.T.; Trajanov, D. Evaluation of Sentiment Analysis in Finance: From Lexicons to Transformers. IEEE Access 2020, 8, 131662–131682. [Google Scholar] [CrossRef] [Scilit]
- Ardekani, A.M.; Bertz, J.; Bryce, C.; Dowling, M.; Long, S. FinSentGPT: A universal financial sentiment engine? Int. Rev. Financ. Anal. 2024, 94, 103291. [Google Scholar] [CrossRef] [Scilit]
- Yadav, A.; Vishwakarma, D.K. Sentiment analysis using deep learning architectures: A review. Artif. Intell. Rev. 2020, 53, 4335–4385. [Google Scholar] [CrossRef] [Scilit]
- Van Giffen, B.; Herhausen, D.; Fahse, T. Overcoming the pitfalls and perils of algorithms: A classification of machine learning biases and mitigation methods. J. Bus. Res. 2022, 144, 93–106. [Google Scholar] [CrossRef] [Scilit]
- Lewis, P.; Perez, E.; Piktus, A.; Petroni, F.; Karpukhin, V.; Goyal, N.; Küttler, H.; Lewis, M.; Yih, W.-T.; Rocktäschel, T.; et al. Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks. arXiv 2021, arXiv:2005.11401. [Google Scholar] [CrossRef] [Scilit]
- Zhang, B.; Yang, H.; Zhou, T.; Babar, A.; Liu, X.-Y. Enhancing Financial Sentiment Analysis via Retrieval Augmented Large Language Models. arXiv 2023, arXiv:2310.04027. [Google Scholar] [CrossRef] [Scilit]
- Liu, H.; Yin, Q.; Wang, W.Y. Towards Explainable NLP: A Generative Explanation Framework for Text Classification. arXiv 2019, arXiv:1811.00196. [Google Scholar] [CrossRef] [Scilit]
- Fan, W.; Ding, Y.; Ning, L.; Wang, S.; Li, H.; Yin, D.; Chua, T.; Li, Q. A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models. arXiv 2024, arXiv:2405.06211. [Google Scholar] [CrossRef] [Scilit]
- Shivaprasad, T.K.; Shetty, J. Sentiment analysis of product reviews: A review. In Proceedings of the 2017 International Conference on Inventive Communication and Computational Technologies (ICICCT), Coimbatore, India, 10–11 March 2017; IEEE: New York, NY, USA, 2017; pp. 298–301. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Z.; Welsch, R.E. Aligning LLMs with Human Instructions and Stock Market Feedback in Financial Sentiment Analysis. arXiv 2024, arXiv:2410.14926. [Google Scholar] [CrossRef] [Scilit]
- Alghisi, S.; Rizzoli, M.; Roccabruna, G.; Mousavi, S.M.; Riccardi, G. Should We Fine-Tune or RAG? Evaluating Different Techniques to Adapt LLMs for Dialogue. arXiv 2024, arXiv:2406.06399. [Google Scholar] [CrossRef] [Scilit]
- Duan, G.; Yan, S.; Zhang, M. A Hybrid Neural Network Model for Sentiment Analysis of Financial Texts Using Topic Extraction, Pre-Trained Model, and Enhanced Attention Mechanism Methods. IEEE Access 2024, 12, 98207–98224. [Google Scholar] [CrossRef] [Scilit]
- Ling, T.; Chen, L.; Liao, C.; Huang, S.; Yu, Z.; Liu, Y. Improving Aspect Sentiment Classification via Retrieving from Training Data. In Proceedings of the 2023 Asia Pacific Signal and Information Processing Association Annual Summit and Conference (APSIPA ASC), Taipei, Taiwan, 31 October–3 November 2023; IEEE: New York, NY, USA, 2023; pp. 490–497. [Google Scholar] [CrossRef] [Scilit]
- Chen, F.; Ji, R.; Su, J.; Cao, D.; Gao, Y. Predicting Microblog Sentiments via Weakly Supervised Multimodal Deep Learning. IEEE Trans. Multimed. 2018, 20, 997–1007. [Google Scholar] [CrossRef] [Scilit]
- Loughran, T.; Mcdonald, B. When Is a Liability Not a Liability? Textual Analysis, Dictionaries, and 10-Ks. J. Financ. 2011, 66, 35–65. [Google Scholar] [CrossRef] [Scilit]
- Meni Abudy, M.; Mugerman, Y.; Shust, E. National pride, investor sentiment, and stock markets. J. Int. Financ. Mark. Inst. Money 2023, 89, 101879. [Google Scholar] [CrossRef] [Scilit]
- Pelster, M.; Val, J. Can ChatGPT assist in picking stocks? Financ. Res. Lett. 2024, 59, 104786. [Google Scholar] [CrossRef] [Scilit]
- Hikov, A.; Murphy, L. Information retrieval from textual data: Harnessing large language models, retrieval augmented generation and prompt engineering. J. AI Robot. Workplace Autom. 2024, 3, 142. [Google Scholar] [CrossRef] [Scilit]
- Wu, S.; Xiong, Y.; Cui, Y.; Wu, H.; Chen, C.; Yuan, Y.; Huang, L.; Liu, X.; Kuo, T.-W.; Guan, N.; et al. Retrieval-Augmented Generation for Natural Language Processing: A Survey. arXiv 2024, arXiv:2407.13193. [Google Scholar] [CrossRef] [Scilit]
- Miao, J.; Thongprayoon, C.; Suppadungsuk, S.; Garcia Valencia, O.A.; Cheungpasitporn, W. Integrating Retrieval-Augmented Generation with Large Language Models in Nephrology: Advancing Practical Applications. Medicina 2024, 60, 445. [Google Scholar] [CrossRef] [Scilit]
- Long, Q.; Wang, W.; Pan, S.J. Adapt in Contexts: Retrieval-Augmented Domain Adaptation via In-Context Learning. arXiv 2023, arXiv:arXiv:2311.11551. [Google Scholar] [CrossRef] [Scilit]
- Pathak, A.; Shree, O.; Agarwal, M.; Sarkar, S.D.; Tiwary, A. Performance Analysis of LoRA Finetuning Llama-2. In Proceedings of the 2023 7th International Conference on Electronics, Materials Engineering & Nano-Technology (IEMENTech), Kolkata, India, 18–20 December 2023; IEEE: New York, NY, USA, 2023; pp. 1–4. [Google Scholar] [CrossRef] [Scilit]
- Huang, Y.; Huang, J. A Survey on Retrieval-Augmented Text Generation for Large Language Models. arXiv 2024, arXiv:2404.10981. [Google Scholar] [CrossRef] [Scilit]
- Sudirjo, F.; Diantoro, K.; Al-Gasawneh, J.A.; Khootimah Azzaakiyyah, H.; Almaududi Ausat, A.M. Application of ChatGPT in Improving Customer Sentiment Analysis for Businesses. J. Teknol. Dan Sist. Inf. Bisnis 2023, 5, 283–288. [Google Scholar] [CrossRef] [Scilit]
- Es, S.; James, J.; Espinosa-Anke, L.; Schockaert, S. RAGAS: Automated Evaluation of Retrieval Augmented Generation. arXiv 2023, arXiv:arXiv:2309.15217. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Yao, Y.; Ton, J.F.; Zhang, X.; Guo, R.; Cheng, H.; Klochkov, Y.; Taufiq, M.F.; Li, H. Trustworthy LLMs: A Survey and Guideline for Evaluating Large Language Models’ Alignment. arXiv 2024, arXiv:2308.05374. [Google Scholar] [CrossRef] [Scilit]
- Salemi, A.; Zamani, H. Evaluating Retrieval Quality in Retrieval-Augmented Generation. In Proceedings of the 47th International ACM SIGIR Conference on Research and Development in Information Retrieval, Washington, DC, USA, 14–18 July 2024; pp. 2395–2400. [Google Scholar] [CrossRef] [Scilit]
- Xia, Y.; Zhou, J.; Shi, Z.; Chen, J.; Huang, H. Improving Retrieval Augmented Language Model with Self-Reasoning. arXiv 2024, arXiv:2407.19813. [Google Scholar] [CrossRef] [Scilit]
- Chang, Y.; Wang, X.; Wang, J.; Wu, Y.; Yang, L.; Zhu, K.; Chen, H.; Yi, X.; Wang, C.; Wang, Y.; et al. A Survey on Evaluation of Large Language Models. ACM Trans. Intell. Syst. Technol. 2024, 15, 1–45. [Google Scholar] [CrossRef] [Scilit]
- Balaguer, A.; Benara, V.; Cunha, R.L.; Estevão, R.; Hendry, T.; Holstein, D.; Marsman, J.; Mecklenburg, N.; Malvar, S.; Nunes, L.O. RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculture. arXiv 2024, arXiv:2401.08406. [Google Scholar] [CrossRef] [Scilit]
- Soudani, H.; Kanoulas, E.; Hasibi, F. Fine Tuning vs. Retrieval Augmented Generation for Less Popular Knowledge. In Proceedings of the 2024 Annual International ACM SIGIR Conference on Research and Development in Information Retrieval in the Asia Pacific Region, Tokyo, Japan, 9–12 December 2024; pp. 12–22. [Google Scholar] [CrossRef] [Scilit]
- Danilevsky, M.; Dhanorkar, S.; Li, Y.; Popa, L.; Qian, K.; Xu, A. Explainability for Natural Language Processing. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, Virtual Event Singapore, 14–18 August 2021; ACM: New York, NY, USA, 2021; pp. 4033–4034. [Google Scholar] [CrossRef] [Scilit]
- Jiang, M.T.-J.; Wu, S.-H.; Chen, Y.-K.; Gu, Z.-X.; Chiang, C.-J.; Wu, Y.-C.; Huang, Y.-C.; Chiu, C.-H.; Shaw, S.-R.; Day, M.-Y. Fine-tuning techniques and data augmentation on transformer-based models for conversational texts and noisy user-generated content. In Proceedings of the 2020 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM), The Hague, The Netherlands, 7–10 December 2020; IEEE: New York, NY, USA, 2020; pp. 919–925. [Google Scholar] [CrossRef] [Scilit]
- Yang, Z.; Dai, Z.; Yang, Y.; Carbonell, J.; Salakhutdinov, R.; Le, Q.V. XLNet: Generalized Autoregressive Pretraining for Language Understanding. arXiv 2019, arXiv:arXiv:1906.08237. [Google Scholar] [CrossRef] [Scilit]
- Araci, D. FinBERT: Financial Sentiment Analysis with Pre-trained Language Models. arXiv 2019, arXiv:arXiv:1908.10063. [Google Scholar] [CrossRef] [Scilit]
- Raffel, C.; Shazeer, N.; Roberts, A.; Lee, K.; Narang, S.; Matena, M.; Zhou, Y.; Li, W.; Liu, P.J. Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer. arXiv 2019, arXiv:arXiv:1910.10683. [Google Scholar] [CrossRef] [Scilit]
- Touvron, H.; Martin, L.; Stone, K.; Albert, P.; Almahairi, A.; Babaei, Y.; Bashlykov, N.; Batra, S.; Bhargava, P.; Bhosale, S.; et al. Llama 2: Open Foundation and Fine-Tuned Chat Models. arXiv 2023, arXiv:arXiv:2307.09288. [Google Scholar] [CrossRef] [Scilit]
- Grattafiori, A.; Dubey, A.; Jauhri, A.; Pandey, A.; Kadian, A.; Al-Dahle, A.; Letman, A.; Mathur, A.; Schelten, A.; Vaughan, A.; et al. The Llama 3 Herd of Models. arXiv 2024, arXiv:arXiv:2407.21783. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Yang, T. Word Embedding for Understanding Natural Language: A Survey. In Guide to Big Data Applications; Srinivasan, S., Ed.; Studies in Big Data; Springer International Publishing: Cham, Switzerland, 2018; Volume 26, pp. 83–104. [Google Scholar] [CrossRef] [Scilit]
- Devlin, J.; Chang, M.-W.; Lee, K.; Toutanova, K. BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding. arXiv 2019, arXiv:1810.04805. [Google Scholar] [CrossRef] [Scilit]
- Ayyadevara, V.K. Word2vec. In Pro Machine Learning Algorithms; Apress: Berkeley, CA, USA, 2018; pp. 167–178. [Google Scholar] [CrossRef] [Scilit]
- Yenduri, G.; Ramalingam, M.; Selvi, G.C.; Supriya, Y.; Srivastava, G.; Maddikunta, P.K.R.; Raj, G.D.; Jhaveri, R.H.; Prabadevi, B.; Wang, W.; et al. GPT (Generative Pre-Trained Transformer)—A Comprehensive Review on Enabling Technologies, Potential Applications, Emerging Challenges, and Future Directions. IEEE Access 2024, 12, 54608–54649. [Google Scholar] [CrossRef] [Scilit]
- Sufi, F. Generative Pre-Trained Transformer (GPT) in Research: A Systematic Review on Data Augmentation. Information 2024, 15, 99. [Google Scholar] [CrossRef] [Scilit]
- Hu, E.J.; Shen, Y.; Wallis, P.; Allen-Zhu, Z.; Li, Y.; Wang, S.; Wang, L.; Chen, W. LoRA: Low-Rank Adaptation of Large Language Models. arXiv 2021, arXiv:2106.09685. [Google Scholar] [CrossRef] [Scilit]
- Perez, E.; Kiela, D.; Cho, K. True Few-Shot Learning with Language Models. In Advances in Neural Information Processing Systems; Ranzato, M., Beygelzimer, A., Dauphin, Y., Liang, P.S., Vaughan, J.W., Eds.; Curran Associates, Inc.: Sydney, Australia, 2021; pp. 11054–11070. Available online: https://proceedings.neurips.cc/paper_files/paper/2021/file/5c04925674920eb58467fb52ce4ef728-Paper.pdf (accessed on 13 February 2026).
- Gaillat, T.; Zarrouk, M.; Freitas, A.; Davis, B. The SSIX Corpora: Three Gold Standard Corpora for Sentiment Analysis in English, Spanish and German Financial Microblogs. In Proceedings of the Eleventh International Conference on Language Resources and Evaluation (LREC 2018); Calzolari, N., Choukri, K., Cieri, C., Declerck, T., Goggi, S., Hasida, K., Isahara, H., Maegaard, B., Mariani, J., Mazo, H., et al., Eds.; European Language Resources Association (ELRA): Miyazaki, Japan, 2018. [Google Scholar]
- Chen, C.-C.; Huang, H.-H.; Chen, H.-H. Issues and Perspectives from 10,000 Annotated Financial Social Media Data. In Proceedings of the Twelfth Language Resources and Evaluation Conference, Marseille, France, 11–16 May 2020. [Google Scholar]
- Cortis, K.; Freitas, A.; Daudert, T.; Huerlimann, M.; Zarrouk, M.; Handschuh, S.; Davis, B. SemEval-2017 Task 5: Fine-Grained Sentiment Analysis on Financial Microblogs and News. In Proceedings of the 11th International Workshop on Semantic Evaluation (SemEval-2017),Vancouver, BC, Canada, 3–4 August 2017; Association for Computational Linguistics: Stroudsburg, PA, USA, 2017; pp. 519–535. [Google Scholar] [CrossRef] [Scilit]
- Daudert, T. A Multi-Source Entity-Level Sentiment Corpus for the Financial Domain: The FinLin Corpus. arXiv 2020, arXiv:2003.04073. [Google Scholar] [CrossRef] [Scilit]
- Saif, H.; Fernández, M.; He, Y.; Alani, H. Evaluation Datasets for Twitter Sentiment Analysis: A survey and a new dataset, the STS-Gold. In Proceedings of the ESSEM@AI*IA, Turin, Italy, 4 December 2013; Available online: https://api.semanticscholar.org/CorpusID:17006491 (accessed on 1 February 2026).
- Taborda, B.; de Almeida, A.; Carlos, D.J.; Batista, F.; Ribeiro, R. Stock Market Tweets Data. IEEE DataPort, 15 April 2021. Available online: https://doi.org/10.21227/G8VY-5W61 (accessed on 5 February 2026). [CrossRef]
- Alzahrani, E.; Jololian, L. How Different Text-preprocessing Techniques Using The BERT Model Affect The Gender Profiling of Authors. arXiv 2021, arXiv:arXiv:2109.13890. [Google Scholar] [CrossRef] [Scilit]
- Hicham, N.; Nassera, H.; Karim, S. Enhancing Arabic E-Commerce Review Sentiment Analysis Using a hybrid Deep Learning Model and FastText word embedding. EAI Endorsed Trans. Internet Things 2023, 1–10. [Google Scholar] [CrossRef] [Scilit]
- Nouri, H.; Sabri, K.; Habbat, N. A Comprehensive Analysis of Consumers Sentiments Using an Ensemble Based Approach for Effective Marketing Decision-Making. In Artificial Intelligence and Industrial Applications; Masrour, T., Ramchoun, H., Hajji, T., Hosni, M., Eds.; Lecture Notes in Networks and Systems; Springer Nature: Cham, Switzerland, 2023; Volume 772. pp. 323–333. [Google Scholar] [CrossRef] [Scilit]
- Chu, X.; Ilyas, I.F.; Krishnan, S.; Wang, J. Data Cleaning: Overview and Emerging Challenges. In Proceedings of the 2016 International Conference on Management of Data; ACM: San Francisco, CA, USA, 2016; pp. 2201–2206. [Google Scholar] [CrossRef] [Scilit]
- Brown, T.B.; Mann, B.; Ryder, N.; Subbiah, M.; Kaplan, J.; Dhariwal, P.; Neelakantan, A.; Shyam, P.; Sastry, G.; Askell, A.; et al. Language Models are Few-Shot Learners. arXiv 2020, arXiv:2005.14165. [Google Scholar] [CrossRef] [Scilit]
- Wei, J.; Wang, X.; Schuurmans, D.; Bosma, M.; Ichter, B.; Xia, F.; Chi, E.; Le, Q.; Zhou, D. Chain-of-Thought Prompting Elicits Reasoning in Large Language Models. arXiv 2022, arXiv:2201.11903. [Google Scholar] [CrossRef] [Scilit]
- Yao, S.; Zhao, J.; Yu, D.; Du, N.; Shafran, I.; Narasimhan, K.; Cao, Y. ReAct: Synergizing Reasoning and Acting in Language Models. arXiv 2023, arXiv:2210.03629. [Google Scholar] [CrossRef] [Scilit]
- Jin, D.; Jin, Z.; Zhou, J.T.; Szolovits, P. Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailment. arXiv 2019, arXiv:1907.11932. [Google Scholar] [CrossRef] [Scilit]
- Papernot, N.; McDaniel, P.; Jha, S.; Fredrikson, M.; Celik, Z.B.; Swami, A. The Limitations of Deep Learning in Adversarial Settings. arXiv 2015, arXiv:1511.07528. [Google Scholar] [CrossRef] [Scilit]
- Maheshwary, R.; Maheshwary, S.; Pudi, V. A Strong Baseline for Query Efficient Attacks in a Black Box Setting. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing, Punta Cana, Dominican Republic, 7–11 November 2021; Association for Computational Linguistics: Stroudsburg, PA, USA, 2021; pp. 8396–8409. [Google Scholar] [CrossRef] [Scilit]
- Jelinek, F.; Mercer, R.L.; Bahl, L.R.; Baker, J.K. Perplexity—A measure of the difficulty of speech recognition tasks. J. Acoust. Soc. Am. 1977, 62, S63. [Google Scholar] [CrossRef] [Scilit]
- Chang, G.; Gao, H.; Yao, Z.; Xiong, H. TextGuise: Adaptive adversarial example attacks on text classification model. Neurocomputing 2023, 529, 190–203. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.














