<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Learning the Topology and Behavior of Discrete Dynamical Systems</title></titleStmt>
			<publicationStmt>
				<publisher>AAAI</publisher>
				<date>03/25/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10567856</idno>
					<idno type="doi">10.1609/aaai.v38i13.29390</idno>
					<title level='j'>Proceedings of the AAAI Conference on Artificial Intelligence</title>
<idno>2159-5399</idno>
<biblScope unit="volume">38</biblScope>
<biblScope unit="issue">13</biblScope>					

					<author>Zirou Qiu</author><author>Abhijin Adiga</author><author>Madhav V Marathe</author><author>S S Ravi</author><author>Daniel J Rosenkrantz</author><author>Richard E Stearns</author><author>Anil Vullikanti</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[<p>Discrete dynamical systems are commonly used to model the spread of contagions on real-world networks. Under the PAC framework, existing research has studied the problem of learning the behavior of a system, assuming that the underlying network is known. In this work, we focus on a more challenging setting: to learn both the behavior and the underlying topology of a black-box system. We show that, in general, this learning problem is computationally intractable. On the positive side, we present efficient learning methods under the PAC model when the underlying graph of the dynamical system belongs to certain classes. Further, we examine a relaxed setting where the topology of an unknown system is partially observed. For this case, we develop an efficient PAC learner to infer the system and establish the sample complexity. Lastly, we present a formal analysis of the expressive power of the hypothesis class of dynamical systems where both the topology and behavior are unknown, using the well-known Natarajan dimension formalism. Our results provide a theoretical foundation for learning both the topology and behavior of discrete dynamical systems.</p>]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Discrete dynamical systems have been used as a formal models for numerous cascade processes, such as the spread of social behaviors, information, diseases, and biological phenomena <ref type="bibr">(Battiston et al. 2020;</ref><ref type="bibr">Ji et al. 2017;</ref><ref type="bibr">Cohen et al. 2010;</ref><ref type="bibr">Gonz&#225;lez-Bail&#243;n et al. 2011;</ref><ref type="bibr">Romero, Meeder, and Kleinberg 2011;</ref><ref type="bibr">Sabhapandit, Dhar, and Shukla 2002)</ref>. A discrete dynamical system consists of an underlying graph with vertices representing entities (e.g., individuals, genes), and edges representing connections between the entities. Each vertex has a state and an interaction function (i.e., behavior), which specify how the state changes over time. Overall, vertices update their states using interaction functions as the system dynamics proceeds in discrete time.</p><p>Due to the large size of real-world systems, a complete specification of the underlying dynamical system is often not available. To this end, learning the unknown components of a system is an active area of research <ref type="bibr">(Adiga et al. 2019;</ref><ref type="bibr">Chen and Poor 2022;</ref><ref type="bibr">Conitzer, Panigrahi, and Zhang 2020;</ref><ref type="bibr">Dawkins, Li, and Xu 2021)</ref>. One ongoing line of work is Copyright &#169; 2024, Association for the Advancement of Artificial Intelligence (<ref type="url">www.aaai.org</ref>). All rights reserved.</p><p>to infer the unknown interaction functions or the topology of a system. Network topology and interaction functions play critical roles in the system dynamics. The topology encodes the underlying relationships between the entities, while the interaction functions provide the decision rules that entities employ to update their contagion states. The class of threshold interaction functions <ref type="bibr">(Granovetter 1978)</ref>, which are widely used to model the spread of social contagions <ref type="bibr">(Watts 2002)</ref>, is one such example. Specifically, each entity in the network has a decision threshold that represents the tipping point for a behavioral (i.e., state) change. In the case of a rumor, a person's belief shifts when the number of neighbors believing in the rumor reaches a certain threshold.</p><p>Previous research <ref type="bibr">(Adiga et al. 2017</ref>) has presented efficient algorithms for inferring classes of interactions functions (e.g., threshold functions) based on the observed dynamics, assuming that the underlying network is known. To our knowledge, the more challenging problem of learning a system from observed dynamics, where both the interaction function and the topology are unknown, has not been examined. In this work, we fill this gap with a theoretical study of the problem of learning both the topology and the interaction functions of an unknown dynamical system. Problem description. Consider a black-box networked system where both the interaction functions and the network topology are unknown. Our objective is to recover a system that captures the behavior of the true but unknown system while providing performance guarantees under the Probably Approximately Correct (PAC) model <ref type="bibr">(Valiant 1984)</ref>. We learn from snapshots of the true system's dynamics, a common scheme considered in related papers (e.g., <ref type="bibr">(Chen et al. 2021;</ref><ref type="bibr">Conitzer, Panigrahi, and Zhang 2020;</ref><ref type="bibr">Wilinski and Lokhov 2021)</ref>). Since our problem setting also involves multiclass learning, we examine the Natarajan dimension <ref type="bibr">(Natarajan 1989</ref>), a well-known generalization of the VC dimension <ref type="bibr">(Vapnik and Chervonenkis 2015)</ref>. In particular, the Natarajan dimension quantifies the expressive power of the hypothesis class and characterizes the sample complexity of learning. Overall, we aim to answer the following two questions: (i) Can one efficiently learn the blackbox system, and if so, how many training examples are sufficient? (ii) What is the expressive power of the hypothesis class of networked systems?</p><p>The key challenges of our learning problem arise from the incomplete knowledge of the network topology and the interaction functions of the nodes in the system. For example, when we consider systems whose underlying graphs are undirected and interaction functions are Boolean threshold functions, the number of potential systems is &#920;(2 ( n 2 ) &#8226; n n ), where n is the number of nodes in the underlying graph. Therefore, a learner needs to find an appropriate hypothesis from a very large space. Further, in general, the training set (which consists of snapshots of the system dynamics) may not contain sufficient information to recover the underlying network structure efficiently. (Indeed, we show that the problem is computationally intractable.) Our main contributions are summarized below. 1. Hardness of PAC learning: We show that in general, hypothesis classes corresponding to dynamical system where both the network topology and the interaction functions are unknown are not efficiently PAC learnable unless NP = RP. We prove this result by first formulating a suitable decision problem and showing that the problem is NP-complete. We use the hardness result for the decision problem to establish the hardness of PAC learning. Our results show that the learning problem remains hard for several classes of dynamical systems (e.g., systems on undirected graphs with threshold interaction functions). 2. Efficient PAC learning algorithms for special classes: In contrast with the general hardness result above, we identify some special classes of systems that are efficiently PAC learnable. The two classes that we identify correspond to systems on directed graphs with bounded indegree and those where the underlying graph is a perfect matching. In both cases, the interaction functions are from the class of threshold functions. These results are obtained by showing that these systems have efficient consistent learners and then appealing to the known result (Shalev-Shwartz and Ben-David 2014) that hypothesis classes for which there are efficient consistent learners are also efficiently PAC learnable. 3. Learning under a relaxed setting: We consider a relaxed setting where the underlying network is partially observed and present an efficient PAC learner for the setting. We also establish the sample complexity. 4. Expressive power: We present an analysis of the Natarajan dimension (Ndim), which measures the expressive power of the hypothesis class of networked systems. In particular, we give a construction of a shatterable set and prove that the Ndim of the hypothesis class is at least &#8970;n 2 /4&#8971;, where n is the number of vertices. Further, we show that the upper bound on Ndim for this class is O(n 2 ). Thus, our lower bound is tight to within a constant factor. Our result also provides a lower bound on the sample complexity. Related work. Learning unknown components of networked systems is an active area of research. Many researchers have studied the problem of identifying missing components (e.g., learning the diffusion functions at vertices, edge parameters, source vertices, and contagion states of vertices) in contagion models by observing the propagation dynamics. For instance, Chen et al. <ref type="bibr">(Chen et al. 2021)</ref> infer the edge probability and source vertices under the independent cascade model. <ref type="bibr">Conitzer et al. (Conitzer, Panigrahi, and Zhang 2020)</ref> investigate the problem of inferring opinions (states) of vertices in stochastic cascades under the PAC scheme. Lokhov <ref type="bibr">(Lokhov 2016)</ref> studies the problem of reconstructing the parameters of a diffusion model given infection cascades. Inferring threshold functions of vertices from social media data is considered in <ref type="bibr">(Gonz&#225;lez-Bail&#243;n et al. 2011;</ref><ref type="bibr">Romero, Meeder, and Kleinberg 2011)</ref>. Identifying the source vertices of infections due to a contagion is addressed in <ref type="bibr">(Zhu, Chen, and Ying 2017;</ref><ref type="bibr">Shah and Zaman 2011)</ref>. The problem of inferring the network structure has also been studied; see, e.g., <ref type="bibr">(Huang et al. 2019;</ref><ref type="bibr">Pouget-Abadie and Horel 2015;</ref><ref type="bibr">Abrahao et al. 2013;</ref><ref type="bibr">Gomez Rodriguez, Leskovec, and Krause 2010;</ref><ref type="bibr">Soundarajan and Hopcroft 2010)</ref>. The problem of inferring the network structure and the interaction functions of dynamical systems has been studied under a different model in <ref type="bibr">(Rosenkrantz et al. 2022)</ref>, where a user can construct queries to the system and obtain responses. This is fundamentally different from our model where a learning algorithm must rely on a given set of observations and cannot interact with the unknown system.</p><p>The work that is closest to ours is <ref type="bibr">(Adiga et al. 2017)</ref>, where the problem of inferring the interaction functions in a system from observations is considered, under the assumption that the network is known. It is shown in <ref type="bibr">(Adiga et al. 2017</ref>) that the interaction function inference problem can be solved efficiently. However, the techniques used in <ref type="bibr">(Adiga et al. 2017)</ref> are not applicable to our context, since the network is unknown.</p><p>For space reasons, many proofs have been omitted. Detailed proofs can be found in <ref type="bibr">(Qiu et al. 2023</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Preliminaries</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Discrete Dynamical Systems</head><p>A Synchronous Dynamical System (SyDS) S over the Boolean domain B = {0, 1} is a pair S = (G, F ), where &#8226; G = (V, E) is the underlying undirected graph. We let n = |V|. Each vertex in V has a state from B, representing its contagion state (e.g., inactive or active). &#8226; F = (f 1 , f 2 , . . . , f n ) is a collection of functions, where f i is the interaction function of vertex v i &#8712; V, 1 &#8804; i &#8804; n. Interaction functions. The system evolves in discrete time steps, with vertices updating their states synchronously using the interaction functions. For a graph G and a vertex v, we let N (G, v) and N + (G, v) denote the open and closed neighborhoods of v, respectively. At each time step, the inputs to the interaction function f i &#8712; F are the states of the vertices in N + (G, v i ); f i computes the next state of v i .</p><p>Our work focuses on the class of threshold interaction functions, which is a classic framework for modeling social contagions <ref type="bibr">(Watts and Strogatz 1998;</ref><ref type="bibr">Granovetter 1978)</ref>. Specifically, each vertex v i &#8712; V has an integer threshold &#964; vi &#8805; 0, and f i outputs 1 if the number of 1's in the input to f i (i.e., the number of state-1 vertices in N + (G, v i )) is at least &#964; vi ; f i outputs 0 otherwise. An example of such a SyDS is shown in Figure <ref type="figure">1</ref>.</p><p>A configuration C of a SyDS S at a given time step is a binary vector of length n that specifies the states of all the vertices at that time step. Let X = {0, 1} n be the set of all configurations. For a given vertex v, let C(v) denote the state of v in C, and for a given vertex set Y &#8838; V, let C[Y] denote the projection of C onto Y. If the system S evolves from C to a configuration C &#8242; in one step, denoted by S(C) = C &#8242; , then C &#8242; is called the successor of C. Since the interaction functions considered in our work are deterministic, each configuration has a unique successor. For a given configuration C and vertex set Y, we let score(C, Y) denote the number of vertices v &#8712; Y such that C(v) = 1. SyDSs over directed graphs. SyDSs can also be defined over directed graphs. The inputs to the local function at a vertex v i are the state of v i and those of the in-neighbors of v i (i.e., vertices from which v i has incoming edges). All the other definitions for SyDSs on directed graphs are the same as those for SyDSs on undirected graphs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2">The Learning Problem</head><p>Hypotheses. Let S * = (G, F ) be a ground truth SyDS. The learner does not know either the graph G or the set of functions F . Other than the training set, the only information provided to the learner consists of the number n of vertices, the class of interaction functions, and the class of the underlying graph. The learner must find a hypothesis consisting of an underlying graph (from the given graph class) and an interaction function (from the given class of interaction functions) for each node of the graph from the set of all such hypotheses. As an illustration, let H UNDIR,THRE denote the hypothesis class where the underlying graph of S * is undirected, and the interaction functions are threshold functions. Since there are 2 ( n 2 ) undirected graphs with n nodes and each node may have &#920;(n) choices for threshold values, the hypothesis class H UNDIR,THRE has &#920;(2 ( n 2 ) n n ) systems (i.e., hypotheses). The learner aims to infer a system S &#8712; H UNDIR,THRE that is close to the true system S * by constructing the graph and the interaction functions of S. Learning setting. Our algorithms learn the ground truth system S * from its observed dynamics.</p><p>be a training set of q examples, each consisting of a snapshot of the dynamics of S * in the form of a configurationsuccessor pair. Specifically, C i is a drawn i.i.d. from a distribution (unknown to the learner) D over X , and</p><p>Note that the hypothesis being learned represents a successor function.</p><p>For simplicity, we present the necessary definitions for the PAC model (see e.g., (Shalev-Shwartz and Ben-David 2014)) using H UNDIR,THRE . These definitions also apply to other hypothesis classes considered in this paper. The true error of a hypothesis S &#8712; H UNDIR,THRE is defined as</p><p>In the PAC model, the goal is to infer a hypothesis S &#8712; H UNDIR,THRE s.t. with probability at least 1 -&#948; over O &#8764; D q , the true error L (D,S * ) (S) &#8804; &#1013;, for any given &#1013;, &#948; &#8712; (0, 1). The class H UNDIR,THRE is efficiently PAC learnable if such an S &#8712; H UNDIR,THRE can be inferred in polynomial time (w.r.t. n, 1/&#948; and 1/&#1013;). The minimum number of training examples needed to achieve the above guarantee is called the sample complexity of learning H UNDIR,THRE . Natarajan dimension. A hypothesis S can be viewed as a function X &#8594; X , where each of the 2 n possible target configurations is considered a class. Thus, our learning problem involves multiclass classification. The Natarajan dimension <ref type="bibr">(Natarajan 1989</ref>) is a generalization of the concept of VC dimension to a multiclass setting, and measures the expressive power of a given hypothesis class H UNDIR,THRE . Formally, a set R of configurations is shattered by H UNDIR,THRE if there exists two functions g 1 , g 2 : X &#8594; X , such that:</p><p>The Natarajan dimension of H UNDIR,THRE , denoted by Ndim(H UNDIR,THRE ), is the maximum size of a shatterable set. In general, the larger the Natarajan dimension of a hypothesis class, the higher is its expressive power.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">PAC Learnability and Sample Complexity</head><p>We first establish the intractability of efficiently PAC learning threshold dynamical systems over general graphs. We then present efficient algorithms for learning systems over several graph classes. We also analyze the sample complexity of learning the corresponding hypothesis classes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1">Intractability of PAC Learning</head><p>To establish the hardness of learning, we first formulate a decision problem for SyDSs and show that the problem is NP-hard. We use this to establish a general hardness result under the PAC model.</p><p>We define restricted classes of SyDSs by specifying constraints on the underlying graph and the interaction functions. For example, we use the notation (UNDIR, THRESH)-SyDSs to denote the restricted class of SyDSs whose (i) underlying graphs are undirected and (ii) interaction functions are threshold functions. Several other restricted classes of SyDSs will be considered in this section.</p><p>Given a set O of observations, with each observation being a pair of the form (C, C &#8242; ) where C &#8242; is the successor of C, we say that a SyDS S is consistent with O if for each observation (C, C &#8242; ) &#8712; O, the successor of C produced by S is C &#8242; . A basic decision problem in this context is the following: given a set O of observations, determine whether there is a SyDS that is consistent with O. One may also want the consistent SyDS to be in a restricted class &#915;. We refer to this problem as the &#915;-Consistency problem: Definition 3.1 (&#915;-Consistency) Instance: A vertex set V and a set of observations O over V. Question: Is there a SyDS in the class &#915; that is consistent with O?</p><p>Hardness. The following lemma shows the hardness of &#915;-consistency for two restricted classes of SyDSs: (i)(UNDIR, THRESH)-SyDSs, where the graph is undirected and each interaction function is a threshold function, and (ii) (TREE, THRESH = 2)-SyDSs, where the graph is a tree and each interaction function is a 2-threshold function. For space reasons, we only provide a proof sketch for (i) here. A full proof of the lemma appears in <ref type="bibr">(Qiu et al. 2023)</ref>.</p><p>Lemma 3.1 The &#915;-Consistency problem is NP-complete for the following classes of SyDSs: (i) (UNDIR, THRESH)-SyDSs and (ii) (TREE, THRESH = 2)-SyDSs.</p><p>Proof sketch for (i): It can be seen that the problem is in NP. The proof of NP-hardness is via a reduction from 3SAT. Let the given 3SAT formula be f , with variables X = {x 1 . . . . , x n } and clauses C = {c 1 . . . . , c m }. For the reduction, we construct a node set V and transition set O.</p><p>The constructed node set V contains 2n + 2 nodes. For each variable x i &#8712; X, V contains the two nodes y i and y i . Intuitively, node y i corresponds to the literal x i , and node y i corresponds to the literal x i . We refer to these 2n nodes as literal nodes. There are also two additional nodes: z and z &#8242; . Transition set O contains n + m + 2 transitions, as follows:</p><p>O 1 contains two transitions. In the first of these transitions, the predecessor has only node z equal to 1, and the successor has all nodes equal to 0. In the second transition, the predecessor has only the two nodes z and z &#8242; equal to 1, and the successor has only node z equal to 1. O 2 contains n transitions, one for each variable in X. For each variable x i &#8712; X, O 2 contains a transition where in the predecessor only nodes y i and y i are equal to 1, and the successor has all nodes equal to 0. O 3 contains m transitions, one for each clause of f . For each clause c j of f , O 3 contains a transition where in the predecessor only node z and the nodes corresponding to the literals that occur in c j are equal to 1, and the successor has only node z equal to 1. It can be shown that f is satisfiable iff there exists a threshold-SyDS that is consistent with O.</p><p>The usefulness of establishing NP-hardness results for the &#915;-Consistency problem is pointed out by our next result (Lemma 3.2), which states that if &#915;-Consistency is NPhard, then the hypothesis class for &#915; SyDSs is not efficiently PAC learnable, unless the complexity classes NP and RP coincide. Here, RP denotes the class of problems that can be solved in randomized polynomial time. It is widely believed that the complexity classes NP and RP are different; see <ref type="bibr">(Arora and Barak 2009)</ref> for additional details regarding these complexity classes.</p><p>Lemma 3.2 Let &#915; be any class of SyDS for which &#915;-Consistency is NP-hard. The hypothesis class for &#915; SyDSs is not efficiently PAC learnable, unless NP = RP.</p><p>Proof sketch. If the hypothesis class for &#915;-SyDS admits an efficient PAC learner A PAC , then one can construct an RP algorithm A ERM (based on A PAC ) for the &#915;-Consistency problem, thereby implying NP = RP. See <ref type="bibr">(Qiu et al. 2023)</ref> for a detailed proof.</p><p>The following theorem on the hardness of learning is a direct consequence of Lemmas 3.1 and 3.2.</p><p>Theorem 3.1 Unless NP = RP, the hypothesis classes for the following classes of SyDSs are not efficiently PAC learnable: (i) (UNDIR, THRESH)-SyDSs and (ii) (TREE, THRESH = 2)-SyDSs.</p><p>Sample complexity. For any finite hypothesis class H, given the PAC parameters &#1013;, &#948; &gt; 0, the following is a well known <ref type="bibr">(Haussler 1988)</ref> upper bound on the sample complexity m H (&#948;, &#1013;) for learning H: m H (&#948;, &#1013;) &#8804; 1 &#1013; log(|H| + log(1/&#948;) . As mentioned earlier, the size of the hypothesis class H UNDIR,THRE is O(2 ( n 2 ) &#8226;n n ). Thus, one can obtain an upper bound on the sample complexity of learning H UNDIR,THRE :</p><p>From the above inequality, it follows that m HUNDIR,THRE (&#948;, &#1013;) = O (1/&#1013;) &#8226; (n 2 + log (1/&#948;)) . In a later section, we will prove a lower bound on the sample complexity which is tight to within a constant factor of the upper bound (1), thereby showing that m HUNDIR,THRE (&#948;, &#1013;) = &#920; (1/&#1013;) &#8226; (n 2 + log (1/&#948;)) .</p><p>Preview for the results in Sections 3.2 and 3.3: In the next subsections, we present classes of SyDSs which are efficiently PAC learnable. In both cases, we obtain the result by showing that for the corresponding class of SyDSs, the &#915;-Consistency problem is efficiently solvable. In other words, given a training set O, these algorithms represent efficient consistent learners for the corresponding classes of SyDSs. As is well known, an efficient consistent learner for a hypothesis class is also an efficient PAC learner (Shalev-Shwartz and Ben-David 2014).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">PAC Learnability for Matchings</head><p>Let (MATCH,THRESH)-SyDSs denote the set of SyDSs where the underlying graph is a perfect matching, and the interaction functions are threshold functions. In this section, we present an efficient PAC learner for the hypothesis class H MATCH , consisting of (MATCH,THRESH)-SyDSs.</p><p>As mentioned earlier, we obtain an efficient PAC learner for this class by presenting an efficient algorithm for the &#915;-Consistency problem. We begin with a few definitions. Threshold-Compatibility. For a pair of distinct vertices u and v, we say that u and v are threshold-compatible if for all</p><p>Informally, u and v are threshold-compatible iff there exist threshold functions f u for u and f v for v, such that f u and f v are each consistent with O.</p><p>Compatibility Graph. The threshold-compatibility graph G &#8242; = (V, E &#8242; ) of O is an undirected graph with vertex set V, and an edge }u, v} &#8712; E &#8242; for each pair of thresholdcompatible vertices u and v.</p><p>Algorithm 1: Full-Infer-Matching (V)</p><p>If G does not have a perfect matching, answer "No" and stop. Let E &#8242;&#8242; be the edge set of a perfect matching in An efficient learner. Our efficient algorithm for the &#915;-Consistency problem for the class of (MATCH,THRESH)-SyDSs appears as Algorithm 1. The algorithm first constructs the threshold-compatibility graph G &#8242; = (V, E &#8242; ) of O. The reason for this computation is given in the following lemma. A proof of the lemma appears in <ref type="bibr">(Qiu et al. 2023)</ref>. Lemma 3.3 The answer to the &#915;-Consistency problem for (MATCH,THRESH)-SyDSs is "Yes" if and only if the threshold-compatibility graph G &#8242; = (V, E &#8242; ) of O contains a perfect matching.</p><p>Next, the algorithm finds a maximum matching in G &#8242; . Let E &#8242;&#8242; be the edge set of this maximum matching. Note that, from Lemma 3.3, G &#8242; contains a perfect matching, so E &#8242;&#8242; is a perfect matching of G. The learned hypothesis S is a (MATCH,THRESH)-SyDSs on V whose graph has edge set E &#8242;&#8242; , and interaction function f v for each vertex v, with incident edge (v, u) in E &#8242;&#8242; , is any threshold function of variables v and u that is consistent with O[{v, w}]. Remark. To estimate the running time of Algorithm 1, note that for any pair of nodes, determining compatibility can be done in O(nq) time, where n is the number of nodes and q is the number of given observations. Thus, the time to construct the compatibility graph is O(n 3 q). All the other steps (including the computation of perfect matching which can be done in O(n 3 ) time <ref type="bibr">(Cormen et al. 2009</ref>)) are dominated by the time to construct the compatibility graph. Thus, the overall running time is O(n 3 q), which is polynomial in the input size. Hence, we have an efficient consistent learner for the class of (MATCH,THRESH)-SyDSs and so: Theorem 3.2 The hypothesis class associated with (MATCH,THRESH)-SyDSs is efficiently PAC learnable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">PAC Learnability for Directed Graphs</head><p>In this section, we present an efficient PAC learner for the hypothesis class H DIR,&#8710;-BOUNDED consisting of SyDSs where the underlying graph of the target system is directed, with in-degree bounded by some fixed &#8710;, and the interaction functions are threshold functions. As before, we establish this result by presenting an efficient algorithm for the &#915;-Consistency problem, where &#915; is the class of SyDSs on directed graphs where the maximum indegree is bounded by a constant &#8710; and the interaction functions are threshold functions. We refer to these as (DIR, &#8710;, THRESH)-SyDSs. We say that a given vertex v is threshold-consistent with a given training set O via a given vertex set</p><p>A key lemma that leads to our algorithm is the following. Lemma 3.4 There exists a system S &#8712; H DIR,&#8710;-BOUNDED that is consistent with a given training set O if and only if every vertex v is threshold-consistent with O via a vertex set N v of cardinality at most &#8710;.</p><p>As shown below, the above lemma provides a straightforward algorithm for the &#915;-Consistency problem for the class of (DIR, &#8710;, THRESH)-SyDSs. Lemma 3.5 For any fixed value &#8710;, the &#915;-Consistency problem for the class of (DIR, &#8710;, THRESH)-SyDSs can be solved efficiently. Proof. Since the graph is directed, each vertex can be treated independently. For each vertex v, an algorithm can enumerate all possible vertex sets Y &#8838; V \ {v} of cardinality at most &#8710; and find the corresponding N v . The number of such vertex sets is O(n &#8710; ). Further, for each such a set, we check if v is threshold-consistent under this set, which takes O(&#8710;q) time. Thus, for each vertex, the time to find an N v is O(n &#8710; &#8226; &#948;q), and the overall running time is O(n &#8710;+1 &#8226; &#948;q).</p><p>Since we have an efficient consistent learner for the hypothesis class H DIR,&#8710;-BOUNDED for any constant &#8710;, we have: Theorem 3.3 For any fixed value &#8710;, the hypothesis class H DIR,&#8710;-BOUNDED is efficiently PAC learnable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">Partially Observed Networks</head><p>In this section, we consider the learning problem for (UNDIR, THRESH)-SyDSs when the network is partially observed, with at most k missing edges from the true network G. Let G obs denote the observed network of the system, and let H OBS denote the corresponding hypothesis class. The goal is to learn a system in H OBS with underlying graph G &#8242; being a supergraph of G obs , with at most k additional edges.</p><p>We first provide an upper bound on the sample complexity of learning H OBS based on a detailed analysis of hypothesis class size. Then, for the scenario where at most one edge is missing for each vertex, we present an efficient PAC learner. Theorem 4.1 Given a partially observed network G obs , for any &#1013;, &#948; &gt; 0, the sample complexity of learning the hypothesis class H OBS satisfies M(&#1013;, &#948;) &#8804; 1 &#1013; n log(d avg (G obs ) + 3) + ck log(n 2 /k) + log(1/&#948;) for some constant c &gt; 0, where d avg (G obs ) is the average degree of G obs .</p><p>Proof. We first bound the size of the hypothesis class H of all possible SyDSs in the class (UNDIR, THRESH)-SyDSs, given G obs as the partially observed network. This includes all such SyDSs with the underlying graph being G obs and up to k more edges. Our sample complexity bound is then based on the following result by <ref type="bibr">(Haussler 1988)</ref></p><p>Given a graph G, let H G denote the set of threshold SyDSs with G as the underlying graph. From <ref type="bibr">(Adiga et al. 2018)</ref>, the size of H G can be bounded by accounting for the number of threshold assignments possible for each vertex and is given by </p><p>for some constant c &#8242; &gt; 0. In particular, the last inequality can be obtained as follows:</p><p>Lastly, setting y = 2x log(en) -x log x, we have for another constant c &#8242;&#8242; &gt; 0. It follows that</p><p>for a suitable constant c &#8242;&#8242; &gt; 0.</p><p>Remark. For the case where the network is fully known, the work by <ref type="bibr">(Adiga et al. 2018)</ref> provides a polynomial-time algorithm that outputs a consistent learner in time O(qn) where q is the size of O. In our case, where at most k edges are missing, we note that the method of considering all possible supergraphs of G obs with at most k extra edges and checking the consistency takes O n 2k pn time since there are at most n 2k such graphs.</p><p>By simply setting G obs to be a graph with no edges, Theorem 4.1 implies the following corollary when the only information known about the network topology is that it has at most m edges.</p><p>Corollary 4.1 The sample complexity of learning the hypothesis class H UNDIR,THRE given that the underlying network has at most m edges is &#8804; 1 &#1013; c m log(n 2 /m) + log(1/&#948;) for a suitable constant c &gt; 0.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1">Missing At Most One Edge Per Vertex</head><p>We now examine the case when the hypothesis class H OBS misses at most k edges, of which at most one missing edge is incident on each vertex. We propose an efficient PAC learner for this case.</p><p>We begin with some definitions. Consider a given training set O and set of vertices</p><p>Step one. To infer a SyDS consistent with the observations O, we first compute &#8467;(v, N + (G obs , v)) and h(v, N + (G obs , v)) for each vertex v. In this process, we also identify all vertices v for which &#8467;(v, N + (G obs , v)) &#8805; h(v, N + (G obs , v)); G obs violates the threshold consistency condition for each such v. Let V &#8242; denote the set of vertices such that &#8467;(v, N + (G obs , v)) = h(v, N + (G obs , v)), and V &#8242;&#8242; denote the set of vertices such that &#8467;(v, N + (G obs , v)) &gt; h(v, N + (G obs , v)).</p><p>Observation 4.1 Each vertex in V &#8242;&#8242; requires at least two additional incident edges, so if V &#8242;&#8242; &#824; = &#8709;, there is no system in H OBS that is consistent with O.</p><p>So, henceforth we assume that V &#8242;&#8242; = &#8709;.</p><p>Step two. Next, we construct a maximum-weighted matching problem instance with vertex set V, where the edge weights are all positive integers. In particular, we say that a vertex pair</p><p>and (iii) adding the edge (u, v) to G obs would result in u and v both satisfying the consistency condition, i.e.,</p><p>The constructed graph G m has an edge for each viable vertex pair. Let E 1 denote the edges in G m with exactly one endpoint in V &#8242; , and E 2 the edges in G m with both endpoints in V &#8242; . The edges in E 1 are given weight t, and the edges in E 2 are given weight 2t + 1.</p><p>Step three. Lastly, the constructed matching problem is solved, producing a maximum weight matching, M. If M matches all the vertices in V &#8242; and consists of at most k edges, then we construct the new graph G &#8242; by adding the edges in M to G obs . Since all added edges are viable, and each vertex is the endpoint of at most one added edge, we have that for all</p><p>If the maximum weight matching does not match all vertices in V &#8242; or contains more than k edges, then there is no SyDS in H OBS that is consistent with the training set O. Correctness. Consider a matching M &#8242; within G m . Let &#181;(M &#8242; ) denote the number of vertices in V &#8242; that are covered by M &#8242; , and W (M &#8242; ) denote the weight of M &#8242; . Suppose that &#181;(M &#8242; ) contains e 1 edges from E 1 and e 2 edges from E 2 . Then &#181;(M &#8242; ) = e 1 + 2e 2 and W (M &#8242; ) = qe 1 + 2qe 2 + e 2 . Since e 2 &#8804; q/2 &lt; q, &#181;(M &#8242; ) = &#8970;W (M &#8242; )/q&#8971;. Thus, no other matching matches more vertices in V &#8242; than M. Moreover, of those matchings that match the same number of V &#8242; vertices as M, none has more edges from E 2 , so none consists of fewer edges than M. Thus, M matches as many vertices from V &#8242; as possible, and does so with the minimum number of edges possible.</p><p>We note that both (i) construction of the matching graph G m and (ii) finding a maximum matching in G m can be done in polynomial time. It follows that the learning problem considered is efficiently PAC learnable. Theorem 4.2 Suppose G obs (V, E) is missing at most k edges, with at most one is incident on each vertex. The corresponding hypothesis class is efficiently PAC learnable.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Tight Bounds on Natarajan Dimension</head><p>In this section, we study the expressiveness of the hypothesis class H UNDIR,THRE for (UNDIR, THRESH)-SyDSs, measured by the Natarajan dimension <ref type="bibr">(Natarajan 1989</ref>) Ndim(H UNDIR,THRE ). Specifically, a higher value of Ndim(H UNDIR,THRE ) implies a greater expressive power of the class H UNDIR,THRE . Further, Ndim(H UNDIR,THRE ) characterizes the sample complexity of learning H UNDIR,THRE . Theorem 5.1 The Natarajan dimension of the hypothesis class H UNDIR,THRE is &#8805; &#8970;n 2 /4&#8971;, irrespective of the graph structure. Proof. We establish the result by specifying a shattered set R &#8834; X of size &#8970;n 2 /4&#8971;. Let the set V of n vertices be partitioned into two subsets: Y consisting of &#8970;n/2&#8971; vertices, and Z consisting of the other &#8968;n/2&#8969; vertices. Set R consists of |Y||Z| = &#8970;n 2 /4&#8971; configurations, as follows. Each configuration in R has exactly two vertices in state 1, one of which is in Y, and the other in Z.</p><p>Let g 1 be the function that maps each configuration C into the configuration where each vertex in Y has the same state as in C, and each vertex in Z has state 0. Let g 2 be the function that maps each configuration into the configuration where every vertex has state 0.</p><p>We now show that the two requirements for shattering are satisfied. For requirement (i), for each C &#8712; R, the state-1 vertex in Y under C is in state 1 in g 1 (C) and in state 0 in g 2 (C), so g 1 (C) &#824; = g 2 (C). For requirement (ii), consider each subset R &#8242; &#8838; R. Let S R &#8242; = (G R &#8242; , F R &#8242; ) &#8712; H be the following SyDS. Graph G R &#8242; is bipartite with vertex sets Y and Z; it contains an edge {y, z} iff there is configuration in R &#8242; in which y and z are both in state 1. Each interaction function is a threshold function, where the threshold of every vertex in Y is 2, and the threshold of every vertex in Z is 3. We now claim that &#8704;C &#8712; R &#8242; , S(C) = g 1 (C) and &#8704;C &#8712; R \ R &#8242; , S(C) = g 2 (C). Consider any C &#8712; R. Let y &#8712; Y and z &#8712; Z be the two vertices that are in state 1 in C. If C &#8712; R &#8242; , then G R &#8242; contains the edge (y, z), so S(C) = g 1 (C). If C &#8712; R \ R &#8242; , then y and z are not neighbors in G R &#8242; , so S(C) = g 2 (C). This completes our proof of the claim and also that of Theorem 5.1.</p><p>From (Shalev-Shwartz and Ben-David 2014), the sample complexity of learning H UNDIR,THRE is at most:</p><p>(2) Thus, we have the following corollary: </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Conclusions and Future Work</head><p>We examined the problem of learning both the topology and the interaction functions of an unknown networked dynamical system under the PAC model. We showed that the problem is, in general, computationally intractable. We also identified efficiently solvable special cases. Further, we studied a setting where the underlying network is partially observed, and proposed an efficient PAC learner. It would be interesting to extend our efficient algorithms to the case where the observation set includes other forms of a system's dynamics instead of single transitions (e.g., positive and negative examples of single transitions, trajectories with two or more transitions). It would also be of interest to consider the problem where additional information about the graph (e.g., maximum node degree, the size of a maximum clique) and/or the interaction functions (e.g., upper bounds on the threshold values) is also available.</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>The Thirty-Eighth AAAI Conference on Artificial Intelligence </p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_1"><p>Thirty-Eighth AAAI Conference on Artificial Intelligence </p></note>
		</body>
		</text>
</TEI>
