Act, Validate, Adapt: Closing the Causal Discovery-Control Loop

Taqiya Ehsan, Shuren Xia, Jorge OrtizNeurIPS 2026

TL;DR

Whenever a physical controller flips a switch or turns up a heater, it isn’t just controlling a system—it’s running a real-world scientific experiment. PolicyGRID turns controllers into active scientists that use their own hardware actuators to test and prune causal hypotheses, cutting closed-loop energy waste by 21% when invisible operating conditions shift.

What Problem Does This Paper Address?

In machine learning and engineering, figuring out how a system works (causal discovery) and deciding what to do about it (control) are usually treated like divorced parents: they don't talk. Typically, you feed passive, historical logs into a discovery algorithm to sketch a causal graph, freeze it, and hand it over to a controller.

In the real world, this breaks down fast. Passive data is full of spurious correlations. Imagine an office HVAC system noticing that heating power and human occupancy rise together at 9 AM. A passive learner might infer a false causal link between the two. Later, when invisible "latent regimes" shift—say, someone cracks open a window on a Saturday, or occupancy patterns change—a controller acting on that unverified link will actively fight ghosts and waste energy. Yet, every time a controller writes a command to an actuator, it is performing what Judea Pearl calls a do-operator intervention—forcibly setting a variable to see what happens. Why not use those everyday actions to test if the causal map is actually true?

Methods

PolicyGRID closes the loop between discovery, validation, monitoring, and control in four phases:

Figure 1: The PolicyGRID closed loop (system details in Section 4). Four hypothesis generators (PC, SAM, VARLiNGAM, LLM) propose candidate edges from observational data and context; candidates with actuator sources are tested by targeted do-operator interventions and the rest by an observational rescue test; the validated graph is fitted as a Ridge SCM that drives both policy optimization and regime monitoring.
  1. Hypothesis Generation: Rather than trusting one algorithm, an ensemble of four standard methods—PC, SAM, VARLiNGAM, and an LLM (GPT-3.5-turbo prompted only with variable names and physics context)—proposes a union of candidate causal edges.
  2. Interventional Validation (The Novel Core): Edges starting from controllable actuators are tested directly on the hardware, prioritizing edges where the four generators disagree most. The system runs targeted trials ($do(\text{action})$) and checks whether the target sensor responds consistently above the noise floor. Uncontrollable exogenous edges (like outdoor weather) can't be toggled, so they undergo a strict observational "rescue test" using back-door statistical adjustments, while indirect pathways are pruned via Fisher $z$-tests.
  3. SCM Fitting & Control: Surviving edges form a quadratic Structural Causal Model (SCM) fitted via Ridge regression. A gradient-based optimizer uses this SCM online to balance human comfort against energy consumption.
  4. Regime Monitoring: Using the exact same validated graph, a Bayesian monitor tracks prediction errors across sensors to infer unobserved states (e.g., is a window open? or is the room occupied?) without having sensors for them.

Datasets

The authors evaluate PolicyGRID across simulation, historical logs, and live hardware:

  • Simulators: Five JavaScript building simulators calibrated to EnergyPlus physics (5–15 variables, 0–2 latent regimes), plus two additional single-zone simulators for control replication. Closed-loop control focuses on smart_building_rich (15 variables, HVAC and lighting actuators, and unobserved occupancy and window states).
  • Real-World Benchmark: The public ASHRAE Great Energy Predictor III dataset.
  • Live Physical Testbed: A newly instrumented real office space where the identical codebase ran for ~15.5 hours of discovery and a 9-hour deployment episode with induced window and occupancy transitions.

Key Insights and Ideas

  • Pruning beats parameter tuning: Classical causal theory says interventions help because they decorrelate actions from hidden confounders, giving you cleaner regression weights. Surprisingly, when the authors refit their Ridge SCM using interventional data on a fixed graph, control actually got slightly worse (+1.63 kWh)—regularization was already absorbing the parameter bias! The entire 21% energy savings came from graph pruning: deleting 16 false-positive edges so the optimizer couldn't exploit phantom pathways.
