Representation Alignment for Mitigating Selection Bias

You are reading version 1 of this direction, frozen 2026-10-04. The latest version is version 2.

Version 1 of 2168 papers231 conceptsfrozen 2026-10-04

In a randomized controlled trial, the "gold standard" for science, we assign treatments by the flip of a coin. This ensures that the group receiving a drug and the group receiving a placebo are, on average, identical. Any difference in their outcomes can be confidently attributed to the drug itself.

In the real world, however, we usually have to rely on observational data. Doctors give treatments to patients they believe will benefit; marketers send coupons to customers most likely to churn. This creates selection bias: the treated and control groups are fundamentally different before the treatment even begins. If we simply train a model to predict outcomes from this data, the model will conflate the effect of the treatment with the pre-existing differences between the groups.

Causal Inference as Domain Adaptation

To solve this, researchers like Fredrik Johansson, Uri Shalit, and David Sontag reframed causal inference as a domain adaptation problem. In Learning Representations for Counterfactual Inference, they argue that the "treated" and "control" groups can be viewed as two different distributions (or domains).

The goal is to learn a latent representation—a transformation of the input features—where these two distributions become indistinguishable. If a neural network can no longer tell whether a data point came from the treated or control group based on its representation, then the selection bias has been "washed away." In this balanced latent space, the model can finally learn the true causal effect.

The Balancing Act: Integral Probability Metrics

The core mechanism for achieving this balance is a regularization term added to the model's loss function. This term penalizes the "distance" between the distributions of the treated and control groups in the learned representation space.

Commonly, researchers use Integral Probability Metrics (IPMs) to quantify this distance:

The intuition is a trade-off: the model wants to minimize prediction error (to be accurate) while also minimizing the IPM (to be unbiased). If the model only cares about accuracy, it will exploit the selection bias. If it only cares about balancing, it might throw away useful information. The "sweet spot" is a representation that retains enough information to predict the outcome but discards the information that identifies which group a person belongs to.

Expanding the Scope

While early work focused on binary treatments (Yes/No), the field has rapidly expanded to more complex scenarios:

Why It Works

Representation balancing works because it forces the neural network to find invariant features. In a biased dataset, some features are "spurious"—they correlate with the outcome only because they correlate with who gets the treatment. By penalizing the model for being able to distinguish between treatment groups, we effectively tell the model: "If you use a feature to predict the outcome, that feature must look the same for both the treated and the control."

This forces the model to ignore the quirks of the historical assignment policy and focus on the underlying causal mechanisms that are consistent across the entire population. As Serge Assaad and Fan Li demonstrate in Counterfactual Representation Learning with Balancing Weights, combining these learned representations with traditional statistical weights can lead to even more robust and doubly-protected causal estimates.

Papers in this version

Showing 60 of 168 papers.

History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 96 papers
  2. Version 1 · 2026-10-04 · 168 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_balanced_representation_learning_ebbeb944,
  title = {balanced representation learning},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/balanced-representation-learning/rdr_ebbeb944237d4ce0a29bc4425dc75c1e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 1, frozen text):

@misc{lacuna_representation_alignment_for_mitigating__ebbeb944_v1,
  title = {Representation Alignment for Mitigating Selection Bias},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/representation-alignment-for-mitigating-selection-bias/rdr_ebbeb944237d4ce0a29bc4425dc75c1e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-27},
}