TRAIL-UKB: A sparse-autoencoder atlas of disease-trajectory transformer representations
On the map: Mechanistic interpretability → Interpreting biomedical and science models
Abstract (arXiv)
We present TRAIL-UKB, a sparse-autoencoder (SAE) feature atlas of a Delphi-2M-inspired masked-event transformer trained on 5.1 million first-occurrence ICD-10 events from 502,383 UK Biobank participants. SAEs decompose the model's internal representations into sparse, individually interpretable features. An automated pipeline produces feature cards combining clinical context, temporal patterns, genotype associations, model-output effects, logical activation rules and natural-language descriptions. A feature's activation may reflect a diagnosis, its surrounding context, or both. To distinguish additional contextual selectivity from patterns inherited from the diagnoses themselves, we compare observed feature context with diagnosis-conditioned expectations, weighting each diagnosis's usual context by its share of feature activation mass. The atlas contains 7,712 features representing diagnosis indicators, comorbidity and temporal contexts, patient strata, genotype-linked enrichments and recording artifacts. SAE reconstructions explain over 99.7% of hidden-state variance and preserve the model's top-ranked predictions at over 98% of evaluated positions. Across three independently trained SAE fits, 53% of supported feature instances recur in at least two. Counterfactuals test feature activation sensitivity, while decoder-direction steering evaluates effects on model predictions. Comparisons with alternative sparse decompositions assess representation quality. Finally, retrospective, prescription-derived treatment-resistant depression classification demonstrates how downstream model scores can be connected to interpretable SAE features through decoder folding and dependence-aware analysis. We release the analysis pipeline and privacy-screened feature cards for selected TRD-associated features.
Key facts. No citing papers in the map yet (data through 26 Nov 2026). Placed in Interpreting biomedical and science models, one of 13 directions in Mechanistic interpretability. Submitted 28 Oct 2026, announced 30 Nov 2026.
Builds on
No reference list yet.
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Sparse Autoencoder Decomposition of Clinical Sequence Model Representations: Feature Complexity, Task Specialisation, and Mortality Prediction
- 2026Temporal Island Sparse Autoencoders for Interpreting Clinical Time-Series Models
- 2024Time-aware Heterogeneous Graph Transformer with Adaptive Attention Merging for Health Event Prediction
- 2024Learning biologically relevant features in a pathology foundation model using sparse autoencoders
- 2025Graph Transformer with Disease Subgraph Positional Encoding for Improved Comorbidity Prediction
- 2025Learning Patient-Specific Disease Dynamics with Latent Flow Matching for Longitudinal Imaging Generation
- 2026LongMoE: Longitudinal Multimodal Learning via Trajectory-Aware Mixture-of-Experts
- 2026Simulating clinical interventions with a generative multimodal model of human physiology