Paper deep dive
Robust agents learn causal world models
Jonathan Richens, Tom Everitt
Intelligence
Status: succeeded | Model: google/gemini-3.1-flash-lite-preview | Prompt: intel-v1 | Confidence: 96%
Last extracted: 3/12/2026, 7:37:39 PM
Summary
The paper proves that any agent capable of maintaining low regret across a wide range of distributional shifts must necessarily learn an approximate causal model of the data-generating process. This theoretical result establishes causal reasoning as a fundamental requirement for robust adaptation and general intelligence, providing a formal basis for causal representation learning.
Entities (5)
Relation Signals (3)
Jonathan Richens ā affiliatedwith ā Google DeepMind
confidence 100% Ā· Jonathan Richens Google DeepMind
Tom Everitt ā affiliatedwith ā Google DeepMind
confidence 100% Ā· Tom Everitt Google DeepMind
Robust Agents ā learn ā Causal World Models
confidence 95% Ā· Any agent capable of adapting to a sufficiently large set of distributional shifts must have learned a causal model of the data generating process.
Cypher Suggestions (0)
No Cypher suggestions yet.
Abstract
Abstract:It has long been hypothesised that causal reasoning plays a fundamental role in robust and general intelligence. However, it is not known if agents must learn causal models in order to generalise to new domains, or if other inductive biases are sufficient. We answer this question, showing that any agent capable of satisfying a regret bound under a large set of distributional shifts must have learned an approximate causal model of the data generating process, which converges to the true causal model for optimal agents. We discuss the implications of this result for several research areas including transfer learning and causal inference.
Tags
Links
- Source: https://arxiv.org/abs/2402.10877
- Canonical: https://arxiv.org/abs/2402.10877
Trouble viewing inline? Open PDF directly ā
Full Text
310,276 characters extracted from source content.
Expand or collapse full text
booktabs Robust agents learn causal world models Jonathan Richens Google DeepMind &Tom Everitt Google DeepMind jonrichens@deepmind.com Abstract It has long been hypothesised that causal reasoning plays a fundamental role in robust and general intelligence. However, it is not known if agents must learn causal models in order to generalise to new domains, or if other inductive biases are sufficient. We answer this question, showing that any agent capable of satisfying a regret bound for a large set of distributional shifts must have learned an approximate causal model of the data generating process, which converges to the true causal model for optimal agents. We discuss the implications of this result for several research areas including transfer learning and causal inference. 1 Introduction What capabilities are necessary for general intelligence (Legg & Hutter, 2007)? One candidate is causal reasoning, which plays a foundational role in human cognition (Gopnik et al., 2007; Sloman & Lagnado, 2015). It has even been argued that human-level AI is impossible without causal reasoning (Pearl, 2018). However, recent years have seen the development of agents that do not explicitly learn or reason on causal models, but nonetheless are capable of adapting to a wide range of environments and tasks (Reed et al., 2022; Team et al., 2023; Brown et al., 2020). This raises the question, do agents have to learn causal models in order to adapt to new domains, or are other inductive biases sufficient? To answer this question, we have to be careful not to assume that agents use causal assumptions a priori. For example, transportability theory determines what causal knowledge is necessary for transfer learning when all assumptions on the data generating process (inductive biases) can be expressed as constraints on causal structure (Bareinboim & Pearl, 2016). However, deep learning algorithms can exploit a much larger set of inductive biases (Neyshabur et al., 2014; Battaglia et al., 2018; Rahaman et al., 2019; Goyal & Bengio, 2022) which in many real-world settings may be sufficient to identify low regret policies without requiring causal knowledge. The main result of this paper is to answer this question by showing that, Any agent capable of adapting to a sufficiently large set of distributional shifts must have learned a causal model of the data generating process. Here, adapting to a distributional shift means learning a policy that satisfies a regret bound following an intervention on the data generating processāfor example, changing the distribution of features or latent variables. It is known that a causal model of the data generating process can be used to identify regret-bounded policies following a distributional shift (sufficiency), with more accurate models allowing lower regret policies to be found. We prove the converse (necessity)āgiven regret-bounded policies for a large set of distributional shifts, we can learn an approximate causal model of the data generating process, with the approximation becoming exact for optimal policies. Hence, learning a causal model of the data generating process is necessary for robust adaptation. This has consequences for a number of fields and questions. For one, it implies that causal identification laws also constrain domain adaptation. For example, we show that adapting to covariate and label shifts is only possible if the causal relations between features and labels can be identified from the training dataāa non-trivial causal discovery problem. This provides further theoretical justification for causal representation learning (Schƶlkopf et al., 2021), showing that learning causal representations is necessary for achieving strong robustness guarantees. Our result also implies that we can learn causal models from adaptive agents. We demonstrate this by solving a causal discovery task on synthetic data by observing the policy of a regret-bounded agent under distributional shifts. More speculatively, our results suggest that causal models could play a role in emergent capabilities. Agents trained to minimise a loss function across many domains are incentivized to learn a causal world model, which could in turn enable them to solve a much larger set of decision tasks they were not explicitly trained on. Outline of paper. In Section 2 we introduce concepts from causality and decision theory used to derive our results. We present our main theoretical results in Section 3 and discuss their interpretation in terms of adaptive agents, transfer learning and causal inference. In Section 4 we discuss limitations, as well as implications for a number of fields and open questions. In section 5 we discuss related work including transportability (Bareinboim & Pearl, 2016) and the causal hierarchy theorem (Bareinboim et al., 2022), and recent empirical work on emergent world models. In Appendix B we describe experiments applying our theoretical results to causal discovery problems. 2 Preliminaries 2.1 Causal models We use capital letters for random variables V, and lower case for their values vādomā¢(V)domv (V)v ā dom ( V ). For simplicity, we assume each variable has a finite number of possible values, |domā¢(V)|<ādom|dom(V)|<ā| dom ( V ) | < ā. Bold face denotes sets of variables =V1,ā¦,Vnsubscript1ā¦subscript V=\V_1,ā¦,V_n\italic_V = V1 , ⦠, Vitalic_n , and their values ādom()=Ćidom(Vi) v ( V)=Ć_idom(V_i)italic_v ā dom ( italic_V ) = Ći dom ( Vitalic_i ). A probabilistic model specifies the joint distribution Pā¢()P( V)P ( italic_V ) over a set of variables Vitalic_V. These models can support associative queries, for example Pā¢(=ā£=)conditionalP( Y= y X= x)P ( italic_Y = italic_y ⣠italic_X = italic_x ) for ,ā X, Y Vitalic_X , italic_Y ā italic_V. Interventions describe external changes to the data generating process (and hence changing the joint distribution), for example a hard intervention doā¢(=)do do( X= x)do ( italic_X = italic_x ) describes forcing the set of variables ā X Vitalic_X ā italic_V to take value xitalic_x. This generates a new distribution Pā¢(ā£doā¢(X=x))=Pā¢(x)conditionaldosubscriptP( V do(X=x))=P( V_x)P ( italic_V ⣠do ( X = x ) ) = P ( italic_Vitalic_x ) where subscript V_ xitalic_Vbold_italic_x refers to the variables Vitalic_V following this intervention. The power of causal models is that they specify not only Pā¢()P( V)P ( italic_V ) but also the distribution of Vitalic_V under all interventions, and hence these models can be used to evaluate both associative and interventional queries e.g. Pā¢(=ā£doā¢(=))conditionaldoP( Y= y do( X= x))P ( italic_Y = italic_y ⣠do ( italic_X = italic_x ) ). For the derivation of our results we focus on a specific class of causal modelsācausal Bayesian networks (CBNs). There are several alternative models and formalisms that are studied in the literature, including structural equation models (Pearl, 2009) and the Neyman-Rubin causal models (Rubin, 2005), and results can be straightforwardly adapted to these. Definition 1 (Bayesian networks). A Bayesian network M=(G,P)M=(G,P)M = ( G , P ) over a set of variables =V1,ā¦,Vnsubscript1ā¦subscript V=\V_1,ā¦,V_n\italic_V = V1 , ⦠, Vitalic_n is a joint probability distribution Pā¢()P( V)P ( italic_V ) that factors according to a directed acyclic graph (DAG) G, i.e. Pā¢(V1,ā¦,Vn)=āi=1nPā¢(Viā£PaVi)subscript1ā¦subscriptsuperscriptsubscriptproduct1conditionalsubscriptsubscriptPasubscriptP(V_1,ā¦,V_n)= _i=1^nP(V_i _V_i)P ( V1 , ⦠, Vitalic_n ) = āi = 1n P ( Vitalic_i ⣠PaV start_POSTSUBSCRIPT i end_POSTSUBSCRIPT ), where PaVisubscriptPasubscriptPa_V_iPaV start_POSTSUBSCRIPT i end_POSTSUBSCRIPT are the parents of VisubscriptV_iVitalic_i in G. A Bayesian network is causal if the graph G captures the causal relationships between the variables or, formally, if the result of any intervention doā¢(=)do do( X= x)do ( italic_X = italic_x ) for ā X Vitalic_X ā italic_V can be computed from the truncated factorisation formula: Pā¢(ā£doā¢())=āi:viāPā¢(viā£pavi)if consistent with 0otherwise.conditionaldocasessubscriptproduct:subscriptconditionalsubscriptsubscriptpasubscriptif consistent with 0otherwise.P( v do( x))= cases _i:v_i ā xP(v_% i _v_i)&if $ v$ consistent with $ x$\\ 0&otherwise. casesP ( italic_v ⣠do ( italic_x ) ) = start_ROW start_CELL āi : v start_POSTSUBSCRIPT i ā italic_x end_POSTSUBSCRIPT P ( vitalic_i ⣠pav start_POSTSUBSCRIPT i end_POSTSUBSCRIPT ) end_CELL start_CELL if italic_v consistent with italic_x end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL otherwise. end_CELL end_ROW More generally, a soft intervention Ļvi=Pā²ā¢(Viā£Paiā)subscriptsubscriptsuperscriptā²conditionalsubscriptsubscriptsuperscriptPa _v_i=P (V_i ^*_i)Ļitalic_v start_POSTSUBSCRIPT i end_POSTSUBSCRIPT = Pā² ( Vitalic_i ⣠Paāi ) replaces the conditional probability distribution for VisubscriptV_iVitalic_i with a new distribution Pā²ā¢(Viā£Paiā)superscriptā²conditionalsubscriptsubscriptsuperscriptPaP (V_i ^*_i)Pā² ( Vitalic_i ⣠Paāi ), possibly resulting in a new parent set Paiāā PaisubscriptsuperscriptPasubscriptPaPa^*_i _iPaāi ā Pai as long as no cycles are introduced in the graph. We refer to Ļvisubscriptsubscript _v_iĻitalic_v start_POSTSUBSCRIPT i end_POSTSUBSCRIPT as a domain indicator (Correa & Bareinboim, 2020) (it has also been called an environment index, Arjovsky et al., 2019). The updated distribution is denoted Pā¢(;Ļā²)=āi:viāā²Pā²ā¢(viā£paviā)ā¢āi:viāā²Pā¢(viā£pavi)subscriptsuperscriptā²subscriptproduct:subscriptsuperscriptā²conditionalsubscriptsubscriptsuperscriptpasubscriptsubscriptproduct:subscriptsuperscriptā²conditionalsubscriptsubscriptpasubscriptP( v; _ v )= _i:v_iā v P % (v_i ^*_v_i) _i:v_i ā v P(v_i% _v_i)P ( italic_v ; Ļbold_italic_vā² ) = āi : v start_POSTSUBSCRIPT i ā italic_vā² end_POSTSUBSCRIPT Pā² ( vitalic_i ⣠paāv start_POSTSUBSCRIPT i end_POSTSUBSCRIPT ) āi : v start_POSTSUBSCRIPT i ā italic_vā² end_POSTSUBSCRIPT P ( vitalic_i ⣠pav start_POSTSUBSCRIPT i end_POSTSUBSCRIPT ). In general, soft interventions cannot be defined without knowledge of G. For example, the soft intervention ĻY=Pā²ā¢(yā£x)subscriptsuperscriptā²conditional _Y=P (y x)Ļitalic_Y = Pā² ( y ⣠x ) is incompatible with the causal structure YāXāYā XY ā X as it would induce a causal cycle. As our results are concerned with learning causal models (and hence causal structure), we focus our theoretical analysis on a subset of the soft interventions, local interventions, that are compatible with all causal structures and so can be used without tacitly assuming knowledge of G. Definition 2 (Local interventions). Local intervention Ļ on ViāsubscriptV_iā VVitalic_i ā italic_V involves applying a map to the states of VisubscriptV_iVitalic_i that is not conditional on any other endogenous variables, viā¦fā¢(vi)maps-tosubscriptsubscriptv_i f(v_i)vitalic_i ⦠f ( vitalic_i ). We use the notation Ļ=doā¢(Vi=fā¢(vi))dosubscriptsubscriptĻ= do(V_i=f(v_i))Ļ = do ( Vitalic_i = f ( vitalic_i ) ) (variable VisubscriptV_iVitalic_i is assigned the state fā¢(vi)subscriptf(v_i)f ( vitalic_i )). Formally, this is a soft intervention on VisubscriptV_iVitalic_i that transforms the conditional probability distribution as, Pā¢(vi|pai;Ļ)=āviā¢ā:fā¢(viā²)=viPā¢(viā²|pai)conditionalsubscriptsubscriptpasubscript:subscriptāsuperscriptsubscriptā²subscriptconditionalsuperscriptsubscriptā²subscriptpaP(v_i\,|\,pa_i;Ļ)= _v_i :f(v_i % )=v_iP(v_i \,|\,pa_i)P ( vitalic_i | pai ; Ļ ) = āv start_POSTSUBSCRIPT i ā : f ( vitalic_iā² ) = vitalic_i end_POSTSUBSCRIPT P ( vitalic_iā² | pai ) (1) Example: Hard interventions doā¢(Vi=viā²)dosubscriptsubscriptsuperscriptā² do(V_i=v _i)do ( Vitalic_i = vā²italic_i ) are local interventions where fā¢(vi)subscriptf(v_i)f ( vitalic_i ) is a constant function. Example: Translations are local interventions as doā¢(Vi=vi+k)=doā¢(Vi=fā¢(vi))dosubscriptsubscriptdosubscriptsubscript do(V_i=v_i+k)= do(V_i=f(v_i))do ( Vitalic_i = vitalic_i + k ) = do ( Vitalic_i = f ( vitalic_i ) ) where fā¢(vi)=vi+ksubscriptsubscriptf(v_i)=v_i+kf ( vitalic_i ) = vitalic_i + k. Examples include changing the position of objects in RL environments (Shah et al., 2022) and images (Engstrom et al., 2019). Example: Logical NOT operation Xā¦Ā¬Xmaps-toX X ⦠¬ X for Boolean X is a local intervention. We also consider stochastic interventions, noting that mixtures of local interventions can also be defined without knowledge of G. For example, adding noise to a variable X=X+ϵitalic-ϵX=X+ = X + ϵ, ϵā¼ā¢(0,1)similar-toitalic-ϵ01ε (0,1)ϵ ā¼ N ( 0 , 1 ), is a soft intervention on X described by a mixture over local interventions (translations). Definition 3 (Mixtures of interventions). A mixed intervention Ļā=āipiā¢ĻisuperscriptsubscriptsubscriptsubscriptĻ^*= _ip_i _iĻā = āi pitalic_i Ļitalic_i for āpi=1subscript1Ī£ p_i=1ā pitalic_i = 1 performs intervention Ļisubscript _iĻitalic_i with probability pisubscriptp_ipitalic_i. Formally, Pā¢(ā£Ļā)=āipiā¢Pā¢(ā£Ļi)conditionalsuperscriptsubscriptsubscriptconditionalsubscriptP( v Ļ^*)= _ip_iP( v _i)P ( italic_v ⣠Ļā ) = āi pitalic_i P ( italic_v ⣠Ļitalic_i ). 2.2 Decision tasks Decision tasks involve a decision maker (agent) choosing a policy so as to optimise an objective function (utility). To give a causal description of decision tasks we use the causal influence diagram (CID) formalism (Howard & Matheson, 2005; Everitt et al., 2021), which extend a CBN of the environment (chance) variables by introducing decision and utility nodes (see Figure 1 for examples). For simplicity we focus on tasks involving a single decision and a single utility function. Definition 4 (Causal influence diagram). A (single-decision, single-utility) causal influence diagram (CID) is a CBN M=(G,P)M=(G,P)M = ( G , P ) where the variables Vitalic_V are partitioned into decision, utility, and chance variables, =(D,U,) V=(\D\,\U\, C)italic_V = ( D , U , italic_C ). The utility variable is a real-valued function of its parents, Uā¢(paU)subscriptpaU(pa_U)U ( paU ). Single-decision single-utility CIDs can represent most decision tasks such as classification and regression as they specify what decision should be made (dāDdā Dd ā D), based on what information (paDsubscriptpapa_DpaD), with objective (ā¢[U]delimited-[]E[U]blackboard_E [ U ]). They can also describe some multi-decision tasks such as Markov decision processes111Note Markov decision processes can be formulated as a single-decision single-utility CID, by modelling the choice of policy as a single decision and the cumulative discounted reward as a single utility variable.. The utility is any real-valued function including standard loss and reward functions. We assume that the environment is described by a set of random variables Citalic_C that interact via causal mechanisms222This assumption follows from Reichenbach (1956), and we discuss further in Section A.3, and where Citalic_C satisfies causal sufficiency (Pearl, 2009) (includes all common causes), noting that such a choice of Citalic_C always exists. We refer to the CBN over Citalic_C as the ātrueā or āunderlyingā CBN. Note we do not assume the agent has any knowledge of the underling CBN, nor do we assume which variables in Citalic_C are observed or unobserved by the agent, beyond that the agent can observe PaDāsubscriptPaPa_D CPaD ā italic_C. We also assume knowledge of the utility function Uā¢(PaU)subscriptPaU(Pa_U)U ( PaU ). The conditional probability distribution for the decision node Ļā¢(dā£paD)conditionalsubscriptpaĻ(d _D)Ļ ( d ⣠paD ) (the policy) is not a fixed parameter of the model but is set by the agent so as to maximise its expected utility, which for a policy Ļ is Ļā¢[U]=ā¢[Uā£doā¢(D=Ļā¢(paD))]superscriptdelimited-[]delimited-[]conditionaldosubscriptpaE^Ļ[U]=E[U do(D=Ļ(pa_D))]blackboard_EĻ [ U ] = blackboard_E [ U ⣠do ( D = Ļ ( paD ) ) ]. A policy ĻāsuperscriptĻ^*Ļā is optimal if it maximises Ļāā¢[U]superscriptsuperscriptdelimited-[]E^Ļ^*[U]blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ]. Typically, agents do not behave optimally and incur some regret Ī“, which is the decrease in expected utility compared to an optimal policy Ī“:=Ļāā¢[U]āĻā¢[U]assignsuperscriptsuperscriptdelimited-[]superscriptdelimited-[]Ī“:=E^Ļ^*[U]-E^Ļ[U]Ī“ := blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ] - blackboard_EĻ [ U ]. To simplify our theoretical analysis, we focus on a widely studied class of decision tasks where the agents decision does not causally influence the environment (e.g. Figure 1). Assumption 1 (Unmediated decision task). DescDā©AncU=ā subscriptDescsubscriptAncDesc_D _U= ā© AncU = ā . In unmediated decision tasks, the agent is provided some (partial) observations of the environment and chooses a policy, which is then evaluated using the utility function which is a function of the environment state and the agentās decision. Examples of unmediated decision tasks include prediction tasks such as classification and regression, whereas examples of mediated decision tasks that are not covered by our theorems include Markov decision processes where the agentās decision (action) influences the utility via the environment state. UUUDDitalic_DYYitalic_YXXitalic_X (a) training UUUDDitalic_DYYitalic_YXXitalic_X (b) testing UUUDDitalic_DYYitalic_YXXitalic_X (c) known domain shift Figure 1: CID for a supervised learning task during (a) training and (b) testing following a distributional (covariate) shift (unsupervised domain adaptation, Wilson & Cook, 2020). The agent chooses a label prediction D=Y^^D= YD = over start_ARG Y end_ARG given features X, with the goal of minimising loss U=āLossā¢(Y,Y^)Loss^U=-Loss(Y, Y)U = - Loss ( Y , over start_ARG Y end_ARG ). Decision variables are depicted as square nodes, chance variables as circular nodes and utilities as diamond nodes. Information edges (dashed) show the variables the agent conditions their policy on. In this example the labels cause the features YāXāYā XY ā X (for examples where features cause labels see Castro et al., 2020; Schƶlkopf et al., 2012). The black square (āregime nodeā (Correa & Bareinboim, 2020)) in (b) and (c) denotes a distributional shift induced by an intervention on X. Diagram (c) depicts the idealised case where the agent knows what domain shift has occurred. By theorem 1, if the agent can return an optimal decision boundary for known covariate and label shifts, then it must have learned the CBN over =X,Y C=\X,Y\italic_C = X , Y . Note that even if the agent has sufficient training data to learn Pā¢(X,Y)P(X,Y)P ( X , Y ), the causal structure YāXāYā XY ā X is in general non-identifiable given Pā¢(X,Y)P(X,Y)P ( X , Y ) and so domain adaptation requires that the agent solves a non-trivial causal discovery problem. 2.3 Distributional shifts We focus on generalisation that goes beyond the iid assumption, where agents are evaluated in domains that are distributionally shifted from the training environment. Distributional shifts can be changes to the environment (domain shifts), as in domain adaptation and domain generalisation (Farahani et al., 2021; Wilson & Cook, 2020), or changes to the objective (task shifts) as in zero shot learning (Xian et al., 2018), in-context learning (Brown et al., 2020) and multi-task reinforcement learning (Reed et al., 2022). Our analysis focuses on domain shifts that involve changes to the causal data generating process, and hence can be modelled as interventions (Schƶlkopf et al., 2021). This does not assume that all shifts an agent will encounter can be modelled as interventions, but requires that the agent is at least capable of adapting to these shifts. Examples of interventionally generated shifts include translating objects in images (Engstrom et al., 2019), noising inputs and adversarial robustness (Hendrycks & Dietterich, 2019), and changes to the initial conditions or transition function in Markov decision processes (Peng et al., 2018). Examples of shifts that are not naturally represented as interventions include changing the set of environment variables Citalic_C, and introducing selection biases (Shen et al., 2018). See Section A.3 for discussion. Our main results restrict to local domain shifts, which correspond to local interventions on the chance variables Citalic_C. We do not consider shifts that change the agentās decision D, although we include shifts that drop inputs to the policy PaDāPaDā²āPaDāsubscriptPasuperscriptsubscriptPaā²subscriptPaPa_D _D _DPaD ā PaDā² ā PaD (e.g. masking) as local interventions. We do not consider task shifts i.e. changing the utility function. As we are interested in determining the capabilities necessary for domain adaptation, we restrict our attention to decision tasks where domain adaptation is non-trivial, i.e. where the optimal policy depends on the environment distribution Pā¢(=)P( C= c)P ( italic_C = italic_c ). Assumption 2 (Domain dependence). There exists Pā¢(=)P( C= c)P ( italic_C = italic_c ) and Pā²ā¢(=)superscriptā²P ( C= c)Pā² ( italic_C = italic_c ) compatible with M such that Ļā=argā¢maxĻā”PĻā¢[U]superscriptsubscriptargmaxsuperscriptsubscriptdelimited-[]Ļ^*= *arg\,max_ĻE_P^Ļ[U]Ļā = start_OPERATOR arg max end_OPERATORĻ blackboard_EPitalic_Ļ [ U ] implies Ļāā argā¢maxĻā”Pā²Ļā¢[U]superscriptsubscriptargmaxsuperscriptsubscriptsuperscriptā²delimited-[]Ļ^*ā *arg\,max_ĻE_P ^Ļ[U]Ļā ā start_OPERATOR arg max end_OPERATORĻ blackboard_EPā²italic_Ļ [ U ]. Assumption 2 implies the existence of domain shifts that change the optimal policy. 3 Causal models are necessary for robust adaptation We now present our results in their most general formāan equivalence between learning the underlying CBN and learning regret bounded policies for local domain shifts. Then in Section 3.2 we apply our theorems to three settings: adaptive agents, transfer learning, and causal inference, and show that robust agents must learn causal world models. First we focus on the idealised case where we assume optimality. We show for almost all decision tasks the underlying CBN can be reconstructed given optimal policies for a large set of domain shifts. Theorem 1. For almost all CIDs M=(G,P)M=(G,P)M = ( G , P ) satisfying Assumptions 1 and 2, we can identify the directed acyclic graph G and joint distribution P over all ancestors of the utility AncUsubscriptAncAnc_UAncU given ĻĻāā¢(dā£paD)ĻāĪ£subscriptsubscriptsuperscriptconditionalsubscriptpaĪ£\Ļ^*_Ļ(d _D)\_Ļā Ļāitalic_Ļ ( d ⣠paD ) Ļ ā Ī£ where ĻĻāā¢(dā£paD)subscriptsuperscriptconditionalsubscriptpaĻ^*_Ļ(d _D)Ļāitalic_Ļ ( d ⣠paD ) is an optimal policy in the domain Ļ and Ī£ Ī£ is the set of all mixtures of local interventions. Proof in Appendix C. The parameters Pā¢(viā£pai)conditionalsubscriptsubscriptpaP(v_i _i)P ( vitalic_i ⣠pai ), Uā¢(paU)subscriptpaU(pa_U)U ( paU ) of the underlying CBN define a parameter space and the condition for almost all CIDs means that the subset of the parameter space for which the Theorem 1 does not hold is Lebesgue measure zero (see Section A.2 for discussion). This condition is necessary because there exist finely-tuned environments for which the CBN cannot be identified given the agentās policy due to variables XāAncUsubscriptAncX _UX ā AncU that do not affect the expected utility. For example consider XāYāUāXā Yā UX ā Y ā U, Y=ā¢(0,x)0Y=N(0,x)Y = N ( 0 , x ) and U=D+YU=D+YU = D + Y, then changing X can only change the variance of U while leaving its expected value (and hence the optimal policy) constant. However, this only occurs for very specific choices of the parameters P and U. In Appendix B we give a simplified overview of the proof with a worked example. We assume access to an oracle for optimal policies ĻĻāsubscriptsuperscriptĻ^*_ĻĻāitalic_Ļ for any given local intervention on Citalic_C. Note, this assumes the agent is robust to distributional shifts on a causally sufficient set of variables Citalic_C, not that the set of variables the agent observes is causally sufficient. We devise an algorithm that queries this oracle with different mixtures of local interventions and identifies the mixtures for which the optimal policies changes. We then show that these critical mixtures identify the parameters of the CBN, specifying both the graph Gā¢(AncU)subscriptAncG(Anc_U)G ( AncU ) and the joint distribution Pā¢(AncU)subscriptAncP(Anc_U)P ( AncU ). 3.1 Relaxing the assumption of optimality We now relax the assumption of optimality, considering the case where the policies ĻĻsubscript _ĻĻitalic_Ļ satisfy a regret bound ĻĻā¢[U]ā„ĻĻāā¢[U]āĪ“superscriptsubscriptdelimited-[]superscriptsubscriptsuperscriptdelimited-[]E _Ļ[U] ^Ļ^*_Ļ[U]- _EĻitalic_Ļ [ U ] ā„ blackboard_EĻ start_POSTSUPERSCRIPT āĻ end_POSTSUPERSCRIPT [ U ] - Ī“. We show that for Ī“>00Ī“>0Ī“ > 0 we can recover an approximation of the environment CBN, with error that grows linearly in Ī“ for Ī“āŖĻāā¢[U]much-less-thansuperscriptsuperscriptdelimited-[]Ī“ ^Ļ^*[U]Ī“ āŖ blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ]. Theorem 2. For almost all CIDs M=(G,P)M=(G,P)M = ( G , P ) satisfying Assumptions 1 and 2, we can identify an approximate causal model Mā²=(Pā²,Gā²)superscriptā²superscriptā²M =(P ,G )Mā² = ( Pā² , Gā² ) given ĻĻā¢(dā£paD)ĻāĪ£subscriptsubscriptconditionalsubscriptpaĪ£\ _Ļ(d _D)\_Ļā Ļitalic_Ļ ( d ⣠paD ) Ļ ā Ī£ where ĻĻā¢[U]ā„ĻĻāā¢[U]āĪ“superscriptsubscriptdelimited-[]superscriptsubscriptsuperscriptdelimited-[]E _Ļ[U] ^Ļ^*_Ļ[U]- _EĻitalic_Ļ [ U ] ā„ blackboard_EĻ start_POSTSUPERSCRIPT āĻ end_POSTSUPERSCRIPT [ U ] - Ī“ and Ī£ Ī£ is the set of mixtures of local interventions. The parameters of Mā² satisfy |Pā²(viā£pai)āP(viā£pai)|ā¤Ī³(Ī“) |P (v_i _i)-P(v_i _i) |% ā¤Ī³(Ī“)| Pā² ( vitalic_i ⣠pai ) - P ( vitalic_i ⣠pai ) | ⤠γ ( Ī“ ) āfor-allā ViāsubscriptV_iā VVitalic_i ā italic_V where γā¢(0)=000γ(0)=0γ ( 0 ) = 0 and γā¢(Ī“)γ(Ī“)γ ( Ī“ ) grows linearly in Ī“ for small regret Ī“āŖĻāā¢[U]much-less-thansuperscriptsuperscriptdelimited-[]Ī“ ^Ļ^*[U]Ī“ āŖ blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ]. Proof in Appendix D. The worst-case error bounds γā¢(Ī“)γ(Ī“)γ ( Ī“ ) for the parameter errors are detailed in Appendix D. For Ī“>00Ī“>0Ī“ > 0 it may not be possible to identify G perfectly as some weak causal relations cannot be resolved due to these error bounds. We describe in Appendix D how we can learn a sub-graph Gā²āGsuperscriptā²G Gā² ā G that may exclude directed edges corresponding to weak causal relations. Theorem 2 shows that we can learn a (sparse) approximate causal models of the data generating process from regret bounded policies under domain shifts, where the approximation becoming exact as Ī“ā0ā0Ī“ā 0Ī“ ā 0. In Appendix F we demonstrate learning the underlying CBN from regret-bounded policies using simulated data for randomly generated CIDs similar to Figure 1, and explore how the accuracy of the approximate CBN scales with the regret bound (Figure 2). (a) Error rate for learned DAG v.s. regret bound (b) Mean error for Pā¢(x,y)P(x,y)P ( x , y ) v.s. regret bound Figure 2: Comparing the model-average error rates for a) the learned DAG Gā² and b) learned joint distribution Pā²ā¢(x,y)superscriptā²P (x,y)Pā² ( x , y ), v.s. the (normalised) regret bound Ī“/|[uā£D=1]ā[uā£D=0]|Ī“/ |E[u D=1]-E[u D=0] |Ī“ / | blackboard_E [ u ⣠D = 1 ] - blackboard_E [ u ⣠D = 0 ] |. Average error taken over 1000 randomly generated environments with binary decision D and two binary latent variables X,YX,YX , Y. Comparison to error rate for random guess (green) See Appendix F for details. Finally, we prove sufficiency, i.e. that having an (approximate) causal model of the data generating process is sufficient to identify regret-bounded policies. The result is well-known for the non-approximate case (Bareinboim & Pearl, 2016). Theorem 3. Given the CBN M=(P,G)M=(P,G)M = ( P , G ) that is causally sufficient we can identify optimal policies ĻĻāā¢(dā£paD)subscriptsuperscriptconditionalsubscriptpaĻ^*_Ļ(d _D)Ļāitalic_Ļ ( d ⣠paD ) for any given U where PaUāsubscriptPaPa_U CPaU ā italic_C and for all soft interventions Ļ. Given an approximate causal model Mā²=(Pā²,Gā²)superscriptā²superscriptā²M =(P ,G )Mā² = ( Pā² , Gā² ) for which |Pā²(viā£pai)āP(viā£pai)|ā¤ĻµāŖ1 |P (v_i _i)-P(v_i _i) |% ā¤Īµ 1| Pā² ( vitalic_i ⣠pai ) - P ( vitalic_i ⣠pai ) | ⤠ϵ āŖ 1, we can identify regret-bounded policies where the regret Ī“ grows linearly in ϵitalic-ϵεϵ. Proof in Appendix E. Together, Theorems 2 and 3 imply that learning an approximate causal model of the data generating process is necessary and sufficient for learning regret-bounded policies under local interventions. 3.2 Interpretation In this section we interpret Theorems 1, 2 and 3 through three lenses; agents, transfer learning and causal inference. First, we derive our result that any agent capable of adapting to local domain shifts must have learned a causal model of the data generating process. Agents are adaptive goal-directed systems, meaning they choose actions to achieve some desired outcome, and would change their behaviour if they knew the consequences of their actions had changed (Dennett, 1989), i.e. following a domain shift (Kenton et al., 2023). For example, a firm sets prices to maximise profit, and changes its pricing to adapt to changes in supply and demand. We define adaptation as the ability to competently pursue goals (minimize regret) in a distributionally shifted environment. Adaptation is achieved through a combination of generalisationāapplying knowledge learned during training to the shifted environmentāand through re-training in the shifted environment. We are interested in the zero-shot setting (Kirk et al., 2023), which describes powerful agents capable of adapting without re-training, i.e. using only knowledge of the environment and what change (shift) has occurred. Our aim is to determine precisely what knowledge of the environment is necessary to support this capability. Hence we focus on the simplified task of adapting to known distributional shifts, i.e. the agent conditions333Ļ is equivalent to an environment index for (in-context) invariant risk minimization (Gupta et al., 2023; Arjovsky et al., 2019), or the context variable for zero-shot reinforcement learning (Kirk et al., 2023) their policy on Ļ, ĻĻ=Ļā¢(dā£paD,Ļ)subscriptconditionalsubscriptpa _Ļ=Ļ(d _D,Ļ)Ļitalic_Ļ = Ļ ( d ⣠paD , Ļ ). Note this is strictly easier than adapting to unknown distributional shifts, and so any knowledge necessary for adapting to known distributional shifts is also necessary for adapting to unknown shifts444Any agent capable of returning a regret-bounded policy without input Ļ can do so given Ļ simply by discarding Ļ. Hence, we can trivially extend this agentās policy to include input Ļ and the policy will still satisfy the regret bound, allowing Theorem 2 to be applied. Likewise, if the agent does condition their policy but on an inferred Ļā²Ļ Ļā² (see Kirk et al. (2023) for a review of implementations), and this Ļā²Ļ Ļā²-conditional policy satisfies a regret bound, we can apply Theorem 2.. Corollary 1. Let Ļā¢(dā£paD,Ļ)conditionalsubscriptpaĻ(d _D,Ļ)Ļ ( d ⣠paD , Ļ ) be the policy of an agent that satisfies a regret bound Ļā¢(Ļ)ā¢[U]ā„Ļāā¢[U]āĪ“superscriptdelimited-[]superscriptsuperscriptdelimited-[]E^Ļ(Ļ)[U] ^Ļ^*[U]- _EĻ ( Ļ ) [ U ] ā„ blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ] - Ī“ for all local domain shifts Ļ, in an environment described by the CID M=(G,P)M=(G,P)M = ( G , P ) which satisfies Assumptions 1 and 2. By Theorems 2 and 3, Ļ is informationally equivalent to an approximation Mā² of M, with Mā²āMāsuperscriptā²M ā Mā² ā M smoothly as Ī“ā0ā0Ī“ā 0Ī“ ā 0. Corollary 1 follows immediately from Theorem 2 by replacing ĻĻā¢(dā£paD)=Ļā¢(dā£paD,Ļ)subscriptconditionalsubscriptpaconditionalsubscriptpa _Ļ(d _D)=Ļ(d _D,Ļ)Ļitalic_Ļ ( d ⣠paD ) = Ļ ( d ⣠paD , Ļ ). If ĻĻsubscript _ĻĻitalic_Ļ satisfies a tight regret bound for all local shifts Ļ, we can reconstruct the underlying CBN from the agentās policy alone (following the procedure in Appendix C). Therefore, any agent capable of generalising under known local domain shifts must have learned the underling CBN. Precisely, the agent has learned the policy Ļā¢(dā£paD,Ļ)conditionalsubscriptpaĻ(d _D,Ļ)Ļ ( d ⣠paD , Ļ ), which is informationally equivalent to a causal model of the environment, as any associative or causal query that can be identified using the true causal model of the environment can be identified using Ļā¢(dā£paD,Ļ)conditionalsubscriptpaĻ(d _D,Ļ)Ļ ( d ⣠paD , Ļ ). Example: Doctors are agents expected to make low regret decisions under a wide range of known distributional shifts, without re-training in the shifted environment. For example, consider the task of risk-stratifying patients based on their signs and medical history. The doctor may be transferred to a new ward where patients have received a treatment (known distributional shift) that has a stochastic effect on latent variables (mixed intervention) such as curing diseases and causing side effects. The doctor cannot re-train in this new domain, e.g. taking random decisions and observing outcomes. To be capable of this adaptivity, Theorem 2 implies the doctor must know a good approximation of the causal relations between the relevant latent variablesāhow the treatment affects diseases, how these diseases and their symptoms are causally related, and so on. Likewise, any medical AI that hopes to replicate this capability must have learned a similarly accurate causal model, and the better the agentās performance the more accurate its causal model must be. Transfer learning. In transfer learning (Zhuang et al., 2020), models are trained on a set of source domains and evaluated on held-out target domains where i) the data distribution differs from the source domains, and i) the data available for training is restricted compared to the source domains (Wang et al., 2022). For example, in unsupervised domain adaptation the learner is restricted to samples of the input features from the target domains paDā¼Pā¢(PaD;Ļ)similar-tosubscriptpasubscriptPapa_D P(Pa_D;Ļ)paD ā¼ P ( PaD ; Ļ ), whereas in domain generalisation typically no data from the target domain is available during training (Farahani et al., 2021). Let SsubscriptD_SDitalic_S denote the training data from the source domains and ĻsubscriptD_ĻDitalic_Ļ denote the training data available from a given target domain Ļ. Let there exist a transfer learning algorithm that returns a policy ĻĻsubscript _ĻĻitalic_Ļ satisfying a regret bound for a given target domain Ļ, provided this training data. As ĻĻsubscript _ĻĻitalic_Ļ is a function of the training data, then by Theorems 1 and 2 the existence of this algorithm implies that we can identify the underlying CBN from SāŖĻāĪ£subscriptsubscriptsubscriptĪ£D_SāŖ\D_Ļ\_Ļā Ditalic_S āŖ Ditalic_Ļ Ļ ā Ī£. To see that this imparts non-trivial constraints on the existence of the transfer learning algorithm, we can consider the following simple example. Example: Consider the CID for the supervised learning task depicted in Figure 1. Let S=(xi,yi)ā¼Pā¢(X,Y)i=1nsubscriptsuperscriptsubscriptsimilar-tosuperscriptsuperscript1D_S=\(x^i,y^i) P(X,Y)\_i=1^nDitalic_S = ( xitalic_i , yitalic_i ) ā¼ P ( X , Y ) i = 1n, so for sufficiently large n the agent can learn the Pā¢(X,Y)P(X,Y)P ( X , Y ) from SsubscriptD_SDitalic_S. However, YāXāYā XY ā X must also be identifiable from the training data SāŖĻāĪ£subscriptsubscriptsubscriptĪ£D_SāŖ\D_Ļ\_Ļā Ditalic_S āŖ Ditalic_Ļ Ļ ā Ī£. In other words, the transfer learning problem contains a hidden causal discovery problem. If Ļ=ā subscriptD_Ļ= _Ļ = ā then YāXāYā XY ā X must be identifiable from Pā¢(x,y)P(x,y)P ( x , y ) alone, which is impossible unless the causal data generating process obeys additional assumptions (see for example Hoyer et al., 2008). If unlabelled features from the target domain are included in the training data Ļ=xiā¼Pā¢(X;Ļ)i=1nĻsubscriptsuperscriptsubscriptsimilar-tosuperscript1subscriptD_Ļ=\x^i P(X;Ļ)\_i=1^n_ĻDitalic_Ļ = xitalic_i ā¼ P ( X ; Ļ ) i = 1nitalic_Ļ, YāXāYā XY ā X can in principle be identified as Pā¢(X;ĻY)ā Pā¢(X)subscriptP(X; _Y)ā P(X)P ( X ; Ļitalic_Y ) ā P ( X ). Causal inference. Theorem 1 can also be interpreted purely in terms of causal inference. We can compare to the causal hierarchy theorem (CHT) (Bareinboim et al., 2022), which states that an oracle for L1 queries (observational) is almost always insufficient to evaluate all L2 queries (interventional). Our Theorem 1 can be stated in an analogous way; an oracle for optimal policies under mixtures of local interventions ΠΣā:Ļā¦Ļāā¢(Ļ):subscriptsuperscriptΠΣmaps-tosuperscript ^*_ :Ļ Ļ^*(Ļ)Ī āroman_Ī£ : Ļ ā¦ Ļā ( Ļ ), can evaluate all L2 queries, which follows from the fact that the oracle identifies the underlying CBN which in turn identifies all L2 queries. Note ΠΣāsubscriptsuperscriptΠΣ ^*_ Ī āroman_Ī£ is a strict subset of L2, and we describe a subset of L2 as being L2-complete if evaluating these queries is sufficient to evaluate all L2 queries. Hence Theorem 1 can be summarised as ΠΣāsubscriptsuperscriptΠΣ ^*_ Ī āroman_Ī£ is L2-complete. It would be interesting in future work to determine what other strict subsets of L2 are L2-complete, as identifying these queries is sufficient to identify all interventional queries. Why is this surprising? Firstly, we may expect the optimal policies to encode a relatively small number of causal relations, as they can be computed from ā¢[uā£d,paD;Ļ]delimited-[]conditionalsubscriptpaE[u d,pa_D;Ļ]blackboard_E [ u ⣠d , paD ; Ļ ], which describes the response of a single variable U to intervention Ļ. However, Theorem 1 shows that the optimal policies encode all causal and associative relations in AncUsubscriptAncAnc_UAncU, including causal relations between latent variables, for example Pā¢(x)subscriptP( Y_x)P ( italic_Yitalic_x ) for any ,āAncUsubscriptAnc X, Y _Uitalic_X , italic_Y ā AncU. Secondly, Theorems 2 and 3 combined imply that learning to generalise under domain shifts is equivalent to learning a causal model of the data generating processāproblems that on the surface are conceptually distinct. Figure 3: The left figure situates Theorem 1 in Pearlās causal hierarchy (Bareinboim et al., 2022). L2 contains all interventional queries. L2 includes the sets of optimal policy queries under domain shifts Cāsubscriptsuperscript ^*_CĪ āitalic_C and task shifts Uāsubscriptsuperscript ^*_UĪ āitalic_U, as optimal policies can always be found from a finite number of interventional queries. Theorem 1 surprisingly shows that Cāsubscriptsuperscript ^*_CĪ āitalic_C contains L2, and therefore Cā=L2subscriptsuperscriptL2 ^*_C=L2Ī āitalic_C = L2 (right). That is, learning optimal policies under all shifts for a single utility U is sufficient to identify L2. This also implies that UāāCāsubscriptsuperscriptsubscriptsuperscript ^*_U ^*_CĪ āitalic_U ā Ī āitalic_C, which implies that learning optimal policies for domain shifts is sufficient to identify optimal policies for task shifts. 4 Discussion Here we discuss the consequences for several fields and open questions, as well as limitations. Causal representation learning. Causal representation learning (CRL) aims to learn representations of data that capture unknown causal structure (Schƶlkopf et al., 2021), with the aim of exploiting causal invariances to achieve better generalisation across domains. Theorems 1 and 2 show that any method that enables generalisation across many domains necessarily involves learning an (approximate) causal model of the data generating processāi.e. a causal representation. Hence, our results provide theoretical justification for CRL by showing it is necessary for strong robustness guarantees. Causal bounds on transfer learning. As described in Section 3.2, Theorems 1 and 2 imply fundamental causal constraints on certain transfer learning tasks. For example in the supervised learning task depicted in Figure 1, identifying regret-bounded policies under covariate and label shifts requires learning the causal relations between features and labels. Causal discovery problems such as this are well understood in many settings (Vowels et al., 2022), and in general identifying this causal structure (e.g. that YāXāYā XY ā X in Figure 4 a)) is impossible without interventional data and/or additional assumptions. This connection allows us to convert (im)possibility results for causal discovery to (im)possibility results for transfer learning. Future work could explore this for smaller sets of distributional shifts and derive more general causal bounds on transfer learning. Good regulator theorem. The good regulator theorem is often interpreted as saying that any good controller of a system must have a model of that system (Conant & Ross Ashby, 1970). However, some imagination is needed to take this lesson from the actual theorem, which technically only states that there exists an optimal regulator that is a deterministic function of the state of the system (which could be trivial, Wentworth (2021)). Our theorem less ambiguously states that any robust agent must have learned an (approximate) causal model of the environment, as described in Section 3.2. It can therefore be interpreted as a more precise, causal good regulator theorem. Emergent capabilities. Causal models enable a kind of general competencyāan agent can use a causal model of its environment to optimise for any given objective function Uā¢(PaUā)subscriptPaU(Pa_U V)U ( PaU ā italic_V ) without additional data (Theorem 3). This could explain how general competence can arise from narrow training objectives (Brown et al., 2020; Silver et al., 2021). By Theorems 1 and 2, agents trained to maximise reward across many environments are incentivized to learn a causal world model (as they cannot generalise without one), which can in turn be used to solve any other decision task in the same environment (Theorem 3). This incentive does not imply that training an agent with a simple reward signal is sufficient to learn causal world models. E.g. it will still be impossible for an agent to learn a causal model (and therefore to generalise) if the model is not identifiable from its training data. The question is then if current methods and training schemes are sufficient for learning causal world models. Early results suggest that transformer models can learn world models capable of out-of-distribution prediction (Li et al., 2022, see Section 6 for discussion). While foundation models are capable of achieving state of the art accuracy on causal reasoning benchmarks (Kıcıman et al., 2023), how they achieve this (and if it constitutes bona fide causal reasoning) is debated (ZeÄeviÄ et al., 2023). Causal discovery. Theorems 1 and 2 involve learning the causal structure of the environment by observing the agentās policy under interventions. It is perhaps surprising that the response of this single variable to interventions is sufficient to identify all associative and causal relations in AncUsubscriptAncAnc_UAncU. Typically, causal discovery algorithms involve measuring the response of many variables to interventions (Vowels et al., 2022). Also, many causal discovery algorithms assume independent causal mechanisms (Schƶlkopf et al., 2021), which is equivalent to assuming no agents are present in the data generating process (Kenton et al., 2023). However, our results suggest that agents could be powerful resources for causal discovery. In Appendix B we use the proof of Theorem 2 to derive a causal discovery algorithm for learning causal structure over latents, and test it on synthetic data. No competence without understanding. Causal models are fundamental to how humans understand and explain the world (Gopnik et al., 2007; Pearl & Mackenzie, 2018). Increasingly, deep learning models are used to predict and control complex systems we do not yet fully understand, such as inertially confined plasmas (Degrave et al., 2022) and biomoloecular systems (Abramson et al., 2024). These models arguably offer a shortcut to competence without understandingāsolving problems without needing to develop richer models of the underlying systems, or understand how and why the solutions work. For example, AlphaFold accurately predicts protein folding but was found not to improve understanding of the underlying biochemical processes (Outeiral et al., 2022). It has been argued that a reliance on black-box models could greatly widen the gap between capabilities and understanding (Pasquale, 2015). However, our result points to a potential solution. If a controller is sufficiently capable and robust, we can always extract an interpretable causal model of the system it is controlling. There is no robust control without āunderstandingā, in the sense of learning a causal model of the underlying system. Future work could explore extending our results to develop efficient algorithms for eliciting causal models from robust agents. Applicability of causal methods. Causal models have been used to formally define concepts such as intent (Halpern & Kleiman-Weiner, 2018; Ward et al., 2024), harm (Richens et al., 2022), deception (Ward et al., 2023b), manipulation (Ward et al., 2023a) and incentives (Everitt et al., 2021), and are required for approaches to explainability (Wachter et al., 2017) and fairness (Kusner et al., 2017). Methods for designing safe and ethical AI systems that build on these definitions require causal models of the data generating process, which are typically hard to learn, leading some to doubt their practicality (Fawkes et al., 2022; Rahmattalabi & Xiang, 2022). However, our results show that sufficiently capable agents must have learned a causal world model capable of supporting these methods, and demonstrate that these world models can be elicited from the agent. Limitations. Theorems 1 and 2 require agents to be robust to a large set of domain shifts (local interventions on all environment variables). Theorem 2 shows that loosening regret bounds results in some causal relations being unidentifiable from the agentās policy. Hence, we expect it is still possible to learn some casual knowledge of the environment from agents that are robust to a smaller set of domain shifts, albeit less complete that the full underlying CBN. Finally, our results only apply to unmediated decision tasks (Assumption 1). We expect Theorems 1 and 2 can be extended to active decision tasks, as Assumption 1 does not play a major role beyond simplifying the proofs. 5 Related work Several recent empirical works have explored if deep learning models learn āsurface statisticsā (e.g. correlations between inputs and outputs) or learn internal representations of the world (McGrath et al., 2022; Abdou et al., 2021; Li et al., 2022; Gurnee & Tegmark, 2023). Our results offer some theoretical clarity to this discussion, tying an agents performance to the fidelity its world model, and showing that going beyond āsurface statisticsā to learning causal relations is fundamentally necessary for robustness. One study in particular (Li et al., 2022) found that a GPT model trained to predict legal next moves in the board game Othello learned a linear representation of the board state (Nanda, 2023). Further, this internal representation of the board state could be changed by intervening on the intermediate activations, with the model updating its predictions consistent with the intervention, including interventions that take the board state outside of the training distribution. This indicates that the network is learning and utilising a representation of the data generating process that can support out-of-distribution generalisation under interventionsāmuch like a causal model. The problem of evaluating policies under distributional shifts has been studied extensively in causal transportability (CT) theory (Bareinboim & Pearl, 2016; Bellot & Bareinboim, 2022). CT aims to provide necessary and sufficient conditions for policy evaluation under known domain shifts when all assumptions on the data generating process (i.e. inductive biases) can be expressed as constraints on causal structure (Bareinboim & Pearl, 2016). However, deep learning algorithms can exploit a much larger set of inductive biases (Neyshabur et al., 2014; Battaglia et al., 2018; Rahaman et al., 2019; Goyal & Bengio, 2022) which in many real-world tasks may be sufficient to identify low regret policies without requiring causal knowledge. Thus, CT does not imply that agents must learn causal models in order to generalise unless we assume agents only use causal assumptions to begin with, which would be proof by assumption. See Appendix G for further discussion. A similar result to Theorems 1 and 2 is the causal hierarchy theorem (CHT) (Bareinboim et al., 2022; Ibeling & Icard, 2021), which shows that observational data is almost always insufficient for identifying all causal relations between environment variables, whereas our results state that the set of optimal policies is almost always sufficient to identify all causal relations. In Section 3.2 we discuss the similarities between these theorems, and in Appendix G we discuss their differences. 6 Conclusion Causal reasoning is foundational to human intelligence, and has been conjectured to be necessary for achieving human level AI (Pearl, 2019). In recent years, this conjecture has been challenged by the development of artificial agents capable of generalising to new tasks and domains without explicitly learning or reasoning on causal models. And while the necessity of causal models for solving causal inference tasks has been established (Bareinboim et al., 2022), their role in decision tasks such as classification and reinforcement learning is less clear. We have resolved this conjecture in a model-independent way, showing that any agent capable of robustly solving a decision task must have learned a causal model of the data generating process, regardless of how the agent is trained or the details of its architecture. This hints at an even deeper connection between causality and general intelligence, as this causal model can be used to find policies that optimise any given objective function over the environment variables. By establishing a formal connection between causality and generalisation, our results show that causal world models are a necessary ingredient for robust and general AI. Acknowledgements. We would like to thank Alexis Bellot, Damiano Fornasiere, Pietro Greiner, James Fox, Matt MacDermott, David Reber, David Watson and Philip Bachman for their helpful discussions and comments on the manuscript. References Abdou et al. (2021) Mostafa Abdou, Artur Kulmizev, Daniel Hershcovich, Stella Frank, Ellie Pavlick, and Anders SĆøgaard. Can language models encode perceptual structure without grounding? a case study in color. arXiv preprint arXiv:2109.06129, 2021. Abramson et al. (2024) Josh Abramson, Jonas Adler, Jack Dunger, Richard Evans, Tim Green, Alexander Pritzel, Olaf Ronneberger, Lindsay Willmore, Andrew J Ballard, Joshua Bambrick, et al. Accurate structure prediction of biomolecular interactions with alphafold 3. Nature, p. 1ā3, 2024. Arjovsky et al. (2019) Martin Arjovsky, LĆ©on Bottou, Ishaan Gulrajani, and David Lopez-Paz. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019. Bareinboim & Pearl (2012a) Elias Bareinboim and Judea Pearl. Controlling selection bias in causal inference. In Artificial Intelligence and Statistics, p. 100ā108. PMLR, 2012a. Bareinboim & Pearl (2012b) Elias Bareinboim and Judea Pearl. Transportability of causal effects: Completeness results. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 26, p. 698ā704, 2012b. Bareinboim & Pearl (2016) Elias Bareinboim and Judea Pearl. Causal inference and the data-fusion problem. Proceedings of the National Academy of Sciences, 113(27):7345ā7352, 2016. Bareinboim et al. (2022) Elias Bareinboim, Juan D Correa, Duligur Ibeling, and Thomas Icard. On pearlās hierarchy and the foundations of causal inference. In Probabilistic and Causal Inference: The Works of Judea Pearl, p. 507ā556. 2022. Battaglia et al. (2018) Peter W Battaglia, Jessica B Hamrick, Victor Bapst, Alvaro Sanchez-Gonzalez, Vinicius Zambaldi, Mateusz Malinowski, Andrea Tacchetti, David Raposo, Adam Santoro, Ryan Faulkner, et al. Relational inductive biases, deep learning, and graph networks. arXiv preprint arXiv:1806.01261, 2018. Bellot & Bareinboim (2022) Alexis Bellot and Elias Bareinboim. Partial transportability for domain generalization. 2022. Brown et al. (2020) Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877ā1901, 2020. Castro et al. (2020) Daniel C Castro, Ian Walker, and Ben Glocker. Causality matters in medical imaging. Nature Communications, 11(1):3673, 2020. Cohen & Welling (2016) Taco Cohen and Max Welling. Group equivariant convolutional networks. In International conference on machine learning, p. 2990ā2999. PMLR, 2016. Conant & Ross Ashby (1970) Roger C Conant and W Ross Ashby. Every good regulator of a system must be a model of that system. International journal of systems science, 1(2):89ā97, 1970. Correa & Bareinboim (2020) Juan Correa and Elias Bareinboim. A calculus for stochastic interventions: Causal effect identification and surrogate experiments. In Proceedings of the AAAI conference on artificial intelligence, volume 34, p. 10093ā10100, 2020. Dawid (2002) A P Dawid. Influence diagrams for causal modelling and inference. International Statistical Review / Revue Internationale de Statistique, 70:161ā189, 2002. Degrave et al. (2022) Jonas Degrave, Federico Felici, Jonas Buchli, Michael Neunert, Brendan Tracey, Francesco Carpanese, Timo Ewalds, Roland Hafner, Abbas Abdolmaleki, Diego de Las Casas, et al. Magnetic control of tokamak plasmas through deep reinforcement learning. Nature, 602(7897):414ā419, 2022. Dennett (1989) Daniel C Dennett. The intentional stance. MIT press, 1989. Engstrom et al. (2019) Logan Engstrom, Brandon Tran, Dimitris Tsipras, Ludwig Schmidt, and Aleksander Madry. Exploring the landscape of spatial robustness. In International conference on machine learning, p. 1802ā1811. PMLR, 2019. Everitt et al. (2021) Tom Everitt, Ryan Carey, Eric D Langlois, Pedro A Ortega, and Shane Legg. Agent incentives: A causal perspective. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, p. 11487ā11495, 2021. Farahani et al. (2021) Abolfazl Farahani, Sahar Voghoei, Khaled Rasheed, and Hamid R Arabnia. A brief review of domain adaptation. Advances in Data Science and Information Engineering: Proceedings from ICDATA 2020 and IKE 2020, p. 877ā894, 2021. Fawkes et al. (2022) Jake Fawkes, Robin Evans, and Dino Sejdinovic. Selection, ignorability and challenges with causal fairness. In Conference on Causal Learning and Reasoning, p. 275ā289. PMLR, 2022. Gopnik et al. (2007) Alison Gopnik, Laura Schulz, and Laura Elizabeth Schulz. Causal learning: Psychology, philosophy, and computation. Oxford University Press, 2007. Goyal & Bengio (2022) Anirudh Goyal and Yoshua Bengio. Inductive biases for deep learning of higher-level cognition. Proceedings of the Royal Society A, 478(2266):20210068, 2022. Gupta et al. (2023) Sharut Gupta, Stefanie Jegelka, David Lopez-Paz, and Kartik Ahuja. Context is environment, 2023. Gurnee & Tegmark (2023) Wes Gurnee and Max Tegmark. Language models represent space and time. arXiv preprint arXiv:2310.02207, 2023. Halpern & Kleiman-Weiner (2018) Joseph Halpern and Max Kleiman-Weiner. Towards formal definitions of blameworthiness, intention, and moral responsibility. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 32, 2018. Hendrycks & Dietterich (2019) Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. arXiv preprint arXiv:1903.12261, 2019. Howard & Matheson (2005) Ronald A Howard and James E Matheson. Influence diagrams. Decision Analysis, 2(3):127ā143, 2005. Hoyer et al. (2008) Patrik Hoyer, Dominik Janzing, Joris M Mooij, Jonas Peters, and Bernhard Schƶlkopf. Nonlinear causal discovery with additive noise models. Advances in neural information processing systems, 21, 2008. Ibeling & Icard (2021) Duligur Ibeling and Thomas Icard. A topological perspective on causal inference. Advances in Neural Information Processing Systems, 34:5608ā5619, 2021. Kenton et al. (2023) Zachary Kenton, Ramana Kumar, Sebastian Farquhar, Jonathan Richens, Matt MacDermott, and Tom Everitt. Discovering agents. Artificial Intelligence, p. 103963, 2023. Kıcıman et al. (2023) Emre Kıcıman, Robert Ness, Amit Sharma, and Chenhao Tan. Causal reasoning and large language models: Opening a new frontier for causality. arXiv preprint arXiv:2305.00050, 2023. Kirk et al. (2023) Robert Kirk, Amy Zhang, Edward Grefenstette, and Tim RocktƤschel. A survey of zero-shot generalisation in deep reinforcement learning. Journal of Artificial Intelligence Research, 76:201ā264, 2023. Kusner et al. (2017) Matt J Kusner, Joshua Loftus, Chris Russell, and Ricardo Silva. Counterfactual fairness. Advances in neural information processing systems, 30, 2017. Legg & Hutter (2007) Shane Legg and Marcus Hutter. Universal intelligence: A definition of machine intelligence. Minds and machines, 17:391ā444, 2007. Li et al. (2022) Kenneth Li, Aspen K Hopkins, David Bau, Fernanda ViĆ©gas, Hanspeter Pfister, and Martin Wattenberg. Emergent world representations: Exploring a sequence model trained on a synthetic task. arXiv preprint arXiv:2210.13382, 2022. McGrath et al. (2022) Thomas McGrath, Andrei Kapishnikov, Nenad TomaÅ”ev, Adam Pearce, Martin Wattenberg, Demis Hassabis, Been Kim, Ulrich Paquet, and Vladimir Kramnik. Acquisition of chess knowledge in AlphaZero. Proceedings of the National Academy of Sciences, 119(47):e2206625119, 2022. Meek (2013) Christopher Meek. Strong completeness and faithfulness in bayesian networks. arXiv preprint arXiv:1302.4973, 2013. Meinshausen (2018) Nicolai Meinshausen. Causality from a distributional robustness point of view. In 2018 IEEE Data Science Workshop (DSW), p. 6ā10. IEEE, 2018. Mitrovic et al. (2018) Jovana Mitrovic, Dino Sejdinovic, and Yee Whye Teh. Causal inference via kernel deviance measures. Advances in neural information processing systems, 31, 2018. Mooij et al. (2016) Joris M Mooij, Jonas Peters, Dominik Janzing, Jakob Zscheischler, and Bernhard Schƶlkopf. Distinguishing cause from effect using observational data: methods and benchmarks. The Journal of Machine Learning Research, 17(1):1103ā1204, 2016. Nanda (2023) Neel Nanda. Actually, othello-gpt has a linear emergent world model, Mar 2023. URL <https://neelnanda.io/mechanistic-interpretability/othello>. Neyshabur et al. (2014) Behnam Neyshabur, Ryota Tomioka, and Nathan Srebro. In search of the real inductive bias: On the role of implicit regularization in deep learning. arXiv preprint arXiv:1412.6614, 2014. Okamoto (1973) Masashi Okamoto. Distinctness of the eigenvalues of a quadratic form in a multivariate sample. The Annals of Statistics, p. 763ā765, 1973. Outeiral et al. (2022) Carlos Outeiral, Daniel A Nissley, and Charlotte M Deane. Current structure predictors are not learning the physics of protein folding. Bioinformatics, 38(7):1881ā1887, 2022. Pasquale (2015) Frank Pasquale. The black box society: The secret algorithms that control money and information. Harvard University Press, 2015. Pearl (2009) Judea Pearl. Causality: Models, Reasoning, and Inference. Cambridge University Press, 2 edition edition, 2009. ISBN 9780521895606. Pearl (2018) Judea Pearl. Theoretical impediments to machine learning with seven sparks from the causal revolution. arXiv preprint arXiv:1801.04016, 2018. Pearl (2019) Judea Pearl. The seven tools of causal inference, with reflections on machine learning. Communications of the ACM, 62(3):54ā60, 2019. Pearl & Bareinboim (2011) Judea Pearl and Elias Bareinboim. Transportability of causal and statistical relations: A formal approach. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 25, p. 247ā254, 2011. Pearl & Mackenzie (2018) Judea Pearl and Dana Mackenzie. The book of why: the new science of cause and effect. Basic books, 2018. Peng et al. (2018) Xue Bin Peng, Marcin Andrychowicz, Wojciech Zaremba, and Pieter Abbeel. Sim-to-real transfer of robotic control with dynamics randomization. In 2018 IEEE international conference on robotics and automation (ICRA), p. 3803ā3810. IEEE, 2018. Rahaman et al. (2019) Nasim Rahaman, Aristide Baratin, Devansh Arpit, Felix Draxler, Min Lin, Fred Hamprecht, Yoshua Bengio, and Aaron Courville. On the spectral bias of neural networks. In International Conference on Machine Learning, p. 5301ā5310. PMLR, 2019. Rahmattalabi & Xiang (2022) Aida Rahmattalabi and Alice Xiang. Promises and challenges of causality for ethical machine learning. arXiv preprint arXiv:2201.10683, 2022. Reed et al. (2022) Scott Reed, Konrad Zolna, Emilio Parisotto, Sergio Gomez Colmenarejo, Alexander Novikov, Gabriel Barth-Maron, Mai Gimenez, Yury Sulsky, Jackie Kay, Jost Tobias Springenberg, et al. A generalist agent. arXiv preprint arXiv:2205.06175, 2022. Reichenbach (1956) Hans Reichenbach. The direction of time, volume 65. Univ of California Press, 1956. Richens et al. (2022) Jonathan Richens, Rory Beard, and Daniel H Thompson. Counterfactual harm. Advances in Neural Information Processing Systems, 35:36350ā36365, 2022. Rubin (2005) Donald B Rubin. Causal inference using potential outcomes: Design, modeling, decisions. Journal of the American Statistical Association, 100(469):322ā331, 2005. Schƶlkopf et al. (2012) Bernhard Schƶlkopf, Dominik Janzing, Jonas Peters, Eleni Sgouritsa, Kun Zhang, and Joris Mooij. On causal and anticausal learning. arXiv preprint arXiv:1206.6471, 2012. Schƶlkopf et al. (2021) Bernhard Schƶlkopf, Francesco Locatello, Stefan Bauer, Nan Rosemary Ke, Nal Kalchbrenner, Anirudh Goyal, and Yoshua Bengio. Toward causal representation learning. Proceedings of the IEEE, 109(5):612ā634, 2021. Shah et al. (2022) Rohin Shah, Vikrant Varma, Ramana Kumar, Mary Phuong, Victoria Krakovna, Jonathan Uesato, and Zac Kenton. Goal misgeneralization: Why correct specifications arenāt enough for correct goals. arXiv preprint arXiv:2210.01790, 2022. Shen et al. (2018) Zheyan Shen, Peng Cui, Kun Kuang, Bo Li, and Peixuan Chen. Causally regularized learning with agnostic data selection bias. In Proceedings of the 26th ACM international conference on Multimedia, p. 411ā419, 2018. Silver et al. (2021) David Silver, Satinder Singh, Doina Precup, and Richard S Sutton. Reward is enough. Artificial Intelligence, 299:103535, 2021. Sloman & Lagnado (2015) Steven A Sloman and David Lagnado. Causality in thought. Annual review of psychology, 66:223ā247, 2015. Spirtes et al. (2000) Peter Spirtes, Clark N Glymour, Richard Scheines, and David Heckerman. Causation, prediction, and search. MIT press, 2000. Team et al. (2023) Gemini Team, Rohan Anil, Sebastian Borgeaud, Yonghui Wu, Jean-Baptiste Alayrac, Jiahui Yu, Radu Soricut, Johan Schalkwyk, Andrew M Dai, Anja Hauth, et al. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805, 2023. Vowels et al. (2022) Matthew J Vowels, Necati Cihan Camgoz, and Richard Bowden. Dāya like dags? a survey on structure learning and causal discovery. ACM Computing Surveys, 55(4):1ā36, 2022. Wachter et al. (2017) Sandra Wachter, Brent Mittelstadt, and Chris Russell. Counterfactual explanations without opening the black box: Automated decisions and the GDPR. Harv. JL & Tech., 31:841, 2017. Wang et al. (2022) Jindong Wang, Cuiling Lan, Chang Liu, Yidong Ouyang, Tao Qin, Wang Lu, Yiqiang Chen, Wenjun Zeng, and Philip Yu. Generalizing to unseen domains: A survey on domain generalization. IEEE Transactions on Knowledge and Data Engineering, 2022. Ward et al. (2023a) Francis Rhys Ward, Tom Everitt, Francesco Belardinelli, and Francesca Toni. Honesty is the best policy: defining and mitigating AI deception. In Thirty-seventh Conference on Neural Information Processing Systems, 2023a. Ward et al. (2023b) Francis Rhys Ward, Francesca Toni, and Francesco Belardinelli. Defining deception in structural causal games. In Proceedings of the 2023 International Conference on Autonomous Agents and Multiagent Systems, p. 2902ā2904, 2023b. Ward et al. (2024) Francis Rhys Ward, Matt MacDermott, Francesco Belardinelli, Francesca Toni, and Tom Everitt. The reasons that agents act: Intention and instrumental goals. arXiv preprint arXiv:2402.07221, 2024. Wentworth (2021) John Wentworth. Fixing the good regulator theorem. https://w.alignmentforum.org/posts/Dx9LoqsEh3gHNJMDk/fixing-the-good-regulator-theorem, 2021. Accessed: 2023-10-17. Wilson & Cook (2020) Garrett Wilson and Diane J Cook. A survey of unsupervised deep domain adaptation. ACM Transactions on Intelligent Systems and Technology (TIST), 11(5):1ā46, 2020. Xian et al. (2018) Yongqin Xian, Christoph H Lampert, Bernt Schiele, and Zeynep Akata. Zero-shot learningāa comprehensive evaluation of the good, the bad and the ugly. IEEE transactions on pattern analysis and machine intelligence, 41(9):2251ā2265, 2018. ZeÄeviÄ et al. (2023) Matej ZeÄeviÄ, Moritz Willig, Devendra Singh Dhami, and Kristian Kersting. Causal parrots: Large language models may talk causality but are not causal. arXiv preprint arXiv:2308.13067, 2023. Zhuang et al. (2020) Fuzhen Zhuang, Zhiyuan Qi, Keyu Duan, Dongbo Xi, Yongchun Zhu, Hengshu Zhu, Hui Xiong, and Qing He. A comprehensive survey on transfer learning. Proceedings of the IEEE, 109(1):43ā76, 2020. Appendix A Preliminaries A.1 Setup and assumptions The environment is described by a set of random variables =C1,C2,ā¦,CNsubscript1subscript2ā¦subscript C=\C_1,C_2,ā¦,C_N\italic_C = C1 , C2 , ⦠, Citalic_N , which in combination with the decision D and utility nodes U define the state space for the CID =āŖD,U V= CāŖ\D,U\italic_V = italic_C āŖ D , U . In out notation individual variables CiāsubscriptC_iā CCitalic_i ā italic_C are given indexes, whereas set of variables are indexless and bold, and we use = V= vitalic_V = italic_v as short hand for the joint state of the variables in a set Citalic_C. The joint probability distribution Pā¢(=,D=d,U=u)formulae-sequenceformulae-sequenceP( C= c,D=d,U=u)P ( italic_C = italic_c , D = d , U = u ) describes the statistical relations between environment variables. Bayesian networks factorise joint probability distributions according to a graph G (Pearl, 2009). See 1 The distributions and statistical relationships between variables may change as a result of external interventions applied to a system. Hard interventions set a subset ā²āsuperscriptā² C Citalic_Cā² ā italic_C of the variables to particular values ā²superscriptā² c italic_cā², denoted doā¢(ā²=ā²)dosuperscriptā² do( C = c )do ( italic_Cā² = italic_cā² ) or doā¢(ā²)dosuperscriptā² do( c )do ( italic_cā² ). Naively, one joint probability distribution Pdoā¢(ā²)subscriptdosuperscriptā²P_ do( c )Pdo ( italic_cā² ) would be needed to describe the updated relationship under each possible intervention doā¢(ā²)dosuperscriptā² do( c )do ( italic_cā² ). Fortunately, all interventional distributions can be derived from a single Bayesian network, if G matches the causal structure of the environment (i.e. has an edge ViāVjāsubscriptsubscriptV_iā V_jVitalic_i ā Vitalic_j whenever an intervention on VisubscriptV_iVitalic_i directly influences the value of another variable Y, and lacks unmodeled confounders; Spirtes et al., 2000; Pearl, 2009). When this holds, we call the Bayesian network causal and G a causal graph. With respect to the causal graph G we denote the direct causes (parents) of VisubscriptV_iVitalic_i as PaisubscriptPaPa_iPai, the set of all causes (ancestors) AncisubscriptAncAnc_iAnci, and the variables that VisubscriptV_iVitalic_i directly causes (children) ChisubscriptChCh_iChi and descendants DescisubscriptDescDesc_iDesci as the set of all downstream variables. Note in particular that AncisubscriptAncAnc_iAnci and DescisubscriptDescDesc_iDesci refer to proper ancestors and descendants, i.e. ViāAncisubscriptsubscriptAncV_i _iVitalic_i ā Anci and ViāDescisubscriptsubscriptDescV_i _iVitalic_i ā Desci. We denote a causal Bayesian network (CBN) as M=(P,G)M=(P,G)M = ( P , G ) where P is the joint and G is the directed acyclic graph (DAG) describing the causal structure of the environment. Further, the interventional distribution Pdoā¢(vā²)subscriptdosuperscriptā²P_ do(v )Pdo ( vā² ) is given by the truncated factorisation Pdoā¢(vā²)ā¢()=āi:viāā²Pā¢(viā£pavi)if consistent with ā²0otherwise.subscriptdosuperscriptā²casessubscriptproduct:subscriptsuperscriptā²conditionalsubscriptsubscriptpasubscriptif consistent with ā²0otherwise.P_ do(v )( v)= cases _i:v_i ā v^% P(v_i _v_i)&if $ v$ consistent with $ % v $\\ 0&otherwise. casesPdo ( vā² ) ( italic_v ) = start_ROW start_CELL āi : v start_POSTSUBSCRIPT i ā italic_vā² end_POSTSUBSCRIPT P ( vitalic_i ⣠pav start_POSTSUBSCRIPT i end_POSTSUBSCRIPT ) end_CELL start_CELL if italic_v consistent with italic_vā² end_CELL end_ROW start_ROW start_CELL 0 end_CELL start_CELL otherwise. end_CELL end_ROW Equivalently, the effect of interventions can be computed by adding an extra node X^ Xover start_ARG X end_ARG and edge V^iāViāsubscript^subscript V_iā V_iover start_ARG V end_ARGi ā Vitalic_i for each node ViāVsubscriptV_iā VVitalic_i ā V (Correa & Bareinboim, 2020; Dawid, 2002). Intervening on VisubscriptV_iVitalic_i then corresponds to conditioning on V^isubscript V_iover start_ARG V end_ARGi in the extended graph. More general, soft interventions Ļ=Pā²ā¢(Viā£Paiā)superscriptā²conditionalsubscriptsubscriptsuperscriptPaĻ=P (V_i ^*_i)Ļ = Pā² ( Vitalic_i ⣠Paāi ) replace the conditional probability distribution for VisubscriptV_iVitalic_i with a new one, possibly using a new parent set PaoāsubscriptsuperscriptPaPa^*_oPaāo as long as no cycles are introduced in the graph (Correa & Bareinboim, 2020). The modified environment is denoted Mā¢(Ļ)M(Ļ)M ( Ļ ). General soft interventions cannot be defined without prior knowledge of the causal graph G. For example, the soft intervention ĻY=Pā²ā¢(yā£x)subscriptsuperscriptā²conditional _Y=P (y x)Ļitalic_Y = Pā² ( y ⣠x ) is incompatible with the causal structure YāXāYā XY ā X as it would introduce a causal cycle, and so an agentās policy may not be well defined with respect to this intervention. We therefore focus our theoretical analysis on a subset of the soft interventions, local interventions, that can be implemented without assuming knowledge of G. See 2 Example: Fixing the value of a variable (hard intervention) is a local intervention as doā¢(Vi=viā²)=doā¢(Vi=fā¢(vi))dosubscriptsubscriptsuperscriptā²dosubscriptsubscript do(V_i=v _i)= do(V_i=f(v_i))do ( Vitalic_i = vā²italic_i ) = do ( Vitalic_i = f ( vitalic_i ) ) where fā¢(vi)=viā²subscriptsubscriptsuperscriptā²f(v_i)=v _if ( vitalic_i ) = vā²italic_i. Example: Translations are local interventions as doā¢(Vi=vi+k)=doā¢(Vi=fā¢(vi))dosubscriptsubscriptdosubscriptsubscript do(V_i=v_i+k)= do(V_i=f(v_i))do ( Vitalic_i = vitalic_i + k ) = do ( Vitalic_i = f ( vitalic_i ) ) where fā¢(vi)=vi+ksubscriptsubscriptf(v_i)=v_i+kf ( vitalic_i ) = vitalic_i + k. This includes changing the position of objects in RL environments (Shah et al., 2022). Example: Logical NOT operation Xā¬XāXā X ā ¬ X for Boolean X We also consider mixtures of interventions, which can also be described without knowledge of G. See 3 Example: Adding Gaussian noise is a mixture over local operations (translations) Ļϵ=doā¢(X=X+ϵ)subscriptitalic-ϵdoitalic-ϵ _ε= do(X=X+ε)Ļitalic_ϵ = do ( X = X + ϵ ) where ϵā¼ā¢(0,1)similar-toitalic-ϵ01ε (0,1)ϵ ā¼ N ( 0 , 1 ). In common to most decision making tasks such as prediction, classification, and reinforcement learning, is that a decision should be outputted based on some information to optimise some objective. The exact terms vary: decisions are sometimes called outputs, actions, predictions, or classifications; information is sometimes called features, context, or state; and objectives are sometimes called utility functions or loss functions. However, all of these setups can be described within the causal influence diagram (CID) framework (Howard & Matheson, 2005; Everitt et al., 2021). CIDs are causal Bayesian networks where the variables are divided into decision D, utility U, and chance variables V, and no conditional probability distribution is specified for the decision variables. The task of the agent is to select the distribution Ļ=Pā¢(D=dā£PaD=paD)conditionalsubscriptPasubscriptpaĻ=P(D=d _D=pa_D)Ļ = P ( D = d ⣠PaD = paD ), also known as the policy or decision rule. An optimal policy ĻāsuperscriptĻ^*Ļā is defined as a policy ĻāsuperscriptĻ^*Ļā that maximizes the expected value of the utility Ļāā¢[U]subscriptsuperscriptdelimited-[]E_Ļ^*[U]blackboard_EĻā [ U ]. See 4 By convention, decision nodes are drawn square, utility nodes diamond, and chance nodes round. The parents of D, PaDsubscriptPaPa_DPaD, can be interpreted as the information the decision is allowed to depend on, and are depicted as dashed lines. See Figure 4 for an example. In the following we restrict our attention to a class of CIDs we refer to as āunmediated decision tasksā, where where the agentās decision does not causally influence any chance variables that go on to influence the utility. This simplifies our theoretical analysis, although it is likely that our results extend to the general case. See 1 Examples of unmediated decision tasks include all standard classification and regression tasks, and generative AI tasks where the output is not included in the training set. For example, in classification typically the choice of label does not influence the data generating process. Problems that are mediated rather than unmediated decision tasks includes most control and reinforcement learning tasks, where the agentās decision is an action that influences the state of the environment. Furthermore, we will focus on non-trivial unmediated decision tasks i.e. where UāChDsubscriptChU _DU ā ChD, as the case ChD=ā subscriptChCh_D= = ā describes trivial decision tasks (the agentās action does not influence the utility). Figure 4 is an example of a non-trivial unmediated decision task. In transfer learning we are typically interested in problems where generalising from the source to target domain(s) is non-trivial, and in the trivial case we cannot expect agents to have to learn anything about their environments in order to generalise. If this is not the case, then generalising under distributional shifts is trivial. Therefore we restrict our attention to decision tasks where the distribution of the environment is relevant to the agent when determining its policy. Specifically, we say that a decision task is domain independent if there exists a single policy that is optimal for all choices of environment distribution Pā¢(=c)P( C=c)P ( italic_C = c ). See 2 Lemma 1. Domain dependence implies that; i) There exists no dādomā¢(D)domd (D)d ā dom ( D ) such that dāargā¢maxdā”Uā¢(d,c)subscriptargmaxdā *arg\,max_dU(d,c)d ā start_OPERATOR arg max end_OPERATORd U ( d , c ) āādomā¢(C)for-alldomā c (C)ā italic_c ā dom ( C ). i) PaDāAncUsubscriptPasubscriptAncPa_D _UPaD ā AncU i) DāPaUsubscriptPaD _UD ā PaU Proof. i) For any Pā² we have Pā²ā¢[Uā£doā¢(D=d),paD]=āPā²ā¢(d=ā£paD)ā¢Uā¢(d,)subscriptsuperscriptā²delimited-[]conditionaldosubscriptpasubscriptsuperscriptā²subscriptconditionalsubscriptpaE_P [U do(D=d),pa_D]= _ cP^% ( C_d= c _D)U(d, c)blackboard_EPā² [ U ⣠do ( D = d ) , paD ] = āitalic_c Pā² ( italic_Citalic_d = italic_c ⣠paD ) U ( d , italic_c ) =āPā²ā¢(=ā£paD)ā¢Uā¢(d,c)absentsubscriptsuperscriptā²conditionalsubscriptpa= _ cP ( C= c _D)U(d,c)= āitalic_c Pā² ( italic_C = italic_c ⣠paD ) U ( d , c ) where we have used DescDā©AncU=ā subscriptDescsubscriptAncDesc_D _U= ā© AncU = ā . Therefore if ā dāsuperscriptd^*dā s.t. dā=argā¢maxdā”Uā¢(d,)superscriptsubscriptargmaxd^*= *arg\,max_dU(d, c)dā = start_OPERATOR arg max end_OPERATORd U ( d , italic_c ) āfor-allā = C= citalic_C = italic_c then Pā²ā¢[Uā£doā¢(D=dā),paD]ā„āPā²ā¢(=ā£paD)ā¢Uā¢(dā²,)ā¢Pā²ā¢[Uā£doā¢(D=d),paD]subscriptsuperscriptā²delimited-[]conditionaldosuperscriptsubscriptpasubscriptsuperscriptā²conditionalsubscriptpasuperscriptā²subscriptsuperscriptā²delimited-[]conditionaldosubscriptpaE_P [U do(D=d^*),pa_D]ā„ _% cP ( C= c _D)U(d , c) % E_P [U do(D=d),pa_D]blackboard_EPā² [ U ⣠do ( D = dā ) , paD ] ā„ āitalic_c Pā² ( italic_C = italic_c ⣠paD ) U ( dā² , italic_c ) blackboard_EPā² [ U ⣠do ( D = d ) , paD ] āfor-allā dā dāsuperscriptdā d^*d ā dā, and so D=dāsuperscriptD=d^*D = dā is optimal for all Pā²ā¢(=)superscriptā²P ( C= c)Pā² ( italic_C = italic_c ) and we violate domain dependence. i) As DāPaUsubscriptPaD _UD ā PaU (i), then PaUāAncUsubscriptPasubscriptAncPa_U _UPaU ā AncU. If AncU=PaDsubscriptAncsubscriptPaAnc_U=Pa_DAncU = PaD then Pā¢[uā£d,paD]=Uā¢(d,paD)subscriptdelimited-[]conditionalsubscriptpasubscriptpaE_P[u d,pa_D]=U(d,pa_D)blackboard_EP [ u ⣠d , paD ] = U ( d , paD ) which is independent of Pā¢(=)P( C= c)P ( italic_C = italic_c ), and hence there is a single optimal policy for all P and we violate domain dependence. i) If DāAncUsubscriptAncD _UD ā AncU then the CID is trivial, in the sense that ā¢[Uā£doā¢(D=d)]=ā¢[U]delimited-[]conditionaldodelimited-[]E[U do(D=d)]=E[U]blackboard_E [ U ⣠do ( D = d ) ] = blackboard_E [ U ], and hence all decisions are optimal for all distributions Pā¢()P( C)P ( italic_C ), which violates domain dependence (Assumption 2). Therefore DāAncUsubscriptAncD _UD ā AncU which with DescDā©AncU=ā subscriptDescsubscriptAncDesc_D _U= ā© AncU = ā implies DāPaUsubscriptPaD _UD ā PaU. ā C1subscript1C_1C1C2subscript2C_2C2C3subscript3C_3C3C4subscript4C_4C4C5subscript5C_5C5C6subscript6C_6C6DDitalic_DUUitalic_U Figure 4: The CID for an unmediated decision task, where D has no causal influence on the environment state Citalic_C. Our main theorem implies that an agent that is robust to distributional shifts on Citalic_C must learn the CBN over AncU=C1,C2,C3,C4,C6subscriptAncsubscript1subscript2subscript3subscript4subscript6Anc_U=\C_1,C_2,C_3,C_4,C_6\AncU = C1 , C2 , C3 , C4 , C6 , noting that C5āAncUsubscript5subscriptAncC_5 _UC5 ā AncU. C4subscript4C_4C4 is an example of a variable that is only an ancestor of U via D and so has no direct causal effect on the utility, but is still relevant to the decision task as it is a proxy for C1subscript1C_1C1 which is a cause of U. C6subscript6C_6C6 is a cause of U but not of D, and naively one might assume that distributional shifts on C6subscript6C_6C6 cannot influence the agentās decision. However, the optimal policy can change under distributional shifts on C6subscript6C_6C6 as these effect the utility, and hence the agent will have to learn a CBN including C6subscript6C_6C6 if it is to be robust to shifts on C6subscript6C_6C6. A.2 Parameterisation of CIDs The joint distribution P is defined for all environment variables Citalic_C, and the CID is defined by the parameters for Pā¢()P( C)P ( italic_C ) and Uā¢(PaU)subscriptPaU(Pa_U)U ( PaU ). We restrict our attention to Citalic_C that are categorical, and without loss of generality we label states ci=0,1,ā¦,dimiā1subscript01ā¦subscriptdim1c_i=0,1,ā¦,dim_i-1citalic_i = 0 , 1 , ⦠, dimi - 1 where dimisubscriptdimdim_idimi is the dimension of variable CisubscriptC_iCitalic_i. Firstly, the joint Pā¢()P( C)P ( italic_C ) is parameterised by the conditional probability distributions (CPDs) in the Markov factorization with respect to G, ĪøP=P(ciā£pai)āciā0,ā¦,dimiā2,paiāPai,Ciā _P=\P(c_i _i)\,ā\,c_iā\0,ā¦,% dim_i-2\,pa_i _i,\,C_iā CĪøitalic_P = P ( citalic_i ⣠pai ) ā citalic_i ā 0 , ⦠, dimi - 2 , pai ā Pai , Citalic_i ā italic_C. Note that the CPDs pā¢(Ci=dimiā1ā£pai)subscriptsubscriptdimconditional1subscriptpap(C_i=dim_i-1 _i)p ( Citalic_i = dimi - 1 ⣠pai ) are not included in ĪøPsubscript _PĪøitalic_P as they are fully constrained by normalization Pā¢(Ci=dimiā1ā£pai)=1āāj=0dimiā1Pā¢(ciā£pai)subscriptsubscriptdimconditional1subscriptpa1superscriptsubscript0subscriptdim1conditionalsubscriptsubscriptpaP(C_i=dim_i-1 _i)=1- _j=0^dim_i-1P(% c_i _i)P ( Citalic_i = dimi - 1 ⣠pai ) = 1 - āj = 0dimi - 1 P ( citalic_i ⣠pai ). Secondly, the utility function is simply parameterised by its value given the state of its parents ĪøU=Uā¢(paU)ā¢āPaU=paUsubscriptsubscriptpafor-allsubscriptPasubscriptpa _U=\U(pa_U)\,ā\,Pa_U=pa_U\Īøitalic_U = U ( paU ) ā PaU = paU . For simplicity we work with the normalized utility function, Uā¢(paU)āUā¢(paU)āminpaUā²ā”Uā¢(PaU=paUā²)maxpaUā²ā”Uā¢(PaU=paUā²)āminpaUā²ā”Uā¢(PaU=paUā²)āsubscriptpasubscriptpasubscriptsuperscriptsubscriptpaā²subscriptPasubscriptsuperscriptpaā²subscriptsuperscriptsubscriptpaā²subscriptPasubscriptsuperscriptpaā²subscriptsuperscriptsubscriptpaā²subscriptPasubscriptsuperscriptpaā²U(pa_U)ā U(pa_U)- _pa_U^% U(Pa_U=pa _U) _pa_U^% U(Pa_U=pa _U)- _pa_U^% U(Pa_U=pa _U)U ( paU ) ā divide start_ARG U ( paU ) - minpa start_POSTSUBSCRIPT Uā² end_POSTSUBSCRIPT U ( PaU = paā²U ) end_ARG start_ARG maxpa start_POSTSUBSCRIPT Uā² end_POSTSUBSCRIPT U ( PaU = paā²U ) - minpa start_POSTSUBSCRIPT Uā² end_POSTSUBSCRIPT U ( PaU = paā²U ) end_ARG (2) with values between 0 and 1. Noting that as this is a positive affine transformation of the utility function the set of optimal policies invariant, and we can re-scale regret bounds accordingly. Let ĪøMsubscript _MĪøitalic_M denote the set of all parameters for the CID, ĪøM=ĪøPāŖĪøUsubscriptsubscriptsubscript _M= _PāŖ _UĪøitalic_M = Īøitalic_P āŖ Īøitalic_U, and note that the elements of ĪøMsubscript _MĪøitalic_M in the [0,1]01[0,1][ 0 , 1 ] interval and are logically independent, i.e. we can independently choose any [0,1]01[0,1][ 0 , 1 ] value for each parameter and this defines a valid parameterization of the CID for the baseline environment. In the following when we refer to āthe parameters P,UP,UP , Uā we are referring to ĪøMsubscript _MĪøitalic_M. We follow the method outlined in (Meek, 2013) to prove that certain constraints on P,UP,UP , U hold āfor almost all P,UP,UP , Uā and hence for almost all decision tasks. This involves converting a given constraint into polynomial equations over ĪøMsubscript _MĪøitalic_M and applying the following Lemma, Lemma 2 (Okamoto, 1973). The solutions to a (nontrivial) polynomial are Lebesgue measure zero over the space of the parameters of the polynomial. A polynomial in n variables is non-trivial (not an identity) if not all instantiations of the n variables are solutions of the polynomial. For example, the equation polyā¢(ĪøM)=0polysubscript0poly( _M)=0poly ( Īøitalic_M ) = 0 is trivial if and only if all coefficients of the polynomial expression polyā¢(ĪøM)polysubscriptpoly( _M)poly ( Īøitalic_M ) are zero. Therefore, any constraint on P,UP,UP , U that can be converted into a polynomial equation over ĪøMsubscript _MĪøitalic_M must either hold for all ĪøMsubscript _MĪøitalic_M or for a Lebesgue measure zero subset of instantiations of ĪøMsubscript _MĪøitalic_M. Operationally, this means that if we have any smooth distribution over the parameter space (for example, describing the distribution of environments we expect to encounter), the probability of drawing an environment from this distribution for which the condition does not hold is 0. A.3 Distributional shifts & policy oracles In the derivation of our results we restrict out attention to distributional shifts that can be modelled as (soft) interventions on the data generating process. We note that by Reichenbachās principle (Reichenbach, 1956), which states that all statistical associations are due to underlying causal structures, we can assume the existence of a causal data generating process that can be described in terms of a CBN M=(P,G)M=(P,G)M = ( P , G ). Therefore there is a causal factorization of the joint Pā¢(=)=āiPā¢(ciā£Pai)subscriptproductconditionalsubscriptsubscriptPaP( C= c)= _iP(c_i _i)P ( italic_C = italic_c ) = āi P ( citalic_i ⣠Pai ). By allowing for mixtures of interventions, we can reach any distribution over Citalic_C, which can be seen trivially by noting that we can perform a soft intervention to achieve any deterministic distribution Pā¢(=)=Ī“ā¢(=ā²)superscriptā²P( C= c)=Ī“( C= c )P ( italic_C = italic_c ) = Ī“ ( italic_C = italic_cā² ), and then take a mixture over these deterministic distributions to achieve an arbitrary distribution over Citalic_C. The set of distributions that cannot be generated by interventions include those that change the set of variables Vitalic_V including the decision and utility variables, and introducing selection biases (which are causally represented with the introduction of additional nodes that are conditioned on Bareinboim & Pearl, 2012a). For further discussions on the relation between distributional shifts and interventions see Schƶlkopf et al. (2021); Meinshausen (2018). In the following proofs we use policy oracles to formalise knowledge of regret-bounded behaviour under distributional shifts. Definition 5 (Policy oracle). A policy oracle for a set of interventions Ī£ Ī£ is a map ΠΣΓ:Ļā¦ĻĻā¢(dā£paD):subscriptsuperscriptΠΣmaps-tosubscriptconditionalsubscriptpa ^Ī“_ :Ļ _Ļ(d _D)Ī italic_Ī“roman_Ī£ : Ļ ā¦ Ļitalic_Ļ ( d ⣠paD ) āfor-allā ĻāĪ£Ļā Ļ ā Ī£ where Ī£ Ī£ is a set of domains. It is Ī“-optimal if ĻĻā¢(dā£paD)subscriptconditionalsubscriptpa _Ļ(d _D)Ļitalic_Ļ ( d ⣠paD ) achieves an expected utility ĻĻā¢[U]ā„Ļāā¢[U]āĪ“superscriptsubscriptdelimited-[]superscriptsuperscriptdelimited-[]E _Ļ[U] ^Ļ^*[U]- _EĻitalic_Ļ [ U ] ā„ blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ] - Ī“ in the CID Mā¢(Ļ)M(Ļ)M ( Ļ ) where Ī“ā„00Γ℠0Ī“ ā„ 0. Here Ī“ is the regret upper bound, which is satisfied under all distributional shifts ĻāĪ£Ļā Ļ ā Ī£. We refer to Ī“-optimal policy oracles for Ī“=00Ī“=0Ī“ = 0 as optimal policy oracles. For the proof of our main result we restrict our attention to policy oracles with Ī£ Ī£ that includes mixtures over all local interventions (def. 2). Note that the policy oracle specifies only what policy the agent returns in a distributionally shifted environment Mā¢(Ļ)M(Ļ)M ( Ļ ). It does not specify how this policy is generated, which will depend on the specific setup. For example, in domain generalisation that agent typically receives no additional data from the target domains, and is expected to produce a policy (decision boundary) that achieves a low regret across all target domains. On the other hand in domain adaptation and few shot learning, the agent is provided with some new data from each target domain with which to adjust its policy. As we hope to accommodate all of these perspectives we specify only the agentās policy, not the data used to generate it. This is discussed further in Section 3.2. What distributional shifts do we consider? In our proofs, we assume the agent is robust to any domain shifts that can be described as a mixture of local interventions on the environment variables Citalic_C. We do not consider interventions that change the utility U or the agentās decision D, though we do include dropping inputs to the policy (masking) PaDāPaDā²āPaDāsubscriptPasuperscriptsubscriptPaā²subscriptPaPa_D _D _DPaD ā PaDā² ā PaD as local interventions. Appendix B Appendix: Simplified proof In this section we outline the proof of Theorem 1 for a simple binary decision task with binary latent variables. As mentioned in Section 4, the method used to identify the CBN in Theorem 1 can be viewed as an algorithm for learning the CBN over latent variables by observing the policy of a regret-bounded agent under various distributional shifts. To demonstrate this, in Appendix F we use an implementation of the algorithm on randomly generated CIDs, showing empirically that we can learn the underlying CBN in this way, and explore how the agentās regret bound affects the accuracy of the learned CBN. Consider the CID in Figure 5, describing a binary decision task Dā0,101Dā\0,1\D ā 0 , 1 with two binary latent variables X,YāPaUsubscriptPaX,Y _UX , Y ā PaU. UUUXXitalic_XYYitalic_YDDitalic_D Figure 5: Example CID describing a context-free mutli-armed bandit with binary latent variables X,YX,YX , Y. Consider an agent that selects a policy ĻDsubscript _DĻitalic_D such that it maximises the expected utility. That is, the CID describes a context-free bandit problem, where X,YX,YX , Y are latent variables that influence the arm values ā¢[uā£d]=āx,yPā¢(x,y)ā¢Uā¢(x,y,d)delimited-[]conditionalsubscriptE[u d]= _x,yP(x,y)U(x,y,d)blackboard_E [ u ⣠d ] = āx , y P ( x , y ) U ( x , y , d ). Our aim is to learn this CID given only knowledge of the agentās policy under distributional shifts, and knowledge that it satisfies a regret bound. We assume knowledge of i) the set of chance variables =X,Y C=\X,Y\italic_C = X , Y , i) the utility function Uā¢(d,x,y)U(d,x,y)U ( d , x , y ), and i) the policy ĻDā¢(Ļ)subscript _D(Ļ)Ļitalic_D ( Ļ ) under distributional shifts Ļ (other variables (U,X,YU,X,YU , X , Y) are unobserved). To learn the CID the aim is therefore to learn the parameters of the joint distribution over latents Pā¢(x,y)P(x,y)P ( x , y ) and the unknown causal structure. As we know the utility function we know D,X,YāPaUsubscriptPaD,X,Y _UD , X , Y ā PaU, and by assuming the CID is unmediated (Assumption 1) we know X,YāDescDsubscriptDescX,Y _DX , Y ā DescD. Likewise the decision task is context free hence DāDescXāŖDescYsubscriptDescsubscriptDescD _X _YD ā DescX āŖ DescY. Hence the only unknown causal structure is the DAG over the latent variables =X,Y C=\X,Y\italic_C = X , Y . The expected utility difference between D=00D=0D = 0 and D=11D=1D = 1 following a hard intervention on X is given by ā¢[uā£D=0;doā¢(X=0)]āā¢[uā£D=1;doā¢(X=0)]=āyPā¢(YX=0=y)ā¢[Uā¢(0,0,y)āUā¢(1,0,y)]delimited-[]conditional0do0delimited-[]conditional1do0subscriptsubscript0delimited-[]0010 [u D=0; do(X=0)]-E[u D=1;% do(X=0)]=Ī£ _yP(Y_X=0=y)[U(0,0,y)-U(1,0,y)]blackboard_E [ u ⣠D = 0 ; do ( X = 0 ) ] - blackboard_E [ u ⣠D = 1 ; do ( X = 0 ) ] = āy P ( Yitalic_X = 0 = y ) [ U ( 0 , 0 , y ) - U ( 1 , 0 , y ) ] (3) =Pā¢(YX=0=0)ā¢[Uā¢(0,0,Y=0)āUā¢(1,0,0)]+(1āPā¢(YX=0=0))ā¢[Uā¢(0,0,1)āUā¢(1,0,1)]absentsubscript00delimited-[]0001001subscript00delimited-[]001101 =P(Y_X=0=0)[U(0,0,Y=0)-U(1,0,0)]+(1-P(Y_X=0=0))[U(0,0,1)-U(1,% 0,1)]= P ( Yitalic_X = 0 = 0 ) [ U ( 0 , 0 , Y = 0 ) - U ( 1 , 0 , 0 ) ] + ( 1 - P ( Yitalic_X = 0 = 0 ) ) [ U ( 0 , 0 , 1 ) - U ( 1 , 0 , 1 ) ] (4) As we know Uā¢(d,x,y)U(d,x,y)U ( d , x , y ) we can therefore identify Pā¢(YX=0=0)subscript00P(Y_X=0=0)P ( Yitalic_X = 0 = 0 ) if we can identify this expected utility difference. We do this using the agentās policy under distributional shifts, and in this simple case we can restrict our attention to hard interventions. Following the steps outlined in Lemma 4, domain dependence insures that we can identify a hard intervention Ļ2=doā¢(X=xā²,Y=yā²)subscript2doformulae-sequencesuperscriptā² _2= do(X=x ,Y=y )Ļ2 = do ( X = xā² , Y = yā² ) that results in a different optimal policy to the optimal policy under Ļ1=doā¢(X=0)subscript1do0 _1= do(X=0)Ļ1 = do ( X = 0 ). For a mixture of these two interventions Ļ3=qā¢Ļ1+(1āq)ā¢Ļ2subscript3subscript11subscript2 _3=q _1+(1-q) _2Ļ3 = q Ļ1 + ( 1 - q ) Ļ2 the expected utility is ā¢[uā£d,Ļ3]=qā¢[uā£d,Ļ1]+(1āq)ā¢[uā£d,Ļ2]delimited-[]conditionalsubscript3delimited-[]conditionalsubscript11delimited-[]conditionalsubscript2E[u d, _3]=qE[u d, _1]+(1-q)E% [u d, _2]blackboard_E [ u ⣠d , Ļ3 ] = q blackboard_E [ u ⣠d , Ļ1 ] + ( 1 - q ) blackboard_E [ u ⣠d , Ļ2 ]. This is a linear function with respect to q, and for q=11q=1q = 1 the optimal decision (d1subscript1d_1d1) is different than for q=00q=0q = 0 (d2ā d1subscript2subscript1d_2ā d_1d2 ā d1). Therefore, there is a single indifference point qcritsubscriptcritq_critqcrit for which both decisions are optimal. It is simple to show that this indifference point is given by, qcrit=(1āā¢[uā£D=d1;doā¢(X=0)]āā¢[uā£D=d2;doā¢(X=0)]Uā¢(d1,xā²,yā²)āUā¢(d2,xā²,yā²))ā1subscriptcritsuperscript1delimited-[]conditionalsubscript1do0delimited-[]conditionalsubscript2do0subscript1superscriptā²subscript2superscriptā²1q_crit= (1- E[u D=d_1; do(X=0)]-% E[u D=d_2; do(X=0)]U(d_1,x ,y )-U(d% _2,x ,y ) )^-1qcrit = ( 1 - divide start_ARG blackboard_E [ u ⣠D = d1 ; do ( X = 0 ) ] - blackboard_E [ u ⣠D = d2 ; do ( X = 0 ) ] end_ARG start_ARG U ( d1 , xā² , yā² ) - U ( d2 , xā² , yā² ) end_ARG )- 1 (5) D=d1subscript1D=d_1D = d1 is optimal for qā¤qcritsubscriptcritq⤠q_critq ⤠qcrit and D=d2subscript2D=d_2D = d2 is optimal for qā„qcritsubscriptcritqā„ q_critq ā„ qcrit. We can estimate qcritsubscriptcritq_critqcrit by randomly sampling values of q uniformly over [0,1]01[0,1][ 0 , 1 ] and observing the optimal decision under the resulting mixed intervention (Algorithm 1). That is, qcritsubscriptcritq_critqcrit is the probability that D=d1subscript1D=d_1D = d1 is returned by the policy oracle for a randomly sampled q. In this way we learn qcritsubscriptcritq_critqcrit and as we know Uā¢(d,x,y)U(d,x,y)U ( d , x , y ) we can identify the expected utility difference under doā¢(X=0)do0 do(X=0)do ( X = 0 ) in the numerator of Equation 5 and so identify Pā¢(YX=0=0)subscript00P(Y_X=0=0)P ( Yitalic_X = 0 = 0 ). Similarly we identify Pā¢(YX=1=0),Pā¢(XY=0=0)subscript10subscript00P(Y_X=1=0),P(X_Y=0=0)P ( Yitalic_X = 1 = 0 ) , P ( Xitalic_Y = 0 = 0 ) and Pā¢(XY=1=0)subscript10P(X_Y=1=0)P ( Xitalic_Y = 1 = 0 ), which encode both the causal relation between X and Y (e.g. there is a directed path from X to Y if and only if Pā¢(YX=0)ā Pā¢(YX=1)subscript0subscript1P(Y_X=0)ā P(Y_X=1)P ( Yitalic_X = 0 ) ā P ( Yitalic_X = 1 ) for almost all CBNs), and determine the parameters of the CBN as Pā¢(Ci=ciā£doā¢(āCi))=Pā¢(Ci=ciā£Pai=pai)subscriptconditionalsubscriptdosubscriptsubscriptconditionalsubscriptsubscriptPasubscriptpaP(C_i=c_i do( C C_i))=P(C_i=c_i % Pa_i=pa_i)P ( Citalic_i = citalic_i ⣠do ( italic_C ā Citalic_i ) ) = P ( Citalic_i = citalic_i ⣠Pai = pai ). Appendix C Proof of Theorem 1 In this appendix we prove Theorem 1. For an informal overview of the proof see Appendix B. First, we show that for a given distributional shift Ļ, for almost all P,UP,UP , U there is a single optimal decision. While this is not necessary for our proof, it simplifies our analysis. And as our main theorem holds for almost all P,UP,UP , U, we can include any finite number of independent conditions that hold for almost all P,UP,UP , U without strengthening this condition, as the union of Lebesgue measure zero sets is Lebesgue measure zero. Lemma 3. For any given local intervention Ļ there is a single deterministic optimal policy for almost all P,UP,UP , U. Proof. Following intervention Ļ two decisions d,dā²,d d , dā² are simultaneously optimal in context paDsubscriptpapa_DpaD if, ā¢[uā£paD,doā¢(D=d);Ļ]=ā¢[uā£paD,doā¢(D=dā²);Ļ]delimited-[]conditionalsubscriptpadodelimited-[]conditionalsubscriptpadosuperscriptā²E[u _D, do(D=d);Ļ]=E[u % pa_D, do(D=d );Ļ]blackboard_E [ u ⣠paD , do ( D = d ) ; Ļ ] = blackboard_E [ u ⣠paD , do ( D = dā² ) ; Ļ ] (6) Let =[AncUāPaD]delimited-[]subscriptAncsubscriptPa Z=[Anc_U _D]italic_Z = [ AncU ā PaD ] and =PaUāDsubscriptPa X=Pa_U \D\italic_X = PaU ā D . Noting that ā¢[uā£paD,doā¢(D=d);Ļ]=āUā¢(d,)ā¢Pā¢(,paDā£doā¢(D=d);Ļ)/Pā¢(paDā£doā¢(D=d);Ļ)delimited-[]conditionalsubscriptpadosubscriptconditionalsubscriptpadoconditionalsubscriptpadoE[u _D, do(D=d);Ļ]= _ zU(d, % x)P( z,pa_D do(D=d);Ļ)/P(pa_D % do(D=d);Ļ)blackboard_E [ u ⣠paD , do ( D = d ) ; Ļ ] = āitalic_z U ( d , italic_x ) P ( italic_z , paD ⣠do ( D = d ) ; Ļ ) / P ( paD ⣠do ( D = d ) ; Ļ ) (7) and that Pā¢(paDā£doā¢(D=d);Ļ)=Pā¢(paD;Ļ)conditionalsubscriptpadosubscriptpaP(pa_D do(D=d);Ļ)=P(pa_D;Ļ)P ( paD ⣠do ( D = d ) ; Ļ ) = P ( paD ; Ļ ) and Pā¢(,paDā£doā¢(D=d);Ļ)=Pā¢(,paD;Ļ)conditionalsubscriptpadosubscriptpaP( z,pa_D do(D=d);Ļ)=P( z,pa_D;Ļ)P ( italic_z , paD ⣠do ( D = d ) ; Ļ ) = P ( italic_z , paD ; Ļ ) which follows from DescDā©AncU=ā subscriptDescsubscriptAncDesc_D _U= ā© AncU = ā , we can multiple both sides of equation 6 with Pā¢(paD;Ļ)subscriptpaP(pa_D;Ļ)P ( paD ; Ļ ) giving, āUā¢(d,)ā¢Pā¢(,paD;Ļ)=āUā¢(dā²,)ā¢Pā¢(,paD;Ļ)subscriptsubscriptpasubscriptsuperscriptā²subscriptpa _ zU(d, x)P( z,pa_D;Ļ)= _ zU(d^% , x)P( z,pa_D;Ļ)āitalic_z U ( d , italic_x ) P ( italic_z , paD ; Ļ ) = āitalic_z U ( dā² , italic_x ) P ( italic_z , paD ; Ļ ) (8) and ā[Uā¢(d,)āUā¢(dā²,)]ā¢Pā¢(,paD;Ļ)=0subscriptdelimited-[]superscriptā²subscriptpa0 _ z[U(d, x)-U(d , x)]P( z,pa_D;Ļ% )=0āitalic_z [ U ( d , italic_x ) - U ( dā² , italic_x ) ] P ( italic_z , paD ; Ļ ) = 0 (9) Let Ļ=doā¢(v1=f1ā¢(v1),ā¦,vN=fNā¢(vN))doformulae-sequencesubscript1subscript1subscript1ā¦subscriptsubscriptsubscriptĻ= do(v_1=f_1(v_1),ā¦,v_N=f_N(v_N))Ļ = do ( v1 = f1 ( v1 ) , ⦠, vitalic_N = fitalic_N ( vitalic_N ) ). The joint Pā¢(,paD;Ļ)=āiPā¢(ciā£pai;Ļ)subscriptpasubscriptproductconditionalsubscriptsubscriptpaP( z,pa_D;Ļ)= _iP(c_i _i;Ļ)P ( italic_z , paD ; Ļ ) = āi P ( citalic_i ⣠pai ; Ļ ) is polynomial, and the local interventions Pā¢(ciā£pai;Ļ)=āciā²:fiā¢(ciā²)=ciPā¢(ciā²ā£pai)conditionalsubscriptsubscriptpasubscript:subscriptsuperscriptā²subscriptsubscriptsuperscriptā²subscriptconditionalsubscriptsuperscriptā²subscriptpaP(c_i _i;Ļ)= _c _i:f_i(c _i)=% c_iP(c _i _i)P ( citalic_i ⣠pai ; Ļ ) = ācā² start_POSTSUBSCRIPT i : fitalic_i ( cā²italic_i ) = citalic_i end_POSTSUBSCRIPT P ( cā²italic_i ⣠pai ) keep it polynomial. Therefore equation 9 is a polynomial equation over the model parameters, and is certain to be non-trivial as dā dā²ā d d ā dā². Therefore by Lemma 2 for almost all P,UP,UP , U equation 9 is not satisfied, and as there are a finite number of decisions this implies that for almost all P,UP,UP , U there is a single optimal decision for a given Ļ, paDsubscriptpapa_DpaD and hence a single optimal policy. ā Next, we detail how a policy oracle can be used to identify a specific causal query in the shifted environment Mā¢(Ļ)M(Ļ)M ( Ļ ), that we will later use to identify the model parameters. Lemma 4. Using an optimal policy oracle ΠΣāsubscriptsuperscriptΠΣ ^*_ Ī āroman_Ī£ where Ī£ Ī£ includes all mixtures of local interventions on Citalic_C including masking inputs PaDā²āPaDsuperscriptsubscriptPaā²subscriptPaPa_D _DPaDā² ā PaD, then for any given PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā² such that PaDā²ā©PaU=ā superscriptsubscriptPaā²subscriptPaPa_D _U= ā² ā© PaU = ā we can identify āzPā¢(=;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]subscriptdelimited-[]superscriptā² _zP( C= c;Ļ)[U(d, c)-U(d , c)]āz P ( italic_C = italic_c ; Ļ ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ], for d and dā² where dā dā²ā d d ā dā² and =āPaDā²subscriptPaā² Z= C _D italic_Z = italic_C ā PaDā². Proof. By Lemma 3 for almost all P,UP,UP , U there is a single optimal decision following the shift Ļ. Let d1=argā¢maxdā”ā¢[uā£doā¢(D=d),paDā²;Ļ]subscript1subscriptargmaxdelimited-[]conditionaldosuperscriptsubscriptpaā²d_1= *arg\,max_dE[u do(D=d),pa% _D ;Ļ]d1 = start_OPERATOR arg max end_OPERATORd blackboard_E [ u ⣠do ( D = d ) , paDā² ; Ļ ] where d1=Ļāā¢(Ļ)subscript1superscriptd_1=Ļ^*(Ļ)d1 = Ļā ( Ļ ). We can identify d1subscript1d_1d1 by querying the policy oracle with Ļ. Consider a hard intervention on all CiāsubscriptC_iā CCitalic_i ā italic_C, Ļā²:=doā¢(c1ā²,c2ā²,ā¦,cNā²)assignsuperscriptā²dosubscriptsuperscriptā²1subscriptsuperscriptā²2ā¦subscriptsuperscriptā²Ļ := do(c _1,c _2,ā¦,c _% N)Ļā² := do ( cā²1 , cā²2 , ⦠, cā²italic_N ) where for all CiāPaDā²subscriptsuperscriptsubscriptPaā²C_i _D Citalic_i ā PaDā² we set Ci=cisubscriptsubscriptC_i=c_iCitalic_i = citalic_i to be the same state as in observation PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā². The expected utility under this intervention is ā¢[uā£doā¢(D=d),paDā²;Ļā²]=Uā¢(d,ā²)delimited-[]conditionaldosuperscriptsubscriptpaā²superscriptā²E[u do(D=d),pa_D ;Ļ ]=U(d% , x )blackboard_E [ u ⣠do ( D = d ) , paDā² ; Ļā² ] = U ( d , italic_xā² ) where =PaUāDsubscriptPa X=Pa_U \D\italic_X = PaU ā D (and we have that DāPaUsubscriptPaD _UD ā PaU from Lemma 1 i)). Next we show that there is a choice of hard intervention Ļā²Ļ Ļā² such that the policy oracle must return different optimal decisions in the context PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā² for Ļā²Ļ Ļā² and Ļ. As PaDā²ā©PaU=ā superscriptsubscriptPaā²subscriptPaPa_D _U= ā² ā© PaU = ā then we are free to choose any X=xā²X=x X = xā² and the resulting Ļā²Ļ Ļā² will be compatible with the evidence PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā². Note that by Lemma 1 i) ā =ā²superscriptā² X= x italic_X = italic_xā² s.t. d1ā argā¢maxdā”Uā¢(d,xā²)subscript1subscriptargmaxsuperscriptā²d_1ā *arg\,max_dU(d,x )d1 ā start_OPERATOR arg max end_OPERATORd U ( d , xā² ), else D=d1subscript1D=d_1D = d1 is optimal for all = X= xitalic_X = italic_x which violates domain dependence. We can determine this =ā²superscriptā² X= x italic_X = italic_xā² given the utility function and d1subscript1d_1d1. Let d2=argā¢maxdā”Uā¢(d,ā²)subscript2subscriptargmaxsuperscriptā²d_2= *arg\,max_dU(d, x )d2 = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) and Ļā²=doā¢(c1ā²,c2ā²,ā¦,cNā²)superscriptā²dosubscriptsuperscriptā²1subscriptsuperscriptā²2ā¦subscriptsuperscriptā²Ļ = do(c _1,c _2,ā¦,c _N)Ļā² = do ( cā²1 , cā²2 , ⦠, cā²italic_N ) be the hard intervention for which =ā²superscriptā² X= x italic_X = italic_xā² and PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā². Consider the joint distribution over Citalic_C under the mixed local intervention Ļ~ā¢(q)=qā¢Ļ+(1āq)ā¢Ļā²~1superscriptā² Ļ(q)=qĻ+(1-q)Ļ over~ start_ARG Ļ end_ARG ( q ) = q Ļ + ( 1 - q ) Ļā², Pā¢(=ā£doā¢(D=d);Ļ~ā¢(q))conditionaldo~ P( C= c do(D=d); Ļ(q))P ( italic_C = italic_c ⣠do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ) =Pā¢(=;Ļ~ā¢(q))absent~ =P( C= c; Ļ(q))= P ( italic_C = italic_c ; over~ start_ARG Ļ end_ARG ( q ) ) (10) =qā¢Pā¢(=;Ļ)+(1āq)ā¢Pā¢(=;Ļā²)absent1superscriptā² =qP( C= c;Ļ)+(1-q)P( C= c;Ļ )= q P ( italic_C = italic_c ; Ļ ) + ( 1 - q ) P ( italic_C = italic_c ; Ļā² ) (11) where in the first line we have used ChD=UsubscriptChCh_D=\U\ChD = U to drop the intervention. Note that =āPaDā ā subscriptPa Z= C _Dā _Z = italic_C ā PaD ā ā by Lemma 1 i). The expected utility is given by, ā¢[uā£paD,doā¢(D=d);Ļ~ā¢(q)]=āPā¢(=ā£paD,doā¢(D=d);Ļ~ā¢(q))ā¢Uā¢(d,)delimited-[]conditionalsubscriptpado~subscriptconditionalsubscriptpado~ [u _D, do(D=d); Ļ(q% )]=Ī£ _ zP( Z= z _D, do(D=d);% Ļ(q))U(d, x)blackboard_E [ u ⣠paD , do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ] = āitalic_z P ( italic_Z = italic_z ⣠paD , do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ) U ( d , italic_x ) (12) =āPā¢(=ā£doā¢(D=d);Ļ~ā¢(q))Pā¢(paDā£doā¢(D=d);Ļ~ā¢(q))ā¢Uā¢(d,)absentsubscriptconditionaldo~conditionalsubscriptpado~ =Ī£ _ z P( C= c do(D=d);% Ļ(q))P(pa_D do(D=d); Ļ(q))U% (d, x)= āitalic_z divide start_ARG P ( italic_C = italic_c ⣠do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ) end_ARG start_ARG P ( paD ⣠do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ) end_ARG U ( d , italic_x ) (13) =1Pā¢(paD;Ļ~ā¢(q))ā¢āPā¢(=;Ļ~ā¢(q))ā¢Uā¢(d,)absent1subscriptpa~subscript~ = 1P(pa_D; Ļ(q))Ī£ _ z% P( C= c; Ļ(q))U(d, x)= divide start_ARG 1 end_ARG start_ARG P ( paD ; over~ start_ARG Ļ end_ARG ( q ) ) end_ARG āitalic_z P ( italic_C = italic_c ; over~ start_ARG Ļ end_ARG ( q ) ) U ( d , italic_x ) (14) =1Pā¢(paD;Ļ~ā¢(q))ā¢āqā¢Pā¢(=;Ļ)ā¢Uā¢(d,)+(1āq)ā¢Pā¢(=;Ļā²)ā¢Uā¢(d,ā²)absent1subscriptpa~subscript1superscriptā² = 1P(pa_D; Ļ(q))Ī£ _ z% qP( C= c;Ļ)U(d, x)+(1-q)P( C= c;Ļ )U(d% , x )= divide start_ARG 1 end_ARG start_ARG P ( paD ; over~ start_ARG Ļ end_ARG ( q ) ) end_ARG āitalic_z q P ( italic_C = italic_c ; Ļ ) U ( d , italic_x ) + ( 1 - q ) P ( italic_C = italic_c ; Ļā² ) U ( d , italic_xā² ) (15) Note that for q=11q=1q = 1 the optimal decision is d1subscript1d_1d1 and for q=00q=0q = 0 the optimal decision returned by the policy oracle belongs to the set d⢠s.t. ā¢d=argā¢maxdā”Uā¢(d,ā²) s.t. subscriptargmaxsuperscriptā²\d s.t. d= *arg\,max_dU(d, x )\ d s.t. d = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) which does not contain d1subscript1d_1d1. Furthermore, the argmax of equation 15 with respect to d is a piecewise linear function with domain qā[0,1]01qā[0,1]q ā [ 0 , 1 ]. Therefore there must be some q=qcritsubscriptcritq=q_critq = qcrit that is the smallest value of q such that for q<qcritsubscriptcritq<q_critq < qcrit the policy oracle returns an optimal decision in the set d⢠s.t. ā¢d=argā¢maxdā”Uā¢(d,ā²) s.t. subscriptargmaxsuperscriptā²\d s.t. d= *arg\,max_dU(d, x )\ d s.t. d = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) and for qā„qcritsubscriptcritqā„ q_critq ā„ qcrit the optimal decision is not in this set. The value of qcritsubscriptcritq_critqcrit is given by ā¢[uā£paD,doā¢(D=d);Ļ~ā¢(qcrit)]=0delimited-[]conditionalsubscriptpado~subscriptcrit0E[u _D, do(D=d); Ļ(q_crit% )]=0blackboard_E [ u ⣠paD , do ( D = d ) ; over~ start_ARG Ļ end_ARG ( qcrit ) ] = 0, which by equation 15 is, qcritā¢āPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]+(1āqcrit)ā¢[Uā¢(d2,ā²)āUā¢(d3,ā²)]=0subscriptcritsubscriptdelimited-[]subscript2subscript31subscriptcritdelimited-[]subscript2superscriptā²subscript3superscriptā²0q_critĪ£ _ zP( C= c;Ļ)[U(d_2, x)-U(d% _3, x)]+(1-q_crit)[U(d_2, x )-U(d_3, x^% )]=0qcrit āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ] + ( 1 - qcrit ) [ U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ) ] = 0 (16) where d2ād⢠s.t. ā¢d=argā¢maxdā”Uā¢(d,ā²)subscript2 s.t. subscriptargmaxsuperscriptā²d_2ā\d s.t. d= *arg\,max_dU(d, x )\d2 ā d s.t. d = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) and d3ād⢠s.t. ā¢d=argā¢maxdā”Uā¢(d,ā²)subscript3 s.t. subscriptargmaxsuperscriptā²d_3 ā\d s.t. d= *arg\,max_dU(d, x )\d3 ā d s.t. d = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) . This yields the following expression for qcritsubscriptcritq_critqcrit, qcrit=(1āāPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]Uā¢(d2,ā²)āUā¢(d3,ā²))ā1subscriptcritsuperscript1subscriptdelimited-[]subscript2subscript3subscript2superscriptā²subscript3superscriptā²1q_crit= (1- Ī£ _ zP( C= c;Ļ)[U(d_% 2, x)-U(d_3, x)]U(d_2, x )-U(d_3, x % ) )^-1qcrit = ( 1 - divide start_ARG āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ] end_ARG start_ARG U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ) end_ARG )- 1 (17) where we have used āPā¢(=;Ļā²)ā¢[Uā¢(d2,)āUā¢(d3,)]=Uā¢(d2,ā²)āUā¢(d3,ā²)subscriptsuperscriptā²delimited-[]subscript2subscript3subscript2superscriptā²subscript3superscriptā²Ī£ _ zP( C= c;Ļ )[U(d_2, c)-U(d_3,% c)]=U(d_2, x )-U(d_3, x )āitalic_z P ( italic_C = italic_c ; Ļā² ) [ U ( d2 , italic_c ) - U ( d3 , italic_c ) ] = U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ). We can determine āPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]subscriptdelimited-[]subscript2subscript3 _ zP( C= c;Ļ)[U(d_2, x)-U(d_3, x)]āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ] given qcritsubscriptcritq_critqcrit and the utility function Uā¢(d,)U(d, x)U ( d , italic_x ). Finally, we describe a Algorithm 1 (below) that uses a policy oracle for the Monte Carlo estimation of qcritsubscriptcritq_critqcrit, which can be used to determine āPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]subscriptdelimited-[]subscript2subscript3 _ zP( C= c;Ļ)[U(d_2, c)-U(d_3, c)]āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_c ) - U ( d3 , italic_c ) ]) in the asymptotic limit NāāāNāāN ā ā as well as identifying d2,d3subscript2subscript3d_2,d_3d2 , d3. d1āΠΣāā¢(Ļ)āsubscript1subscriptsuperscriptΠΣd_1ā ^*_ (Ļ)d1 ā Ī āroman_Ī£ ( Ļ ) Ļā²,d2ā any hard intervention on ⢠s.t. ā¢d2=argā¢maxdā”Uā¢(d,)ā d1āsuperscriptā²subscript2 any hard intervention on s.t. subscript2subscriptargmaxsubscript1Ļ ,d_2ā any hard intervention on C s% .t. d_2= *arg\,max_dU(d, x)ā d_1Ļā² , d2 ā any hard intervention on italic_C s.t. d2 = start_OPERATOR arg max end_OPERATORd U ( d , italic_x ) ā d1 Dā¢(q=1)ād⢠s.t. ā¢d=argā¢maxdā”Uā¢(d,ā²)ā1 s.t. subscriptargmaxsuperscriptā²D(q=1)ā\d s.t. d= *arg\,max_dU(d, x^% )\D ( q = 1 ) ā d s.t. d = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) Īø=00Īø=0Īø = 0 for iā1ā1iā 1i ā 1 to N do qā¼Uniformā¢(0,1)similar-toUniform01q (0,1)q ā¼ Uniform ( 0 , 1 ) Ļāā¢(dā£paD)āΠΣāā¢(Ļ3ā¢(q))āsuperscriptconditionalsubscriptpasubscriptsuperscriptΠΣsubscript3Ļ^*(d _D)ā ^*_ ( _3(q))Ļā ( d ⣠paD ) ā Ī āroman_Ī£ ( Ļ3 ( q ) ) if dāDā¢(q=1)1dā D(q=1)d ā D ( q = 1 ) āfor-allā Ļāā¢(dā£paD)>0superscriptconditionalsubscriptpa0Ļ^*(d _D)>0Ļā ( d ⣠paD ) > 0 then ĪøāĪø+1ā1ĪøāĪø+1Īø ā Īø + 1 end if end for qcrit=Īø/Nsubscriptcritq_crit=Īø/Nqcrit = Īø / N Dā¢(qcrit)āΠΣāā¢(qcritā¢Ļ+(1āqcrit)ā¢Ļā²)āsubscriptcritsubscriptsuperscriptΠΣsubscriptcrit1subscriptcritsuperscriptā²D(q_crit)ā ^*_ (q_critĻ+(1-q_ % crit)Ļ )D ( qcrit ) ā Ī āroman_Ī£ ( qcrit Ļ + ( 1 - qcrit ) Ļā² ) d3āDā¢(qcrit)subscript3subscriptcritd_3ā D(q_crit)d3 ā D ( qcrit ), d3ā d2subscript3subscript2d_3ā d_2d3 ā d2 return qcrit,d2,d3subscriptcritsubscript2subscript3q_crit,d_2,d_3qcrit , d2 , d3 Algorithm 1 Identify qcrit,d2,d3subscriptcritsubscript2subscript3q_crit,d_2,d_3qcrit , d2 , d3 using policy oracle. Input: (U,ΠΣā,N,Ļ)subscriptsuperscriptΠΣ(U, ^*_ ,N,Ļ)( U , Ī āroman_Ī£ , N , Ļ ) ā We are now ready to derive Theorem 1. See 1 Proof. We learn the graph G and parameters Pā¢(ciā£pai)conditionalsubscriptsubscriptpaP(c_i _i)P ( citalic_i ⣠pai ) by learning āleave-one-outā interventional distributions Pā¢(ciā£doā¢(c1,ā¦,ciā1,ci+1,ā¦,cN))conditionalsubscriptdosubscript1ā¦subscript1subscript1ā¦subscriptP(c_i do(c_1,ā¦,c_i-1,c_i+1,ā¦,c_N))P ( citalic_i ⣠do ( c1 , ⦠, citalic_i - 1 , citalic_i + 1 , ⦠, citalic_N ) ). Note that under this intervention CisubscriptC_iCitalic_i depends only on its parent set and hence P(ciā£do(c1,ā¦,ciā1,ci+1,ā¦,cN)=P(ciā£pai)P(c_i do(c_1,ā¦,c_i-1,c_i+1,ā¦,c_N)=P(c_i % pa_i)P ( citalic_i ⣠do ( c1 , ⦠, citalic_i - 1 , citalic_i + 1 , ⦠, citalic_N ) = P ( citalic_i ⣠pai ) where Pai=paisubscriptPasubscriptpaPa_i=pa_iPai = pai denotes the state of PaisubscriptPaPa_iPai under the leave-one-out intervention. Almost all P are causally faithful (Meek, 2013). Hence, for almost all P, these interventional distributions can be used to determine PaisubscriptPaPa_iPai as in the interventional distribution CiāĢøCjnot-perpendicular-tosubscriptsubscriptC_i C_jCitalic_i āĢø Citalic_j if and only if CjāPaisubscriptsubscriptPaC_j _iCitalic_j ā Pai. Explicitly, for almost all environments, CjāPaisubscriptsubscriptPaC_j _iCitalic_j ā Pai if and only if there are two leave-one-out interventions that differ only on CjsubscriptC_jCitalic_j with Cj=cjsubscriptsubscriptC_j=c_jCitalic_j = citalic_j and Cj=cjā²subscriptsuperscriptsubscriptā²C_j=c_j Citalic_j = citalic_jā² such that Pā¢(ciā£doā¢(c1,ā¦,cj,ā¦,ciā1,ci+1,ā¦,cN))ā Pā¢(ciā£doā¢(c1,ā¦,cjā²,ā¦,ciā1,ci+1,ā¦,cN))conditionalsubscriptdosubscript1ā¦subscriptā¦subscript1subscript1ā¦subscriptconditionalsubscriptdosubscript1ā¦subscriptsuperscriptā²ā¦subscript1subscript1ā¦subscriptP(c_i do(c_1,ā¦,c_j,ā¦,c_i-1,c_i+1,ā¦,c_N)% )ā P(c_i do(c_1,ā¦,c _j,ā¦,c_i-1,c_i+1% ,ā¦,c_N))P ( citalic_i ⣠do ( c1 , ⦠, citalic_j , ⦠, citalic_i - 1 , citalic_i + 1 , ⦠, citalic_N ) ) ā P ( citalic_i ⣠do ( c1 , ⦠, cā²italic_j , ⦠, citalic_i - 1 , citalic_i + 1 , ⦠, citalic_N ) ). For ease of notation we will use Pā¢(ciā£pai)conditionalsubscriptsubscriptpaP(c_i _i)P ( citalic_i ⣠pai ) interchangeably with Pā¢(ciā£doā¢(c1,ā¦,cj,ā¦,ciā1,ci+1,ā¦,cN))conditionalsubscriptdosubscript1ā¦subscriptā¦subscript1subscript1ā¦subscriptP(c_i do(c_1,ā¦,c_j,ā¦,c_i-1,c_i+1,ā¦,c_N))P ( citalic_i ⣠do ( c1 , ⦠, citalic_j , ⦠, citalic_i - 1 , citalic_i + 1 , ⦠, citalic_N ) ). First we learn the parameters for chance variables that have a directed path to U that does not include D, i.e. are ancestors of U in the graph GD^subscript^G_ DGover start_ARG D end_ARG where we intervene on D. Case 1: learning parameters for CiāAncUā¢(GD^)subscriptsubscriptAncsubscript^C_i _U(G_ D)Citalic_i ā AncU ( Gover start_ARG D end_ARG ). Consider a directed path Ckāā¦āC1āsubscriptā¦āsubscript1C_kāā¦ā C_1Citalic_k ā ⦠ā C1 where C1āPaUsubscript1subscriptPaC_1 _UC1 ā PaU and all variables are chance nodes (the path does not include D). Assume we know Pakā1,ā¦,Pa1subscriptPa1ā¦subscriptPa1Pa_k-1,ā¦,Pa_1Pak - 1 , ⦠, Pa1 and the parameters Pā¢(Ciā£pai)conditionalsubscriptsubscriptpaP(C_i _i)P ( Citalic_i ⣠pai ) for i=kā1,ā¦,11ā¦1i=k-1,ā¦,1i = k - 1 , ⦠, 1. We show that given these parameters we can identify the unknown parameters Pā¢(ckā£pak)conditionalsubscriptsubscriptpaP(c_k _k)P ( citalic_k ⣠pak ) (and hence PaksubscriptPaPa_kPak). Define =āCk,ā¦,C1subscriptā¦subscript1 Y= C \C_k,ā¦,C_1\italic_Y = italic_C ā Citalic_k , ⦠, C1 and consider the local intervention Ļ=doā¢(y1,ā¦,yNāk,ck=fā¢(ck))dosubscript1ā¦subscriptsubscriptsubscriptĻ= do(y_1,ā¦,y_N-k,c_k=f(c_k))Ļ = do ( y1 , ⦠, yitalic_N - k , citalic_k = f ( citalic_k ) ) where doā¢(ck=fā¢(ck))dosubscriptsubscript do(c_k=f(c_k))do ( citalic_k = f ( citalic_k ) ) is a local intervention on CksubscriptC_kCitalic_k such that, fā¢(Ck)=ckā²,Ck=ckā²ckā²ā¢ otherwisesubscriptcasessuperscriptsubscriptā²subscriptsuperscriptsubscriptā²otherwisesuperscriptsubscriptā² otherwiseotherwisef(C_k)= casesc_k \,,\,C_k=c_k \\ c_k \, otherwise casesf ( Citalic_k ) = start_ROW start_CELL citalic_kā² , Citalic_k = citalic_kā² end_CELL start_CELL end_CELL end_ROW start_ROW start_CELL citalic_kā² ā² otherwise end_CELL start_CELL end_CELL end_ROW (18) I.e. fā¢(Ck)subscriptf(C_k)f ( Citalic_k ) maps CksubscriptC_kCitalic_k to a 2 dimensional subspace where the image of Ck=ckā²subscriptsuperscriptsubscriptā²C_k=c_k Citalic_k = citalic_kā² is Ck=ckā²subscriptsuperscriptsubscriptā²C_k=c_k Citalic_k = citalic_kā² and all other states being mapped to Ck=ckā²subscriptsuperscriptsubscriptā²C_k=c_k Citalic_k = citalic_kā² ā², where ckā²,ckā²ā ckā²subscriptā²subscriptā²subscriptā²c_k ,c_k ā c_k citalic_kā² , citalic_kā² ā² ā citalic_kā² are arbitrary states of CksubscriptC_kCitalic_k. In the following we mask all inputs to the policy PaDā²=ā superscriptsubscriptPaā²Pa_D = ā² = ā . By Lemma 4 we can identify, āPā¢(=;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]subscriptdelimited-[]superscriptā² _ cP( C= c;Ļ)[U(d, c)-U(d , % c)]āitalic_c P ( italic_C = italic_c ; Ļ ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] =āckā¦ā¢āc1Pā¢(ckā£pak;Ļ)ā¢ā¦ā¢Pā¢(c1ā£pa1;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]absentsubscriptsubscriptā¦subscriptsubscript1conditionalsubscriptsubscriptpaā¦conditionalsubscript1subscriptpa1delimited-[]superscriptā² = _c_k⦠_c_1P(c_k _k;Ļ)% ⦠P(c_1 _1;Ļ)[U(d, c)-U(d , c)]= āc start_POSTSUBSCRIPT k end_POSTSUBSCRIPT ⦠āc start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT P ( citalic_k ⣠pak ; Ļ ) ⦠P ( c1 ⣠pa1 ; Ļ ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] =āckPā¢(ckā£pak;Ļ)ā¢Ī²ā¢(ck)absentsubscriptsubscriptconditionalsubscriptsubscriptpasubscript = _c_kP(c_k _k;Ļ)β(c_k)= āc start_POSTSUBSCRIPT k end_POSTSUBSCRIPT P ( citalic_k ⣠pak ; Ļ ) β ( citalic_k ) (19) where βā¢(ck):=āckā1ā¦ā¢āc1Pā¢(ckā1ā£pakā1;Ļ)ā¢ā¦ā¢Pā¢(c1ā£pa1;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]assignsubscriptsubscriptsubscript1ā¦subscriptsubscript1conditionalsubscript1subscriptpa1ā¦conditionalsubscript1subscriptpa1delimited-[]superscriptā²Ī²(c_k):= _c_k-1⦠_c_1P(c_k-1 _k-1;% Ļ)⦠P(c_1 _1;Ļ)[U(d, c)-U(d , % c)]β ( citalic_k ) := āc start_POSTSUBSCRIPT k - 1 end_POSTSUBSCRIPT ⦠āc start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT P ( citalic_k - 1 ⣠pak - 1 ; Ļ ) ⦠P ( c1 ⣠pa1 ; Ļ ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] (20) and βā¢(c1):=[Uā¢(d,)āUā¢(dā²,)]assignsubscript1delimited-[]superscriptā²Ī²(c_1):=[U(d, c)-U(d , c)]β ( c1 ) := [ U ( d , italic_c ) - U ( dā² , italic_c ) ]. Note that in equation 19 βā¢(ck)subscriptβ(c_k)β ( citalic_k ) is determined by the known parameters Pā¢(ckā1ā£pakā1),ā¦,Pā¢(c1ā£pa1)conditionalsubscript1subscriptpa1ā¦conditionalsubscript1subscriptpa1P(c_k-1 _k-1),ā¦,P(c_1 _1)P ( citalic_k - 1 ⣠pak - 1 ) , ⦠, P ( c1 ⣠pa1 ) and Uā¢(paU)subscriptpaU(pa_U)U ( paU ), and βā¢(ck)subscriptβ(c_k)β ( citalic_k ) are non-zero for almost all P,UP,UP , U as βā¢(ck)=0subscript0β(c_k)=0β ( citalic_k ) = 0 is a polynomial equation in these parameters it is not satisfied for almost all P,UP,UP , U. Using the definition of the local intervention in equation 18 we have Pā¢(Ck=ckā²ā£pak;Ļ)=Pā¢(Ck=ckā²ā£pak)subscriptconditionalsuperscriptsubscriptā²subscriptpasubscriptconditionalsuperscriptsubscriptā²subscriptpaP(C_k=c_k _k;Ļ)=P(C_k=c_k % pa_k)P ( Citalic_k = citalic_kⲠ⣠pak ; Ļ ) = P ( Citalic_k = citalic_kⲠ⣠pak ), and Pā¢(Ck=ckā²ā£pak;Ļ)=1āPā¢(Ci=ckā²ā£pak;Ļ)=1āPā¢(Ck=ckā²ā£pak)subscriptconditionalsuperscriptsubscriptā²subscriptpa1subscriptconditionalsuperscriptsubscriptā²subscriptpa1subscriptconditionalsuperscriptsubscriptā²subscriptpaP(C_k=c_k _k;Ļ)=1-P(C_i=c_k^% _k;Ļ)=1-P(C_k=c_k _k)P ( Citalic_k = citalic_kⲠⲠ⣠pak ; Ļ ) = 1 - P ( Citalic_i = citalic_kⲠ⣠pak ; Ļ ) = 1 - P ( Citalic_k = citalic_kⲠ⣠pak ). Therefore the right hand side of equation 19 has a single undetermined parameter Pā¢(Ck=ckā²ā£pak)subscriptconditionalsuperscriptsubscriptā²subscriptpaP(C_k=c_k _k)P ( Citalic_k = citalic_kⲠ⣠pak ) and the left hand side can be determined using the policy oracle (Lemma 4), and we can solve for Pā¢(Ck=ckā²ā£pak)subscriptconditionalsuperscriptsubscriptā²subscriptpaP(C_k=c_k _k)P ( Citalic_k = citalic_kⲠ⣠pak ). By repeating this procedure with different interventions, varying the hard intervention doā¢(=)do do( Y= y)do ( italic_Y = italic_y ) and the choices of ckā²,ckā²subscriptā²subscriptā²c_k ,c_k citalic_kā² , citalic_kā² ā², we can identify Pā¢(ckā£pak)conditionalsubscriptsubscriptpaP(c_k _k)P ( citalic_k ⣠pak ) for all ck,paksubscriptsubscriptpac_k,pa_kcitalic_k , pak and hence PaksubscriptPaPa_kPak. We now learn the parameters for all CiāAncUā¢(GD^)subscriptsubscriptAncsubscript^C_i _U(G_ D)Citalic_i ā AncU ( Gover start_ARG D end_ARG ). We know the set PaUsubscriptPaPa_UPaU as this is the domain of the utility function Uā¢(PaU)subscriptPaU(Pa_U)U ( PaU ) which is known by assumption. We can then proceed iteratively, first learning the parameters of P,GP,GP , G that are Pā¢(c1ā£pa1)conditionalsubscript1subscriptpa1P(c_1 _1)P ( c1 ⣠pa1 ) and Pa1subscriptPa1Pa_1Pa1 for some C1āPaUsubscript1subscriptPaC_1 _UC1 ā PaU. We can do this as βā¢(c1)=Uā¢(d,)āUā¢(dā²,)subscript1superscriptā²Ī²(c_1)=U(d, x)-U(d , x)β ( c1 ) = U ( d , italic_x ) - U ( dā² , italic_x ) with d,dā²ā¢superscriptā²d,d xd , dā² italic_x returned by Algorithm 1 in Lemma 4 and Uā¢(PaU)subscriptPaU(Pa_U)U ( PaU ) is known. We can then determine the parameters for all CjāPa1subscriptsubscriptPa1C_j _1Citalic_j ā Pa1, and so on until we have traversed Anc1subscriptAnc1Anc_1Anc1. We repeat this for all CiāPaUsubscriptsubscriptPaC_i _UCitalic_i ā PaU until we have covered all AncUā¢(GD^)subscriptAncsubscript^Anc_U(G_ D)AncU ( Gover start_ARG D end_ARG ). Case 2: learning parameters for CiāAncDsubscriptsubscriptAncC_i _DCitalic_i ā AncD, CiāAncUā¢(GD^)subscriptsubscriptAncsubscript^C_i _U(G_ D)Citalic_i ā AncU ( Gover start_ARG D end_ARG ). Consider CkāAncUsubscriptsubscriptAncC_k _UCitalic_k ā AncU for which all directed paths to U are via D, CkāCkā1āā¦āC1āsubscriptsubscript1āā¦āsubscript1C_kā C_k-1āā¦ā C_1Citalic_k ā Citalic_k - 1 ā ⦠ā C1 where C1āP~ā¢aDsubscript1~subscriptC_1ā Pa_DC1 ā over~ start_ARG P end_ARG aitalic_D. As before, assume we know Pakā1,ā¦,Pa1subscriptPa1ā¦subscriptPa1Pa_k-1,ā¦,Pa_1Pak - 1 , ⦠, Pa1 and the parameters Pā¢(Ciā£pai)conditionalsubscriptsubscriptpaP(C_i _i)P ( Citalic_i ⣠pai ) for i=kā1,ā¦,11ā¦1i=k-1,ā¦,1i = k - 1 , ⦠, 1. We now show that given these parameters we can identify the unknown parameters Pā¢(ckā£pak)conditionalsubscriptsubscriptpaP(c_k _k)P ( citalic_k ⣠pak ) (and hence PaksubscriptPaPa_kPak). Define =āCk,ā¦,C1subscriptā¦subscript1 Y= C \C_k,ā¦,C_1\italic_Y = italic_C ā Citalic_k , ⦠, C1 and let Ļ=doā¢(y1,ā¦,yNāk,ck=fā¢(ck))dosubscript1ā¦subscriptsubscriptsubscriptĻ= do(y_1,ā¦,y_N-k,c_k=f(c_k))Ļ = do ( y1 , ⦠, yitalic_N - k , citalic_k = f ( citalic_k ) ) where doā¢(ck=fā¢(ck))dosubscriptsubscript do(c_k=f(c_k))do ( citalic_k = f ( citalic_k ) ) is a local intervention defined in equation 18. We now mask all evidence except C1subscript1C_1C1, i.e. PaDā²=C1superscriptsubscriptPaā²subscript1Pa_D =\C_1\PaDā² = C1 . Note that as C1āPaUsubscript1subscriptPaC_1 _UC1 ā PaU we can apply Lemma 4, giving (for kā„22kā„ 2k ā„ 2) āPā¢(=;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]subscriptdelimited-[]superscriptā² _ zP( C= c;Ļ)[U(d, c)-U(d , % c)]āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] =āckā¦ā¢āc2Pā¢(ckā£pak;Ļ)ā¢ā¦ā¢Pā¢(c1ā£pa1)ā¢[Uā¢(d,)āUā¢(dā²,)]absentsubscriptsubscriptā¦subscriptsubscript2conditionalsubscriptsubscriptpaā¦conditionalsubscript1subscriptpa1delimited-[]superscriptā² = _c_k⦠_c_2P(c_k _k;Ļ)% ⦠P(c_1 _1)[U(d, c)-U(d , c)]= āc start_POSTSUBSCRIPT k end_POSTSUBSCRIPT ⦠āc start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT P ( citalic_k ⣠pak ; Ļ ) ⦠P ( c1 ⣠pa1 ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] (21) =āckPā¢(ckā£pak)ā¢Ī±ā¢(ck)absentsubscriptsubscriptconditionalsubscriptsubscriptpasubscript = _c_kP(c_k _k)α(c_k)= āc start_POSTSUBSCRIPT k end_POSTSUBSCRIPT P ( citalic_k ⣠pak ) α ( citalic_k ) (22) where =āC1subscript1 Z= C \C_1\italic_Z = italic_C ā C1 and, αā¢(ck):=āckā1ā¦ā¢āc2Pā¢(ckā1ā£pakā1)ā¢ā¦ā¢Pā¢(c1ā£pa1)ā¢[Uā¢(d,)āUā¢(dā²,)]assignsubscriptsubscriptsubscript1ā¦subscriptsubscript2conditionalsubscript1subscriptpa1ā¦conditionalsubscript1subscriptpa1delimited-[]superscriptā²Ī±(c_k):= _c_k-1⦠_c_2P(c_k-1 _k-1)% ⦠P(c_1 _1)[U(d, c)-U(d , c)]α ( citalic_k ) := āc start_POSTSUBSCRIPT k - 1 end_POSTSUBSCRIPT ⦠āc start_POSTSUBSCRIPT 2 end_POSTSUBSCRIPT P ( citalic_k - 1 ⣠pak - 1 ) ⦠P ( c1 ⣠pa1 ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] (23) and for k=11k=1k = 1 we have, āPā¢(=;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]=Pā¢(C1=c1ā£pa1;Ļ)ā¢Ī±ā¢(1)subscriptdelimited-[]superscriptā²subscript1conditionalsubscript1subscriptpa11 _ zP( C= c;Ļ)[U(d, c)-U(d , c)]=P(C_1% =c_1 _1;Ļ)α(1)āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] = P ( C1 = c1 ⣠pa1 ; Ļ ) α ( 1 ) (24) where αā¢(1):=[Uā¢(d,)āUā¢(dā²,)]assign1delimited-[]superscriptā²Ī±(1):=[U(d, x)-U(d , x)]α ( 1 ) := [ U ( d , italic_x ) - U ( dā² , italic_x ) ]. We can determine αā¢(ck)subscriptα(c_k)α ( citalic_k ) as we know the parameters for Ckā1,ā¦,C1subscript1ā¦subscript1C_k-1,ā¦,C_1Citalic_k - 1 , ⦠, C1 by assumption, and αā¢(ck)ā 0subscript0α(c_k)ā 0α ( citalic_k ) ā 0 for almost all P,UP,UP , U as the equation αā¢(ck)=0subscript0α(c_k)=0α ( citalic_k ) = 0 is a polynomial in the model parameters by Lemma 2 it is not satisfied for almost all P,UP,UP , U. Using the definition of the local intervention equation 18 we have Pā¢(Ck=ckā²ā£pak;Ļ)=Pā¢(Ck=ckā²ā£pak)subscriptconditionalsuperscriptsubscriptā²subscriptpasubscriptconditionalsuperscriptsubscriptā²subscriptpaP(C_k=c_k _k;Ļ)=P(C_k=c_k % pa_k)P ( Citalic_k = citalic_kⲠ⣠pak ; Ļ ) = P ( Citalic_k = citalic_kⲠ⣠pak ), and Pā¢(Ck=ckā²ā£pak;Ļ)=1āPā¢(Ci=ckā²ā£pak;Ļ)=1āPā¢(Ck=ckā²ā£pak)subscriptconditionalsuperscriptsubscriptā²subscriptpa1subscriptconditionalsuperscriptsubscriptā²subscriptpa1subscriptconditionalsuperscriptsubscriptā²subscriptpaP(C_k=c_k _k;Ļ)=1-P(C_i=c_k^% _k;Ļ)=1-P(C_k=c_k _k)P ( Citalic_k = citalic_kⲠⲠ⣠pak ; Ļ ) = 1 - P ( Citalic_i = citalic_kⲠ⣠pak ; Ļ ) = 1 - P ( Citalic_k = citalic_kⲠ⣠pak ). Therefore the right hand side of equation 19 has a single undetermined parameter Pā¢(Ck=ckā²ā£pak)subscriptconditionalsuperscriptsubscriptā²subscriptpaP(C_k=c_k _k)P ( Citalic_k = citalic_kⲠ⣠pak ) and the left hand side can be determined using the policy oracle (using Lemma 4, noting PaDā²=C1subscriptsuperscriptPaā²subscript1Pa _D=\C_1\Paā²D = C1 and C1ā©PaU=ā subscript1subscriptPa\C_1\ _U= C1 ā© PaU = ā ), and we can solve for Pā¢(Ck=ckā²ā£pak)subscriptconditionalsuperscriptsubscriptā²subscriptpaP(C_k=c_k _k)P ( Citalic_k = citalic_kⲠ⣠pak ). By repeating this procedure with different interventions, varying the hard intervention doā¢(=)do do( Y= y)do ( italic_Y = italic_y ) and the choices of ckā²,ckā²subscriptā²subscriptā²c_k ,c_k citalic_kā² , citalic_kā² ā², we can identify Pā¢(ckā£pak)conditionalsubscriptsubscriptpaP(c_k _k)P ( citalic_k ⣠pak ) for all ck,paksubscriptsubscriptpac_k,pa_kcitalic_k , pak and hence PaksubscriptPaPa_kPak. We now learn the parameters for all CiāAncDāAncUā¢(GD^)subscriptsubscriptAncsubscriptAncsubscript^C_i _D _U(G_ D)Citalic_i ā AncD ā AncU ( Gover start_ARG D end_ARG ). We know PaDsubscriptPaPa_DPaD from the domain of the policy returned by the policy oracle. If the parameters for all variables in PaDsubscriptPaPa_DPaD have be learned in the previous set, we are finished. Otherwise, there are variables that are in AncUsubscriptAncAnc_UAncU for which all directed paths to U are via D. Let this set of variables by Pa~DāPaDsubscript~PasubscriptPa Pa_D _Dover~ start_ARG Pa end_ARGD ā PaD. For any C1āPa~Dsubscript1subscript~PaC_1ā Pa_DC1 ā over~ start_ARG Pa end_ARGD we can determine αā¢(c1)=Uā¢(d,)āUā¢(dā²,)subscript1superscriptā²Ī±(c_1)=U(d, x)-U(d , x)α ( c1 ) = U ( d , italic_x ) - U ( dā² , italic_x ) with d,dā²,superscriptā²d,d , xd , dā² , italic_x returned by Algorithm 1 in Lemma 4, noting that C1āPaUsubscript1subscriptPaC_1 _UC1 ā PaU. We can then determine the parameters for all CjāPa1subscriptsubscriptPa1C_j _1Citalic_j ā Pa1, and so on until we have traversed Anc1subscriptAnc1Anc_1Anc1, and repeat until we have learned the parameters for all CiāAncDāAncUā¢(GD^)subscriptsubscriptAncsubscriptAncsubscript^C_i _D _U(G_ D)Citalic_i ā AncD ā AncU ( Gover start_ARG D end_ARG ). ā Appendix D Proof of Theorem 2 In this section we derive a version of Lemma 4 using a Ī“-optimal policy oracle for Ī“>00Ī“>0Ī“ > 0. The reason we consider this case is that Theorem 1 assumes optimality, which is a strong assumption that wonāt be satisfied by realistic systems. It is therefore important to determine if our main results are contingent on this assumption. For example, it may be that we can only identify a causal model from the agentās policy for Ī“=00Ī“=0Ī“ = 0, and for Ī“>00Ī“>0Ī“ > 0 no causal model can be learned. Instead, what we find is that realistic agents with Ī“>00Ī“>0Ī“ > 0 have to learn approximate causal models, with the fidelity of these approximations increasing in a reasonable way as Ī“ā0ā0Ī“ā 0Ī“ ā 0. Low-regret analysis. What is a reasonable way for the approximation errors to change with Ī“? Clearly, if an agent has an arbitrarily large regret bound we cannot expect to learn anything about the environment from its policy. For example, a completely random policy can satisfy a large enough regret bound, and an agent does not need to learn anything about the environment to learn this policy. Therefore we must still constrain the regret to be small in our analysis, and the standard way to do this by an order analysis. We define āsmall regretā as Ī“āŖĻāā¢[U]much-less-thansuperscriptsuperscriptdelimited-[]Ī“ ^Ļ^*[U]Ī“ āŖ blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ]. As we work with the normalised utility function (see Section A.1), we have Ļāā¢[U]ā¤1superscriptsuperscriptdelimited-[]1E^Ļ^*[U]⤠1blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ] ⤠1 and so we can define the small regret regime as Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1. What we find is that for small Ī“ the order of the error in our estimation of the model parameters grows linearly with the order of increase in the regret for agents that incur only a small regret. Therefore we get a linear trade-off between regret and accuracy for small Ī“. First we show that Algorithm 1 allows us to estimate the value of Q=āPā¢(=;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]subscriptdelimited-[]superscriptā²Q= _ zP( C= c;Ļ)[U(d, c)-U(d , c)]Q = āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] with an approximate value Q~~ Qover~ start_ARG Q end_ARG, and estimate bounds Q~±superscript~plus-or-minus Q^±over~ start_ARG Q end_ARG± such that the true value of Q is guaranteed to satisfy Q~āā¤Qā¤Q~+superscript~superscript~ Q^-⤠Q⤠Q^+over~ start_ARG Q end_ARG- ⤠Q ⤠over~ start_ARG Q end_ARG+. Lemma 5. Using a Ī“-optimal policy oracle ΠΣΓsubscriptsuperscriptΠΣ ^Ī“_ Ī italic_Ī“roman_Ī£ where Ī£ Ī£ includes all mixtures of local interventions, including masking inputs PaDā²āPaDsuperscriptsubscriptPaā²subscriptPaPa_D _DPaDā² ā PaD, then for any given PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā² such that PaDā²ā©PaU=ā superscriptsubscriptPaā²subscriptPaPa_D _U= ā² ā© PaU = ā , we can determine d,dā²,ā²superscriptā²d,d , x d , dā² , italic_xā² where dā dā²ā d d ā dā² and a point estimate Q~~ Qover~ start_ARG Q end_ARG for Qā¢(paD,d,dā²):=āPā¢(=;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]<0assignsubscriptpasuperscriptā²subscriptdelimited-[]superscriptā²0Q(pa_D,d,d ):= _ zP( C= c;Ļ)[U(d, % x)-U(d , x)]<0Q ( paD , d , dā² ) := āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d , italic_x ) - U ( dā² , italic_x ) ] < 0 and bounds Qā[Q~ā,Q~+]superscript~superscript~Qā[ Q^-, Q^+]Q ā [ over~ start_ARG Q end_ARG- , over~ start_ARG Q end_ARG+ ] where =āPaDsubscriptPa Z= C _Ditalic_Z = italic_C ā PaD, =PaUāDsubscriptPa X=Pa_U \D\italic_X = PaU ā D and, 11āξā¢(QāĪ“)ā¤Q~ā¤11+ξā¢(Q+Ī“)11~11 11-ξ(Q-Ī“)⤠Q⤠11+ξ(Q+Ī“)divide start_ARG 1 end_ARG start_ARG 1 - ξ end_ARG ( Q - Ī“ ) ⤠over~ start_ARG Q end_ARG ⤠divide start_ARG 1 end_ARG start_ARG 1 + ξ end_ARG ( Q + Ī“ ) (25) where ξ:=Ī“/(Uā¢(d,ā²)āUā¢(dā²,ā²))>0assignsuperscriptā²superscriptā²0ξ:=Ī“/(U(d, x )-U(d , x ))>0ξ := Ī“ / ( U ( d , italic_xā² ) - U ( dā² , italic_xā² ) ) > 0 (26) and in the worst case these bounds scale with Ī“ as Q~+superscript~ Q^+over~ start_ARG Q end_ARG+ ā¤(1āξ1+ξ)ā¢Q+2ā¢Ī“1+ξabsent1121 ⤠( 1-ξ1+ξ )Q+ 2Ī“1+ξ⤠( divide start_ARG 1 - ξ end_ARG start_ARG 1 + ξ end_ARG ) Q + divide start_ARG 2 Ī“ end_ARG start_ARG 1 + ξ end_ARG (27) Q~āsuperscript~ Q^-over~ start_ARG Q end_ARG- ā„(1+ξ1āξ)ā¢Qā2ā¢Ī“1āξabsent1121 ā„ ( 1+ξ1-ξ )Q- 2Ī“1-ξ℠( divide start_ARG 1 + ξ end_ARG start_ARG 1 - ξ end_ARG ) Q - divide start_ARG 2 Ī“ end_ARG start_ARG 1 - ξ end_ARG (28) Proof. By Lemma 3 for almost all P,UP,UP , U there is a single optimal decision following the shift Ļ. Let d1subscript1d_1d1 be the decision returned by the policy returned by the policy oracle in the context PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā², which must satisfy the bound ā¢[uā£d,paD;Ļ]ā¤maxdā”ā¢[uā£d,paD;Ļ]āĪ“delimited-[]conditionalsubscriptpasubscriptdelimited-[]conditionalsubscriptpaE[u d,pa_D;Ļ]⤠_dE[u d,% pa_D;Ļ]- _E [ u ⣠d , paD ; Ļ ] ⤠maxitalic_d blackboard_E [ u ⣠d , paD ; Ļ ] - Ī“. Consider a hard intervention on all CiāsubscriptC_iā CCitalic_i ā italic_C, Ļā²:=doā¢(c1ā²,c2ā²,ā¦,cNā²)assignsuperscriptā²dosubscriptsuperscriptā²1subscriptsuperscriptā²2ā¦subscriptsuperscriptā²Ļ := do(c _1,c _2,ā¦,c _% N)Ļā² := do ( cā²1 , cā²2 , ⦠, cā²italic_N ) where for all CiāPaDā²subscriptsuperscriptsubscriptPaā²C_i _D Citalic_i ā PaDā² we set Ci=cisubscriptsubscriptC_i=c_iCitalic_i = citalic_i to be the same state as in observation PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā². The expected utility under this intervention is ā¢[uā£doā¢(D=d),paDā²;Ļā²]=Uā¢(d,ā²)delimited-[]conditionaldosuperscriptsubscriptpaā²superscriptā²E[u do(D=d),pa_D ;Ļ ]=U(d% , x )blackboard_E [ u ⣠do ( D = d ) , paDā² ; Ļā² ] = U ( d , italic_xā² ) where =PaUāDsubscriptPa X=Pa_U \D\italic_X = PaU ā D (and we have that DāPaUsubscriptPaD _UD ā PaU from Lemma 1 i)). Next we show that there is a choice of hard intervention Ļā²Ļ Ļā² such that the policy oracle must return different optimal decisions in the context PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā² for Ļā²Ļ Ļā² and Ļ. As PaDā²ā©PaU=ā superscriptsubscriptPaā²subscriptPaPa_D _U= ā² ā© PaU = ā then we are free to choose any X=xā²X=x X = xā² and the resulting Ļā²Ļ Ļā² will be compatible with the evidence PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā². Note that by Lemma 1 i) ā =ā²superscriptā² X= x italic_X = italic_xā² s.t. d1ā argā¢maxdā”Uā¢(d,xā²)subscript1subscriptargmaxsuperscriptā²d_1ā *arg\,max_dU(d,x )d1 ā start_OPERATOR arg max end_OPERATORd U ( d , xā² ), else D=d1subscript1D=d_1D = d1 is optimal for all = X= xitalic_X = italic_x which violates domain dependence. We can determine this =ā²superscriptā² X= x italic_X = italic_xā² given the utility function and d1subscript1d_1d1. Let d2=argā¢maxdā”Uā¢(d,ā²)subscript2subscriptargmaxsuperscriptā²d_2= *arg\,max_dU(d, x )d2 = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) and Ļā²=doā¢(c1ā²,c2ā²,ā¦,cNā²)superscriptā²dosubscriptsuperscriptā²1subscriptsuperscriptā²2ā¦subscriptsuperscriptā²Ļ = do(c _1,c _2,ā¦,c _N)Ļā² = do ( cā²1 , cā²2 , ⦠, cā²italic_N ) be the hard intervention for which =ā²superscriptā² X= x italic_X = italic_xā² and PaDā²=paDā²subscriptPaā²subscriptpaā²Pa_D =pa_D PaDā² = paDā². Note, we do not use the policy oracle to determine d2subscript2d_2d2 which can be determined from Uā¢(PaU)subscriptPaU(Pa_U)U ( PaU ) alone, and hence there is no uncertainty if d2subscript2d_2d2 is in fact optimal under Ļā²Ļ Ļā² for any regret bound, nor that d1subscript1d_1d1 is not optimal under Ļā²Ļ Ļā². Consider the joint distribution over Citalic_C under the mixed local intervention Ļ~ā¢(q)=qā¢Ļ+(1āq)ā¢Ļā²~1superscriptā² Ļ(q)=qĻ+(1-q)Ļ over~ start_ARG Ļ end_ARG ( q ) = q Ļ + ( 1 - q ) Ļā², Pā¢(=ā£doā¢(D=d);Ļ~ā¢(q))conditionaldo~ P( C= c do(D=d); Ļ(q))P ( italic_C = italic_c ⣠do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ) =Pā¢(=;Ļ~ā¢(q))absent~ =P( C= c; Ļ(q))= P ( italic_C = italic_c ; over~ start_ARG Ļ end_ARG ( q ) ) (29) =qā¢Pā¢(=;Ļ)+(1āq)ā¢Pā¢(=;Ļā²)absent1superscriptā² =qP( C= c;Ļ)+(1-q)P( C= c;Ļ )= q P ( italic_C = italic_c ; Ļ ) + ( 1 - q ) P ( italic_C = italic_c ; Ļā² ) (30) where in the first line we have used ChD=UsubscriptChCh_D=\U\ChD = U to drop the intervention. Note that =āPaDā ā subscriptPa Z= C _Dā _Z = italic_C ā PaD ā ā by Lemma 1 i). The expected utility is given by, ā¢[uā£paD,doā¢(D=d);Ļ~ā¢(q)]=āPā¢(=ā£paD,doā¢(D=d);Ļ~ā¢(q))ā¢Uā¢(d,)delimited-[]conditionalsubscriptpado~subscriptconditionalsubscriptpado~ [u _D, do(D=d); Ļ(q% )]=Ī£ _ zP( Z= z _D, do(D=d);% Ļ(q))U(d, x)blackboard_E [ u ⣠paD , do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ] = āitalic_z P ( italic_Z = italic_z ⣠paD , do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ) U ( d , italic_x ) (31) =āPā¢(=ā£doā¢(D=d);Ļ~ā¢(q))Pā¢(paDā£doā¢(D=d);Ļ~ā¢(q))ā¢Uā¢(d,)absentsubscriptconditionaldo~conditionalsubscriptpado~ =Ī£ _ z P( C= c do(D=d);% Ļ(q))P(pa_D do(D=d); Ļ(q))U% (d, x)= āitalic_z divide start_ARG P ( italic_C = italic_c ⣠do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ) end_ARG start_ARG P ( paD ⣠do ( D = d ) ; over~ start_ARG Ļ end_ARG ( q ) ) end_ARG U ( d , italic_x ) (32) =1Pā¢(paD;Ļ~ā¢(q))ā¢āPā¢(=;Ļ~ā¢(q))ā¢Uā¢(d,)absent1subscriptpa~subscript~ = 1P(pa_D; Ļ(q))Ī£ _ z% P( C= c; Ļ(q))U(d, x)= divide start_ARG 1 end_ARG start_ARG P ( paD ; over~ start_ARG Ļ end_ARG ( q ) ) end_ARG āitalic_z P ( italic_C = italic_c ; over~ start_ARG Ļ end_ARG ( q ) ) U ( d , italic_x ) (33) =1Pā¢(paD;Ļ~ā¢(q))ā¢āqā¢Pā¢(=;Ļ)ā¢Uā¢(d,)+(1āq)ā¢Pā¢(=;Ļā²)ā¢Uā¢(d,ā²)absent1subscriptpa~subscript1superscriptā² = 1P(pa_D; Ļ(q))Ī£ _ z% qP( C= c;Ļ)U(d, x)+(1-q)P( C= c;Ļ )U(d% , x )= divide start_ARG 1 end_ARG start_ARG P ( paD ; over~ start_ARG Ļ end_ARG ( q ) ) end_ARG āitalic_z q P ( italic_C = italic_c ; Ļ ) U ( d , italic_x ) + ( 1 - q ) P ( italic_C = italic_c ; Ļā² ) U ( d , italic_xā² ) (34) Note that for q=11q=1q = 1 the optimal decision is d1subscript1d_1d1 and for q=00q=0q = 0 the optimal decision returned by the policy oracle belongs to the set d⢠s.t. ā¢d=argā¢maxdā”Uā¢(d,ā²) s.t. subscriptargmaxsuperscriptā²\d s.t. d= *arg\,max_dU(d, x )\ d s.t. d = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) which does not contain d1subscript1d_1d1. Furthermore, the argmax of equation 34 with respect to d is a piecewise linear function with domain qā[0,1]01qā[0,1]q ā [ 0 , 1 ]. Therefore there must be some q=qcritsubscriptcritq=q_critq = qcrit that is the smallest value of q such that for q<qcritsubscriptcritq<q_critq < qcrit the policy oracle returns an optimal decision in the set d⢠s.t. ā¢d=argā¢maxdā”Uā¢(d,ā²) s.t. subscriptargmaxsuperscriptā²\d s.t. d= *arg\,max_dU(d, x )\ d s.t. d = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) and for qā„qcritsubscriptcritqā„ q_critq ā„ qcrit the optimal decision is not in this set. The value of qcritsubscriptcritq_critqcrit is given by ā¢[uā£paD,doā¢(D=d);Ļ~ā¢(qcrit)]=0delimited-[]conditionalsubscriptpado~subscriptcrit0E[u _D, do(D=d); Ļ(q_crit% )]=0blackboard_E [ u ⣠paD , do ( D = d ) ; over~ start_ARG Ļ end_ARG ( qcrit ) ] = 0, which by equation 34 is, qcritā¢āPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]+(1āqcrit)ā¢[Uā¢(d2,ā²)āUā¢(d3,ā²)]=0subscriptcritsubscriptdelimited-[]subscript2subscript31subscriptcritdelimited-[]subscript2superscriptā²subscript3superscriptā²0q_critĪ£ _ zP( C= c;Ļ)[U(d_2, x)-U(d% _3, x)]+(1-q_crit)[U(d_2, x )-U(d_3, x^% )]=0qcrit āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ] + ( 1 - qcrit ) [ U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ) ] = 0 (35) where d2ād⢠s.t. ā¢d=argā¢maxdā”Uā¢(d,ā²)subscript2 s.t. subscriptargmaxsuperscriptā²d_2ā\d s.t. d= *arg\,max_dU(d, x )\d2 ā d s.t. d = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) and d3ād⢠s.t. ā¢d=argā¢maxdā”Uā¢(d,ā²)subscript3 s.t. subscriptargmaxsuperscriptā²d_3 ā\d s.t. d= *arg\,max_dU(d, x )\d3 ā d s.t. d = start_OPERATOR arg max end_OPERATORd U ( d , italic_xā² ) . This yields the following expression for qcritsubscriptcritq_critqcrit, qcrit=(1āāPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]Uā¢(d2,ā²)āUā¢(d3,ā²))ā1subscriptcritsuperscript1subscriptdelimited-[]subscript2subscript3subscript2superscriptā²subscript3superscriptā²1q_crit= (1- Ī£ _ zP( C= c;Ļ)[U(d_% 2, x)-U(d_3, x)]U(d_2, x )-U(d_3, x % ) )^-1qcrit = ( 1 - divide start_ARG āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ] end_ARG start_ARG U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ) end_ARG )- 1 (36) where we have used āPā¢(=;Ļā²)ā¢[Uā¢(d2,)āUā¢(d3,)]=Uā¢(d2,ā²)āUā¢(d3,ā²)subscriptsuperscriptā²delimited-[]subscript2subscript3subscript2superscriptā²subscript3superscriptā²Ī£ _ zP( C= c;Ļ )[U(d_2, c)-U(d_3,% c)]=U(d_2, x )-U(d_3, x )āitalic_z P ( italic_C = italic_c ; Ļā² ) [ U ( d2 , italic_c ) - U ( d3 , italic_c ) ] = U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ). While Algorithm 1 identifies the smallest value of q such that the optimal policy changes, as we no longer have an optimal policy oracle, the probability q~~ qover~ start_ARG q end_ARG returned by Algorithm 1 is no longer necessarily equal to qcritsubscriptcritq_critqcrit. Instead, there are minimal and maximal value of q~~ qover~ start_ARG q end_ARG that Algorithm 1 can return, which are determined by the regret bound (see Figure 6). Our first aim is to bound qcritsubscriptcritq_critqcrit using q~~ qover~ start_ARG q end_ARG returned by the policy oracle. The maximal (minimal) values q~~ qover~ start_ARG q end_ARG can take while satisfying the regret bound are q±superscriptplus-or-minusq^±q±, which are the solutions to the equations Ī“ Ī“ ā„ā¢[uā£paD,doā¢(D=d2);Ļ~ā¢(q+)]āā¢[uā£paD,doā¢(D=d3);Ļ~ā¢(q+)]absentdelimited-[]conditionalsubscriptpadosubscript2~superscriptdelimited-[]conditionalsubscriptpadosubscript3~superscript [u _D, do(D=d_2); % Ļ(q^+)]-E[u _D, do(D=d_3); % Ļ(q^+)]ā„ blackboard_E [ u ⣠paD , do ( D = d2 ) ; over~ start_ARG Ļ end_ARG ( q+ ) ] - blackboard_E [ u ⣠paD , do ( D = d3 ) ; over~ start_ARG Ļ end_ARG ( q+ ) ] (37) āĪ“ -Ī“- Ī“ ā¤ā¢[uā£paD,doā¢(D=d2);Ļ~ā¢(qā)]āā¢[uā£paD,doā¢(D=d3);Ļ~ā¢(qā)]absentdelimited-[]conditionalsubscriptpadosubscript2~superscriptdelimited-[]conditionalsubscriptpadosubscript3~superscript [u _D, do(D=d_2); % Ļ(q^-)]-E[u _D, do(D=d_3); % Ļ(q^-)]⤠blackboard_E [ u ⣠paD , do ( D = d2 ) ; over~ start_ARG Ļ end_ARG ( q- ) ] - blackboard_E [ u ⣠paD , do ( D = d3 ) ; over~ start_ARG Ļ end_ARG ( q- ) ] (38) Using equation 34 these simplify to Ī“ā¢Pā¢(paD;Ļā¢(q+))subscriptpasuperscript Ī“ P(pa_D;Ļ(q^+))Ī“ P ( paD ; Ļ ( q+ ) ) ā„q+ā¢āPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]+(1āq+)ā¢[Uā¢(d2,ā²)āUā¢(d3,ā²)]absentsuperscriptsubscriptdelimited-[]subscript2subscript31superscriptdelimited-[]subscript2superscriptā²subscript3superscriptā² ā„ q^+Ī£ _ zP( C= c;Ļ)[U(d_2, % x)-U(d_3, x)]+(1-q^+)[U(d_2, x )-U(d_3, x^% )]ā„ q+ āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ] + ( 1 - q+ ) [ U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ) ] (39) Ī“ā¢Pā¢(paD;Ļā¢(qā))subscriptpasuperscript Ī“ P(pa_D;Ļ(q^-))Ī“ P ( paD ; Ļ ( q- ) ) ā¤qāā¢āPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]+(1āqā)ā¢[Uā¢(d2,ā²)āUā¢(d3,ā²)]absentsuperscriptsubscriptdelimited-[]subscript2subscript31superscriptdelimited-[]subscript2superscriptā²subscript3superscriptⲠ⤠q^-Ī£ _ zP( C= c;Ļ)[U(d_2, % x)-U(d_3, x)]+(1-q^-)[U(d_2, x )-U(d_3, x^% )]⤠q- āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ] + ( 1 - q- ) [ U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ) ] (40) We can relax and simplify these bounds by taking the maximum possible values for the unknown quantity Pā¢(paD;Ļā¢(q~))ā1āsubscriptpa~1P(pa_D;Ļ( q))ā 1P ( paD ; Ļ ( over~ start_ARG q end_ARG ) ) ā 1 giving, Ī“ Ī“ ā„q+ā¢āPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]+(1āq+)ā¢[Uā¢(d2,ā²)āUā¢(d3,ā²)]absentsuperscriptsubscriptdelimited-[]subscript2subscript31superscriptdelimited-[]subscript2superscriptā²subscript3superscriptā² ā„ q^+Ī£ _ zP( C= c;Ļ)[U(d_2, % x)-U(d_3, x)]+(1-q^+)[U(d_2, x )-U(d_3, x^% )]ā„ q+ āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ] + ( 1 - q+ ) [ U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ) ] (41) Ī“ Ī“ ā¤qāā¢āPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]+(1āqā)ā¢[Uā¢(d2,ā²)āUā¢(d3,ā²)]absentsuperscriptsubscriptdelimited-[]subscript2subscript31superscriptdelimited-[]subscript2superscriptā²subscript3superscriptⲠ⤠q^-Ī£ _ zP( C= c;Ļ)[U(d_2, % x)-U(d_3, x)]+(1-q^-)[U(d_2, x )-U(d_3, x^% )]⤠q- āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ] + ( 1 - q- ) [ U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ) ] (42) Let Ī1:=ā¢[uā£paD,doā¢(D=d2);Ļ]āā¢[uā£paD,doā¢(D=d3);Ļ]assignsubscriptĪ1delimited-[]conditionalsubscriptpadosubscript2delimited-[]conditionalsubscriptpadosubscript3 _1:=E[u _D, do(D=d_2);Ļ]-% E[u _D, do(D=d_3);Ļ]Ī1 := blackboard_E [ u ⣠paD , do ( D = d2 ) ; Ļ ] - blackboard_E [ u ⣠paD , do ( D = d3 ) ; Ļ ] and Ī0:=Uā¢(d2,ā²)āUā¢(d3,ā²)assignsubscriptĪ0subscript2superscriptā²subscript3superscriptā² _0:=U(d_2, x )-U(d_3, x )Ī0 := U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ). Note that Ī0>0subscriptĪ00 _0>0Ī0 > 0 as d2subscript2d_2d2 is optimal under Ļā²Ļ Ļā², and Ī1<0subscriptĪ10 _1<0Ī1 < 0 as by linearity we have ā¢[uā£paD,doā¢(D=d3);Ļ~ā¢(q)]>ā¢[uā£paD,doā¢(D=d2);Ļ~ā¢(q)]delimited-[]conditionalsubscriptpadosubscript3~delimited-[]conditionalsubscriptpadosubscript2~E[u _D, do(D=d_3); Ļ(q)]>% E[u _D, do(D=d_2); Ļ(q)]blackboard_E [ u ⣠paD , do ( D = d3 ) ; over~ start_ARG Ļ end_ARG ( q ) ] > blackboard_E [ u ⣠paD , do ( D = d2 ) ; over~ start_ARG Ļ end_ARG ( q ) ] for q>qcritsubscriptcritq>q_critq > qcrit and qcrit<1subscriptcrit1q_crit<1qcrit < 1 therefore ā¢[uā£paD,doā¢(D=d3);Ļ~ā¢(1)]>ā¢[uā£paD,doā¢(D=d2);Ļ~ā¢(1)]delimited-[]conditionalsubscriptpadosubscript3~1delimited-[]conditionalsubscriptpadosubscript2~1E[u _D, do(D=d_3); Ļ(1)]>% E[u _D, do(D=d_2); Ļ(1)]blackboard_E [ u ⣠paD , do ( D = d3 ) ; over~ start_ARG Ļ end_ARG ( 1 ) ] > blackboard_E [ u ⣠paD , do ( D = d2 ) ; over~ start_ARG Ļ end_ARG ( 1 ) ]. We now define q±superscriptplus-or-minusq^±q± w.r.t the (relaxed) bounds equation 41 and equation 42, and simplifying these inequalities using equation 36 gives q~~ qover~ start_ARG q end_ARG ā¤q+=minā”1,qcritā¢(1+ξ)absentsubscript1subscriptcrit1 ⤠q_+= \1,q_crit(1+ξ)\⤠q+ = min 1 , qcrit ( 1 + ξ ) (43) q~~ qover~ start_ARG q end_ARG ā„qā=maxā”0,qcritā¢(1āξ)absentsubscript0subscriptcrit1 ā„ q_-= \0,q_crit(1-ξ)\ā„ q- = max 0 , qcrit ( 1 - ξ ) (44) where ξ:=Ī“/Ī0>0assignsubscriptĪ00ξ:=Ī“/ _0>0ξ := Ī“ / Ī0 > 0 (45) We therefore generate bounds on qcritsubscriptcritq_critqcrit using equation 44 and equation 43, i.e. qcritsubscriptcrit q_critqcrit ā¤q~/(1āξ)absent~1 ⤠q/(1-ξ)⤠over~ start_ARG q end_ARG / ( 1 - ξ ) (46) qcritsubscriptcrit q_critqcrit ā„q~/(1+ξ)absent~1 ā„ q/(1+ξ)ā„ over~ start_ARG q end_ARG / ( 1 + ξ ) (47) We use q~~ qover~ start_ARG q end_ARG in place of qcritsubscriptcritq_critqcrit in equation 36, giving an estimate Q~~ Qover~ start_ARG Q end_ARG for Q=āPā¢(=;Ļ)ā¢[Uā¢(d2,)āUā¢(d3,)]subscriptdelimited-[]subscript2subscript3Q= _ zP( C= c;Ļ)[U(d_2, x)-U(d_3, x)]Q = āitalic_z P ( italic_C = italic_c ; Ļ ) [ U ( d2 , italic_x ) - U ( d3 , italic_x ) ], yielding, Q~=Ī0ā¢(1ā1/q~)~subscriptĪ011~ Q= _0 (1-1/ q )over~ start_ARG Q end_ARG = Ī0 ( 1 - 1 / over~ start_ARG q end_ARG ) (48) Finally, applying bounds equation 46 and equation 47 gives, 11āξā¢(Ī0āĪ“)ā¤Q~ā¤11+ξā¢(Ī0+Ī“)11subscriptĪ0~11subscriptĪ0 11-ξ ( _0-Ī“ )⤠Q⤠11+ξ% ( _0+Ī“ )divide start_ARG 1 end_ARG start_ARG 1 - ξ end_ARG ( Ī0 - Ī“ ) ⤠over~ start_ARG Q end_ARG ⤠divide start_ARG 1 end_ARG start_ARG 1 + ξ end_ARG ( Ī0 + Ī“ ) (49) Next, we determine upper and lower bounds Q±ā¢(q~)superscriptplus-or-minus~Q^±( q)Q± ( over~ start_ARG q end_ARG ) using Q=Ī0ā¢(1ā1/qcrit)subscriptĪ011subscriptcritQ= _0(1-1/q_crit)Q = Ī0 ( 1 - 1 / qcrit ) and equation 46 and equation 47 giving, Q Q ā¤Q~+ā¢(q~)=Ī0ā¢(1ā1āξq~)absentsuperscript~~subscriptĪ011~ ⤠Q^+( q)= _0 (1- 1-ξ% q )⤠over~ start_ARG Q end_ARG+ ( over~ start_ARG q end_ARG ) = Ī0 ( 1 - divide start_ARG 1 - ξ end_ARG start_ARG over~ start_ARG q end_ARG end_ARG ) (50) Q Q ā„Q~āā¢(q~)=Ī0ā¢(1ā1+ξq~)absentsuperscript~~subscriptĪ011~ ā„ Q^-( q)= _0 (1- 1+ξ% q )ā„ over~ start_ARG Q end_ARG- ( over~ start_ARG q end_ARG ) = Ī0 ( 1 - divide start_ARG 1 + ξ end_ARG start_ARG over~ start_ARG q end_ARG end_ARG ) (51) noting that as equation 48 is monotonic in q that the true value of Q is guaranteed to fall between these bounds. Finally, we derive expressions for the worst-case bounds in terms of the true value of Q, which are given by determining Q~±superscript~plus-or-minus Q^±over~ start_ARG Q end_ARG± for the max and min values of q~~ qover~ start_ARG q end_ARG which are given by equation 47 and equation 46, Q+superscript Q^+Q+ =maxq~ā”Q~+ā¢(q~)=Ī0ā¢(1ā1āξ1+ξā¢1qcrit)absentsubscript~superscript~~subscriptĪ01111subscriptcrit = _ q Q^+( q)= _0 (1- % 1-ξ1+ξ 1q_crit )= maxover~ start_ARG q end_ARG over~ start_ARG Q end_ARG+ ( over~ start_ARG q end_ARG ) = Ī0 ( 1 - divide start_ARG 1 - ξ end_ARG start_ARG 1 + ξ end_ARG divide start_ARG 1 end_ARG start_ARG qcrit end_ARG ) (52) =(1āξ1+ξ)ā¢Q+2ā¢Ī“1+ξabsent1121 = ( 1-ξ1+ξ )Q+ 2Ī“1+ξ= ( divide start_ARG 1 - ξ end_ARG start_ARG 1 + ξ end_ARG ) Q + divide start_ARG 2 Ī“ end_ARG start_ARG 1 + ξ end_ARG (53) Qāsuperscript Q^-Q- =minq~ā”Q~āā¢(q~)=Ī0ā¢(1ā1+ξ1āξā¢1qcrit)absentsubscript~superscript~~subscriptĪ01111subscriptcrit = _ q Q^-( q)= _0 (1- % 1+ξ1-ξ 1q_crit )= minover~ start_ARG q end_ARG over~ start_ARG Q end_ARG- ( over~ start_ARG q end_ARG ) = Ī0 ( 1 - divide start_ARG 1 + ξ end_ARG start_ARG 1 - ξ end_ARG divide start_ARG 1 end_ARG start_ARG qcrit end_ARG ) (54) =(1+ξ1āξ)ā¢Qā2ā¢Ī“1āξabsent1121 = ( 1+ξ1-ξ )Q- 2Ī“1-ξ= ( divide start_ARG 1 + ξ end_ARG start_ARG 1 - ξ end_ARG ) Q - divide start_ARG 2 Ī“ end_ARG start_ARG 1 - ξ end_ARG (55) Figure 6: Overview of Lemma 5. Ī0=Uā¢(d2,ā²)āUā¢(d3,ā²)subscriptĪ0subscript2superscriptā²subscript3superscriptā² _0=U(d_2, x )-U(d_3, x )Ī0 = U ( d2 , italic_xā² ) - U ( d3 , italic_xā² ) and Ī1=ā¢[uā£paD,doā¢(D=d2);Ļ]āā¢[uā£paD,doā¢(D=d3);Ļ]subscriptĪ1delimited-[]conditionalsubscriptpadosubscript2delimited-[]conditionalsubscriptpadosubscript3 _1=E[u _D, do(D=d_2);Ļ]-% E[u _D, do(D=d_3);Ļ]Ī1 = blackboard_E [ u ⣠paD , do ( D = d2 ) ; Ļ ] - blackboard_E [ u ⣠paD , do ( D = d3 ) ; Ļ ]. Using an optimal policy oracle we can identify qcritsubscriptcritq_critqcrit precisely as detailed in Lemma 4. For Ī“>00Ī“>0Ī“ > 0 instead of returning qcritsubscriptcritq_critqcrit Algorithm 1 returns q~~ qover~ start_ARG q end_ARG, as the agent can incur regret and so the value of q for which the policy changes is no longer constrained to be qcritsubscriptcritq_critqcrit. We use q~~ qover~ start_ARG q end_ARG in place to qcritsubscriptcritq_critqcrit to calculate an approximate value of the target query, in the same way as in Lemma 4. The maximum and minimum values of q~~ qover~ start_ARG q end_ARG can take are q±superscriptplus-or-minusq^±q± which result in maximal regret Ī“, q~ā„qā=qcritā¢(1āĪ“/Ī0)~superscriptsubscriptcrit1subscriptĪ0 qā„ q^-=q_crit(1-Ī“/ _0)over~ start_ARG q end_ARG ā„ q- = qcrit ( 1 - Ī“ / Ī0 ) and q~ā¤q+=qcritā¢(1+Ī“/Ī0)~superscriptsubscriptcrit1subscriptĪ0 q⤠q^+=q_crit(1+Ī“/ _0)over~ start_ARG q end_ARG ⤠q+ = qcrit ( 1 + Ī“ / Ī0 ). We can therefore bound the amount that Q~~ Qover~ start_ARG Q end_ARG deviates from the value of the target query Q. ā Lemma 6. For Ī“āŖĻāā¢[U]much-less-thansuperscriptsuperscriptdelimited-[]Ī“ ^Ļ^*[U]Ī“ āŖ blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ], Q~~ Qover~ start_ARG Q end_ARG and Q~±superscript~plus-or-minus Q^±over~ start_ARG Q end_ARG± (as defined in Lemma 5) satisfy bounds, |Q~āQ|ā¤Ī“ā¢(1āQĪ0)+ā¢(Ī“2)~1subscriptĪ0superscript2 | Q-Q |ā¤Ī“(1- Q _0)+O(Ī“^% 2)| over~ start_ARG Q end_ARG - Q | ⤠Γ ( 1 - divide start_ARG Q end_ARG start_ARG Ī0 end_ARG ) + O ( Ī“2 ) (56) and Q~+āQsuperscript~ Q^+-Qover~ start_ARG Q end_ARG+ - Q ā¤2ā¢Ī“ā¢(1āQĪ0)+ā¢(Ī“2)absent21subscriptĪ0superscript2 ⤠2Ī“(1- Q _0)+O(Ī“^2)⤠2 Ī“ ( 1 - divide start_ARG Q end_ARG start_ARG Ī0 end_ARG ) + O ( Ī“2 ) (57) QāQ~āsuperscript~ Q- Q^-Q - over~ start_ARG Q end_ARG- ā„ā2ā¢Ī“ā¢(1āQĪ0)+ā¢(Ī“2)absent21subscriptĪ0superscript2 ā„-2Ī“(1- Q _0)+O(Ī“^2)ā„ - 2 Ī“ ( 1 - divide start_ARG Q end_ARG start_ARG Ī0 end_ARG ) + O ( Ī“2 ) (58) Proof. As we work with the normalised utility function (see Section A.1), we have Ļāā¢[U]ā¤1superscriptsuperscriptdelimited-[]1E^Ļ^*[U]⤠1blackboard_EĻ start_POSTSUPERSCRIPT ā end_POSTSUPERSCRIPT [ U ] ⤠1 and so we can define the small regret regime as Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1. We can Taylor expand the bounds on Q~,Q~±~superscript~plus-or-minus Q, Q^±over~ start_ARG Q end_ARG , over~ start_ARG Q end_ARG± about Ī“=00Ī“=0Ī“ = 0 giving, QāĪ“ā¢(1āQĪ0)+ā¢(Ī“2)ā¤Q~ā¤Q+Ī“ā¢(1āQĪ0)+ā¢(Ī“2)1subscriptĪ0superscript2~1subscriptĪ0superscript2Q-Ī“(1- Q _0)+O(Ī“^2)⤠Q⤠Q+% Ī“(1- Q _0)+O(Ī“^2)Q - Ī“ ( 1 - divide start_ARG Q end_ARG start_ARG Ī0 end_ARG ) + O ( Ī“2 ) ⤠over~ start_ARG Q end_ARG ⤠Q + Ī“ ( 1 - divide start_ARG Q end_ARG start_ARG Ī0 end_ARG ) + O ( Ī“2 ) (59) and therefore, |Q~āQ|ā¤Ī“ā¢(1āQĪ0)+ā¢(Ī“2)~1subscriptĪ0superscript2 | Q-Q |ā¤Ī“(1- Q _0)+O(Ī“^% 2)| over~ start_ARG Q end_ARG - Q | ⤠Γ ( 1 - divide start_ARG Q end_ARG start_ARG Ī0 end_ARG ) + O ( Ī“2 ) (60) and Q~+āQsuperscript~ Q^+-Qover~ start_ARG Q end_ARG+ - Q ā¤2ā¢Ī“ā¢(1āQĪ0)+ā¢(Ī“2)absent21subscriptĪ0superscript2 ⤠2Ī“(1- Q _0)+O(Ī“^2)⤠2 Ī“ ( 1 - divide start_ARG Q end_ARG start_ARG Ī0 end_ARG ) + O ( Ī“2 ) (61) QāQ~āsuperscript~ Q- Q^-Q - over~ start_ARG Q end_ARG- ā„ā2ā¢Ī“ā¢(1āQĪ0)+ā¢(Ī“2)absent21subscriptĪ0superscript2 ā„-2Ī“(1- Q _0)+O(Ī“^2)ā„ - 2 Ī“ ( 1 - divide start_ARG Q end_ARG start_ARG Ī0 end_ARG ) + O ( Ī“2 ) (62) therefore for small Ī“ the worst case error on our estimate Q~~ Qover~ start_ARG Q end_ARG grows linearly in Ī“, and our upper and lower bounds for Q~~ Qover~ start_ARG Q end_ARG also grow linearly. ā See 2 Proof. We use the Ī“ālimit-fromĪ“-Ī“ -optimal policy oracle to estimate the model parameters following the same steps as in the proof of Theorem 1 in Appendix C. However, as the policy oracle is no longer optimal, the parameters estimates will have errors. Here, we show that for the parameters of P these errors grow linearly in Ī“ for Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1, and that we learn a sparse sub-graph of G. Estimating parameters of P. In the proof of Theorem 1 we estimate the parameters Pā¢(ciā£pai)conditionalsubscriptsubscriptpaP(c_i _i)P ( citalic_i ⣠pai ) in two cases. Case 1. Qk=āPā¢(=;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]=āckPā¢(ckā£pak;Ļ)ā¢Ī²ā¢(ck)subscriptsubscriptdelimited-[]superscriptā²subscriptsubscriptconditionalsubscriptsubscriptpasubscriptQ_k= _ cP( C= c;Ļ)[U(d, c)-U(d , c)]=% _c_kP(c_k _k;Ļ)β(c_k)Qitalic_k = āitalic_c P ( italic_C = italic_c ; Ļ ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] = āc start_POSTSUBSCRIPT k end_POSTSUBSCRIPT P ( citalic_k ⣠pak ; Ļ ) β ( citalic_k ) (63) where βā¢(ck):=āckā1ā¦ā¢āc1Pā¢(ckā1ā£pakā1;Ļ)ā¢ā¦ā¢Pā¢(c1ā£pa1;Ļ)ā¢[Uā¢(d,)āUā¢(dā²,)]assignsubscriptsubscriptsubscript1ā¦subscriptsubscript1conditionalsubscript1subscriptpa1ā¦conditionalsubscript1subscriptpa1delimited-[]superscriptā²Ī²(c_k):= _c_k-1⦠_c_1P(c_k-1 _k-1;% Ļ)⦠P(c_1 _1;Ļ)[U(d, c)-U(d , % c)]β ( citalic_k ) := āc start_POSTSUBSCRIPT k - 1 end_POSTSUBSCRIPT ⦠āc start_POSTSUBSCRIPT 1 end_POSTSUBSCRIPT P ( citalic_k - 1 ⣠pak - 1 ; Ļ ) ⦠P ( c1 ⣠pa1 ; Ļ ) [ U ( d , italic_c ) - U ( dā² , italic_c ) ] (64) which we rearrange using Pā¢(ckā²ā£pak;Ļ)=1āPā¢(ckā²ā£pak;Ļ)conditionalsubscriptsuperscriptā²subscriptpa1conditionalsubscriptsuperscriptā²subscriptpaP(c _k _k;Ļ)=1-P(c _k % pa_k;Ļ)P ( cā²italic_k ⣠pak ; Ļ ) = 1 - P ( cā² ā²k ⣠pak ; Ļ ) to give, Pā¢(ckā²ā£pak;Ļ)=Qkāβā¢(ckā²)βā¢(ckā²)āβā¢(ckā²)conditionalsubscriptsuperscriptā²subscriptpasubscriptsuperscriptsubscriptā²subscriptā²subscriptā²P(c _k _k;Ļ)= Q_k-β(c_k % )β(c_k )-β(c_k )P ( cā²italic_k ⣠pak ; Ļ ) = divide start_ARG Qitalic_k - β ( citalic_kā² ā² ) end_ARG start_ARG β ( citalic_kā² ) - β ( citalic_kā² ā² ) end_ARG (65) Assume we have approximate values P^ā¢(ckā1ā²ā£pakā1;Ļ),ā¦,P^ā¢(c1ā²ā£pa1;Ļ)^conditionalsubscriptsuperscriptā²1subscriptpa1ā¦^conditionalsubscriptsuperscriptā²1subscriptpa1 P(c _k-1 _k-1;Ļ),ā¦, P(c % _1 _1;Ļ)over start_ARG P end_ARG ( cā²italic_k - 1 ⣠pak - 1 ; Ļ ) , ⦠, over start_ARG P end_ARG ( cā²1 ⣠pa1 ; Ļ ) where P^ā¢(ckā²ā£pak;Ļ)=Pā¢(ckā²ā£pak;Ļ)+ā¢(Ī“)^conditionalsubscriptsuperscriptā²subscriptpaconditionalsubscriptsuperscriptā²subscriptpa P(c _k _k;Ļ)=P(c _k % pa_k;Ļ)+O(Ī“)over start_ARG P end_ARG ( cā²italic_k ⣠pak ; Ļ ) = P ( cā²italic_k ⣠pak ; Ļ ) + O ( Ī“ ), i.e. errors in our estimates for these parameters grow linearly in Ī“ for Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1. As βā¢(ck)subscriptβ(c_k)β ( citalic_k ) is a sum of products of these parameter estimates, then our estimate of βā¢(ck)subscriptβ(c_k)β ( citalic_k ) also has linear error for Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1, i.e. β^ā¢(ck)=βā¢(ck)+ā¢(Ī“)^subscriptsubscript β(c_k)=β(c_k)+O(Ī“)over start_ARG β end_ARG ( citalic_k ) = β ( citalic_k ) + O ( Ī“ ), and likewise, P^ā¢(ckā²ā£pak;Ļ)=Qkāβā¢(ckā²)+ā¢(Ī“)βā¢(ckā²)āβā¢(ckā²)+ā¢(Ī“)=Pā¢(ckā²ā£pak;Ļ)ā¢(1+ā¢(Ī“))^conditionalsubscriptsuperscriptā²subscriptpasubscriptsuperscriptsubscriptā²subscriptā²subscriptā²conditionalsubscriptsuperscriptā²subscriptpa1 P(c _k _k;Ļ)= Q_k-β(c_k^% )+O(Ī“)β(c_k )-β(c_k % )+O(Ī“)=P(c _k _k;Ļ) % (1+O(Ī“) )over start_ARG P end_ARG ( cā²italic_k ⣠pak ; Ļ ) = divide start_ARG Qitalic_k - β ( citalic_kā² ā² ) + O ( Ī“ ) end_ARG start_ARG β ( citalic_kā² ) - β ( citalic_kā² ā² ) + O ( Ī“ ) end_ARG = P ( cā²italic_k ⣠pak ; Ļ ) ( 1 + O ( Ī“ ) ) (66) Then for k=11k=1k = 1 we know βā¢(c1)=Uā¢(d,)āUā¢(dā²,)subscript1superscriptā²Ī²(c_1)=U(d, c)-U(d , c)β ( c1 ) = U ( d , italic_c ) - U ( dā² , italic_c ) precisely, and so P^ā¢(c1ā²ā£pa1;Ļ)=Q1āβā¢(c1ā²)+ā¢(Ī“)βā¢(c1ā²)āβā¢(c1ā²)=Pā¢(c1ā²ā£pa1;Ļ)ā¢(1+ā¢(Ī“))^conditionalsubscriptsuperscriptā²1subscriptpa1subscript1superscriptsubscript1ā²subscript1ā²subscript1ā²conditionalsubscriptsuperscriptā²1subscriptpa11 P(c _1 _1;Ļ)= Q_1-β(c_1^% )+O(Ī“)β(c_1 )-β(c_1 % )=P(c _1 _1;Ļ) (1+O(% Ī“) )over start_ARG P end_ARG ( cā²1 ⣠pa1 ; Ļ ) = divide start_ARG Q1 - β ( c1ā² ā² ) + O ( Ī“ ) end_ARG start_ARG β ( c1ā² ) - β ( c1ā² ā² ) end_ARG = P ( cā²1 ⣠pa1 ; Ļ ) ( 1 + O ( Ī“ ) ) (67) Which satisfies our assumption of ā¢(Ī“)O(Ī“)O ( Ī“ ) error for k=11k=1k = 1, Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1. Therefore for all k we have error that grows linearly in Ī“ for Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1. The expressions for Qk,αā¢(ck)subscriptsubscriptQ_k,α(c_k)Qitalic_k , α ( citalic_k ) for case 2 in the proof of Theorem 1 are similar, and it is trivial to show by the same method that for these parameters the error also grow linearly in Ī“ for Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1. Learning graph structure. In Theorem 1 we determine PaksubscriptPaPa_kPak from Pā¢(ckā£doā¢(āCk))conditionalsubscriptdosubscriptP(c_k do( C \C_k\))P ( citalic_k ⣠do ( italic_C ā Citalic_k ) ). Assuming causal faithfulness, which is satisfied for almost all P (Meek, 2013), CjāPaksubscriptsubscriptPaC_j _kCitalic_j ā Pak if and only if Pā¢(ckā£doā¢(āCk))conditionalsubscriptdosubscriptP(c_k do( C \C_k\))P ( citalic_k ⣠do ( italic_C ā Citalic_k ) ) differ for some Cj=cj,Cj=cjā²formulae-sequencesubscriptsubscriptsubscriptsubscriptsuperscriptā²C_j=c_j,C_j=c _jCitalic_j = citalic_j , Citalic_j = cā²italic_j. However, as we now only have estimates P^ā¢(ckā£doā¢(āCk))^conditionalsubscriptdosubscript P(c_k do( C \C_k\))over start_ARG P end_ARG ( citalic_k ⣠do ( italic_C ā Citalic_k ) ), any variation with respect to Cj=cjsubscriptsubscriptC_j=c_jCitalic_j = citalic_j may be due to the varying errors in these estimates rather than variation in the conditional probability itself. However, we have shown that we can learn any Pā¢(ciā£pai)conditionalsubscriptsubscriptpaP(c_i _i)P ( citalic_i ⣠pai ) within error bounds, and that these bounds scale linearly with Ī“ for Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1. Let CjāPai+nsubscriptsubscriptPaC_j _i+nCitalic_j ā Pai + n and Īøkā¢j=Pā¢(ckā£doā¢(āCk))subscriptconditionalsubscriptdosubscript _kj=P(c_k do( C \C_k\))Īøitalic_k j = P ( citalic_k ⣠do ( italic_C ā Citalic_k ) ), and denote the corresponding upper and lower bounds from Lemma 6 as Īøkā¢j±superscriptsubscriptplus-or-minus _kj^±θitalic_k j±. If ā Īøkā¢jā Īøkā¢jā²subscriptsubscriptsuperscriptā² _kjā _kj Īøitalic_k j ā Īøitalic_k jā² and either Īøkā¢j+<Īøkā¢jā²āsuperscriptsubscriptsuperscriptsubscriptsuperscriptā² _kj^+< _kj ^-Īøitalic_k j+ < Īøitalic_k jā²- or Īøkā¢jā²+<Īøkā¢jāsuperscriptsubscriptsuperscriptā²subscript _kj ^+< _kj^-Īøitalic_k jā²+ < Īøitalic_k j-, non-overlapping bounds for Cj=cjsubscriptsubscriptC_j=c_jCitalic_j = citalic_j and Cj=cjā²subscriptsuperscriptsubscriptā²C_j=c_j Citalic_j = citalic_jā², then we know with certainty that CjāPaksubscriptsubscriptPaC_j _kCitalic_j ā Pak. If there are no such non-overlapping bounds for all j, we do not know if CjāPaksubscriptsubscriptPaC_j _kCitalic_j ā Pak and so exclude it from the set. This approach is guaranteed to identify a sub-graph of G (i.e. no false positivesādirected edges present in the approximate CBN that are not present in the environment). Further, we only miss a parent if in the true underlying causal model for all Pak=paksubscriptPasubscriptpaPa_k=pa_kPak = pak intervening to change CjsubscriptC_jCitalic_j gives |P(ckā£pak,do(cj))āP(ckā£pak,do(cjā²))|<(Ī“)|P(c_k _k, do(c_j))-P(c_k _k,% do(c_j ))|<O(Ī“)| P ( citalic_k ⣠pak , do ( citalic_j ) ) - P ( citalic_k ⣠pak , do ( citalic_jā² ) ) | < O ( Ī“ ). Hence for Ī“āŖ1much-less-than1Ī“ 1Ī“ āŖ 1 we only fail to learn causal relations that small in magnitude (with respected to the regret Ī“), i.e. where the causal effect of the parent on the child is ā¢(Ī“)O(Ī“)O ( Ī“ ). In Appendix F we explore the relation between the regret bound and the error in the learned causal graph using simulated data, and find that even agents that incur relatively high regret can be used to identify causal structure to a high accuracy compared to a random baseline. ā Appendix E Appendix: proof of Theorem 3 See 3 Proof. First we consider the case where we know the exact model M=(P,G)M=(P,G)M = ( P , G ). As M is causally sufficient we can identify ā¢[uā£d,paD;Ļ]delimited-[]conditionalsubscriptpaE[u d,pa_D;Ļ]blackboard_E [ u ⣠d , paD ; Ļ ] for any given soft interventions compatible with G and which involve only variables in G (which includes AncUāŖUsubscriptAncAnc_UāŖ\U\AncU āŖ U ). Our policy oracle is constructed by i) estimating ā¢[uā£d,paD;Ļ]delimited-[]conditionalsubscriptpaE[u d,pa_D;Ļ]blackboard_E [ u ⣠d , paD ; Ļ ] for the input Ļ, i) calculating dā=argā¢maxdā”ā¢[uā£d,paD;Ļ]superscriptsubscriptargmaxdelimited-[]conditionalsubscriptpad^*= *arg\,max_dE[u d,pa_D;Ļ]dā = start_OPERATOR arg max end_OPERATORd blackboard_E [ u ⣠d , paD ; Ļ ] and returning any dāsuperscriptd^*dā satisfying this. Next, consider the case where we know the approximate model Mā²=(Pā²,Gā²)superscriptā²superscriptā²M =(P ,G )Mā² = ( Pā² , Gā² ), for which |Pā²(viā£pai)āP(viā£pai)|ā¤ĻµāŖ1 |P (v_i _i)-P(v_i _i) |% ā¤Īµ 1| Pā² ( vitalic_i ⣠pai ) - P ( vitalic_i ⣠pai ) | ⤠ϵ āŖ 1 which implies Pā²ā¢(viā£pai)=Pā¢(viā£pai)+ciā¢Ļµsuperscriptā²conditionalsubscriptsubscriptpaconditionalsubscriptsubscriptpasubscriptitalic-ϵP (v_i _i)=P(v_i _i)+c_i\, ā² ( vitalic_i ⣠pai ) = P ( vitalic_i ⣠pai ) + citalic_i ϵ where |ci|ā¤1subscript1|c_i|⤠1| citalic_i | ⤠1. First we show that for any soft intervention Ļ we can approximate the post-intervention joint distribution Pā²(=ā£do(D=d),PaD=paD;Ļ)=P(=ā£do(D=d),PaD=paD;Ļ)+kϵ+(ϵ2)P ( Z= z do(D=d),Pa_D=pa_D;% Ļ)=P( Z= z do(D=d),Pa_D=pa_D;% Ļ)+kε+O(ε^2)Pā² ( italic_Z = italic_z ⣠do ( D = d ) , PaD = paD ; Ļ ) = P ( italic_Z = italic_z ⣠do ( D = d ) , PaD = paD ; Ļ ) + k ϵ + O ( ϵ2 ) where =āPaDsubscriptPa Z= C _Ditalic_Z = italic_C ā PaD and k is a function of the model parameters and constant in ϵitalic-ϵεϵ. Let Ļ=ājqjā¢ĻjsubscriptsubscriptsubscriptĻ= _jq_j _jĻ = āj qitalic_j Ļitalic_j where Ļjsubscript _jĻitalic_j are soft interventions. Pā²(=ā£do(D=d),PaD=paD;Ļ)=ājqjPā²ā¢(=ā£doā¢(D=d);Ļ)Pā²ā¢(=ā²,PaD=paD;Ļj) P ( Z= z do(D=d),Pa_D=% pa_D;Ļ)= _jq_j P ( C= c % do(D=d);Ļ)P ( Z= z ,Pa_D=% pa_D; _j)Pā² ( italic_Z = italic_z ⣠do ( D = d ) , PaD = paD ; Ļ ) = āj qitalic_j divide start_ARG Pā² ( italic_C = italic_c ⣠do ( D = d ) ; Ļ ) end_ARG start_ARG Pā² ( italic_Z = italic_zā² , PaD = paD ; Ļitalic_j ) end_ARG (68) =ājqjā¢āiPā²ā¢(Ci=ciā£doā¢(D=d);Ļj)āā²āiPā²ā¢(Ci=ciā²ā£doā¢(D=d);Ļj)absentsubscriptsubscriptsubscriptproductsuperscriptā²subscriptconditionalsubscriptdosubscriptsubscriptsuperscriptā²subscriptproductsuperscriptā²subscriptconditionalsubscriptsuperscriptā²dosubscript = _jq_j Ī _iP (C_i=c_i % do(D=d); _j) _ z Ī _iP % (C_i=c _i do(D=d); _j)= āj qitalic_j divide start_ARG āi Pā² ( Citalic_i = citalic_i ⣠do ( D = d ) ; Ļitalic_j ) end_ARG start_ARG āitalic_zā² āi Pā² ( Citalic_i = cā²italic_i ⣠do ( D = d ) ; Ļitalic_j ) end_ARG (69) =ājqjā¢āi[Pā¢(Ci=ciā£doā¢(D=d);Ļj)+ciā¢Ļµ]āā²āi[Pā¢(Ci=ciā²ā£doā¢(D=d);Ļj)+ciā¢Ļµ]absentsubscriptsubscriptsubscriptproductdelimited-[]subscriptconditionalsubscriptdosubscriptsubscriptitalic-ϵsubscriptsuperscriptā²subscriptproductdelimited-[]subscriptconditionalsubscriptsuperscriptā²dosubscriptsubscriptitalic-ϵ = _jq_j Ī _i[P(C_i=c_i do% (D=d); _j)+c_iε] _ z Ī _i[P(C_% i=c _i do(D=d); _j)+c_iε]= āj qitalic_j divide start_ARG āi [ P ( Citalic_i = citalic_i ⣠do ( D = d ) ; Ļitalic_j ) + citalic_i ϵ ] end_ARG start_ARG āitalic_zā² āi [ P ( Citalic_i = cā²italic_i ⣠do ( D = d ) ; Ļitalic_j ) + citalic_i ϵ ] end_ARG (70) =ājqjā¢āiPā¢(Ci=ciā£doā¢(D=d);Ļj)ā¢(1+ciā¢jā²ā¢Ļµ)āā²āiPā¢(Ci=ciā¢jā²ā£doā¢(D=d);Ļj)ā¢(1+ciā²ā¢Ļµ)absentsubscriptsubscriptsubscriptproductsubscriptconditionalsubscriptdosubscript1subscriptsuperscriptā²italic-ϵsubscriptsuperscriptā²subscriptproductsubscriptconditionalsubscriptsuperscriptā²dosubscript1subscriptsuperscriptā²italic-ϵ = _jq_j Ī _iP(C_i=c_i do(% D=d); _j)(1+c _ijε) _ z Ī % _iP(C_i=c _ij do(D=d); _j)(1+c % _iε)= āj qitalic_j divide start_ARG āi P ( Citalic_i = citalic_i ⣠do ( D = d ) ; Ļitalic_j ) ( 1 + cā²italic_i j ϵ ) end_ARG start_ARG āitalic_zā² āi P ( Citalic_i = cā²italic_i j ⣠do ( D = d ) ; Ļitalic_j ) ( 1 + cā²italic_i ϵ ) end_ARG (71) =P(=ā£do(D=d),PaD=paD;Ļ)+ϵf(Īø)+(ϵ2) =P( Z= z do(D=d),Pa_D=pa_% D;Ļ)+ε f(Īø)+O(ε^2)= P ( italic_Z = italic_z ⣠do ( D = d ) , PaD = paD ; Ļ ) + ϵ f ( Īø ) + O ( ϵ2 ) (72) where ciā¢jā²:=ci/Pā¢(Ci=ciā£doā¢(D=d);Ļj)assignsubscriptsuperscriptā²subscriptsubscriptconditionalsubscriptdosubscriptc _ij:=c_i/P(C_i=c_i do(D=d); _j)cā²italic_i j := citalic_i / P ( Citalic_i = citalic_i ⣠do ( D = d ) ; Ļitalic_j ) and fā¢(Īø)f(Īø)f ( Īø ) is a polynomial in the model parameters Īøi=Pā¢(viā£pai)subscriptconditionalsubscriptsubscriptpa _i=P(v_i _i)Īøitalic_i = P ( vitalic_i ⣠pai ). Therefore the expected utility under intervention Ļ evaluated using Mā² satisfies, Pā²ā¢[Uā£doā¢(D=d),PaD=paD]subscriptsuperscriptā²delimited-[]conditionaldosubscriptPasubscriptpa _P [U do(D=d),Pa_D=% pa_D]blackboard_EPā² [ U ⣠do ( D = d ) , PaD = paD ] =āPā²(=ā£do(D=d),PaD=paD;Ļ) = _ zP ( Z= z do(D=d),% Pa_D=pa_D;Ļ)= āitalic_z Pā² ( italic_Z = italic_z ⣠do ( D = d ) , PaD = paD ; Ļ ) (73) =āā²(=ā£do(D=d),PaD=paD;Ļ)+ϵg(Īø)+(ϵ2) = _ z ( Z= z do(D=d), % Pa_D=pa_D;Ļ)+ε g(Īø)+O(ε^2)= āitalic_zā² ( italic_Z = italic_z ⣠do ( D = d ) , PaD = paD ; Ļ ) + ϵ g ( Īø ) + O ( ϵ2 ) (74) =ā¢[Uā£doā¢(D=d),PaD=paD]+ϵā¢gā¢(Īø)+ā¢(ϵ2)absentdelimited-[]conditionaldosubscriptPasubscriptpaitalic-ϵsuperscriptitalic-ϵ2 =E[U do(D=d),Pa_D=pa_D% ]+ε g(Īø)+O(ε^2)= blackboard_E [ U ⣠do ( D = d ) , PaD = paD ] + ϵ g ( Īø ) + O ( ϵ2 ) (75) where gā¢(Īø)g(Īø)g ( Īø ) is a polynomial in the model parameters. The decision dā=argā¢maxdā”Pā²ā¢[Uā£doā¢(D=d),PaD=paD]superscriptsubscriptargmaxsubscriptsuperscriptā²delimited-[]conditionaldosubscriptPasubscriptpad^*= *arg\,max_dE_P [U do(D=d% ),Pa_D=pa_D]dā = start_OPERATOR arg max end_OPERATORd blackboard_EPā² [ U ⣠do ( D = d ) , PaD = paD ] incurs at most ϵā¢gā¢(Īø)italic-ϵε g(Īø)ϵ g ( Īø ) regret, and therefore the regret is linear in ϵitalic-ϵεϵ. ā Appendix F Experiments As discussed in Section 4 the proofs of Theorems 1 and 2 can be viewed as causal discovery algorithms where we assume i) knowledge of the set of environment variables Citalic_C, i) knowledge of the utility function U, i) the decision task is unmediated and iv) domain dependence. Given these assumptions we can learn an approximation of the underlying CBN given only the policy of the agent Ļā¢(Ļ)Ļ(Ļ)Ļ ( Ļ ) under interventions Ļ, with the approximation being exact when Ļā¢(Ļ)Ļ(Ļ)Ļ ( Ļ ) are optimal. To demonstrate this theoretical result we take the proof for simple Binary decision tasks outlined in Appendix B and recast it as a causal discovery algorithm (Algorithm 2 below). We test it on CIDs of the form shown in Figure 5 where we randomly choose the joint distribution over X,YX,YX , Y and their causal structure G. Note that Algorithm 2 is significantly simpler than the general method outlined in the proof of Theorem 1, as it exploits the fact that D,X,YD,X,YD , X , Y are binary variables and that ||=22| C|=2| italic_C | = 2. This causal discovery algorithm requires that we can intervene on the latent variables X,YX,YX , Y, but only requires that we can observe the response of a single variable (the decision) to these interventions. To motivate this setting, we can imagine situations where the latents X,YX,YX , Y cannot be directly observed but can be intervened on. Example. Many diseases cannot be directly observed in patient physiology, but can only be indirectly observed through the presence of symptoms. Let X,Yā0,101X,Yā\0,1\X , Y ā 0 , 1 be two such diseases, for which there are treatments, i.e. we can intervene to āturn offā X and Y but cannot observe them. Dā0,101Dā\0,1\D ā 0 , 1 represents a decision to provide a specific pain relief medication, which results in a change in the symptom severity (utility). The response to pain relief depends on the presence or absence of the diseases (e.g pain relief is highly effective for patients with X=TX=TX = T, moderately effective for Y=TY=TY = T and less effective for X=F,Y=Fformulae-sequenceX=F,Y=FX = F , Y = F). The doctorās goal is to minimise symptom severity while avoiding unnecessary use of pain medication, e.g. Uā¢(d,x,y)=dā¢[sā¢(x,y)āc]delimited-[]U(d,x,y)=d[s(x,y)-c]U ( d , x , y ) = d [ s ( x , y ) - c ] where c is some cost associated with pain relief and sā¢(x,y)s(x,y)s ( x , y ) is the response to pain relief. Following an intervention Ļ (e.g. curing a disease Ļ=doā¢(X=F)doĻ= do(X=F)Ļ = do ( X = F )), the doctor adapts their treatment policy in the shifted population. For example, this adaptation could occur by trial and error, with the doctor choosing random treatment decisions D and observing the change in symptom severityāa context-free bandit problem. Although we cannot directly observe the disease states X,YX,YX , Y, by intervening on the latent disease state and observing how the doctorās policy adapts, we can learn both the joint distribution Pā¢(X,Y)P(X,Y)P ( X , Y ) and the causal graph over X,YX,YX , Y. (a) Misclassification rate for G scaling with regret bound (b) Mean parameter error for P(x, y) scaling with regret bound (c) Worst-case error for P(x, y) scaling with regret bound Figure 7: Comparing the model-average error rates for a) the learned DAG and b) the mean error for parameters Pā¢(x,y)P(x,y)P ( x , y ) and c) the worst-case error for parameters Pā¢(x,y)P(x,y)P ( x , y ), v.s. the (normalised) regret bound Ī“/|[uā£D=1]ā[uā£D=0]|Ī“/ |E[u D=1]-E[u D=0] |Ī“ / | blackboard_E [ u ⣠D = 1 ] - blackboard_E [ u ⣠D = 0 ] |. Average error taken over 1000 randomly generated environments with binary decision D and two binary latent variables X,YX,YX , Y. Comparison to error rate for random guess (green). Results appear to show sub-linear growth in error rate with regret bound. Note that even weakly generalising agents can be used to identify causal structure significantly better than the random baseline. Figure 7 shows the average error in the learned parameters Pā¢(x,y)P(x,y)P ( x , y ) and G when Ļā¢(Ļ)Ļ(Ļ)Ļ ( Ļ ) satisfy different regret bounds. The results are averaged over 1000 randomly generated CBNs where i) the parameters of the joint distribution Pā¢(x,y)P(x,y)P ( x , y ) are chosen at random, i) the DAG G over X,YX,YX , Y is chosen at random from XāYāXā YX ā Y and XāYāXā YX ā Y, i) the utility function Uā¢(d,x,y)ā[0,1]01U(d,x,y)ā[0,1]U ( d , x , y ) ā [ 0 , 1 ] is chosen at random (see Section A.2 for description of parameters). To simulate the regret-bounded agent we calculate the optimal policy for each environment and if the sub-optimal decision satisfies the regret bound we choose randomly from the two decisions when sampling from the policy oracle in Algorithm 1. We also compare to a random baseline algorithm which estimates Pā¢(x,y)=1/414P(x,y)=1/4P ( x , y ) = 1 / 4 and randomly selects from XāYāXā YX ā Y or XāYāXā YX ā Y with equal probability. In a small number of cases Algorithm 1 fails to predict Pā¢(x,y)ā[0,1]01P(x,y)ā[0,1]P ( x , y ) ā [ 0 , 1 ] due to finite sample errors, and for these cases we replace the output of the causal discovery algorithm with a random guess. From Figure 7 it appears that the error rate grows sub-linearly with regret. Note that the relevant scale for the regret is the difference in expected utility between the two decisions, hence we plot the normalised regret bound where we divide Ī“ by this expected utility difference. Note that even for relatively large regret bounds, representing agents that generalise weakly, we can still identify the causal structure with a high accuracy. For example when the regret bound is 30% of the expected utility difference, we can still identify the correct causal structure in ā¼90%similar-toabsentpercent90 90\%ā¼ 90 % of the randomly generated CIDs. This describes an agent that is guaranteed to incur a regret of at most 30%percent3030\%30 % of the expected utility difference between the decisions before the domain shift. If the domain shift results in the expected utility difference being less that 30%percent3030\%30 % of the unshifted expected utility difference, the agent can return a sub-optimal decision. Algorithm 2 Graph Learner for simple CID 1:function graph learner(ΠΣΓsubscriptsuperscriptΠΣ ^Ī“_ Ī italic_Ī“roman_Ī£, U, Ī“, N) 2: d1,d2,xā²,yā²,qcritāAlgorithm 1ā¢(U,ΠΣΓ,N,Ļ1=doā¢(Y=0))āsubscript1subscript2superscriptā²subscriptcritAlgorithm 1subscriptsuperscriptΠΣsubscript1do0d_1,d_2,x ,y ,q_crit 1(% U, ^Ī“_ ,N, _1= do(Y=0))d1 , d2 , xā² , yā² , qcrit ā Algorithm 1 ( U , Ī italic_Ī“roman_Ī£ , N , Ļ1 = do ( Y = 0 ) ) ā· ā· Identify qcritsubscriptcritq_critqcrit for doā¢(Y=0)do0 do(Y=0)do ( Y = 0 ) 3: Exp. U difference =(Uā¢(d2,xā²,yā²)āUā¢(d1,xā²,yā²))ā(1ā1/qcrit)absentsubscript2superscriptā²subscript1superscriptā²11subscriptcrit=(U(d_2,x ,y )-U(d_1,x ,y ))*(1-1/q_ % crit)= ( U ( d2 , xā² , yā² ) - U ( d1 , xā² , yā² ) ) ā ( 1 - 1 / qcrit ) 4: Ī0=Uā¢(0,0,d2)āUā¢(0,0,d1)subscriptĪ000subscript200subscript1 _0=U(0,0,d_2)-U(0,0,d_1)Ī0 = U ( 0 , 0 , d2 ) - U ( 0 , 0 , d1 ) 5: Ī1=Uā¢(1,0,d2)āUā¢(1,0,d1)subscriptĪ110subscript210subscript1 _1=U(1,0,d_2)-U(1,0,d_1)Ī1 = U ( 1 , 0 , d2 ) - U ( 1 , 0 , d1 ) 6: Pā¢(XY=0=0)=(Exp. U differenceāĪ1)/(Ī0āĪ1)subscript00Exp. U differencesubscriptĪ1subscriptĪ0subscriptĪ1P(X_Y=0=0)=(Exp. U difference- _1)/( _0- _1)P ( Xitalic_Y = 0 = 0 ) = ( Exp. U difference - Ī1 ) / ( Ī0 - Ī1 ) 7: 8: d1,d2,xā²,yā²,qcritāAlgorithm 1ā¢(U,ΠΣΓ,N,Ļ1=doā¢(Y=1))āsubscript1subscript2superscriptā²subscriptcritAlgorithm 1subscriptsuperscriptΠΣsubscript1do1d_1,d_2,x ,y ,q_crit 1(% U, ^Ī“_ ,N, _1= do(Y=1))d1 , d2 , xā² , yā² , qcrit ā Algorithm 1 ( U , Ī italic_Ī“roman_Ī£ , N , Ļ1 = do ( Y = 1 ) ) ā· ā· Identify qcritsubscriptcritq_critqcrit for doā¢(Y=1)do1 do(Y=1)do ( Y = 1 ) 9: Exp. U difference =(Uā¢(d2,xā²,yā²)āUā¢(d1,xā²,yā²))ā(1ā1/qcrit)absentsubscript2superscriptā²subscript1superscriptā²11subscriptcrit=(U(d_2,x ,y )-U(d_1,x ,y ))*(1-1/q_ % crit)= ( U ( d2 , xā² , yā² ) - U ( d1 , xā² , yā² ) ) ā ( 1 - 1 / qcrit ) 10: Ī0=Uā¢(0,1,d2)āUā¢(0,1,d1)subscriptĪ001subscript201subscript1 _0=U(0,1,d_2)-U(0,1,d_1)Ī0 = U ( 0 , 1 , d2 ) - U ( 0 , 1 , d1 ) 11: Ī1=Uā¢(1,1,d2)āUā¢(1,1,d1)subscriptĪ111subscript211subscript1 _1=U(1,1,d_2)-U(1,1,d_1)Ī1 = U ( 1 , 1 , d2 ) - U ( 1 , 1 , d1 ) 12: Pā¢(XY=1=0)=(Exp. U differenceāĪ1)/(Ī0āĪ1)subscript10Exp. U differencesubscriptĪ1subscriptĪ0subscriptĪ1P(X_Y=1=0)=(Exp. U difference- _1)/( _0- _1)P ( Xitalic_Y = 1 = 0 ) = ( Exp. U difference - Ī1 ) / ( Ī0 - Ī1 ) 13: 14: d1,d2,xā²,yā²,qcritāAlgorithm 1ā¢(U,ΠΣΓ,N,Ļ1=doā¢(X=0))āsubscript1subscript2superscriptā²subscriptcritAlgorithm 1subscriptsuperscriptΠΣsubscript1do0d_1,d_2,x ,y ,q_crit 1(% U, ^Ī“_ ,N, _1= do(X=0))d1 , d2 , xā² , yā² , qcrit ā Algorithm 1 ( U , Ī italic_Ī“roman_Ī£ , N , Ļ1 = do ( X = 0 ) ) ā· ā· Identify qcritsubscriptcritq_critqcrit for doā¢(X=0)do0 do(X=0)do ( X = 0 ) 15: Exp. U difference =(Uā¢(d2,xā²,yā²)āUā¢(d1,xā²,yā²))ā(1ā1/qcrit)absentsubscript2superscriptā²subscript1superscriptā²11subscriptcrit=(U(d_2,x ,y )-U(d_1,x ,y ))*(1-1/q_ % crit)= ( U ( d2 , xā² , yā² ) - U ( d1 , xā² , yā² ) ) ā ( 1 - 1 / qcrit ) 16: Ī0=Uā¢(0,0,d2)āUā¢(0,0,d1)subscriptĪ000subscript200subscript1 _0=U(0,0,d_2)-U(0,0,d_1)Ī0 = U ( 0 , 0 , d2 ) - U ( 0 , 0 , d1 ) 17: Ī1=Uā¢(0,1,d2)āUā¢(0,1,d1)subscriptĪ101subscript201subscript1 _1=U(0,1,d_2)-U(0,1,d_1)Ī1 = U ( 0 , 1 , d2 ) - U ( 0 , 1 , d1 ) 18: Pā¢(YX=0=0)=(Exp. U differenceāĪ1)/(Ī0āĪ1)subscript00Exp. U differencesubscriptĪ1subscriptĪ0subscriptĪ1P(Y_X=0=0)=(Exp. U difference- _1)/( _0- _1)P ( Yitalic_X = 0 = 0 ) = ( Exp. U difference - Ī1 ) / ( Ī0 - Ī1 ) 19: 20: d1,d2,xā²,yā²,qcritāAlgorithm 1ā¢(U,ΠΣΓ,N,Ļ1=doā¢(X=1))āsubscript1subscript2superscriptā²subscriptcritAlgorithm 1subscriptsuperscriptΠΣsubscript1do1d_1,d_2,x ,y ,q_crit 1(% U, ^Ī“_ ,N, _1= do(X=1))d1 , d2 , xā² , yā² , qcrit ā Algorithm 1 ( U , Ī italic_Ī“roman_Ī£ , N , Ļ1 = do ( X = 1 ) ) ā· ā· Identify qcritsubscriptcritq_critqcrit for doā¢(X=1)do1 do(X=1)do ( X = 1 ) 21: Exp. U difference =(Uā¢(d2,xā²,yā²)āUā¢(d1,xā²,yā²))ā(1ā1/qcrit)absentsubscript2superscriptā²subscript1superscriptā²11subscriptcrit=(U(d_2,x ,y )-U(d_1,x ,y ))*(1-1/q_ % crit)= ( U ( d2 , xā² , yā² ) - U ( d1 , xā² , yā² ) ) ā ( 1 - 1 / qcrit ) 22: Ī0=Uā¢(1,0,d2)āUā¢(1,0,d1)subscriptĪ010subscript210subscript1 _0=U(1,0,d_2)-U(1,0,d_1)Ī0 = U ( 1 , 0 , d2 ) - U ( 1 , 0 , d1 ) 23: Ī1=Uā¢(1,1,d2)āUā¢(1,1,d1)subscriptĪ111subscript211subscript1 _1=U(1,1,d_2)-U(1,1,d_1)Ī1 = U ( 1 , 1 , d2 ) - U ( 1 , 1 , d1 ) 24: Pā¢(YX=1=0)=(Exp. U differenceāĪ1)/(Ī0āĪ1)subscript10Exp. U differencesubscriptĪ1subscriptĪ0subscriptĪ1P(Y_X=1=0)=(Exp. U difference- _1)/( _0- _1)P ( Yitalic_X = 1 = 0 ) = ( Exp. U difference - Ī1 ) / ( Ī0 - Ī1 ) 25: 26: if Pā¢(YX=0=0)=Pā¢(YX=1=0)subscript00subscript10P(Y_X=0=0)=P(Y_X=1=0)P ( Yitalic_X = 0 = 0 ) = P ( Yitalic_X = 1 = 0 ) then ā· ā· Identify G and P from interventionals 27: if Pā¢(XY=0=0)=Pā¢(XY=1=0)subscript00subscript10P(X_Y=0=0)=P(X_Y=1=0)P ( Xitalic_Y = 0 = 0 ) = P ( Xitalic_Y = 1 = 0 ) then 28: Gā()āGā()G ā ( ) 29: Pā¢(x,y)=Pā¢(XY=0=x)ā¢Pā¢(YX=0=y)subscript0subscript0P(x,y)=P(X_Y=0=x)P(Y_X=0=y)P ( x , y ) = P ( Xitalic_Y = 0 = x ) P ( Yitalic_X = 0 = y ) 30: else 31: Gā(YāX)āāGā(Yā X)G ā ( Y ā X ) 32: Pā¢(x,y)=Pā¢(YX=0=y)ā¢Pā¢(XY=y=x)subscript0subscriptP(x,y)=P(Y_X=0=y)P(X_Y=y=x)P ( x , y ) = P ( Yitalic_X = 0 = y ) P ( Xitalic_Y = y = x ) 33: end if 34: else 35: Gā(XāY)āāGā(Xā Y)G ā ( X ā Y ) 36: Pā¢(x,y)=Pā¢(XY=0=x)ā¢Pā¢(YX=x=y)subscript0subscriptP(x,y)=P(X_Y=0=x)P(Y_X=x=y)P ( x , y ) = P ( Xitalic_Y = 0 = x ) P ( Yitalic_X = x = y ) 37: end if 38: return G,Pā¢(x,y)G,P(x,y)G , P ( x , y ) 39:end function Appendix G Appendix: transportability & Pearlās causal hierarchy Transportability. The problem of evaluating policies under distributional shifts has been studied extensively in transportability theory (Pearl & Bareinboim, 2011; Bareinboim & Pearl, 2016; Bellot & Bareinboim, 2022). For decision tasks as outlined in Section 2.2, transportability aims to provide necessary and sufficient conditions for identifying the expected utility following a distributional shift, R=ā¢[uā£d,paD;Ļ]delimited-[]conditionalsubscriptpaR=E[u d,pa_D;Ļ]R = blackboard_E [ u ⣠d , paD ; Ļ ], given (partial) knowledge of i) the joint P, causal graph G and interventional distributions I in the source domain, and i) (partial) knowledge of the joint PāsuperscriptP^*Pā and causal graph GāsuperscriptG^*Gā in the target domain (Pearl & Bareinboim, 2011; Bareinboim & Pearl, 2012b). Hence, these results differ from Theorems 1 and 2 in that they restrict to the case where all assumptions on the data generating process (i.e. inductive biases) can be expressed as (partial) knowledge of the underlying CBN. For example, Bareinboim & Pearl (2016) claim the problem is essentially solved in the case where āassumptions are expressible in DAG formā. This does not constrain possible approaches to domain generalisation that make use of non-causal assumptions and heuristics555Indeed, notable examples of causal assumptions that go beyond those expressible in DAG form include restricting the classes of structural equations Mooij et al. (2016) and assuming cause-effect asymmetry (Mitrovic et al., 2018), and indeed deep learning algorithms exploit a much wider set of inductive biases than causal assumptions alone (Neyshabur et al., 2014; Battaglia et al., 2018; Rahaman et al., 2019; Goyal & Bengio, 2022; Cohen & Welling, 2016). In many real-world tasks these may be sufficient to identify āgood enoughā (i.e. regret-bounded) policies without requiring knowledge of the causal structure of the data generating process. Our aim has been to establish if learning causal models is necessary for domain generalisation in general. Hence assuming that agents are restricted to using inductive biases that amount to (partial) knowledge of the underlying CBN would be begging the question. Causal hierarchyās theorem (CHT). The celebrated causal hierarchy theorem (Bareinboim et al., 2022; Ibeling & Icard, 2021) shows that for almost all environments there are causal relations between environment variables that cannot be identified from observational data without additional assumptions. Does this imply that a causal model is necessary for identifying optimal policies? First, note that the CHT is an insufficiency result, and only implies trivial necessity results. For example, is a causal model necessary for identifying all causal and associative relations between environment variables? Yes, but only because this set of observational and interventional distributions is a causal model. Formally, we can identify the underlying causal model (up to latent confounders) by assuming causal faithfulness, which holds for almost all causal models (Meek, 2013). The difference here is that the CHT is concerned with the identifiability of all causal and associative relations between environment variables. This sets a much higher bar than domain generalisation, which focuses on identifying a strict subset of these (regret-bounded policies) (Figure 3). Secondly, the CHT is concerned with the collapse (or lack thereof) of the causal hierarchy. For example, that observational data is insufficient for identifying all causal queries. We do not restrict agents to having observational training dataāin fact, typically we assume that agents have access to both observational and interventional data in the online learning setting that we consider (e.g. agents can intervene to fix the decision node D by assumption). Finally, we can imagine a refinement of the CHT which states that observational data is insufficient for identifying regret-bounded policies without additional assumptions, bringing it in line with Theorems 1 and 2. If this was implied by the CHT, it would not imply our results unless we restrict to the case where all assumptions as constraints on the causal structure (similar to transportability). Likewise, it is simple to show that Theorem 1 does not imply the CHT. In deriving Theorem 1 we do not restrict to observational distributions (or make any restrictions on the data available to the agent when generating its policy).