Kahlus: leak-proof EEG foundation models for sleep
Founder and first author, with Krish Garg![]()
200,000,000-parameter EEG foundation models, pretrained on 157 million seconds of sleeping-brain EEG on a 24-GPU cluster, and a leak-proof benchmark the standard task cannot game.
Kahlus builds EEG foundation models for sleep. Kahlus-V1 set the evaluation standard. Kahlus-V2 applies that standard at scale, to 7,849 overnight recordings from the National Sleep Research Resource (NSRR).
The standard EEG forecasting task scores a model on a target that shares 126 of 127 samples with its input. Scored on the strictly future sample instead, the same ridge baseline goes from MSE 0.0018 to 0.227: 126× inflation from the scoring rule alone. Kahlus-V1 is a leak-proof benchmark: subject-disjoint splits, zero shared samples, and a derived bound on overlap inflation, tested on 286 configurations with 0 violations.
On that benchmark, our GRU beats a tuned ridge on 27 held-out Sleep-EDF subjects at every horizon from 10 to 160 ms: on all 27 subjects at 40 ms, and with 12.4% lower error at 160 ms. The work is published at IEEE IECBES 2026, first author.
Kahlus-V2 pretrains EEG foundation models up to 200,000,000 parameters on 5,194 SHHS-1 nights (43,751 hours), on a 16× H100 + 8× A100 cluster across 99 pretraining runs. Preprocessing is causal end to end, so every filter, resample and patch reads only the past.
At matched compute, masked-signal pretraining (MAE) improves at every scale step. Held-out loss falls from 0.247 to 0.221 to 0.214 nats on 574 subjects who never entered pretraining or probe fitting.
Headline analyses are pre-specified and tested on new people. A pre-specified sleep-EEG effect found on 5,768 SHHS-1 nights replicated on 2,031 MESA nights that stayed sealed in code until one final look: relative risk 5.01 [4.83, 5.18] in development and 3.79 [3.56, 4.02] on the sealed cohort, against 0.995 and 1.004 for a time-shifted control.
Kahlus also develops a stimulation-safety model (patent pending).
| Result | Value | Test set |
|---|---|---|
| Score inflation exposed | 126× (MSE 0.0018 vs 0.227) | Held-out Sleep-EDF subjects |
| Inflation bound | 286 configurations, 0 violations | 11 signals |
| GRU vs tuned ridge, 160 ms | MSE 0.7268 vs 0.8298, 26 of 27 subjects | 27 held-out Sleep-EDF subjects |
| Scaling to 200,000,000 parameters | error falls 13% (0.247 to 0.214 nats) | 574 held-out SHHS-1 subjects |
| Sealed-cohort replication | Relative risk 5.01 then 3.79 | 5,768 SHHS-1 nights, then 2,031 sealed MESA nights |
- Venue
- IEEE IECBES 2026, first-author paper (published)
- Data
- NSRR SHHS-1 and MESA, 7,849 nights; Sleep-EDF, 78 subjects
- Models
- Up to 200,000,000 parameters, masked-signal pretraining
- Compute
- 16× H100 + 8× A100, 99 pretraining runs
- Bound
- 286 configurations, 0 violations
- IP
- Stimulation-safety model, patent pending