Are Large Language Models Good In-context Learners for Financial Sentiment Analysis?

Xinyu Wei, Luojia Liu
3/6/2025
cs.CLcs.AIq-fin.CP

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Recently, large language models (LLMs) with hundreds of billions of parameters have demonstrated the emergent ability, surpassing traditional methods in various domains even without fine-tuning over domain-specific data. However, when it comes to financial sentiment analysis (FSA)$\unicode{x2013}$a fundamental task in financial AI$\unicode{x2013}$these models often encounter various challenges, such as complex financial terminology, subjective human emotions, and ambiguous inclination expressions. In this paper, we aim to answer the fundamental question: whether LLMs are good in-context learners for FSA? Unveiling this question can yield informative insights on whether LLMs can learn to address the challenges by generalizing in-context demonstrations of financial document-sentiment pairs to the sentiment analysis of new documents, given that finetuning these models on finance-specific data is difficult, if not impossible at all. To the best of our knowledge, this is the first paper exploring in-context learning for FSA that covers most modern LLMs (recently released DeepSeek V3 included) and multiple in-context sample selection methods. Comprehensive experiments validate the in-context learning capability of LLMs for FSA.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wei2025large,
  title  = {Are Large Language Models Good In-context Learners for Financial Sentiment Analysis?},
  author = {Xinyu Wei and Luojia Liu},
  year   = {2025},
  eprint = {2503.04873},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.04873v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.04873.svg)](https://codeofpaper.com/paper/2503.04873)

Discussion