Introduction
A fundamental critique of modern machine learning, particularly regarding Large Language Models (LLMs), is that "correlation does not imply causation." Because these models are primarily trained on passive, observational data—such as the vast corpus of text on the internet—many researchers argue they are fundamentally limited. The prevailing view is that to truly understand causality, an agent must be able to intervene: it must "poke" the world and observe the reactions. This paper challenges that assumption by asking whether an agent can learn a generalizable strategy for active experimentation purely from passive observations of expert behavior.
The Problem: Passive Data vs. Active Discovery
In traditional causal discovery, agents learn by interacting with an environment. However, humans often learn how to solve problems by reading descriptions of experiments or watching others work. The authors investigate if agents can learn the algorithm of experimentation—the logic of how to intervene to uncover causal structures—by imitating expert demonstrations. If successful, such an agent could be placed in a novel environment and perform its own experiments to solve problems it has never encountered before.
Methodology
The researchers employed a two-stage experimental framework to test this hypothesis:
- Passive Training (Imitation Learning): Agents were trained via behavioral cloning on "expert" trajectories. These trajectories consisted of two phases: an experimentation phase, where the expert performed interventions to discover the underlying causal structure, and an exploitation phase, where the expert used that knowledge to achieve a goal.
- Active Testing: At test time, agents were placed in novel environments with causal structures excluded from the training set. While their training was passive, their evaluation was active; they were required to take actions and observe results to succeed.
Architectures and Environments
The study utilized three distinct setups to evaluate different aspects of causal reasoning:
- Causal DAGs: Synthetic environments with 5-10 variables connected in Directed Acyclic Graphs. Agents used a TransformerXL memory to track observations and a linear policy layer.
- Odd-One-Out (Visual): A pixel-based environment where an agent must identify a unique object based on latent dimensions (color, shape, or texture) using a "magic wand" to test hypotheses. This used a CNN for visual processing and an LSTM for language-based explanations.
- Language-Based Odd-One-Out: A text-based adaptation designed to test the 70-billion parameter Chinchilla LLM using few-shot prompting.
Key Insights: Strategies and Explanations
Learning Algorithms, Not Just Structures
The core finding is that agents do not merely memorize specific causal graphs; they learn the underlying strategy of experimentation. They internalize the logic that "if changing X results in a change in Y, then X causes Y." This allows them to generalize to out-of-distribution (OOD) scenarios where the specific causal links are entirely new.
The Power of Explanations
Natural language explanations (e.g., "The rewarding dimension must not be color") proved to be a powerful "causal anchor." When these explanations were included as an auxiliary loss during training, agents showed significantly improved generalization. In deconfounding experiments—where multiple features were perfectly correlated in the training data—agents provided with explanations could "un-mix" these features and generalize correctly to a deconfounded test set, whereas agents without explanations failed.
LLMs as Causal Reasoners
LLMs demonstrated an ability to generalize causal strategies from just a few examples in a prompt. However, this ability was highly dependent on Chain-of-Thought (CoT) reasoning. Without explicit reasoning steps and explanations, models struggled to apply experimental logic to new dimensions. With them, performance on held-out dimensions for the Chinchilla (70B) model rose from near-chance (30%) to nearly 100%.
Results
- Zero-Shot Generalization: In DAG environments, agents achieved near-optimal rewards on test structures containing causal links that were never present during training.
- Adaptive Experimentation: Agents learned to ignore distractor variables and focus interventions only on relevant nodes, even as the set of relevant variables shifted.
- Scaling with Reasoning: The inclusion of explanations in LLM prompts facilitated a massive performance jump, enabling the models to solve complex causal puzzles in a few-shot manner.
Limitations and Future Work
While the results are promising, the study notes several limitations:
- Environment Complexity: The causal structures (5-10 variables) are simpler than real-world systems. Future research must address whether these strategies scale to complex, cyclic, or non-linear environments.
- Expert Dependency: The method relies on high-quality expert demonstrations, which may not be available in all domains.
- Action Space Constraints: The agents operated within fixed action spaces. A more advanced challenge would involve agents discovering which actions constitute valid interventions in the first place.
Conclusion
The authors conclude that while passive learning has inherent limits, the "textbook" of human knowledge—which includes detailed accounts of experiments and their outcomes—may be sufficient to bootstrap sophisticated, active causal reasoning in artificial agents. By learning the strategy of science from passive data, agents can prepare themselves for active discovery in the real world.
Summary updated