Optimal Causal Imputation for Control
Roy Dong, Eric Mazumdar, and S. Shankar Sastry

TL;DR
This paper introduces an optimal causal imputation framework that optimizes causal interventions within fixed structures to improve system behavior at minimal cost, bridging causal inference and control.
Contribution
It formulates the optimal causal imputation problem and analyzes it in special cases, connecting causal inference with control strategies.
Findings
Analyzed the problem for fixed-value imputations.
Studied linear dynamic causal structures with Gaussian noise.
Provided insights into causal interventions for system control.
Abstract
The widespread applicability of analytics in cyber-physical systems has motivated research into causal inference methods. Predictive estimators are not sufficient when analytics are used for decision making; rather, the flow of causal effects must be determined. Generally speaking, these methods focus on estimation of a causal structure from experimental data. In this paper, we consider the dual problem: we fix the causal structure and optimize over causal imputations to achieve desirable system behaviors for a minimal imputation cost. First, we present the optimal causal imputation problem, and then we analyze the problem in two special cases: 1) when the causal imputations can only impute to a fixed value, 2) when the causal structure has linear dynamics with additive Gaussian noise. This optimal causal imputation framework serves to bridge the gap between causal structures and…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsDistributed Sensor Networks and Detection Algorithms · Age of Information Optimization · Advanced Causal Inference Techniques
Optimal Causal Imputation for Control
Roy Dong, Eric Mazumdar, and S. Shankar Sastry R. Dong, E. Mazumdar, and S. S. Sastry are with the Department of Electrical Engineering and Computer Sciences, University of California, Berkeley, Berkeley, CA, 94707, USA roydong,emazumdar,sastry@eecs.berkeley.edu
Abstract
The widespread applicability of analytics in cyber-physical systems has motivated research into causal inference methods. Predictive estimators are not sufficient when analytics are used for decision making; rather, the flow of causal effects must be determined. Generally speaking, these methods focus on estimation of a causal structure from experimental data. In this paper, we consider the dual problem: we fix the causal structure and optimize over causal imputations to achieve desirable system behaviors for a minimal imputation cost. First, we present the optimal causal imputation problem, and then we analyze the problem in two special cases: 1) when the causal imputations can only impute to a fixed value, 2) when the causal structure has linear dynamics with additive Gaussian noise. This optimal causal imputation framework serves to bridge the gap between causal structures and control.
I Introduction
Recently, data analytics have achieved amazing levels of success. As analytics penetrate more and more industrial applications, they are increasingly used for decision-making and planning. In these applications, it is important to use estimators that are not only predictive, but estimate the causal structure of the underlying processes.
Correlation is not the same as causation. However, in practice, it is not always easy to apply this principle. In many real-life applications, machine learning is used to determine the relationship between two variables. This analysis is often used as the basis for determining which actions to take. However, an algorithm with low test error does not necessarily mean that the causal effect has been estimated.
For example, one may train a classifier to estimate the energy consumption of a household given the presence and absence of eco-friendly devices, and this may provide guidelines for which devices should be discounted through rebate programs. Unless the causal structures are explicitly accounted for, there could easily be confounding variables or incorrect causal relationships that change the behavior of the system under consideration.
This has motivated new interest in causal inference techniques. Generally speaking, these techniques take experimental data and attempt to uncover the causal structure. (We defer a literature review of these methods to Section III, when a more formal model of causality has been developed.) In this paper, we consider the dual problem: we fix the causal structure and attempt to determine what causal actions will lead to system behaviors we desire at a minimal cost.
I-A Outline
The rest of the paper is organized as follows. We discuss the main paradigms for modeling causality in Section II. In Section III, we outline the mathematical formulation of a causal structure, discuss relevant literature in causal estimation, and define the problem of optimal causal imputation. In Section IV, we provide theoretical analysis of two special cases of the optimal causal imputation problem: the case where imputation can only be done to a single value, and the case where the dynamics are linear and the noise is Gaussian. Finally, we present closing remarks in Section V.
II Background
There are three main paradigms for the mathematical modeling of causality:
Rubin causality 2. 2.
Granger causality 3. 3.
Pearl’s structural equation modeling (SEM)
Each of these paradigms has a vast literature in its own right; we will try to present a few representative samples from each field here. Note that each paradigm uses its own notation, so we will change notation as we switch from approach to approach.
It should be noted that these paradigms are not mutually exclusive: for example, a problem that is modeled using Granger causality can be put into Pearl’s SEM if the underlying processes operate in discrete time. Rubin causality can often be phrased as an SEM problem, but in applications this will require more structural assumptions to learn the causal structure. A full exposition of the intersections and non-intersections of these three paradigms is outside the scope of this paper, but we note that these paradigms can often model the same phenomena and shed different insights on the causal behaviors observed.
Rubin causality was first introduced in [1]. In the basic formulation of Rubin causality, we are given some control variable taking values in . There are also two distinct random variables and . If , then we observe and not . If , then we only observe , and not . Another way to write this notationally is that we observe but do not observe , which is often called the counterfactual. The fact that we can only observe one or the other, but not both, is the fundamental misery of causality.
One of the key results that the Rubin causality paradigm provides is that if is independent of and , then randomly assigning yields a dataset that can provide valid estimates of the counterfactuals; thus, Rubin causality provides the theoretical foundation for randomized control trials. This paradigm has also been extended to consider many covariates [2], handle confounding variables and incorporate instrumental variables [2], and incorporate some machine learning approaches [3]. Sample applications include estimating the causal effect of residential demand response in the Western United States [4] or the causal effects of providing money, healthcare and education to the very poor in Ethiopia, Ghana, Honduras, India, Pakistan, and Peru [5].
Granger causality was first introduced in [6]. In this paradigm, we are given data from two stationary random processes and , both indexed by time. First, let denote all the information available in the universe at time , and let denote all the information available at time except for . Then, let denote the error variance of the unbiased, least-squares estimator of using , and similarly let denote the error variance of the unbiased, least-squares estimator of using . Then, Granger-causes (or G-causes, for short) if , i.e. the estimator that utilizes has lower variance on its error than the one that cannot. In other words, has explanatory power for .
Granger causality essentially relies on the relationship between causal effects and the arrow of time to distinguish it from general correlations. Although this framework does not address many of the more pernicious philosophical aspects of causality, oftentimes prior knowledge allows us to make the inductive leap from time-lagged correlations to causality. This paradigm is particularly appealing because it is easy to calculate in practice. Sample applications include determining which neuron assemblies Granger-cause other neuron assemblies to fire synapses [7] or finding that exchange rates Granger-cause stock market prices in Asia [8].
Pearl’s SEM approach to causality models the statistical relationship between random elements with a Bayesian network [9]. Bayesian networks are directed acyclic graphs, such that the distribution of a random element at node only depends on the values taken at the parent nodes. This is meant to model causal relationships between nodes in the graph. Pearl defines the imputation operator as follows: if one imputes at a node , one disconnects from all its parents and deterministically sets its value to some fixed, predetermined constant. We will be building on this approach in this paper, so we will defer the formal development of Pearl’s SEM until Section III.
At a high level, the imputation operator captures a lot of our intuitions about how the subjunctive conditional should function. When one says If it had rained today, I would have brought my umbrella, what does one mean? Intuitively, one often means: ‘If everything else were the same, only it is the case that it is raining today instead of sunny, these are the actions I would have taken.’ One does not mean that the world is structured in a way such that the necessary processes to induce rain today were instead the case. In other words: causal imputation does not travel upstream, e.g. backwards through time. This is captured in Pearl’s SEM.
More practically, consider the question: What are the causal effects of this medication? If we wish to estimate this, we should ‘set’ medication taken to TRUE, and see the consequences of this imputation. If we do not explicitly ‘set’ this value, then the decision to take medication is a consequence of preceding factors. This makes it difficult to determine if the observed effects are a result of the medication or some other confounding variables111We note that similar reasoning can be done in the Rubin causality formulation as well.. Again, this will be more formally discussed in Section III.
Thus, we can think of these paradigms in terms of the central phenomenon it is designed to model. In summary:
Rubin causality is focused on the estimation of the counterfactual. 2. 2.
Granger causality is focused on the explanatory power one process provides over another process. 3. 3.
Pearl’s SEM is focused on the causal effects of the imputation operator.
Throughout this paper, we use Pearl’s SEM. However, we note again that oftentimes problems framed in the Rubin causality or Granger causality paradigm often can be translated to an equivalent formulation in SEM.
II-A Notation
For any set , we denote the powerset of as , which can also be thought of as the set of functions mapping . For a collection of sets , we denote the Cartesian product as .
Also, will denote the identity matrix, where context will often be sufficient to determine its dimensions.
We let denote the uniform distribution on the interval and to denote the multivariate Gaussian distribution with mean and covariance matrix .
III Causal Framework
In this section, we introduce our framework for modeling causal effects, and then define the problem of optimal causal imputation.
III-A Causal structure
We build on the structural equation modeling framework presented in [9]. First, we will introduce Bayesian networks.
Definition 1**.**
A directed graph is a set of nodes and a set of edges . Throughout this paper we will assume is at most countably infinite.
A path from to is a finite sequence of edges .
We define the parents of node as .
We can iterate this relationship to define the ancestor relationship: let , where defined above. Then, the ancestors of a node are given by .
We say is a descendant of if .
A directed graph is acyclic if for every . We will refer to such graphs as directed acyclic graphs (DAGs).
Definition 2**.**
A random process indexed by a set is a collection of random elements . We will let denote the possible values of , and .
When there is an associated graph , we will use the notation to denote the tuple .
Definition 3**.**
A random process indexed by is Markov relative to a DAG if its distribution factorizes:
[TABLE]
We can also say that and are compatible, or represents .
This formalization will serve as our model for causality. The interpretation is that if there is an edge going from to , then causes .
Throughout this paper, we will treat the causal structure as given. Estimation of this causal structure is a non-trivial task, and an active topic of research. Some approaches to the task of causal inference include: using metrics like directed information to estimate the causal strength between random variables [10, 11], graphical-model based methods for estimating structure between random variables [12, 13, 14, 15], and regression based approaches [16, 17, 18]. Again, this list is far from exhaustive as an extensive literature review of this general field is outside the scope of this paper. For a broader overview of various approaches to the problem of causal inference, see [12, 9].
Although the estimation of causal structures is never a simple task, the growing field of research promises more and more applications in which accurate estimation of causal structures is feasible.
Previous work has focused on the estimation of causal structures. In contrast, our contribution is to consider the problem of control of causal structures. In other words, once we are given a causal structure, how can we impute causal effects to drive the overall system into a desirable state?
For example, once we can estimate the causal effects of issuing rebates for energy-efficiency appliances, how do we best distribute these rebates to induce more energy-efficient consumption patterns? To the best of our knowledge, this is the first paper to consider the problem of when and where to impute on a causal structure.
There is an equivalent formulation of the condition in Definition 3 which utilizes disintegration results in probability theory. This is referred to as the structural equation modeling framework in [9].
Proposition 1**.**
[19, 9]** A random process indexed by is Markov relative to if and only if there exists a collection of functions and independent random elements such that:
[TABLE]
Furthermore, if are Borel spaces222A measurable space is Borel if there exists a measurable function with a measurable inverse., then can be taken to be .
We note that Borel spaces are a very general category of measurable spaces: they include Polish spaces equipped with the Borel -algebra333A topological space is Polish if it is separable and completely metrizable. The Borel -algebra of a topological space is the smallest -algebra containing all the open sets.. This includes finite sets, , , , the set of -integrable functions defined on . Additionally, the space of probability distributions on any Borel space is also a Borel space.
Assumption 1**.**
Throughout the rest of this paper, we will always use to denote a random process indexed by that is Markov relative to a DAG , where takes values in . Similarly, shall denote the functions as specified in Equation 1, and similarly .
III-B Causal imputation
In this section, we will formally define the causal imputation operation. Intuitively, imputation of produces a new random process . This random process is equal to prior to the causal imputation, is forced to some value at the node of imputation, and experiences causal effects after the node of imputation. This is formally defined below.
Definition 4**.**
[9]** A random process indexed by is the imputation of at to a constant if:
- •
.
- •
For any that is not a descendant of , .
- •
For any that is a descendant of , .
If this is the case, we will write .
The imputation operator produces a copy of the original process that is exactly equal at all nodes that do not causally depend on the node of imputation . At the point of imputation, the node is disconnected from its parents and forced a constant value . The nodes that causally depend on are replaced with new values that depend on the causal effects of , keeping the innovation terms constant throughout.
Referring back to the discussions in Section II, this can be thought of as manually setting the value of to . This should be something that is done exogenously, as a control variable, rather than as a consequence of endogenous factors: this is why is disconnected from .
From this definition, it immediately follows that the imputation operator commutes.
Proposition 2**.**
Let such that and and . Then almost surely.
This allows us to define imputation on any set of nodes, rather than just at a single node.
Definition 5**.**
For any and , we define the imputation as the sequential application of element-wise operations. This is almost surely unique by Proposition 2.
III-C Optimal causal imputation
In the previous section, we defined the causal imputation operator. We can think of our system designer as having the capacity of issuing control commands that have causal effects on the system downstream. When we can define the cost of imputation as well as a control objective, we can formulate the optimal causal imputation problem.
We suppose we are given a collection of functions where each . These functions can be interpreted as the cost of imputation at a set of nodes . Drawing on our running example, represents the cost of issuing rebates for eco-friendly refrigerators at a set of households.
Furthermore, we suppose we are given an operational objective in the form of a cost function . For example, can be a penalty on energy-wasting consumption patterns.
Definition 6**.**
The problem of optimal causal imputation is given by:
[TABLE]
IV Applications
In Section III, we defined the optimal causal imputation problem in its full generality. In this section, we shall provide methods to solve the optimal causal imputation problem in special cases. In particular, we consider two contexts: 1) situations where imputation is only allowed to a single value, 2) situations where the dynamics are linear-Gaussian. In both instances, we shall assume for some .
IV-A Single-value case
In many applications where we can causally impute values, we can only impute to one particular value. For example, when issuing incentives, we may be able to only offer one form of rebate to consumers. Motivated by this context, we consider situations where the optimal causal imputation problem can be reduced to one of submodular optimization.
Assumption 2**.**
In this section, we assume is a finite set and that for each , there exists an such that and for any . We shall refer to this as the single-value case.
In the single-value case, we use the shorthand , where we drop dependencies on as it can only take a single value.
IV-A1 Submodular minimization
Definition 7**.**
The set mapping is submodular if for any and , we have:
[TABLE]
Intuitively, this definition is motivated by economies of scale. We often expect economies of scale from these imputations, e.g. the per-customer cost of a rebate is non-increasing as the number of customers increases, due to bulk-purchase discounts. In our running example, the additional cost of issuing a rebate to customer is higher when you have issued few rebates than when you have issued a lot of rebates. (When , then corresponds to the situation where you have issued more rebates than .)
From a combinatorial optimization perspective, submodularity is a very well-behaved property that makes optimization, or approximate optimization, very tractable. We shall quickly outline the details now, but we refer the interested reader to [20] for more details.
First, note that there is a very direct correspondence between a subset and a tuple in . For example, if , then corresponds to the subset . Thus, we can think of . Now, we define the Lovász extension [21].
Definition 8**.**
Let . Then, for any set mapping , we define the Lovász extension as:
[TABLE]
For the rest of this section, an unindexed will denote the Lovász extension of .
We note two nice properties of the Lovász extension immediately.
Proposition 3**.**
[21]** For any , we have .
Proposition 4**.**
[21]** is submodular if and only if is convex.
Note that the optimal causal imputation problem can be written as:
[TABLE]
The Lovász extension provides us with an easy solution to the problem.
Proposition 5**.**
[21]** If is submodular, then the following is a convex optimization program.
[TABLE]
Furthermore, there exist minimizers of (5) in .
In other words, the combinatorial optimization problem can be solved tractably with convex optimization if is submodular. Thus, we are motivated in searching for conditions under which is submodular. We provide a common sufficient condition for submodularity of in the following theorem:
Theorem 1**.**
If:
- •
* for some .*
- •
There exists functions such that, if has no parents, and otherwise .
- •
For each , there exists one unique path from to .
- •
* is submodular.*
Then is submodular.
Note here that we treat as a vector in , where is the appropriate dimension. These assumptions encompass many graphical models where a node’s parents set a location parameter, and the control objective is the second moment of some feature.
Proof.
Note that the desired result will follow if we show that the set mapping is submodular, since the sum of submodular functions is submodular. Throughout this proof, we use to refer to the index pulled out by the function .
We can see that . By the independence of the and the form of the relationships, we can write this as . (Note that the unique path assumption ensures that each variance is only counted once in this sum.)
More generally, we can write an expression for . Note that if we impute at a node , all the uncertainty due to node , and the ancestors of , is zeroed out. Thus, we can write , where we define .
Now, we can verify the submodularity condition on . Pick and . Then:
[TABLE]
[TABLE]
[TABLE]
[TABLE]
In words, the change in due to adding to is the variances due to the terms related to and the ancestors of that have not already been zeroed out due to imputation, i.e. the ancestors of that are not already ancestors of . A similar derivation can be done for .
Thus, we can verify that by noting that , so the right-hand side of the inequality adds more negative terms. This concludes our proof. ∎
IV-A2 Submodular maximization
Alternatively, suppose we are attempting to maximize a submodular function subject to a constraint, i.e. subject to a constraint that and our objective is to solve .444Strictly speaking, to remain consistent with the problem in Section III, we should be solving , but we express it as a maximization for clarity of presentation.
First, consider the greedy method for submodular maximization. This is presented as Algorithm 1. At each iteration, it simply adds an element to which maximizes , if one exists. If one does not exist, it terminates and returns . Under certain structural conditions, this algorithm yields approximate optimizers.
Definition 9**.**
A set mapping is nondecreasing if whenever .
The monotonicity condition effectively prevents the algorithm from straying too far from the optimum when taking the greedy approach, as shown in [22]. Note that if is non-decreasing, then the condition is equivalent to the existence of such that .
Proposition 6**.**
[22]** If is nondecreasing and submodular, then the greedy method presented in Algorithm 1 will return such that .
We now present a quick corollary of Theorem 1, which provides conditions under which we can leverage the existing results for maximization of nondecreasing submodular functions.
Corollary 1**.**
If:
- •
* for some .*
- •
There exists functions such that, if has no parents, and otherwise .
- •
For each , there exists one unique path from to .
- •
* is nondecreasing and submodular.*
Then is nondecreasing and submodular.
Proof.
This follows from Theorem 1 if we can show that is nondecreasing. Let , and note that adding elements to can only decrease the variance of . This can be formalized by noting, similar to the arguments in the proof of Theorem 1, . Thus, , the additive inverse of the variance of , is nondecreasing. ∎
Note the minus sign in in Corollary 1: in most instances where you are maximizing a submodular cost, you would still wish to reduce uncertainty, i.e. have a lower variance.
IV-B Linear-Gaussian case
In this section, we consider causal imputation on a discrete-time linear dynamical system with Gaussian noise. That is, we analyze the special case of a random process with the form:
[TABLE]
Where , independently for , and is a matrix representing the dependencies.
This process can be represented as a causal graph in the form of a trellis, where the random variables are all Gaussian. More specifically, each node has its expected value equal to a linear combination of their parents, as described by a matrix , and additive noise of the distribution .
To analyze our optimal casual imputation problem, we first redefine the indices for this problem. Since our causal graph represents a process over time, we index into the process by state , for as well as a time for . Thus indicates the value of state at time , and our graph has vertices . As before, represents the value of the vector of all the states of at time , and we can think of as a vector in . We assume that the cost of imputation has the following form for some parameters :
[TABLE]
Further, we look at the case where the system cost of interest is minimizing the expected distance of the the random process from some target trajectory . Thus .
Our optimal causal imputation problem in this case is thus:
[TABLE]
The summation term can be thought of as a cost of issuing control commands and the expectation term can be thought of as a trajectory tracking objective.
Given our structure on the random process, we can rewrite this optimization problem more concretely.
We first define to be diagonal matrix with the ’s on the diagonal. We define to be the vector of ’s. Further, let denote the column vector of all ones in . Lastly, we define to be the square matrix with the elements of on the diagonal, and zeros everywhere else.
The optimization in (6) now becomes:
[TABLE]
[TABLE]
We note that for any matrix and any , the matrix , with as defined above, is invertible, so will always be well-defined.
Additionally, for a fixed , the optimization across is easy to solve. That is, is entirely determined by . If we let denote the submatrix of indexed by the non-zero elements of , and similarly and , then the optimizer is given by , with the other entries of equal to [math].
Thus, we can easily calculate a set mapping such that optimal causal imputation in the linear-Gaussian case is simply . We can solve this when is relatively small, and are currently investigating properties of which would allow us to apply combinatorial optimization techniques [20].
V Conclusion and Future Work
The previous literature on mathematical formulations of causality has been focused on the estimation of causal structures. In this paper, we presented the problem of control of causal structures. We formally defined the problem of optimal causal imputation, and formulate solutions for it in two cases: where imputation is allowed to only a single value, and the case where the dynamics are linear and the noise is Gaussian.
In future work, we hope to apply this framework to real situations which allow both the estimation of causal structures, as well as verification of the consequences and costs of imputation. Additionally, we hope to generalize our results to consider dynamical systems whose behavior are influenced by different features. For example, we can consider the dynamics of the power grid, but also account for frequently used machine learning features as well, such as the zip code of different energy consumers and the age of deployed assets.
We believe that considering the control aspects of causality is increasingly more relevant. In many smart infrastructure applications, we no longer have control commands that directly affect the dynamics, but rather our control actions act more like causal imputations. The optimal causal imputation framework is a promising direction to model these interactions between machine learning and control, and provides a model for closing the loop on analytics in cyber-physical systems.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] D. B. Rubin, “Estimating causal effects of treatments in randomized and nonrandomized studies,” Journal of Educational Psychology , vol. 66(5), pp. 688–701, 1974.
- 2[2] G. W. Imbens and D. B. Rubin, Causal Inference for Statistics, Social, and Biomedical Sciences: An Introduction . Cambridge University Press, 2015.
- 3[3] S. Athey and G. W. Imbens, “Machine learning methods for estimating heterogeneous causal effects,” ar Xi V , 2015.
- 4[4] D. Zhou, M. Balandat, and C. J. Tomlin, “Residential demand response targeting using machine learning with observational data,” in 55th IEEE Conference on Decision and Control (CDC) , 2016.
- 5[5] A. Banerjee, E. Duflo, N. Goldberg, D. Karlan, R. Osei, W. Parienté, J. Shapiro, B. Thuysbaert, and C. Udry, “A multifaceted program causes lasting progress for the very poor: Evidence from six countries,” Science , vol. 348, no. 6236, 2015. [Online]. Available: http://science.sciencemag.org/content/348/6236/1260799
- 6[6] C. W. J. Granger, “Investigating causal relations by econometric models and cross-spectral methods,” Econometrica , vol. 37, no. 3, pp. 424–438, 1969. [Online]. Available: http://www.jstor.org/stable/1912791
- 7[7] A. Brovelli, M. Ding, A. Ledberg, Y. Chen, R. Nakamura, and S. L. Bressler, “Beta oscillations in a large-scale sensorimotor cortical network: Directional influences revealed by Granger causality,” Proceedings of the National Academy of Sciences of the United States of America , vol. 101, no. 26, pp. 9849–9854, 06 2004. [Online]. Available: http://www.ncbi.nlm.nih.gov/pmc/articles/PMC 470781/
- 8[8] C. W. Granger, B.-N. Huang, and C.-W. Yang, “A bivariate causality between stock prices and exchange rates: Evidence from recent Asian flu,” The Quarterly Review of Economics and Finance , vol. 40, no. 3, pp. 337 – 354, 2000. [Online]. Available: http://www.sciencedirect.com/science/article/pii/S 1062976900000429
