Manuscript Offprint
arXiv:2609.07729Attributing Cohen's d: Training Data Attribution for Disease-Related Effects in Normative Age Biomarkers
Abstract
Normative age models are trained to predict chronological age in a nominally healthy cohort. Applied to patients, they deviate, and the gap between predicted and chronological age is read as disease risk. Here, we attribute the disease-related effect size of the age gap directly to individual training samples, rather than using a prediction-level loss as the attribution target. For Cohen's d, the resulting closed-form influence functional, validated against leave-one-out retraining, ranks training samples by their effect on held-out case-control separation. Across four diseases and two biomarker modalities in UK Biobank, removing the 10% most influential training samples raises held-out disease-related effect size in every seed. It more than doubles the metabolomic-age effect for type 2 diabetes and raises the brain-age effect for multiple sclerosis by roughly a third. Random removal leaves effect size flat even at 50% removal, confirming the gain comes from which samples are removed, not how many. Flagged subjects carry subclinical cardiometabolic burden that diagnosis-based exclusion misses, on markers the model never sees. For type 2 diabetes, where the method gains most, the marker recovered is HbA1c, the standard measure of blood sugar control. We release pyinfluence, our influence-function package, for reproducibility and reuse.
1 Introduction
A normative age biomarker is a model trained to predict chronological age in a nominally healthy cohort [3]. Applied to a patient, it misses, and the gap between predicted and chronological age is read as disease risk (Figure 1a). The gap carries signal because the model never saw disease in training.
Reported brain-age effect sizes for the same disease vary widely across studies with similar methods [4, 10]. Reference-cohort contamination is one suspected source [21]. When a nominally healthy training cohort contains people with pre-diagnostic disease, the contamination inflates the variance of disease-carrying features, and an optimiser minimising age-prediction error learns to downweight exactly those features. In fact, models with worse age-prediction accuracy can show larger disease-related effects [21]. A control who is pre-diabetic but undiagnosed, for example, still enters training labelled healthy, and the model learns to treat their elevated glucose-linked features as normal variation, not signal.
✉ Corresponding author: marc-andre.schulz@uni-tuebingen.de
Preprint.

