On Discovery of Local Independence over Continuous Variables via Neural Contextual Decomposition

Inwoo Hwang, Yunhyeok Kwak, Yeon-Ji Song, Byoung-Tak Zhang, Sanghack Lee

Abstract

Conditional independence provides a way to understand causal relationships among the variables of interest. An underlying system may exhibit more fine-grained causal relationships especially between a variable and its parents, which will be called the local independence relationships. One of the most widely studied local relationships is Context-Specific Independence (CSI), which holds in a specific assignment of conditioned variables. However, its applicability is often limited since it does not allow continuous variables: data conditioned to the specific value of a continuous variable contains few instances, if not none, making it infeasible to test independence. In this work, we define and characterize the local independence relationship that holds in a specific set of joint assignments of parental variables, which we call context-set specific independence (CSSI). We then provide a canonical representation of CSSI and prove its fundamental properties. Based on our theoretical findings, we cast the problem of discovering multiple CSSI relationships in a system as finding a partition of the joint outcome space. Finally, we propose a novel method, coined neural contextual decomposition (NCD), which learns such partition by imposing each set to induce CSSI via modeling a conditional distribution. We empirically demonstrate that the proposed method successfully discovers the ground truth local independence relationships in both synthetic dataset and complex system reflecting the real-world physical dynamics.

Introduction

In causal discovery, researchers typically seek global relationships, such as whether variable $X$ causes $Y$. However, real-world systems often exhibit more nuanced, "local" causal relationships where a variable might only depend on a subset of its parents in specific contexts. For example, a box moves only if the applied force exceeds friction; in low-force contexts, the box's position is independent of the push. This phenomenon is known as Context-Specific Independence (CSI).

While CSI is well-defined for discrete variables, it is difficult to apply to continuous variables because conditioning on a specific value (e.g., $X = 0.5$) is infeasible due to data sparsity. This paper introduces Context-Set Specific Independence (CSSI), a framework for discovering local causal relationships in continuous data by partitioning the input space into regions where specific causal influences are active.

Methods: Neural Contextual Decomposition

The authors propose Neural Contextual Decomposition (NCD) to automatically discover CSSI relationships. The method relies on two core components:

  1. CSSI Definition: Instead of point-based independence, CSSI is defined over a context set (a region of the input space). The authors prove that for convex regions, a unique "local parent set" exists for each region.
  2. The NCD Algorithm: NCD uses a neural network architecture featuring a Partition Indicator Variable (PIV), denoted as $Z$.
Illustration of local independence relationships (a-c) and the introduction of the partition indicator variable Z (d-f) to model context-set specific independence.

The network consists of a partitioning component ($g_\phi$) that assigns data points to contexts using a differentiable Gumbel-Softmax, and a modeling component ($f_\theta$) that predicts the outcome $Y$ using only the parents relevant to that specific context. By maximizing likelihood while forcing the model to choose a partition $Z$ that simplifies the $X \to Y$ relationship, NCD naturally identifies the underlying local independence structure.

Experimental Evaluation

The researchers evaluated NCD on synthetic datasets and a physical simulation:

  • Synthetic Datasets: Systems with 9 parent variables and various ground-truth partitions (linear, circular, etc.) were tested. NCD achieved significantly higher ROC-AUC scores (often 0.98+) compared to attention-based baselines (0.5–0.7), which were too "blunt" to capture sharp local boundaries.
  • Spriteworld: In this simulated physics environment, colored shapes move and collide. NCD successfully recovered the local causal structure, correctly identifying that an object's velocity is independent of others except during collisions.

Discussion and Conclusion

The shift from point-based CSI to region-based CSSI makes local independence mathematically tractable for continuous variables. By treating the partition variable $Z$ as a learned mask, NCD transforms a logic problem into a representation learning task. This is particularly relevant for physical systems where laws are often local (e.g., thresholds and phase transitions).

Future work includes integrating NCD into full causal discovery pipelines where the global graph is unknown and improving scalability regarding the number of possible contexts.

Summary updated

Abstract

Conditional independence provides a way to understand causal relationships among the variables of interest. An underlying system may exhibit more fine-grained causal relationships especially between a variable and its parents, which will be called the local independence relationships. One of the most widely studied local relationships is Context-Specific Independence (CSI), which holds in a specific assignment of conditioned variables. However, its applicability is often limited since it does not allow continuous variables: data conditioned to the specific value of a continuous variable contains few instances, if not none, making it infeasible to test independence. In this work, we define and characterize the local independence relationship that holds in a specific set of joint assignments of parental variables, which we call context-set specific independence (CSSI). We then provide a canonical representation of CSSI and prove its fundamental properties. Based on our theoretical findings, we cast the problem of discovering multiple CSSI relationships in a system as finding a partition of the joint outcome space. Finally, we propose a novel method, coined neural contextual decomposition (NCD), which learns such partition by imposing each set to induce CSSI via modeling a conditional distribution. We empirically demonstrate that the proposed method successfully discovers the ground truth local independence relationships in both synthetic dataset and complex system reflecting the real-world physical dynamics.
BibTeX
@inproceedings{hwang2023discovery,
  author = {Inwoo Hwang and Yunhyeok Kwak and Yeon-Ji Song and Byoung-Tak Zhang and Sanghack Lee},
  title = {{On Discovery of Local Independence over Continuous Variables via Neural Contextual Decomposition}},
  booktitle = {CLeaR},
  year = {2023},
  url = {https://openreview.net/forum?id=-aFd28Uy9td},
}
Figure