FX sentiment analysis with large language models
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