JC
All projects

FinBERT Sentiment vs. Price-Based ML

Spring 2026 · with P. Angeles

An NLP pipeline over 480 SEC filings, tested against price-based classifiers to see whether filing sentiment predicts post-earnings returns. It barely does, which is consistent with semi-strong market efficiency.

NLPFinBERTHuggingFaceXGBoostWalk-Forward Validation
Scatter plot of FinBERT sentiment score against 5-day abnormal return, colored by sector, showing near-zero correlation.
text chunks classified from 480 SEC 10-K/10-Q filings
~27,000text chunks classified from 480 SEC 10-K/10-Q filings
sentiment–price agreement, below the 50% baseline
44.9%sentiment–price agreement, below the 50% baseline
correlation between sentiment and abnormal return
r = −0.043correlation between sentiment and abnormal return

Problem

When a company files its 10-K or 10-Q, analysts read the tone for clues about where the stock is headed. If tone predicts post-earnings moves, filing sentiment is a usable signal. If it doesn't, building on it wastes money. We set out to test that directly, and to check whether sentiment agrees with what a model trained purely on price data predicts.

This was a two-person project with Patricia Angeles.

Solution

We built two independent signals for the same earnings events and compared them:

  • Sentiment from the filings. An NLP pipeline that pulls 480 SEC filings from 24 S&P 500 companies (2021–2025), keeps only the sections that carry sentiment, and scores them with FinBERT
  • Prediction from prices. Four classifiers on 16 price-based features, predicting the direction of the 5-day post-earnings return relative to the S&P 500, all validated walk-forward so no model ever saw the future

Outcome

Filing sentiment does not meaningfully predict post-earnings returns. That's a clear, defensible answer to the original question: don't build a trading signal on it. The result is consistent with the semi-strong form of the Efficient Market Hypothesis, which says that by the time information appears in a filing, the price already reflects it. A careful null result like this is more useful to a decision-maker than an overfit positive one.

Results

  • ~27,000 text chunks classified from 480 SEC filings
  • 44.9% agreement between sentiment and price-based predictions, below the 50% expected by chance
  • r = −0.043 correlation between sentiment and abnormal return, effectively zero

Agreement rate by sector

Technical details

Sentiment pipeline

  • Extraction. Pulled filings from EDGAR and kept only the business overview, risk factors and MD&A, dropping financial tables and exhibits.
  • Chunking. Cleaned the text and split it into sentence-aware, overlapping 128-token windows sized for FinBERT. Chunks that were mostly numbers were dropped, and each section was chunked on its own so risk-factor language never bled into MD&A.
  • Classification. Ran zero-shot FinBERT on about 27,000 chunks, then aggregated them into 2,400 filing-level sentiment labels with confidence-weighted majority voting.

Price-based models

We engineered 16 features from weekly price data and trained four classifiers to predict the direction of the 5-day post-earnings abnormal return. All used walk-forward validation.

Agreement analysis

FinBERT sentiment score against 5-day abnormal return

Most of the work in applied NLP is in the data: choosing the right sections, chunking for the model's context window, and aggregating chunk-level labels into a defensible document-level signal.

Next projectTerrain Traversability with a Dynamic Bayesian Network →