Abstract
We propose a framework for building graphical causal models based on the concept of causal mechanisms. Causal models are intuitive for human users and, more importantly, support the prediction of the effect of manipulation. We describe an implementation of the proposed framework as an interactive model construction module, ImaGeNIe, in SMILE (Structural Modeling, Inference, and Learning Engine) and in GeNIe (SMILE's Windows user interface).
Introduction
Building complex Bayesian networks often encounters a significant "knowledge engineering bottleneck." While modern machine learning excels at learning parameters from data, determining the underlying causal structure—the web of cause-and-effect—typically requires intense manual effort from domain experts.
Traditional modeling tools often require a system to be "complete" or "self-contained" before they can visualize a causal graph. However, during the creative process, models are frequently under-constrained, containing more variables than defined functional relationships. This paper introduces a framework that allows users to build models by assembling modular "causal mechanisms"—local functional relationships—and uses an extended version of Simon’s causal ordering algorithm to visualize the resulting structure even while the model is still in progress.
The Causal Mechanism Framework
The core of our approach is the shift from drawing individual arrows to defining modular, reusable mechanisms. A mechanism represents a local functional relationship, such as an equation relating faculty salary to tuition and overhead. By treating these as building blocks, knowledge engineers and domain experts can collaborate more effectively.
As shown in the architecture above, the system facilitates the navigation of hierarchies, equation authoring, and mechanism selection. These components feed into a central "Model Construction Working Space," where the causal structure is dynamically derived and updated.
Technical Contribution: Extended Causal Ordering
The primary technical innovation is the extension of Herbert Simon’s Causal Ordering Algorithm (1953). Standard causal ordering requires a self-contained system of $n$ equations for $n$ variables to produce a Directed Acyclic Graph (DAG). Our extension handles under-constrained systems by:
- Identifying Minimal Self-contained Subsets: Isolating parts of the model that are already fully defined.
- Specialized Notation: Using bi-directed arcs for feedback loops and undirected arcs for relationships where the existence of a link is known but the causal direction is not yet determined by the current set of equations.
This allows the modeler to see a meaningful visualization of their work-in-progress, identifying exactly where more detail or additional mechanisms are needed to resolve causal ambiguity.
Interactive Implementation: ImaGeNie
We implemented this framework in ImaGeNie, a tool that provides a "blackboard" workspace. Users can drag-and-drop mechanisms from a knowledge base and observe the causal graph update in real-time. This was demonstrated using a simplified version of the University Performance Budget Planning Model (UPBPM), a real-world model used at Carnegie Mellon University involving 88 variables.
In the ImaGeNie interface, users can see how adding a mechanism like "Student-Faculty Ratio" (SFR) automatically re-orients causal arrows based on which variables are designated as exogenous. This highlights a key insight: real-world mechanisms are often reversible. An engine usually turns wheels, but wheels can turn an engine during downhill braking. By modeling the mechanism rather than a fixed arrow, the tool can flip causality based on user-defined constraints.
Discussion and Future Work
Our framework emphasizes that the quality of a model's advice is often more sensitive to its causal structure than to the precision of its numerical probabilities. By treating modeling as a process of problem recognition rather than just data fitting, ImaGeNie helps users navigate logical contradictions and over-constrained states.
Future work will focus on better integrating submodel grouping with formal Object-Oriented Bayesian Network (OOBN) constraints and automating the derivation of numerical parameters (Conditional Probability Tables) when causal directions are reversed. We also aim to explore more robust symbolic solvers to derive parameters from "mixture models" following structural interventions.
Summary updated