EconPapers    
Economics at your fingertips  
 

Battle of Transformers: Adversarial Attacks on Financial Sentiment Models

Aysun Can Turetken and Markus Leippold
Additional contact information
Aysun Can Turetken: University of Zurich
Markus Leippold: University of Zurich; Swiss Finance Institute

No 24-59, Swiss Finance Institute Research Paper Series from Swiss Finance Institute

Abstract: Financial sentiment analysis models, which extract meaning from vast amounts of unstructured data, play a crucial role in sentiment-driven financial decisions. However, the complex and domain-specific language used in finance poses unique challenges for adversarial attacks. To address these challenges, we propose a novel, white-box attack methodology leveraging a pre-trained general-purpose language model (GPT-4o). We employ carefully designed instructions and incorporate a new loss function based on embedding similarity to ensure semantic coherence while producing syntactically diverse samples. Our experimental results demonstrate that both FinBERT and Fin-GPT, leading models in financial sentiment analysis, exhibit significant susceptibility to our proposed adversarial attacks. Specifically, the sentiment predictions of these models were successfully altered for a substantial proportion of the samples across three public datasets, including Financial Phrase Bank (FPB), Twitter Financial News Sentiment (TFNS), and Sentimence and Entity Annotated Financial News (SEntFiN). Our findings emphasize the need for enhanced robustness in financial classification models against adversarially targeted attacks. By understanding and addressing these vulnerabilities, it is possible to improve the reliability and security of automated financial systems.

Keywords: Adversarial Attacks; Large Language Models; Financial Sentiment Analysis (search for similar items in EconPapers)
JEL-codes: C45 C63 G14 G17 (search for similar items in EconPapers)
Pages: 36 pages
Date: 2024-11
References: Add references at CitEc
Citations:

Downloads: (external link)
https://papers.ssrn.com/sol3/papers.cfm?abstract_id=4977483 (application/pdf)

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:chf:rpseri:rp2459

Access Statistics for this paper

More papers in Swiss Finance Institute Research Paper Series from Swiss Finance Institute Contact information at EDIRC.
Bibliographic data for series maintained by Ridima Mittal ().

 
Page updated 2025-04-20
Handle: RePEc:chf:rpseri:rp2459