ICRL-SM

Implicit causal representation learning via switchable mechanisms: learning causal representations from real-world, soft interventions, with a causal mechanism switch variable that separates the change that matters from the noise that comes with it.

Machine Learning · SpringerImplicit causal modelsSoft interventionsIdentifiability
0.86action accuracy on ProcTHOR
+0.19over the best baseline
6explicit and implicit baselines
70independent experiments
01 · Problem

Real interventions are soft

The question

Real-world interventions rarely change just one thing: they change what we want, and bring side effects we do not. Can a model still learn the true causes behind what it sees?

Observe

Heart rate rises with exercise.

Hard intervention

A beta-blocker under controlled conditions breaks the effect: exercise no longer raises heart rate.

Soft intervention

With caffeine or other stimulants around, the effect is reduced but not removed.

Background

Recovering the true causal variables behind images, video or sensor data requires interventions. Most implicit methods assume hard interventions, which fully cut a variable off from its causes. In practice, interventions are usually soft: they change how a mechanism works without severing its dependencies, and bring subtle, ambiguous side effects.

A structural causal model links causal variables through mechanisms arranged in a directed acyclic graph. Interventions, deliberate changes to a variable, reveal which way cause and effect run.

Implicit models, which learn causal dependencies without estimating a causal graph, avoid the optimization traps of explicit methods. The open question was how to make them work when interventions are soft.

Hard, soft, explicit, implicit

Hard intervention

Sets a variable to a fixed value and cuts it off from its causes, as in a randomized trial.

do(Z = z)
Soft intervention

Changes a mechanism but keeps the variable's dependence on its causes. Closer to real life, harder to learn from.

mechanism shift
Explicit models

Learn the causal graph and the representations together, which can make training unstable.

graph + latents
Implicit models

Write each causal variable as a function of exogenous noise and never estimate the graph.

solution functions
02 · Proposed solution · Method

A switch for unwanted change

ICRL-SM introduces a causal mechanism switch variable, V, that captures the unwanted shifts a soft intervention causes, such as a change in camera angle while someone opens a cabinet. Isolating these lets the model focus on the variation that reflects the underlying causal structure.

BeforeThe scene before the action, x.
AfterThe scene after the action, x̃.
DifferenceWhat changed between them, x̃ − x.
Causal variablesThe change that matters, such as the bread now in the toaster.
Switch VThe side changes to set aside, such as the camera moving.

How it works

  1. 1Encode the pairA variational autoencoder reads the before and after images.
  2. 2Find the switchThe difference between them is encoded into the switch V.
  3. 3SolveSolution functions map noise and V to the causal variables, with no graph to learn.
  4. 4PredictThe action and the object are predicted from the changed causal variable.

Under stated assumptions, the causal variables are identified up to reparameterization.

03 · Findings

Robust beyond the theory

Tested on Causal-Triplet, real image pairs taken before and after an action on an object, in real kitchens (Epic-Kitchens) and simulated homes (ProcTHOR). ICRL-SM predicts the action best, even though real data breaks some of its assumptions.

Epic-Kitchens · real kitchens

Epic-Kitchens · real kitchens beforeBeforeEpic-Kitchens · real kitchens after: Bread insertedAfter
Action: Bread inserted

ProcTHOR · simulated homes

ProcTHOR · simulated homes beforeBeforeProcTHOR · simulated homes after: TV onAfter
Action: TV on
01 · ProcTHOR actions
ICRL-SM
0.86
ENCO
0.67
0.86

action accuracy, against 0.67 for the best other method

+0.19over ENCO

The best of the six other methods on this test

02 · Epic-Kitchens actions
ICRL-SM
0.69
ENCO
0.62
0.69

action accuracy, against 0.62 for the best other method

+0.07over ENCO

Real kitchen videos, with a moving camera

03 · Beats 6 methods
6 other methodsICRL-SM
3 of 4

tests won, and tied on the fourth (Epic-Kitchens objects)

6other methods

3 explicit and 3 implicit, five seeds each

Accuracy of predicting the action or object from the changed causal variable, averaged over five seeds; higher is better.

Experiments on synthetic graphs also show where the approach reaches its limits: when soft interventions change mechanisms very strongly, the switch variable needs more supervision to capture them.

04 · My role

What I contributed

  1. Mentored a PhD student on experimental design, data preprocessing, implementation and evaluation.
  2. Guided methodology, including statistical modeling, causal inference and representation learning architectures.
  3. Collaborated with partners to define objectives and integrate feedback into model development.
  4. Supported drafting, revision and submission of the journal publication, ensuring rigor and reproducibility.
  5. Co-authored the work and presented it to technical and applied audiences.
05 · Tools

Built with

PythonPyTorchVariational autoencodersResNet-50Structural causal modelsCausal-TripletEpic-KitchensProcTHOR
06 · Resources

Code and papers

Contact

Let's Connect.

For professional opportunities, collaborations, research, consulting, or general inquiries, feel free to get in touch.

zahra.gharaee@gmail.com