NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The Assay Is a Causal Path: Measurement-Aware Counterfactual Fairness for Immunoassay Biomarkers

Clinical prediction models increasingly take protein biomarkers measured by ELISA (enzyme-linked immunosorbent assay, a lab test that turns antibody binding into a color reading and then into a concentration using a calibration curve) and feed them in as if they were the biology itself. They are not. A reported concentration is the output of a chain of steps: the antibody captures the protein, the background sample fluid ("matrix") interferes, the plate reader saturates outside its range, the result is fit to a sigmoidal standard curve, it is normalized (urinary markers are divided by creatinine), and it is often combined with demographic-dependent equations or reference cutoffs. Several of these steps let a patient's age, sex, or recorded race change the number without any change in the underlying protein. The causal-fairness literature already knows how to protect predictions from such influence. It restricts models to "non-descendants" of the sensitive attribute, meaning variables that would not change if that attribute were hypothetically switched (Counterfactual Fairness). That protection is expensive, though, because deleting every downstream feature throws away diagnostic signal.

This note proposes a cheaper alternative. Model the measurement pipeline explicitly as part of the causal graph. For the parts of the graph whose mechanism is known by design (the calibration curve, normalization formulas, demographic equations, censoring at detection limits), compute counterfactual feature values exactly, then repair those features instead of deleting them. The result is a predictor that blocks the paths through which demographics enter via measurement and leaves biological paths available for a separate, explicit fairness choice. Here the assay is the application regime, and non-descendant selection supplies the core mechanism. In two sentences: much of the demographic dependence in lab features is put there by the assay and its post-processing, whose equations we already know. We can therefore undo that dependence exactly, rather than discarding the feature or learning a causal graph we cannot verify.

Core Claim

The claim is that the features in biomarker panels split into two parts. One part is biological, where the causal arrows from demographics are uncertain and contested. The other part is a measurement and processing component, where the arrows are known with certainty because people wrote the formulas. Existing causal-fairness methods treat both parts alike, as edges to be learned or deleted. Separating them allows three things. First, measurement-induced paths can be declared inadmissible, in the path-specific sense of The Fairness Hierarchy, which formalizes fairness as blocking chosen causal paths while keeping others. Second, counterfactuals along those paths can be computed without the invertibility assumption that Counterfactual Fairness by Combining Factual and Counterfactual Predictions needs for its plug-in averaging. A four-parameter logistic curve is invertible within the assay's dynamic range, and outside it we obtain intervals rather than point values. Third, most of the utility gap between an unconstrained model and strict descendant deletion can be recovered. The specific, testable prediction is this: on panels where demographic dependence enters substantially through processing, repaired-feature models will match unconstrained accuracy far more closely than deletion does, with near-zero counterfactual change along the blocked paths.

Relation to Prior Work

Several papers motivate the gap. Inflammation and Kidney Injury in Diabetic African American Men measured seven ELISA markers against creatinine-normalized albuminuria and estimated glomerular filtration rate, and states plainly that it cannot tell whether TNF receptors are causes or downstream consequences of renal damage. MIMIC-IF audited ICU mortality models, found that feature importance differs across ethnic groups, and named causal disentanglement of medical signal from systemic bias as future work.

Four methods attack the problem with learned or assumed graphs. FairOpt-PFN amortizes fair inference over synthetic causal models. A Local Method for Satisfying Interventional Fairness needs only the local parents of the sensitive attribute and runs a min-max search over graphs consistent with the data. Mitigating Health Disparity via Deconfounder learns latent confounders from longitudinal records with a variational autoencoder. Zhou et al. average factual and counterfactual predictions. None of these four represents the assay itself, so none can use the fact that some edges are known exactly. We reuse their machinery for the biological part of the graph and add the known measurement layer underneath.

Two papers constrain the design. Fairness-Accuracy Trade-Offs: A Causal Perspective shows that blocking indirect paths through mediators is the costly part of fairness. This is why we target only the measurement sub-paths rather than all indirect paths. From Black-box to Causal-box proves that counterfactual queries are answered consistently only by models whose features are non-descendants of the queried concept. A repaired feature satisfies that criterion along the blocked paths, and a raw feature does not.

Research Program

We first build a measurement-layer graph for immunoassay features. Its nodes are the true analyte concentration, matrix interference (which may differ by group, for example through sample type or collection site), plate and batch, optical density, the four-parameter calibration, detection-limit censoring, dilution, and downstream transforms. The transforms include creatinine normalization, equations that take age or sex as inputs (such as glomerular filtration rate estimates), and demographic-specific reference flags.

