Towards IID representation learning and its application on biomedical data

Jiqing Wu, Inti Zlobec, Maxime Lafarge, Yukun He, Viktor H. Koelzer · MIDL (PMLR 172) · 2022

In one paragraph

The usual IID assumption says every data point comes from the same distribution. Real hospital data breaks it (different scanners, staining, sampling sites). The paper’s slogan is that IID should not be an assumption but a property you learn: find a function \phi so that the transformed data Z_i=\phi(X_i) do have the same distribution. It argues that several causal-inference problems are instances of this, and then tests one cheap version, an autoencoder with instance normalisation, on two pathology datasets with built-in distribution shift.

The definition, in plain terms

Take several independent random vectors X_1,\dots,X_k (think: data from k hospitals, each its own random draw). Pick a function \phi and a “question distribution” Q_{X_i} for each X_i, meaning whatever distribution you care about, such as the conditional distribution of the outcome given treatment. Pushing Q_{X_i} through \phi gives a distribution Q_{Z_i} for each hospital.

Three causal problems recast as “find \phi”

Section Causal question The \phi that induces IID
3.1 Which variables are plausible causes of the outcome x_0, given several randomised trials? projection \phi(x_0,\ldots,x_l)=(x_0, X_{PA(0)}) onto the outcome and its parents, since the outcome’s mechanism f_0 is unchanged by interventions on other variables
3.2 Can a causal effect measured in trials be transported to a new observational cohort? a \phi that keeps the treatment (and any variables, such as age, that must be held fixed) so the conditional outcome distribution matches across cohorts
3.3 Can we learn a reusable feature representation of pixels? an encoder \phi with a decoder \phi', \phi'\circ\phi=\mathrm{id}, such that training, validation and test images have the same latent distribution

Intuition for the first row: in a structural causal model each variable is computed from its parents plus noise, x_j=f_j(X_{PA_j},\delta_j). An intervention on one variable replaces its equation with a constant and leaves the others alone, so the outcome’s equation given its parents is the same in every trial. Throwing away everything except the parents therefore makes the trials look identical. This is the invariant causal prediction idea restated, not new theory.

The experiment (Section 4)

Questions and doubts

Takeaways