Is LLM alpha real, or does the model just remember the future?

A replication of He, Lv, Manela and Wu (2025), "Chronologically Consistent Large Language Models" (SSRN 5159615, arXiv 2502.21206), done for the research track of my NLP course.

The paper trains ChronoBERT, a series of yearly language models that have only seen text up to the end of each year, and shows that a news based trading strategy built on them does about as well as one built on models that have seen the future. I rebuild their test on 596,908 firm days for 3,461 US stocks (December 2009 to June 2020, CRSP returns) and add four checks of my own: ChronoBERT fixed at vintages that have read the future, company names masked, a fill in the blank memorisation probe, and a random ranking placebo.

Results in one table

Daily equal weighted H-L decile portfolios, December 2010 to June 2020 (2,398 days). A random ranking gives a 95% band of -0.63 to 0.62.

Model H-L Sharpe (mine) H-L Sharpe (paper, 2008 to 2023)
ChronoBERT, real time vintages 1.29 4.80
BERT 1.25 4.18
StoriesLM 1.41 3.42
FinBERT 1.59 3.86
ModernBERT 1.16 not reported
ChronoBERT 2024 (has read the future) 0.79 not reported

The news signal is real, but a third to a quarter of the paper's, mostly because 98% of the free headlines have no time of day and have to be traded a day late. On look-ahead the replication agrees with the paper: vintages that have read the future do not do better, masking company names changes nothing (p = 0.79), and the probe finds no memorised price moves. Section 13 of the notebook goes through what matched and what did not.

What is in the repo

Path What it is
Chrono_Lookahead_Replication.ipynb The notebook. Start here.
src/news.py Single company headlines from the FNSPID Benzinga file
src/crsp.py CRSP ticker history and daily returns through WRDS
src/build.py Joins news to CRSP, applies the 4pm rule, builds firm days, masks company names
src/make_data.py Runs the three steps above and exports the text for the GPU job
kaggle/embed_kernel.py GPU job that embeds every firm day with each model (run on Kaggle)
src/run_forecasts.py Fits and caches every monthly ridge forecast
src/backtest.py Ridge forecasts, decile portfolios, Sharpe tests, placebo, costs, factor alphas
src/probe.py Fill in the blank memorisation probe
src/lexicon.py Loughran and McDonald net tone, used as a model free check
data/kaggle/firmday_texts.parquet The firm day texts (no CRSP data), input to the GPU job
HISTORY.md Research log, one entry per commit, including the first small version and why it was replaced
docs/proposal.md The proposal I submitted before starting

How to run it

pip install -r requirements.txt
python -m src.make_data          # needs a WRDS login for CRSP
# run kaggle/embed_kernel.py on a GPU with data/kaggle/firmday_texts.parquet,
# put the .npy outputs in data/embeddings/full
python -m src.run_forecasts      # about 15 minutes per model on a laptop
jupyter notebook Chrono_Lookahead_Replication.ipynb

CRSP data cannot be shared, so the returns, the joined firm day file, the embeddings (874 MB each) and the cached forecasts are not in the repo. Every number in the notebook is computed from the data; the paper's figures appear only as a labelled reference column.

Data

  • News: FNSPID (Zihan1004/FNSPID on Hugging Face), the Benzinga file All_external.csv.
  • Returns: CRSP daily stock file through WRDS, share codes 10 and 11, NYSE, AMEX and Nasdaq, delisting returns included.
  • Factors: Ken French data library (daily five factors and momentum).
  • Models: manelalab/chrono-bert-v1-YYYY1231, bert-base-uncased, StoriesLM/StoriesLM-v1-1963, ProsusAI/finbert, answerdotai/ModernBERT-base.
  • Loughran and McDonald Master Dictionary (1993 to 2024 release), in data/external.

Tools

Course disclosure: I used Claude as a coding and writing assistant on this project.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support