Market-Derived Financial Sentiment Analysis: Context-Aware Language Models for Crypto Forecasting

Hamid Moradi-Kamali, Mohammad-Hossein Rajabi-Ghozlou, Mahdi Ghazavi, Ali Soltani, Amirreza Sattarzadeh +1 more
2/17/2025
cs.CEcs.CLcs.LG

No official code found. Best implementation: hamidm21/Revisit_FSA (19 stars, last commit 2025-03-24).

Abstract

Financial Sentiment Analysis (FSA) traditionally relies on human-annotated sentiment labels to infer investor sentiment and forecast market movements. However, inferring the potential market impact of words based on their human-perceived intentions is inherently challenging. We hypothesize that the historical market reactions to words, offer a more reliable indicator of their potential impact on markets than subjective sentiment interpretations by human annotators. To test this hypothesis, a market-derived labeling approach is proposed to assign tweet labels based on ensuing short-term price trends, enabling the language model to capture the relationship between textual signals and market dynamics directly. A domain-specific language model was fine-tuned on these labels, achieving up to an 11% improvement in short-term trend prediction accuracy over traditional sentiment-based benchmarks. Moreover, by incorporating market and temporal context through prompt-tuning, the proposed context-aware language model demonstrated an accuracy of 89.6% on a curated dataset of 227 impactful Bitcoin-related news events with significant market impacts. Aggregating daily tweet predictions into trading signals, our method outperformed traditional fusion models (which combine sentiment-based and price-based predictions). It challenged the assumption that sentiment-based signals are inferior to price-based predictions in forecasting market movements. Backtesting these signals across three distinct market regimes yielded robust Sharpe ratios of up to 5.07 in trending markets and 3.73 in neutral markets. Our findings demonstrate that language models can serve as effective short-term market predictors. This paradigm shift underscores the untapped capabilities of language models in financial decision-making and opens new avenues for market prediction applications.

View on arXivView PDF

Code Implementations(1)

Market-Derived Financial Sentiment Analysis: Context-Aware Language Models for Crypto Forecasting

197Python, Jupyter NotebookFeb 26, 20241 years ago
bitcoinfinbertfsasentimentsentiment-analysis+1 more

Similar Papers

Cite this paper

@article{moradikamali2025marketderived,
  title  = {Market-Derived Financial Sentiment Analysis: Context-Aware Language Models for Crypto Forecasting},
  author = {Hamid Moradi-Kamali and Mohammad-Hossein Rajabi-Ghozlou and Mahdi Ghazavi and Ali Soltani and Amirreza Sattarzadeh and Reza Entezari-Maleki},
  year   = {2025},
  eprint = {2502.14897},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.14897v2}
}

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/2502.14897.svg)](https://codeofpaper.com/paper/2502.14897)

Discussion