Table 1: Graph topology vs. coefficient values (smart_building_rich, closed-loop @ ε=1.0, 15 paired conditions, mean ± std). Same optimizer/monitor/regime-switching across rows; rows differ only in (graph, training data). A vs. B isolates the coefficient effect (same graph, augmented training data); C vs. B isolates the graph effect (different graph, same training data). Lower kWh is better; Sat is 1.4 points lower for B than for C. All 15 conditions share one graph per row and the seeds vary only simulator noise, so the 15/15 counts show consistency across weather days and seeds, not independent replication. 0/15 paired conditions favor intervention-augmented coefficient training, while 15/15 favor PolicyGRID. Candidate-set selection accounts for the closed-loop performance difference.
  • Standard F1 scores lie about control quality: Standard structural metrics (like F1) penalize missing a real edge and hallucinating a fake edge equally. Downstream, however, a missed edge is merely a missed opportunity, whereas a hallucinated edge is a lever the optimizer actively pulls in the wrong direction.
  • Stationary tests hide fatal flaws: Under calm, open-loop conditions, the validated graph and unvalidated baseline looked nearly identical. The 21% energy penalty of unvalidated edges only surfaced in closed-loop deployment when latent regimes shifted.
  • Monitoring is for attribution, not switching: Switching control parameters based on the detected regime yielded zero measurable control gain—the pruned static graph was already robust enough. Instead, the monitor’s real value is diagnostic attribution, telling operators which physical mechanism shifted.

Key Results

  • Causal Discovery & Monitoring: Across all 6 environments, PolicyGRID achieved the highest mean directed-edge F1 (0.707). On smart_building_rich, it boosted 4-way latent regime detection (occupancy $\times$ window) from 61.2% (observation-only union) to 80.8% under frozen-graph tests (and 84.0% per-discovery-seed).
Figure 2: Discovery and regime detection summary (PolicyGRID, PolicyGRID-O, and the 11 baseline methods). (a) Directed-edge F1 averaged across all 6 environments (5 seeds): PolicyGRID leads at 0.707. (b) 4-way joint regime classification accuracy on smart_building_rich (per- discovery-seed, 5 graphs/method): PolicyGRID 84.0% vs. PolicyGRID-O 74.3% vs. IID 74.7%; most baselines stuck near the 50–52% chance floor. Validation gives up a small per-environment F1 to win decisively on the downstream task that matters, with a 9.7 pp lead over the same pipeline running on the PolicyGRID-O candidate set.
  • Closed-Loop Energy Savings: Under shifting regimes (smart_building_rich at comfort target $\varepsilon=1.0$), PolicyGRID used 24.56 kWh vs. 31.07 kWh for the unvalidated baseline—a 21% reduction across all 15 weather/seed conditions, with comfort satisfaction just 1.4 points lower (81.9 vs. 83.3). Non-causal RL/control baselines burned 60–66 kWh.
  • Zero-Shot Sim-to-Real Transfer: On the live office testbed, PolicyGRID executed 21 physical interventions, discovered 16 edges (F1 = 0.400), led in-distribution monitoring (82% occupancy, 91% window accuracy), and produced a target-responsive policy where the observation-only baseline’s gradients went completely flat.

Limitations and Future Work

  • Scalability: Testing edges scales as $O(|\mathbf{A}| \cdot |\mathbf{V}|)$—requiring up to 1,576 interventions in rich simulations—which caps current practicality at roughly ~50 observable variables without modular or hierarchical discovery.
  • Safety & Cost Blindness: Validation trials push actuators to maximum rated settings to get clear signal-to-noise ratios. There is no safety or cost filter yet, ruling out safety-critical robotics or delicate industrial chemical processes.
  • Known Regimes & Fixed Topology: The Bayesian monitor chooses among known regimes trained at commissioning; it lacks a "none-of-the-above" detector for brand-new physical anomalies and can struggle when training data is heavily imbalanced. Furthermore, it assumes named, semantic sensors rather than raw pixels.

Summary updated

Abstract

Every control action on a physical system is already a do-operator intervention, yet causal discovery and control are typically treated as separate stages. This separation leaves deployed controllers unable to test whether the causal graph they rely on remains valid under changing operating conditions. We present PolicyGRID, a closed-loop framework that uses actuator interventions to validate candidate causal edges, fits a structural causal model over the validated graph, and reuses that graph for both policy optimization and latent-regime monitoring. In a multi-actuator physical simulation with latent operating regimes (building energy management), interventional graph validation reduces closed-loop energy use by 21\% at the same comfort target, with satisfaction 1.4 points lower, relative to an otherwise identical observation-only graph, while improving four-way latent-context identification from 61.2\% to 80.8\%. A targeted ablation shows that the gains originate in graph pruning. Validation removes 16 of 47 candidate edges; with coefficient training held fixed, the validated graph reduces closed-loop energy relative to the unvalidated candidate set, while refitting coefficients on the same graph does not. On a live physical testbed, the same pipeline runs without code changes, performs 21 physical interventions, discovers 16 edges, and produces a target-responsive control policy where the observation-only baseline is insensitive to the comfort-energy target. These results show that physical controllers can use their own actions to validate causal structure and improve downstream control under latent regime shifts.
BibTeX
@inproceedings{ehsan2026act,
  author = {Taqiya Ehsan and Shuren Xia and Jorge Ortiz},
  title = {{Act, Validate, Adapt: Closing the Causal Discovery-Control Loop}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=OdP0tR9M9Z},
}
Figure