Figure 1: Influence-guided removal in the multiple sclerosis cohort widens the separation in mean age gap between held-out controls and cases. (a) We plot predicted age against chronological age for individual subjects in this cohort, and define the age gap as predicted age minus chronological age. A subject on the diagonal has an age gap of zero and reads as healthy. The marked subject above it has a positive age gap and reads as at elevated disease risk. (b) We train a model on its nominally healthy training pool of 40,000 subjects, rank every training subject by its influence on Cohen's d, and retrain the model without the 10% most influential subjects (magenta), keeping the remainder. (c) Attribution-based top-10% removal (top) widens the separation in mean age gap between cases and controls to 5.2 years, a paired gain of 1.8 years over random removal of the same share (bottom), which leaves a separation of 3.4 years. Small, lighter dots show single-seed means. The larger, more saturated dot shows the mean across seeds. Removing the flagged 10% moves the case group away from its matched controls while the control group stays near zero.
As in many other domains [13], current practice for composing the reference cohort relies on domain experience [2, 5, 6]. Experts build exclusion lists that flag subjects who deviate from the normative ageing trajectory, based on recorded diagnoses such as diabetes or chronic kidney disease. These lists are applied a priori, before training, and no post-hoc approach exists to catch subclinical or undiagnosed cases that never appear on any exclusion list.
Training data attribution offers a natural way to address this gap. It conventionally identifies the training points most responsible for an individual prediction, for example to debug models or detect dataset errors [8, 9, 11, 12, 15, 16]. However, a normative age biomarker is not evaluated by individual prediction accuracy. It is trained on the reference cohort for prediction accuracy, but evaluated by the disease-related effect size of the resulting age gaps, quantified by Cohen's d between held-out cases and matched controls. This mismatch is not unique to our setting. Nguyen et al. [14] find that practitioners' metric preferences are individual to the user, with no consistent preference for loss.
We therefore use the disease-related effect size itself as the attribution target rather than an individual age prediction, and call the resulting method Cohen's d influence functions (Figure 1b). This directly targets training samples that reduce the downstream effect size. Under the hypothesis that reference-cohort contamination limits this effect, three predictions follow. First, flagged samples should carry subclinical disease-related phenotypes. Second, removing them should increase evaluation effect size. Third, removing random individuals should not.
Our experiments show all three predictions hold (Section 4.1). Figure 1c shows the resulting age gap for multiple sclerosis cases and controls. We make the following contributions. First, Cohen's d influence functions, a closed-form method for attributing disease-related effect size rather than the training loss, benchmarked against leave-one-out retraining (Section 2). Second, empirical validation across four conditions. Attribution-based removal raises disease-related effect size where random removal of the same size does not, across four diseases and two UK Biobank modalities, in every seed (Section 4.1). Third, phenotypic characterisation of flagged samples. Flagged samples carry subclinical cardiometabolic burden that diagnosis-based exclusion misses (Section 4.3).
Biomarker. For one modality and disease, a ridge regression [20] predicts age from features (1,440 T1 imaging phenotypes or 251 nuclear magnetic resonance (NMR) metabolomic analytes) in a training pool of nominally healthy people. We fit a linear age-bias correction on training predictions and invert it on test predictions [22]. The age gap of subject is . The disease-related effect size is Cohen's of between prevalent cases and 1:1 age- and sex-matched controls.
Estimand and functional. Let be the effect size we obtain by training the model on the reference cohort and evaluating it on a fixed, held-out set of matched cases and controls. For every training sample , we want the change . For ridge, influence on the parameters is closed form [11]. We propagate it through the full pipeline by writing as an explicit functional of the model's raw predictions , where denotes the model's parameters and is the held-out set's feature matrix, with the bias-correction constants closed over:
Removing perturbs the fitted parameters by the closed-form influence step, and the induced change in is, up to a positive factor,
where is the Hessian of the training loss, stabilises the inverse, and is the analytic gradient of Equation (1). We use only the ranking of the scores, so the omitted positive factor is irrelevant. We compute scores with pyinfluence [19].
takes as input but is Cohen's of the gap , not of itself. Because subtracts each subject's own age, , and Cohen's computed on raw predictions is a different quantity with a different gradient. We hold the correction coefficients fixed at their full-data values during scoring and do not differentiate their dependence on the removed sample. We refit the coefficients at every actual removal, so any error from holding them fixed shows up as a gap between predicted and realised change, which the removal curves measure. We remove samples in descending score order, the largest estimated first.
Selection/evaluation split. We split all held-out matched cases and controls 50/50 by matched pair into a selection half, used only to compute attribution scores, and an evaluation half, serving as the test set, used only to report effect sizes. Selection-half effect sizes inflate mechanically with removal. The gap between the two is the overfitting diagnostic, not a result.
Validation. Exact leave-one-out retraining is tractable for ridge and provides a benchmark for every training sample. At the 10% cut, the influence and leave-one-out rankings select nearly the same samples. Across all condition-seed combinations, they disagree on fewer than 50 of roughly 4,000 removed samples, a set overlap of 98.9% to 99.8%. Retraining under each ranking changes evaluation-half Cohen's by a mean of 0.001 and a maximum of 0.009 across all condition, seed, and removal-level combinations. Influence estimates for nonlinear models can be fragile [1]; ridge lets us check the closed form against exact retraining.
3 Experimental setup
We use UK Biobank [23], a population cohort of roughly 500,000 UK adults with genetic, imaging, and health-record data, across two modalities and four diseases. Brain age from T1 imaging phenotypes at the imaging visit is evaluated against multiple sclerosis (84 evaluation cases) and cerebrovascular disease (404). Metabolomic age from NMR at baseline is evaluated against type 2 diabetes (1,000) and chronic kidney disease (1,000). Healthy controls matched to diseased cases for evaluation are pure controls, people with no record of the diagnosis at any time. We exclude individuals diagnosed after the visit from both the training pool and the control pool, applying best current practice before attribution runs. Any disease-relevant health burden identified afterward is therefore subclinical or undiagnosed, not something diagnosis-based exclusion already catches. We subsample training pools to 40,000. We choose the ridge penalty once by cross-validation on the untouched pool and freeze it for every refit.
We compute the ranking once per seed and cut it at 5%, 10%, 25%, and 50% removal, refitting the model, including the bias correction, at each level and re-scoring the unchanged evaluation half. A control arm removes the same number of samples with a random ranking, holding seed, matched set, split, penalty, and evaluation half identical. We repeat this across 10 seeds per condition.
For each removal level, we compute the paired change , the attribution arm's Cohen's minus the random arm's, within each seed, and report its mean and standard deviation across seeds. The absolute effect size carries cohort-draw variance that is common to every arm within a seed and cancels under pairing. At 84 evaluation cases the across-seed spread of the absolute is , the paired spread at 10% removal, growing to by 50%. We run two attribution targets for every cell: the Cohen's estimand ( ) and its unnormalised surrogate, the mean age gap. Appendix C contains full reproduction and compute details.
4 Results
4.1 Removing what attribution flags works and removing at random does not
Table 1: Evaluation-half Cohen's d under d-based attribution and random removal (mean across-seed SD, ten seeds per condition). The 0% column is the baseline both arms share, so it is identical across rows by construction. Removing the same number of training subjects at random leaves d near its baseline at every level. Type 2 diabetes, for instance, holds 0.603 from 5% through 25% against a baseline of 0.601, and is still at 0.595 after half the training pool is gone, so the attribution arm's rise is not what removing data does on its own. The SDs here are dominated by the cohort draw, which both arms share within a seed and cancels in the paired change. See Figure 2 for that paired change, the quantity to read for significance.
| Condition | Arm | 0% | 5% | 10% | 25% | 50% |
|---|---|---|---|---|---|---|
| Multiple sclerosis | attribution | |||||
| random | ||||||
| Cerebrovascular | attribution | |||||
| random | ||||||
| Type 2 diabetes | attribution | |||||
| random | ||||||
| Chronic kidney dis. | attribution | |||||
| random |

