Day 194 — The leak that only exists for pretrained models
Tuesday, 16 February 2027 · Week 28 of 52 · Alpha · Study day · 65 min
You know how to prevent look-ahead in a feature; a pretrained model brings its own look-ahead that no timestamp in your pipeline can catch, and that is a genuinely new failure mode.
What you should be able to do tonight
- State the leak precisely: what a pretrained model knows about your backtest period that your features do not.
- Design an experiment that would detect it, and say what result would be evidence of contamination.
Tasks 65 min
20 min Write the argument out: a model trained on text through some date has seen commentary about the outcomes of events in your backtest window, so a sentiment score it produces for a 2019 filing is not a 2019 sentiment score. Your store cannot catch it because the leak is in the weights rather than in the data.
30 min Design the detection experiment: score filings with the model and check whether its apparent skill is higher on well-known events than on obscure ones, or higher on large caps than small, holding the actual predictability constant as far as you can. Then run a version on filings after the model’s training cutoff, which is the only genuinely clean test available.
15 min Write the policy for the book: where a language model is the right tool, which is summarising or extracting a structured field from unstructured text, and where it is not, which is producing a judgement about an outcome. Extraction is much harder to contaminate than prediction.
Resources
Deliverable
A written statement of the pretrained-model leak with a detection experiment designed, plus the extraction-versus-prediction policy for the book.
Checkpoint
Name the leak specific to pretrained models that does not exist when you build your own features, and say why your point-in-time store cannot catch it.
Prepare for tomorrow
Ten minutes tonight so Day 195, Wednesday, 17 February 2027 starts clean. This is what the evening email sends you.
Find the price of one commercial alternative dataset, from any vendor’s public pricing page.
Compute what annual return on what capital that price would require to be worth buying.
One number. It is usually sobering.