The repair operator then works in three cases. When a transform takes the sensitive attribute as an explicit input, we recompute the feature under the counterfactual attribute value. When a feature is censored by the assay's range, we carry an interval and fit predictors that are robust over that interval. This is a partial-identification analogue of the min-max idea in Li et al., applied to measurement uncertainty rather than graph uncertainty. When a technical node such as matrix interference correlates with group, we estimate it from control and spike-recovery information where available and condition on it.

Finally, the biological graph above the true concentrations is handled by existing methods: the local parent-set method, or FairOpt-PFN run on the repaired features. Whether biological paths are admissible is reported as an explicit, separate choice, not hidden inside the method.

Baselines

The naive reference is an unconstrained gradient-boosted model, plus an "unaware" variant with demographics withheld, both trained on raw reported features. These set the accuracy ceiling and show how much demographic proxy use persists without causal treatment.

The second baseline is strict non-descendant deletion, the "Fair" baseline of Li et al. It drops every feature that may be a descendant of the sensitive attribute. On Adult it reached RMSE 0.611 against 0.375 for their local method (A Local Method for Satisfying Interventional Fairness). That gap is the utility loss we aim to close.

The strongest existing competitors are the local min-max method and FairOpt-PFN, each run on raw features with the same background knowledge (demographics as roots) and the same hyperparameter budget. FairOpt-PFN is used zero-shot, as designed. For it, the file reports only qualitative results (near-zero discrimination as the treatment effect rises to 0.99), so we will treat its numbers on our tasks as newly measured. For MIMIC-IV mortality, the reference accuracy is IMV-LSTM at AUROC 0.955 and AUPRC 0.769 (MIMIC-IF). We will reuse that cohort definition so that our unconstrained models can be checked against it. We found no reported result on Lacuna for any fairness method on ELISA-derived panels.

The key ablation runs the same downstream methods on repaired features versus raw features. Beating the competitors means the following: equal or lower counterfactual prediction change along measurement paths, together with closing at least half of the utility gap between deletion and the unconstrained model, at matched compute.

Why not just…?

Why not just regress each biomarker on demographics and use the residuals? This is the most serious threat, because it is simple and often works. Residualization removes all demographic-associated variation, including biological variation that a clinician may consider admissible. It is also typically linear, so it misses dependence that enters through saturation and censoring. In the semi-synthetic benchmark, where admissible biological effects are planted, residualization should lose utility relative to repair. If it does not, that is a genuine negative result and we will report it.

Why not just drop demographics from the inputs? Proxy reconstruction defeats this approach. MIMIC-IF found demographic-dependent importance patterns even in multi-variable clinical models. FairOpt-PFN reports that unconstrained models' discrimination rates approach 1.0 as bias grows. Our unaware baseline measures this directly on assay features.

Why not just explain a black-box model with SHAP and check it? Hwang et al. prove that observationally identical models can give opposite counterfactual answers when they use descendants. Attributions therefore cannot certify the property we care about. We report attributions only as a diagnostic.

Why not just run FairOpt-PFN or Li et al. directly? These methods may already capture much of the gain, because a flexible learner can partly absorb a known transform. The ablation settles this. If repair adds nothing on top of them, the measurement layer is redundant, and the contribution shrinks to an audit tool.

Proposed Experiments

The primary testbed is a semi-synthetic immunoassay simulator. It has demographic roots, true concentrations carrying planted admissible and inadmissible biological effects, group-dependent matrix interference, plate batches, four-parameter calibration with detection limits and dilution, and creatinine normalization. Because every counterfactual is known, we can measure counterfactual prediction change per path, the prediction gap between groups, and AUROC as we vary the share of demographic dependence that enters through measurement. The decisive check is a crossover. Repair should dominate deletion when that share is high and converge to it when the share is zero, and residualization should fall behind only when admissible biological effects are present.

The second testbed is MIMIC-IV mortality, using immunoassay-derived and formula-derived laboratory features. Sex and recorded race are the sensitive attributes. Counterfactual change along formula paths is exactly computable there. The metrics are AUROC and AUPRC against the MIMIC-IF reference, plus the AUROC gap between groups.

The third testbed is a small audit of the Cao et al. kidney cohort. Its data access is uncertain, and its participants are all African American men, so only age varies as a sensitive attribute. With n = 188 it cannot support strong claims, but it can show concretely how much of the age dependence in the filtration estimate and albumin ratio enters by formula rather than biology.