<?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'>Adversarial Classification on Social Networks</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2018</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10050177</idno>
					<idno type="doi"></idno>
					<title level='j'>International Conference on Autonomous Agents and Multiagent Systems</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Sixie Yu</author><author>Yevgeniy Vorobeychik</author><author>Scott Alfeld</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The spread of unwanted or malicious content through social me- dia has become a major challenge. Traditional examples of this include social network spam, but an important new concern is the propagation of fake news through social media. A common ap- proach for mitigating this problem is by using standard statistical classi cation to distinguish malicious (e.g., fake news) instances from benign (e.g., actual news stories). However, such an approach ignores the fact that malicious instances propagate through the network, which is consequential both in quantifying consequences (e.g., fake news di using through the network), and capturing de- tection redundancy (bad content can be detected at di erent nodes). An additional concern is evasion attacks, whereby the generators of malicious instances modify the nature of these to escape detection. We model this problem as a Stackelberg game between the defender who is choosing parameters of the detection model, and an attacker, who is choosing both the node at which to initiate malicious spread, and the nature of malicious entities. We develop a novel bi-level programming approach for this problem, as well as a novel solution approach based on implicit function gradients, and experimentally demonstrate the advantage of our approach over alternatives which ignore network structure.]]></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"><p>as a function of content (or, rather, features thereof). This is a generalization of typical network inluence models which abstract away the nature of information being shared. It is also a crucial generalization in our setting, as it allows us to directly model the balancing act by the attacker between increasing social inluence and avoiding detection. Second, we consider the problem of designing a collection of heterogeneous statistical detectors which explicitly account for network structure and difusion at the level of individual nodes, rather than merely training data of past benign and malicious instances. We formalize the overall problem faced as a Stackelberg game between a defender (manager of the social network) who deploys a collection of heterogeneous detectors, and an attacker who optimally chooses both the starting node for malicious content, and the content itself. This results in a complex bi-level optimization problem, and we introduce a novel technical approach for solving it, irst considering a naive model in which the defender knows the node being attacked, which allows us to develop a projected gradient descent approach for solving this restricted problem, and subsequently utilizing this to devise a heuristic algorithm for tackling the original problem. We show that our approach ofers a dramatic improvement over both traditional homogeneous statistical detection and a common adversarial classiication approach. Related Work. A number of prior eforts have considered limiting adversarial inluence on social networks. Most of these pit two inluence maximization players against one another, with both choosing a subset of nodes to maximize the spread of their own inluence (blocking the inluence of the other). For example, Cerenet et al. <ref type="bibr">[7]</ref> consider the problem of blocking a &#322;bad&#382; campaign using a &#322;good&#382; campaign that spreads and thereby neutralizes the &#322;bad&#382; inluence. Similarly, Tsai et al. <ref type="bibr">[26]</ref> study a zero-sum game between two parties with competing interests in a networked environment, with each party choosing a subset of nodes for initial inluence. Vorobeychik et al. <ref type="bibr">[28]</ref> considered an inluence blocking game in which the defender chooses from a small set of security conigurations for each node, while the attacker chooses an initial set of nodes to start a malicious cascade. The main diferences between this prior work and ours is that (a) our difusion process depends on the malicious content in addition to network topology, (b) detection at each node is explicitly accomplished using machine learning techniques, rather than an abstract small set of conigurations, and (c) we consider an attacker who, in addition to choosing the starting point of a malicious cascade, chooses the content in part to evade the machine learning-based detectors. The issue of using heterogeneous (personalized) ilters was previously studied by Laszka et al. <ref type="bibr">[19]</ref>, but this work did not consider network structure or adversarial evasion.</p><p>Our paper is also related to prior research in single-agent inluence maximization and adversarial learning. Kempe et al. <ref type="bibr">[18]</ref> initiated the study of inluence maximization, where the goal is to select a set of nodes to maximize the total subset of network afected for discrete-time difusion processes. Rodriguez et al. <ref type="bibr">[16]</ref> and <ref type="bibr">Du et al. [13&#347;15]</ref> considered the continuous-time difusion process to model information difusion; we extend this model. Prior adversarial machine learning work, in turn, focuses on the design of a single detector (classiier) that is robust to evasion attacks <ref type="bibr">[6,</ref><ref type="bibr">12,</ref><ref type="bibr">20]</ref>.</p><p>However, this work does not consider malicious content spreading over a social network.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">MODEL</head><p>We are interested in protecting a set of agents on a social network from malicious content originating from an external source, while allowing regular (benign) content to difuse. The social network is represented by a graph G = (V ,E), where V is the set of vertices (agents) and E is the set of edges. An edge between a pair of nodes represents communication or inluence between them. For example, an edge from i to j may mean that j can see and repost a video or a news article shared by i. For simplicity, we assume that the network is undirected; generalization is direct.</p><p>We suppose that each message (benign or malicious) originates from a node on the network (which may difer for diferent messages) and then propagates to others. We utilize a inite set of instances difusing over the network (of both malicious and benign content) as a training dataset D. Each instance, malicious or benign, is represented by a feature vector x &#8712; R n where n is the dimension of the feature space. The dataset D is partitioned into D + and D -, where D + corresponds to malicious and D -to benign instances.</p><p>To analyze the difusion of benign and malicious content on social networks in the presence of an adversary, we develop formal models of (a) the difusion process, (b) the defender who aims to prevent the spread of malicious content while allowing benign content difuse, (c) the attacker who attempts to maximize the inluence of a malicious message, and (d) the game between the attacker and defender. We present these next.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1">Continuous-Time Difusion</head><p>Given an undirected network with a known topology, we use a continuous-time difusion process to model the propagation of content (malicious or benign) through the social network, extending Rodriguez et al. <ref type="bibr">[16]</ref>. In our model, difusion will depend not merely on the network structure, but also on the nature of the item propagating through the network, which we quantify by a feature vector x as above.</p><p>Suppose that the difusion process for a single message originates at a node s. First, x is transmitted from s to its direct neighbors. The time taken by a propagation through an edge e is sampled from a distribution over time, f e (t; w e ,x ), which is a function of the edge itself and the entity x, and parametrized by w e . The afected (inluenced) neighbors of s then propagate x to their neighbors, and so on. We assume that an afected agent remains afected through the difusion process.</p><p>Given a sample of propagation times over all edges, the time t i taken to afect an agent i is the length of the shortest path between s and i, where the weights of edges are propagation times associated with these edges. The continuous-time difusion process is supplied with a time window T , which is used to simulate time-sensitive natures of propagation, for example, people are generally concerned about a news for several months but not for years. An agent is afected if and only if its shortest path to s is less than or equal to T . The difusion process terminates when the path from s to every unafected agent is above T . We deine the inluence &#963; (s,x ) large. Consequently, we can formulate the attacker's optimization problem with respect to malicious content z for a given original feature vector x as max</p><p>The attacker aims to make 1/&#947; 2 for each edge as large as possible, which is captured by the objective function 1 T A l z, where 1 &#8712; R N l is a vector with all elements equal to one. Intuitively, this means the attacker is trying to maximize on average the parameter 1/&#947; 2 of every edge at layer l.</p><p>is a vector of decreasing coeicients that provides more lexibility to modeling the attacker's behavior: they are used to re-weight the importance of each layer. For example, setting</p><p>models the attacker who tries to make malicious instances spread wider at the earlier layers of the difusion. We now use similar ideas to convert the upper-level optimization problem of (4) into a more tractable form. Suppose that the node being attacked is s (and known to the defender). Then the defender wants the detection model at j to accurately identify both malicious and benign contents. This is achieved by the two indicator functions inside 1 and 2 in the reformulated objective function of the defender (6):</p><p>Notice that this expression includes a vector c l,j &#8712; R N l that does not appear in <ref type="bibr">(5)</ref>. c l,j is a function of &#920; and x, for a given node j which triggers difusion (which we omit below for clarity):</p><p>Slightly abusing notation, we let</p><p>The term k l c T l,j A l x in 1 can be expanded as follows:</p><p>noting again that l and N l depend on j, the starting node of the difusion process. From the expression (8), the defender tries to ind &#920; that minimizes the impact of false positives while maximizing the impact of true negatives. This is because if each benign instance x &#8712; D -is correctly identiied (false-positive rates are zero and true-negative rates are one), the summation at the second line of expression (8) will attain its maximum possible value.</p><p>In addition to facilitating the propagation of benign contents, the defender wants to limit the propagation of malicious contents, which is embodied in 2 . The equations in 2 are similar to those in 1 , except that the summation is over malicious contents D + , and 2 is accounting for the false negatives. In this case, c l,s is a function of z(x ), the adversarial feature vector which transforms x into another, z.</p><p>We now re-formulate the problem (4) as a new bilevel optimization problem <ref type="bibr">(9)</ref>. The upper-level problem corresponds to the defender's strategy <ref type="bibr">(6)</ref>, and the lower-level problem to the attacker's optimization problem <ref type="bibr">(5)</ref>. Here, s is again the node chosen by the attacker. min</p><p>where the last constraint ensures that w T z(x ) &#8805; 0 for all attacks z(x ).</p><p>The inal step, inspired by <ref type="bibr">[24,</ref><ref type="bibr">25]</ref>, is to convert (9) into a singlelevel optimization problem via the KKT <ref type="bibr">[5]</ref> conditions of the lowerlevel problem. With appropriate norm constraints (e.g., l 2 norm) and a convex relaxation of the indicator functions (i.e., convex surrogates of the indicator functions), the lower-level problem of (9) is convex. A convex optimization problem can be equivalently represented by its KKT conditions <ref type="bibr">[8]</ref>. The single-level optimization problem then becomes:</p><p>where Fd is the objective function of Problem (9), and &#955;, &#181;, &#951; are vectors of lagrangian multipliers. &#1076;(z,x ) = ||z -x || p -&#1013; &#8804; 0 is the attacker's budget constraint. h(x, &#920;) is the set of equality constraints</p><p>product between &#951; and (-z) .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2">Projected Gradient Descent</head><p>In this section we demonstrate how to solve the single-level optimization obtained above by projected gradient descent. The key technical challenge is that we don't have an explicit representation of the gradients with respect to the defender's decision &#920;, as these are indirectly related via the optimal solution to the attacker's optimization problem. We derive these gradients based on the implicit function of the defender's utility with respect to &#920;. We begin by outlining the overall iterative projected gradient descent procedure. In iteration t we update the parameters of detection models by taking a projected gradient step:</p><p>where A d is the feasible domain of &#920; and &#946; t is the learning rate. With &#920; (t +1) we solve for z (t +1) , which is the optimal attack for a ixed &#920; (t +1) . &#8711; &#920; Fd is the gradient of the upper-level problem.</p><p>Expanding &#8711; &#920; Fd using the chain rule and still using s as the initially attacked node, we obtain</p><p>In both 1 and 2 we note that</p><p>is dependent on the speciic detection models. We will give a concrete example of their derivation in Section 3.5.</p><p>In l k l c T l,s A l z(x ) there are two terms that are functions of &#920;: c l,s and z(x ). Consequently, (a) can be expanded as:</p><p>Note that only the detection models of those agents at layer l have contribution to c l,s . Thus, &#8706;c l,s &#8706;&#920; l is a Jacobian matrix with dimension N l &#215; N l , where N l is the number of agents at layer l and &#920; l denotes the detection models of those N l agents. Since c l,s is also dependent on the speciic detection models of agents, we defer its derivation to Section 3.5.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8706;z (x )</head><p>&#8706;&#920; l is a n &#215; N l Jacobian matrix and is the main diiculty because we do not have an explicit function of the attacker's optimal decision z(x ) with respect to &#920; l . Fortunately, the constraints in <ref type="bibr">(10)</ref> implicitly deine z(x ) in terms of &#920;:</p><p>&#920; and the attacked malicious instance z satisfy f (&#920;,z,&#955;, &#181;,&#951;) = 0. The Implicit Function Theorem <ref type="bibr">[31]</ref> states that if f (&#920;,z,&#955;, &#181;,&#951;) is continuous and diferentiable and the Jacobian matrix</p><p>has full rank, there is a unique implicit function</p><p>Moreover, the derivative of &#8706;I &#8706;&#920; is:</p><p>&#8706;f &#8706;z is the Jacobian matrix of f (&#920;,z,&#955;, &#181;,&#951;) with respect to z, and so on. &#8706;z &#8706;&#920; &#8712; R n&#215;N is the irst n rows of &#8706;I &#8706;&#920; , where &#8706;z &#8706;&#920; l can be column-wise indexed by the nodes at layer l.</p><p>(b) can be similarly expanded as we had done for (a), except that the attacker does not modify benign content, so that x &#8712; D -is no longer a function of &#920;:</p><p>The full projected gradient descent approach is given by Algorithm 1.</p><p>Algorithm 1 Find Defense Strategy 1: Input: agent j 2: Initialize:</p><p>5: end for 6: return &#920; (k+1)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3">Optimal Attack</head><p>So far, we had assumed that the network node being attacked is ixed. However, the ultimate goal is to allow the attacker to choose both the node s, and the modiication of the malicious content z. We begin our generalization by irst allowing the attacker to optimize these jointly. The full attacker algorithm which results is described in Algorithm 2.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm 2 Optimal Attack Strategy</head><p>x (i) &#8592; Solve <ref type="bibr">(5)</ref> 5:</p><p>&#219;a (i) &#8592; Optimal objective value of (5) 6:</p><p>i,z(i,x ), &#219;a (i) appended to ret 7: end for 8: z,s &#8592; OptimalTuple(ret) 9: return z,s</p><p>Recall that the tree structure of a propagation is dependent on the agent being attacked, which makes the objective function of (5) a function of the agent being attacked. Thus, for a given ixed &#920;, the attacker iterates through each agent i and solves the problem (5), assuming the propagation starts from i, resulting in associated utility &#219;a (i) and an attacked instance z(i,x ). Then i, z(i,x ), and &#219;a (i) are appended into a list of a 3-tuples (the sixth step in Algorithm 2). When the iteration completes the attacker picks the optimal 3-tuple in terms of utility (eighth step in Algorithm 2, where the function OptimalTuple(ret) inds the optimal 3-tuple from the list ret). The node s and the corresponding attack instance z in this optimal 3-tuple become the optimal attack.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.4">SSE Heuristic Algorithm</head><p>Now we take the inal step, relaxing the assumption that the attacker chooses a ixed node to attack which is known to the defender prior to choosing &#920;. Our main observation is that ixing s in the defender's algorithm above allows us to ind a collection of heterogeneous detector parameters &#920;, and we can evaluate the actual utility of the associated defense (i.e., if the attacker optimally chooses both s and z in response) by using Algorithm 2. We use this insight to devise a simple heuristic: iterate over all potential nodes s that can be attacked, compute the associated defense &#920;(s) (using the optimistic deinition of defender's utility in which s is assumed ixed), then ind the actual optimal attack in response for each x &#8712; D + . Finally, choose the &#920;(s) which has the best actual defender utility. This heuristic algorithm is described in Algorithm 3. The ifth &#219;d (j) &#8592; DefenderUtility(&#920; j , (s,z(x )))</p><p>6: end for 7: j &#8592; arg max j &#219;d (j) 8: return &#920; j step in the algorithm includes the function DefenderUtility, which evaluates the defender's utility &#219;d (j). Note that the input argument s of this function is used to determine the tree structure of the propagation started from s.</p><p>Recall that Algorithm 1 solves <ref type="bibr">(10)</ref>, which depends on the speciic detection model to compute the relevant gradients. Therefore, in what follows, we present a concrete example of how to solve <ref type="bibr">(10)</ref> where detection models are logistic regressions. Speciically, we illustrate how to derive the two terms, &#8706;1[&#952; j (z )=0] &#8706;&#920; and &#8706;c l,j &#8706;&#920; l that depend on particular details of the detection model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.5">Illustration: Logistic Regression</head><p>We consider the logistic regression model used for detection at individual nodes to illustrate the ideas developed above. For a node i, its detection model has two components: the logistic regression 1 1+e -&#981; T x , where &#981; is the weight vector of the logistic regression and x the instance propagated to i, and a detection threshold &#952; i (which is the parameter the defender will optimize). An instance is classiied as benign if 1 1+e -&#981; T x &#8804; &#952; i . Thus (slightly abusing notation as before), &#952; i (x ) 0 (x is classiied as malicious) if </p><p>&#8706;&#920; is a N -dimension vector with the jth element equal to 1 &#952; j -&#952; 2 j . The c l vector then becomes:</p><p>and &#8706;c l &#8706;&#920; l becomes a N l &#215; N l diagonal matrix:</p><p>With equations ( <ref type="formula">12</ref>)-( <ref type="formula">16</ref>), &#8706;c l &#8706;&#920; l and &#8706;1[&#952; j (x )=0] &#8706;&#920;</p><p>, we can now calculate &#8711; &#920; Fd . Since the thresholds &#952; i &#8712; [0, 1], the defender's action space is [0, 1] N . When updating &#920; by <ref type="bibr">(11)</ref> we therefore project it back to [0, 1] N in each iteration.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">EXPERIMENTS</head><p>In this section we experimentally evaluate our proposed approach. We used the Spam dataset <ref type="bibr">[22]</ref> from UCI machine learning repository as the training dataset for the logistic regression model. The Spam dataset contains 4601 emails, where each email is represented a 57-dimension feature vector. We divided the dataset into three disjoint subsets: D &#8242; used to learn the logistic regression (tuning the weight vectors with thresholds setting to 0.5) as well as other models to which we compare, D train used in Algorithm 3 to ind the optimal defense strategy, and D test to test the performance of</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">CONCLUSION</head><p>We address the problem of adversarial detection of malicious content spreading through social networks. Traditional approaches use with a homogeneous detector or a personalized iltering approach. Both ignore (and thus fail to exploit knowledge of) the network topology, and most iltering approaches in prior literature ignore the presence of an adversary. We present a combination of modeling and algorithmic advances to systematically address this problem. On the modeling side, we extend difusion modeling to allow for dependence on the content propagating through the network, model the attacker as choosing both the malicious content, and initial target on the social network, and allow the defender to choose heterogeneous detectors over the network to block malicious content while allowing benign difusion. On the algorithmic side, we solve the resulting Stackelberg game by irst representing it as a bilevel program, then collapsing this program into a single-level program by exploiting the problem structure and applying KKT conditions, and inally deriving a projected gradient descent algorithm using explicit and implicit gradient information. Our experiments show that our approach dramatically outperforms, homogeneous classiication, adversarial learning, and heterogeneous but non-adversarial alternatives.</p></div></body>
		</text>
</TEI>
