Publication:

A Comparison of LLM-Based and Stock-Return-Based Financial Sentiment Classifiers

datacite.rightsrestricted
dc.contributor.advisorXiong, Wei
dc.contributor.advisorHeide, Felix
dc.contributor.authorPesendorfer, Alexander
dc.date.accessioned2024-07-17T13:57:50Z
dc.date.accessioned2026-09-29T21:56:51Z
dc.date.available2024-07-17T13:57:50Z
dc.date.available2026-09-29T21:56:51Z
dc.date.created2024-05-06
dc.date.issued2024-07-17
dc.description.abstractIn this paper, we build on existing applications of large language models, including both chat models and embedding models, for the purpose of sentiment classification of financial news articles. We evaluate two types of classification models: general GPT-based models that do not incorporate information about stock returns and a specialized model that is trained on stock returns. Through comparisons of classification performance and sentiment-based portfolio performance, we show that GPT-based models perform as well as context-specific, stock-return-based models. One drawback of using a chat model for sentiment classification is that it does not generate a ranking over the set of articles. Thus, we are limited to acting on all articles in our trading strategies. We show that a logistic regression model that utilizes embeddings as features and labels generated directly by GPT as targets can be used to improve on the performance of direct-GPT-based trading strategies because it allows us to rank the articles by confidence in positive or negative labels. Finally, we explore model performance across various categories of news and find that articles about earnings expectations or earnings reports are the most informative. All models classify high-impact earnings news accurately, and, as a result, earnings-related news is found to be a significant driver of returns in our sentiment-based portfolios.en_US
dc.format.mimetypeapplication/pdf
dc.identifier.urihttp://arks.princeton.edu/ark:/88435/dsp01gx41mn21n
dc.identifier.urihttps://theses-dissertations.princeton.edu/handle/88435/dsp01gx41mn21n
dc.language.isoenen_US
dc.titleA Comparison of LLM-Based and Stock-Return-Based Financial Sentiment Classifiersen_US
dc.typePrinceton University Senior Theses
dspace.entity.typePublication
pu.certificateFinance Programen_US
pu.certificateCenter for Statistics and Machine Learning
pu.contributor.authorid920245428
pu.date.classyear2024en_US
pu.departmentComputer Scienceen_US
pu.mudd.walkinNoen_US
pu.pdf.coverpageSeniorThesisCoverPage

Files

Original bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
PESENDORFER-ALEXANDER-THESIS.pdf
Size:
710.52 KB
Format:
Adobe Portable Document Format
Download

License bundle

Now showing 1 - 1 of 1
Loading...
Thumbnail Image
Name:
LICENSE.txt
Size:
258 B
Format:
Plain Text
Description:
Download