ShubhamOza's picture
Start project: proposal, requirements and research log
d34df69 verified
|
Raw History Blame Contribute Delete
5.55 kB

Research Track Proposal

Paper: He, Lv, Manela and Wu (2025), "Chronologically Consistent Large Language Models". SSRN 5159615, also on arXiv as 2502.21206.

Working title for my replication: Is LLM alpha real, or does the model just remember the future?

What the paper is about

A lot of recent papers show that you can feed news into a language model and get a trading signal out of it. The issue I kept running into while reading these is that models like GPT or Llama were trained on internet text that includes what happened after the news came out. So if a backtest from 2015 looks good, I can't tell if the model understood the headline or if it has simply read about how the stock moved afterwards. That's look-ahead bias, and with a normal LLM there is no way to check for it because you can't take the future out of the weights.

The authors deal with this by training their own models. ChronoBERT is a 149M parameter encoder (same architecture as ModernBERT) and they release one version for every year from 1999 to 2024. Each version has only seen text up to the end of its year. For any date in the backtest they use the version that would actually have existed at that point.

Their test is fairly simple. They take each firm's headlines for the day, average the model's hidden states into one embedding, run monthly ridge regressions of next day returns on those embeddings, and then go long the top decile and short the bottom decile every day, equal weighted. The real-time ChronoBERT gets a Sharpe ratio of 4.80. Llama 3.1 8B, which has seen the future, gets 4.90, and the difference is not significant (p = 0.315). ModernBERT gets 4.60, BERT 4.18 and FinBERT 3.86. So their answer is that the bias exists but is small.

Why I picked it

I'm interested in quant research, and in this program I've been replicating older papers like Fama and French (1993) and McNeil and Frey (2000). One thing those taught me is that a backtest only means something if the model couldn't see information it wouldn't have had at the time. With LLMs that problem is hidden inside the model, so I wanted a paper that actually tries to measure it rather than one more paper showing that sentiment makes money.

It also connects to a lot of what we did in class. It uses a ModernBERT style encoder, mean pooling of hidden states (similar in spirit to the SIF and Doc2Vec averaging we covered), FinBERT and BERT as baselines, and it ends in an actual portfolio test.

What I plan to do

Data: the paper uses Dow Jones Newswire, which I don't have access to. I'll use the FNSPID news dataset (S&P 500 firms, 1999 to 2023), or RavenPack through WRDS if it includes headline text. Returns and S&P 500 membership will come from CRSP through WRDS, factors from Ken French's website, and the ChronoBERT versions from Hugging Face.

  1. Replicate the main comparison (their Tables 7 and 8): real-time ChronoBERT against ModernBERT, BERT and FinBERT, with Sharpe ratios and the Ledoit-Wolf test for whether the Sharpe ratios differ. Since my news data is different I don't expect to hit 4.80. What I want to check is whether the ranking of the models and the small gap still hold.
  2. Measure the leakage directly. I'll score the same headlines with the version that existed at the time and with the 2024 version. If the 2024 version does better on old news, that gap is a rough estimate of how much the model is remembering.
  3. Mask the firm names. Glasserman and Lin (2023) found that hiding company names in headlines can actually improve GPT's performance, because the model gets distracted by what it already knows about the firm. I want to see if the same happens here.
  4. A small memorisation test of my own. ChronoBERT can fill in masked words, so I'll give each version sentences like "Apple shares [MASK] after its third quarter 2015 earnings" and see if later versions get the direction right more often than earlier ones. This idea comes from Lopez-Lira, Tang and Zhu (2025).
  5. Check whether the strategy survives costs. It trades every day, so I'll report Fama-French five factor plus momentum alphas and Sharpe ratios after transaction costs, which the paper doesn't focus on.

Rough pseudo code for the core test:

for each trading day t:
    model = ChronoBERT version trained up to Dec 31 of the previous year
    X[i, t] = average hidden state over firm i's headlines from 4pm on t-1 to 4pm on t

for each month m:
    beta[m] = ridge regression of next day returns on X, fitted within month m
    beta_hat = average of beta[1 .. m-1]       # only past months, so it stays out of sample
    score[i, t] = X[i, t] * beta_hat
    each day: long top decile, short bottom decile, equal weight, hold one day

compare Sharpe ratios across models
repeat with the 2024 model and with firm names masked

Problems I expect

The paper chooses which hidden layer to pool using an expanding window and doesn't give all the details, so I'll have to make a choice and explain it. FNSPID is scraped from news websites and will be noisier than Dow Jones. I also only have a CPU, so ChronoGPT (1.55B parameters) and Llama 8B are not realistic for me. I'll leave them out and say so, rather than swapping in something smaller and pretending it's the same test.

AI use

I used Claude to search for and compare candidate papers, to check the paper's numbers and data sources, and to help me draft and edit this proposal. The choice of paper and the extra tests are my own decisions, and I checked the numbers against the paper myself.