Training samples removed (%)
Figure 2: Influence-guided removal raises the evaluation-half case-control effect size at every removal level in all four conditions. Per condition, we report the paired between Cohen's d-based attribution and random removal, averaged across seeds. Pairing removes cohort-draw noise shared by both arms. Coloured curves show attribution-based results, one colour per condition, with shaded SD across ten seeds. The grey zero line denotes random removal by construction.
Across four conditions, two modalities, two attribution targets, and all removal levels, the paired change is positive across every seed-level cell we tested (Figure 2). Random removal is centred on zero at every level, with sign counts consistent with chance, including 50% removal, where the model trains on half the data. The effect comes from the ranking, not from the change in training-set size.
Beyond the size of the gain, the direction of the separation matters clinically. A useful biomarker keeps controls near an age gap of zero and shows a large gap only for cases, rather than both groups drifting apart from an arbitrary point. Figure 1 confirms this pattern for multiple sclerosis, where attribution-based removal widens the case gap substantially while the control gap drifts only slightly upward relative to random removal, a small cost. The same pattern holds across all four conditions (Appendix Figure 4).
Gains are larger for the metabolomic conditions than for the brain conditions: +0.85 and +0.56 at 10% removal against +0.20 and +0.05. This ordering is consistent with reference-cohort contamination, if metabolic dysfunction is more common in nominally healthy cohorts than subclinical neurodegeneration.
4.2 Choice of attribution target
Across the two attribution targets, Cohen's and the mean age gap (Section 3), the gains in Table 1 shift by at most 0.08 in , small against the gains themselves, and no sign or ordering changes. Which target wins depends on the selection-half size (Table 4). For type 2 diabetes and chronic kidney disease, 1,000 cases per group, Cohen's wins by 0.007 to 0.033 at every removal level, small in absolute terms but decisive given the paired standard deviation, four to ten times tighter than the marginal spread. For cerebrovascular disease (404 cases) and multiple sclerosis (84 cases), the mean age gap wins instead, by 0.004 to 0.006 and by 0.043 to 0.079. The mean-gap surrogate drops the pooled-SD denominator, so the two targets differ only in the gradient through . That term is estimated from the deviations of the selection-half subjects around their group means. At 1,000 cases it is informative about how a training sample shapes within-group spread. At 404 and 84 cases it is dominated by sampling noise of the selection-half draw instead, so the fitted component overfits that particular sample and does not transfer to the evaluation half. Consequently, the choice of attribution target is a bias-variance tradeoff, with being the estimand but noisier at a small selection half, and the mean age gap being mis-specified but stable. When the selection half is small, prefer the surrogate. The same bias-variance tradeoff can arise for other finite-sample evaluation targets, including AUROC and calibration slopes.
4.3 Who gets flagged

