FX sentiment analysis with large language models

26 August 2025
Daniele Ballinari
Jessica Maly
Issue 2025-11

Summary

We enhance sentiment analysis in the foreign exchange (FX) market by fine-tuning large language models (LLMs) to better understand and interpret the complex language specific to FX markets. We build on existing methods by using state-of-the-art open source LLMs, fine-tuning them with labelled FX news articles and then comparing their performance against traditional approaches and alternative models. Furthermore, we tested these fine-tuned LLMs by creating investment strategies based on the sentiment they detect in FX analysis articles with the goal of demonstrating how well these strategies perform in real-world trading scenarios. Our findings indicate that the fine-tuned LLMs outperform the existing methods in terms of both the classification accuracy and trading performance, highlighting their potential for improving FX market sentiment analysis and investment decision-making.

Issue:
11
Pages:
39
JEL classification:
F31, G12, G15
Keywords:
Large language models, Sentiment analysis, Fine-tuning, Text classification, Natural language processing, Foreign exchange, Financial markets
Year:
2025

Author(s)

  • Daniele Ballinari

  • Jessica Maly

Your settings

Required: These cookies (e.g. for storing your IP address) cannot be rejected as they are necessary to ensure the operation of the website. These data are not evaluated further.
Analytics: If you consent to this category, data such as IP address, location, device information, browser version and site visitor behaviour will be collected. For this, cookies will be stored on your device that record information about your user behaviour. These data are evaluated for the SNB's internal purposes and are kept for two years.
Third-party: If you consent to this category, third-party services (used, for example, to add social multimedia content to the SNB's website) will be activated which collect personal data, process these data, disclose them abroad - worldwide - and place cookies. The relevant data protection regulations are linked in the 'Privacy statement for the website of the Swiss National Bank'.

Choose your preferred settings:

This website uses cookies, analytics tools and other technologies to provide requested features, content and services, to personalise the content shown, to provide links to social media, and to analyse the use of the website in anonymised form for the purposes of improving usability. Personal data are also disclosed abroad - worldwide - to video service providers and the analytics tools of these providers are used. More information is available under 'Manage settings'.