Language-Based Causal Representation Learning

Blai Bonet, Hector GeffnerarXiv 2022 · DOI

Abstract

A central challenge in artificial intelligence is the discovery of causal structures from unstructured data. While deep learning excels at pattern recognition, it often fails to generalize across varying environment scales. This paper proposes a framework for causal representation learning that utilizes domain-independent, first-order logic languages (e.g., STRIPS). By identifying the most compact logical representation that fits observed state-transition data, the system automatically uncovers latent objects and relations. This symbolic approach enables zero-shot generalization to environments of arbitrary size and complexity.

Introduction: The Generalization Gap

Current AI research faces a dichotomy between the flexibility of deep learning and the interpretability of classical symbolic AI. Deep learning models often struggle with "out-of-distribution" generalization; for example, a model trained on a $3\times3$ grid may fail in a $5\times5$ environment. The authors address this by framing representation learning as the discovery of the underlying variables and rules of a system—such as agent positions or object states—directly from unlabeled state-transition graphs.

Methodology: Representation Learning as an Inverse Problem

The proposed method treats the discovery of causal structure as a search for the simplest explanation of observed behavior.

  1. Input Data: The system begins with a "black-box" state graph where nodes represent anonymous states and edges represent labeled actions (e.g., "Move", "Pick").
  2. Formal Language: The authors utilize lifted STRIPS, a classical planning language. Unlike propositional logic, lifted STRIPS defines actions via schemas that apply to types of objects, allowing the model to describe "any package" rather than specific instances.
  3. Occam’s Razor: The learning process searches for the most compact STRIPS model that is isomorphic to the observed state graph. The hypothesis is that the simplest logical description is the most likely to capture the true causal structure.
  4. Optimization: This search is formulated as a combinatorial optimization problem, solved using SAT (Satisfiability) or ASP (Answer Set Programming) solvers.
Learning STRIPS schemas and predicates from a state-transition graph.

Experimental Evaluation

The framework was tested on several classic AI planning benchmarks, including:

  • Grid-World Package Delivery: Navigating a grid to relocate items.
  • Blocks World: Stacking blocks into target configurations.
  • Logistics: Managing item transport across cities via multiple modalities.
  • Sokoban: Solving complex spatial puzzles.

The results demonstrated that models learned from minimal instances (e.g., a $1\times3$ grid) were sufficient to recover domain models that generalize to any grid size or number of objects.

Key Insights

Compactness as an Inductive Bias

The "aha moment" of this research is that the most compact logical description of a system naturally converges on human-interpretable concepts. Concepts like "adjacency" or "holding" are discovered not because they are pre-programmed, but because they allow for the shortest possible action definitions in first-order logic.

Language as a Bottleneck

The authors argue that the primary bottleneck in representation learning is the choice of language. By enforcing a first-order logic bottleneck, the learner is forced to find invariants that hold true regardless of the number of objects in the environment.

Results and Generalization

  • Structure Recovery: The system successfully identified meaningful predicates (e.g., $p_2(x)$ as "agent is at cell $x$") from unlabeled graphs.
  • Zero-Shot Generalization: Action schemas learned on small-scale problems remained valid for instances of arbitrary scale.
  • Policy Learning: By leveraging description logic features, the authors derived general policies capable of solving any instance of a given problem domain.

Limitations and Future Directions

Despite its success in discrete domains, the approach currently assumes deterministic environments and requires access to a symbolic state graph. Future work must address:

  • Stochasticity: Adapting the logic to handle noise and probabilistic outcomes.
  • Perception: Bridging the gap between raw sensory data (e.g., pixels) and symbolic graphs.
  • Scalability: Improving the efficiency of SAT-based searches to handle more complex state spaces.

Conclusion

By revisiting classical AI languages, this work provides a path toward transparent and reusable causal models. The integration of symbolic compactness with data-driven discovery offers a robust alternative to purely neural approaches for generalizable representation learning.

Summary updated

BibTeX
@misc{bonet2022language,
  author = {Blai Bonet and Hector Geffner},
  title = {{Language-Based Causal Representation Learning}},
  year = {2022},
  eprint = {2207.05259},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2207.05259},
}
Figure