Figure 3: Subjects the method flags differ from matched unflagged training subjects on cardiometabolic health, self-reported health, and socioeconomic and demographic measures. Bars are Cohen's between the flagged training samples and age- and sex-matched training samples drawn from the unflagged remainder of the same training pool. Error bars are bootstrap standard error. Age and sex are the matching variables and are not shown, since they are equal by construction. Flagged subjects are the top 10% by percentile rank averaged across the ten seeds. Flagging, matching, and the bootstrap follow Appendix C.5 ( flagged, given in each panel title). Effects are largest in type 2 diabetes, the condition the method helps most: HbA1c +0.162, BMI +0.119, CRP +0.104, health rating +0.097. Chronic kidney disease breaks this pattern. Its cardiometabolic bars sit near zero, while ethnicity shows the largest separation in that panel (), larger than any cardiometabolic marker in the same condition (CRP, +0.039).
In three of the four conditions, the top 10% of flagged samples have higher BMI, waist-to-hip ratio, C-reactive protein (CRP), and HbA1c, and report worse self-reported health, than matched unflagged subjects from the same training pool (Figure 3). Age and sex are balanced by construction. The pattern is strongest for type 2 diabetes, an HbA1c separation of , more than three times the separation in any other run. This is the expected marker for the condition, recovered without the method seeing it, and serves as a positive control. It is absent for chronic kidney disease, where these same markers are flat or reversed.
Figure 3 also plots the socioeconomic and ethnicity block directly. Multiple sclerosis, cerebrovascular disease, and type 2 diabetes show no substantial demographic separation there, at most for education years under cerebrovascular disease. Chronic kidney disease does not follow this pattern. It shows an ethnicity gap (), larger than any cardiometabolic marker. This separation raises a fairness question, which Section 5 discusses. The signature is shared across three conditions and strongest where the gain is largest; chronic kidney disease is the exception.
5 Limitations
The model class is ridge regression, where influence is in closed form. We have not tested whether these rankings transfer to nonlinear age models. Such transfer is known to be delicate [1], though ridge and nonlinear models perform comparably for age prediction [20]. We compute a batch-wide ranking once. An iterative variant could behave differently if contamination has cascade structure. We do not compare against conventional, loss-based attribution baselines, since our interest is the group-level effect size, not single-subject predictive accuracy.
Current practice does not exclude one condition at a time. Normative age models are usually trained once across all conditions, with a single reference cohort excluding every condition under study, since these conditions share an elevated biological age signal. We instead train one model per condition, excluding only that condition from its own reference cohort. Whether our reported effect-size gains grow or shrink under such a shared, more strictly filtered normative cohort remains open. Results are from one biobank, and the two metabolomic conditions used a capped control pool whose effect on absolute baselines we have not yet isolated. The paired results do not depend on the baselines, but the absolute effect sizes do.
The phenotype panel (Section 4.3) describes the flagged group, not why the method flagged them. Ranking is based on influence on the age-gap effect size, not on these variables. For chronic kidney disease, the strongest separation is ethnicity, a documented but untested correlate of disease risk. Establishing a causal link is outside the scope of this analysis, so we cannot tell whether this reflects a clinical signal or a fairness concern. Deleting individuals is the crudest use of the ranking. The intended use, deriving interpretable inclusion criteria from the flagged profiles, is future work.
6 Recommendations
Three reporting rules follow. First, pair every attribution arm with a count-matched random arm under identical seeds, otherwise removal confounds attribution with training-set size. Second, report the paired change between the attribution and random arms rather than absolute values or ratios of means, which inherit and can amplify cohort-draw variance. Third, report the flagged-sample phenotype table alongside the removal curves.
7 Conclusion
Retargeting attribution from the training loss to disease-related effect size identifies training samples missed by diagnosis-based exclusions. Across four diseases and two modalities, removing these samples consistently increases held-out effect size while random removal does not. The approach should generalise beyond Cohen's to any evaluation statistic computed on held-out data, wherever the target that matters is not the one attribution conventionally optimises.
Acknowledgments and Disclosure of Funding
We thank the UKBB participants for their voluntary commitment and the UKBB team for their work in collecting, processing, and disseminating these data for analysis. This research was conducted using the UKBB Resource under project-ID 33073. The project was funded by the Deutsche
Forschungsgemeinschaft (DFG, German Research Foundation) under project-ID 565356445 and 586414057 to MAS.
References
[1] Samyadeep Basu, Philip Pope, and Soheil Feizi. Influence functions in deep learning are fragile. In ICLR, 2021.
[2] James H. Cole. Multimodality neuroimaging brain-age in UK Biobank: relationship to biomedical, lifestyle, and cognitive factors. Neurobiology of Aging, 92:34–42, 2020. doi: 10.1016/j.neurobiolaging.2020.03.014.
[3] James H. Cole and Katja Franke. Predicting age using neuroimaging: Innovative brain ageing biomarkers. Trends in Neurosciences, 40(12):681–690, 2017. doi: 10.1016/j.tins.2017.10.001.
[4] Christos Constantinides et al. Brain ageing in schizophrenia: evidence from 26 international cohorts via the ENIGMA schizophrenia consortium. Molecular Psychiatry, 28(3):1201–1209, 2023.
[5] Nicola K. Dinsdale, Emma Bluemke, Stephen M. Smith, Zobair Arya, Diego Vidaurre, Mark Jenkinson, and Ana I.L. Namburete. Learning patterns of the ageing brain in MRI using deep convolutional networks. NeuroImage, 224:117401, 2021. doi: 10.1016/j.neuroimage.2020.117401.
[6] Xinyang Feng, Zachary C Lipton, Jie Yang, Scott A Small, Frank A Provenzano, Alzheimer's Disease Neuroimaging Initiative, Frontotemporal Lobar Degeneration Neuroimaging Initiative, et al. Estimating brain age based on a uniform healthy population with deep learning and structural magnetic resonance imaging. Neurobiology of Aging, 91:15–25, 2020.
[7] Katja Franke, Christian Gaser, Brad Manor, and Vera Novak. Advanced BrainAGE in older adults with type 2 diabetes mellitus. Frontiers in Aging Neuroscience, 5, 2013. doi: 10.3389/fnagi.2013.00090.
[8] Amirata Ghorbani and James Zou. Data Shapley: Equitable valuation of data for machine learning. In ICML, 2019.
[9] Andrew Ilyas, Sung Min Park, Logan Engstrom, Guillaume Leclerc, and Aleksander Madry. Datamodels: Predicting predictions from training data. In ICML, 2022.
[10] Robert J. Jirsaraie et al. A systematic review of multimodal brain age studies: uncovering a divergence between model accuracy and utility. Patterns, 4(4):100712, 2023.
[11] Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In ICML, 2017.
[12] Yongchan Kwon and James Zou. Beta Shapley: a unified and noise-reduced data valuation framework for machine learning. In AISTATS, 2022.
[13] Elisa Nguyen, Evgenii Kortukov, Jean Y Song, and Seong Joon Oh. Exploring practitioner perspectives on training data attribution explanations. In NeurIPS 2023 Workshop: XAI in Action–Past, Present, and Future Applications. Neural Information Processing Systems Foundation (NeurIPS Foundation), 2023.
[14] Elisa Nguyen, Johannes Bertram, Evgenii Kortukov, Jean Y Song, and Seong Joon Oh. Towards user-focused research in training data attribution for human-centered explainable AI. arXiv preprint arXiv:2409.16978, 2024.
[15] Sung Min Park, Kristian Georgiev, Andrew Ilyas, Guillaume Leclerc, and Aleksander Madry. TRAK: Attributing model behavior at scale. In ICML, 2023.
[16] Garima Pruthi, Frederick Liu, Satyen Kale, and Mukund Sundararajan. Estimating training data influence by tracing gradient descent. In Advances in Neural Information Processing Systems, volume 33, pages 19920–19930, 2020.
[17] Saige Rutherford, Seyed Mostafa Kia, Thomas Wolfers, Charlotte Fraza, Mariam Zabihi, Richard Dinga, Pierre Berthet, Amanda Worker, Serena Verdi, Henricus G Ruhe, et al. The normative modeling framework for computational psychiatry. Nature protocols, 17(7):1711–1734, 2022.
[18] Marc-Andre Schulz. cohortmatch: statistical matching for cohort studies at scale. Zenodo, v0.1.0, https://doi.org/10.5281/zenodo.22165418, 2026. Software.
[19] Marc-Andre Schulz. pyinfluence: training data attribution for scikit-learn. Zenodo, v0.5.0, https://doi.org/10.5281/zenodo.22165461, 2026. Software.
[20] Marc-Andre Schulz, Danilo Bzdok, Stefan Haufe, John-Dylan Haynes, and Kerstin Ritter. Performance reserves in brain-imaging-based phenotype prediction. Cell Reports, 43(1):113597, 2024. doi: 10.1016/j.celrep.2023.113597.
[21] Marc-Andre Schulz, Nys Tjade Siegel, and Kerstin Ritter. Brain-age models with lower age prediction accuracy have higher sensitivity for disease detection. PLoS Biology, 23(10): e3003451, 2025.
[22] Stephen M. Smith, Diego Vidaurre, Fidel Alfaro-Almagro, Thomas E. Nichols, and Karla L. Miller. Estimation of brain age delta from brain imaging. NeuroImage, 200:528–539, 2019. doi: 10.1016/j.neuroimage.2019.06.017.
[23] Cathie Sudlow et al. UK Biobank: an open access resource for identifying the causes of a wide range of complex diseases of middle and old age. PLoS Medicine, 12(3):e1001779, 2015.
[24] Shiyu Zhang, Zheng Wang, Yijing Wang, Yixiao Zhu, Qiao Zhou, Xingxing Jian, Guihu Zhao, Jian Qiu, Kun Xia, Beisha Tang, Julian Mutz, Jinchen Li, and Bin Li. A metabolomic profile of biological aging in 250,341 individuals from the uk biobank. Nature Communications, 15(1): 8081, 2024. doi: 10.1038/s41467-024-52310-9.
A AI disclosure
We used LLM assistants (e.g. ChatGPT, Claude) as coding co-pilots for experimentation and plotting code, and as writing tools for language editing, condensing drafts, and checking citation coverage. All scientific ideas, experimental design, claims, and cited references originate from and were verified by the authors, who reviewed and take full responsibility for the final content.
B The age-gap biomarker
Readers coming from the attribution literature may not be familiar with how an age-gap biomarker is built or why it is used clinically. This section gives that context briefly.
An age-gap biomarker predicts a person's age from a biological measurement, typically brain imaging [3, 22] or a blood panel [24], using a model trained only on people presumed healthy. This is an instance of normative modelling [7]. A model captures the typical ageing trajectory of a reference cohort, and an individual's deviation from that trajectory serves as a biomarker. Applying the model to a new subject with true age and predicted age gives the age gap : a value near zero means the subject's biology matches the healthy trajectory, while a large positive value means the model reads their biology as older than their years [3]. For example, a subject with a true age of 50 and a predicted age of 55 has an age gap of five years. Section 2 formalises this further with a bias correction fit on training predictions, giving .
The biomarker becomes clinically useful once this gap is compared between people with a disease and matched healthy controls. Writing and for the mean gap in each group, a disease that accelerates biological ageing shows up as , and a wider gap has been linked to more severe symptoms and faster progression across a range of conditions [2]. The size of this separation, normalised by the pooled standard deviation as Cohen's , is the biomarker's disease-related effect size. This effect size is evaluated on people the model never trained on, not on the model's training accuracy.
Two consequences of this setup motivate our method. First, like any normative modelling framework, this construction depends on the reference population being free from the pathological patterns the model is meant to be sensitive to [17]. Any undiagnosed or subclinical disease hiding in the presumed-healthy training pool distorts what the model treats as a normal ageing trajectory, which is the contamination problem Section 2 addresses. Second, since the effect size is measured downstream on held-out cases and controls rather than on training loss, a model that fits its training data less tightly can still produce a gap with a larger effect size [21]. This is why we attribute the downstream effect size directly, rather than the training loss the model was fit to minimise.
Although brain imaging is the most established input for this biomarker, the same construction applies to any modality carrying a biological age signal. This paper evaluates two: brain age from T1 imaging phenotypes and metabolomic age from NMR blood metabolomics, both fit and evaluated identically.
C Experimental setup
In this section, we record the compute and every pipeline-specific design choice needed to reproduce the reported results. Standard components, such as ridge regression, the leave-one-out retraining, and matching, follow their usual textbook form, so we do not re-derive them here.
C.1 Cohorts and training pool
Four conditions across two UK Biobank modalities: brain age from 1,440 T1 imaging features (45,755 subjects, visit 2) and metabolic age from 251 NMR features (98,349 subjects, baseline visit). Status comes from ICD-10 codes relative to the assay visit. We reserve prevalent cases for influence computation and evaluation only, exclude incident (post-visit) diagnoses entirely, and treat subjects with no record of the diagnosis as controls.
Table 2: Cohort sizes by condition.
| Condition | Prevalent | Incident | Control |
|---|---|---|---|
| Multiple sclerosis (G35) | 168 | 12 | 45,575 |
| Cerebrovascular (I60–I69) | 808 | 590 | 44,357 |
| Type 2 diabetes (E11) | 7,567 | 18,478 | 72,304 |
| Chronic kidney dis. (N18) | 3,419 | 14,084 | 80,846 |
We exclude all prevalent and incident subjects for the condition under study from the training pool and cap it at 40,000 by a per-seed subsample: each seed draws its own 40,000 from the eligible pool, so a subject appears in a variable number of seeds. In the T1 cohorts, nearly every eligible subject is drawn by at least five seeds; in the NMR cohorts only 75% (E11) and 61% (N18) are, which is why the seed-averaged ranking in Section C.5 requires that minimum before averaging. Beyond this cap, the pipeline applies a 5% feature-missingness filter (training set) and a 90% subject-coverage filter. Neither filter removes anything in either cohort.
C.2 Matching and evaluation split
We cap cases at 2,000 and match them 1:1 to controls by nearest-neighbour Mahalanobis distance on age and sex (cohortmatch [18], ATT estimand, average treatment effect on the treated, exact sex match, 2-year age caliper), reducing the mean absolute standardised mean difference from 0.38–0.54 across all condition-seed matchings to 0.000 in every one of them. We split matched pairs 50/50 by pair into a selection half, used only to compute attribution scores, and an evaluation half, serving as the test set, used only to report effect sizes.
C.3 Model and attribution
The age model is ridge regression (scikit-learn) on the modality's features plus sex. We fit mean imputation and standardisation on the training set. We choose the penalty once per seed by cross-validation on the untouched pool, and freeze it for every refit. The bias-corrected age gap is . We fit by least squares of training predictions on training age (Section 2).
We score each training subject under four configurations: Cohen's of and the unnormalised mean age gap , each by closed-form influence function (pyinfluence) and by exact leave-one-out retraining, the standard closed-form ridge update, with the intercept left unpenalised to match the model fit.
C.4 Removal experiment and effect sizes
We remove training subjects in descending score order at 5, 10, 25, and 50% cuts, refit the model at frozen , and recompute Cohen's on the evaluation half.
For each removal level, we compute the paired change , the attribution arm's Cohen's minus the random arm's, within each seed, and report its mean and standard deviation across seeds. This cancels the cohort-draw variance common to every arm within a seed. Its error bar is the across-seed SD (Table 1).
C.5 Phenotypic characterisation
We flag the top 10% most influential training subjects by percentile rank averaged across the ten seeds, match them 1:1 against the remaining training subjects (nearest neighbour on age, exact on sex, caliper 2 years) and compare the two groups on the variables shown in Figure 3 by Cohen's with bootstrap standard error (). Each seed ranks only its own 40,000-subject draw, so we convert to percentile rank before averaging and require subjects appearing in the ranking in at least five seeds. The pooled ranking's support is the set of subjects drawn in at least five seeds, 45,557, 44,352, 53,890, and 49,349 subjects by condition, so the flagged top 10% number 4,556, 4,435, 5,389, and 4,935 rather than a round 4,000. Because the design is 1:1 matched, the bootstrap resamples pairs. One index vector draws both groups, so a flagged subject and their matched unflagged subject travel together and the interval conditions on the matching that produced it. We carry age and sex through as a matching check. This design makes both members of a pair identical on these variables, so with a standard error of exactly zero in every panel.
C.6 Seeds
A single seed controls every stochastic step (subsampling, matching, the training draw, the selection/evaluation split, random removal, and the bootstrap). For the removal experiment, error bars are the across-seed spread of the paired change. Figure 3 uses the aggregate-ranking bootstrap described in section C.5.
C.7 Computational details
We run all experiments on CPU-only AMD EPYC nodes, no GPU, requesting 8 cores and 32 GB per condition-seed task, with BLAS threaded across the 8 cores and no other parallelism. Peak memory is under 6 GB per task.
Per-task wall-clock ranges from 43 s to 333 s, driven by predictor count (1,441 for T1 imaging against 252 for NMR) rather than sample size. The NMR tasks run in 43–72 s on the larger cohorts, the T1 tasks in 114–333 s. The full set of 40 tasks (4 conditions 10 seeds) totals roughly 1.6 hours of compute, about 12.5 core-hours. That figure covers only the final experiments reported in this paper. Total project compute is higher, since we ran the pipeline repeatedly during development and debugging before reaching this configuration.
Software: Python 3.12, scikit-learn 1.8, plus cohortmatch and pyinfluence, both released under the MIT License.
D Removal effect on the mean age gap across conditions
Multiple sclerosis (brain age, n = 84)
Attribution-based removal (top 10%)

