Sentiment trading with large language models
Kemal Kirtac and
Guido Germano
LSE Research Online Documents on Economics from London School of Economics and Political Science, LSE Library
Abstract:
We analyse the performance of the large language models (LLMs) OPT, BERT, and FinBERT, alongside the traditional Loughran-McDonald dictionary, in the sentiment analysis of 965,375 U.S. financial news articles from 2010 to 2023. Our findings reveal that the GPT-3-based OPT model significantly outperforms the others, predicting stock market returns with an accuracy of 74.4%. A long-short strategy based on OPT, accounting for 10 basis points (bps) in transaction costs, yields an exceptional Sharpe ratio of 3.05. From August 2021 to July 2023, this strategy produces an impressive 355% gain, outperforming other strategies and traditional market portfolios. This underscores the transformative potential of LLMs in financial market prediction and portfolio management and the necessity of employing sophisticated language models to develop effective investment strategies based on news sentiment.
Keywords: artificial intelligence investment strategies; generative pre-trained transformer (GPT); large language models; machine learning in stock return prediction; natural language processing (NLP) (search for similar items in EconPapers)
JEL-codes: C53 G10 G11 G12 G14 (search for similar items in EconPapers)
Pages: 9 pages
Date: 2024-04-01
New Economics Papers: this item is included in nep-ain, nep-big, nep-cmp and nep-fmk
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (5)
Published in Finance Research Letters, 1, April, 2024, 62(Part B). ISSN: 1544-6123
Downloads: (external link)
http://eprints.lse.ac.uk/122592/ Open access version. (application/pdf)
Related works:
Journal Article: Sentiment trading with large language models (2024) 
Working Paper: Sentiment trading with large language models (2024) 
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:ehl:lserod:122592
Access Statistics for this paper
More papers in LSE Research Online Documents on Economics from London School of Economics and Political Science, LSE Library LSE Library Portugal Street London, WC2A 2HD, U.K.. Contact information at EDIRC.
Bibliographic data for series maintained by LSERO Manager ().