Random removal (10%)

Cerebrovascular (brain age, n = 404)
Attribution-based removal (top 10%)

Type 2 diabetes (metab. age, n = 1,000)
Attribution-based removal (top 10%)
Random removal (10%)

Chronic kidney dis. (metab. age, n = 1,000)
Attribution-based removal (top 10%)

Random removal (10%)

Random removal (10%)

Figure 4: The mean age gap shift under Cohen's d-based attribution and top 10% removal, as in Figure 1(c), for all four conditions. In every condition the case group moves away from its matched controls while the control group stays near zero. Upper row of each block: attribution-based removal of the top 10%. Lower row: random removal of the same 10%. Markers are the across-seed mean of the per-seed mean age gap (green: matched controls, red: cases). The across-seed spread is shown seed by seed and no error bars are drawn. Small, lighter dots show single-seed means. The arrow gives the case-control gap the attribution arm leaves and, in brackets, the part of it attribution-based removal is responsible for. Attribution leaves gaps of 5.2, 1.7, 25.7, and 14.2 y against the random arm's 3.4, 1.5, 8.5, and 5.1 y, a paired gain of +1.8, +0.2, +17.2, and +9.1 y. The control group's mean gap stays within 1.2 y of zero in every condition (0.0, -0.2, -0.4, and -1.1 y). The two age scales are not directly comparable in years, since brain age and metabolomic age are different modalities.
E Influence distribution

dashed: the top 10% this seed flags, the samples the removal arms drop
Figure 5: Distribution of Cohen's influence scores across training samples, shown per condition (rows) and per seed (columns). Every panel shows the same sharply peaked, heavy-tailed shape, consistent with influence functions generally. The dashed line marks the 10% removal cutoff.
F Mean age gap attribution
Table 3: Evaluation-half Cohen's d under mean age gap attribution and random removal (mean ± across-seed SD, ten seeds per condition). The SDs here are dominated by the cohort draw, which both arms share within a seed and cancels in the paired change. See Figure 6 for that paired change, the quantity to read for significance.
| Condition | Arm | 0% | 5% | 10% | 25% | 50% |
|---|---|---|---|---|---|---|
| Multiple sclerosis | attributionrandom | |||||
| Cerebrovascular | attributionrandom | |||||
| Type 2 diabetes | attributionrandom | |||||
| Chronic kidney dis. | attributionrandom |

Figure 6: Influence-guided removal raises the evaluation-half case-control effect size at every removal level, in all four conditions. Per condition, we report Cohen's d delta between mean age gap attribution and random-removal results, averaged across seeds. Pairing removes cohort-draw noise shared by both arms. Coloured curves represent attribution-based results, one colour per condition, with shaded ±1 SD across ten seeds. The grey line at zero represents random removal by construction.
Table 4: Difference between the two attribution targets, mean age gap minus Cohen's d, in evaluation-half Cohen's d. The comparison is paired within seed. Both targets share that seed's matched set, selection/evaluation split, frozen and baseline, so the cohort-draw variance common to both differences out. The SDs here are consequently four to ten times smaller than the marginal SDs in Tables 1 and 3, and the two should not be compared directly: a difference of 0.03 is decisive here while each individual curve carries an SD of 0.03–0.15. Positive favours the mean age gap attribution.
| Condition | 5% | 10% | 25% | 50% |
|---|---|---|---|---|
| Multiple sclerosis | ||||
| Cerebrovascular | ||||
| Type 2 diabetes | ||||
| Chronic kidney dis. |