Context. A classifier that decides about people, spam or fraud gets gamed: the other side changes cheap attributes to cross it. Hardt et al. (2016) set up a Stackelberg game, in which a jury commits to a classifier and each contestant best-responds under a cost the jury knows, and ask for a learner whose accuracy after the response is within of the best possible. Brückner et al. (2012) make learner and data generator simultaneous players with their own regularized costs, a Nash prediction game, and certify a unique equilibrium; Brückner and Scheffer (2011) solve the Stackelberg version. The order of play and the shape of the cost decide what can be learned. Under a separable cost every classifier collapses, after gaming, to a cutoff on one number , so whatever the features predict beyond cannot be used. In the simultaneous game the purely antagonistic part of the interaction does not affect uniqueness; regularization has to dominate the part where the players' loss slopes do not cancel.
Setting (Hardt et al.). Fix a population , a distribution , a cost and a target . The jury publishes , and a contestant at moves to , staying put when that is among the maximizers. The jury is scored against the true label of the unmoved point. Acceptance is worth 2 (from to ), so a rejected contestant moves exactly when some accepted point costs less than 2. The strategic maximum is the jury's Stackelberg value. The jury knows but sees only unmanipulated labeled samples; an algorithm is strategy-robust if with probability it reaches , and uniform over if one sample serves every . A cost is separable if with , so every contestant has a free option. The linear case is : raising attribute costs per unit. Write for the classifier that accepts iff .
Theorems (Hardt et al.). Separable costs. If is separable (no ties at cost 2) and then with probability the output of Algorithm 1, run on the labels of , is within of for all at once. Algorithm 1 puts (or ), adds , and picks the minimizing the empirical error of . For one fixed , samples suffice with no assumption on , and the algorithm is efficient because it never searches . Minima of separable costs extend this, as the paper states (its scoring of candidates needs the repair in Step 5), with in the sample condition and time ; every finite cost is such a minimum, so measures how far a cost is from separable. Hardness: for a general metric on a finite , computing within is NP-hard, even for a jury that knows every label.
Setting and theorems (Brückner et al.). The learner chooses , scoring ; the data generator, one player for all senders legitimate and abusive, chooses a transformed copy of the training sample, labels kept, standing in for the test distribution. Each incurs a weighted loss on the transformed sample plus its own regularizer, The game is static with complete information (each player knows both costs); at a Nash equilibrium each minimizes its own cost given the other's action. With the regularizers' Hessian floors, convex smooth losses, strongly convex regularizers and compact convex action sets, an equilibrium exists, and it is unique if (i) the curvatures agree, ; (ii) and (iii) for each instance, equal cost factors or a generator regularizer whose gradient in does not depend on the other instances. For Nash logistic regression (learner , generator for both classes, since it incurs a loss whenever an instance is blocked) with squared-norm regularizers and uniform weights, the condition reads . Uniqueness matters because players taking actions from different equilibria can do arbitrarily badly.
Under a separable cost, acceptance after gaming is a threshold on . A contestant ends up accepted iff some accepted has , that is , and the cheapest accepted target has the smallest , so The side conditions enter only here: nonnegativity makes a move to a rejected point useless, and the free option makes a rejected contestant's payoff exactly . The outcome depends on only through the single number .
The jury can restrict to cutoffs on , and the strategic maximum is the best cutoff on . Replace by : same , hence the same outcome at every . Optimizing over , with the published rule two cost units above the effective cutoff on original features. A brute-force check over all classifiers on small random separable instances matched this formula exactly (my check, not in the paper). In the linear case, moving orthogonally to is free, so the jury may as well accept a halfspace with normal , and the data choose only its offset.
Empirical risk minimization over candidate cutoffs is exact. The empirical error of changes only when crosses some , and is the highest value of that sample can reach at cost at most 2, so every distinct empirical behavior is attained among . The cutoff must be a value of , since a cutoff on at an arbitrary level need not be reachable by any published rule. The search is one-dimensional, which is why the algorithm never has to search .
Uniform convergence, through a Rademacher bound on products. The loss class is , and for functions , so contraction splits its complexity into plus that of the cutoffs, which Massart's lemma bounds by since cutoffs realize at most patterns. Then The term is there only for uniformity over targets; for one fixed , the sample size is that of learning a single threshold.
For minima of separable costs there is one cutoff per piece, and the search grows exponentially in . A contestant uses its cheapest piece, so the accepted set after gaming is a union with . Replacing by the intersection of its cutoff sets leaves every unchanged, and ERM runs over the grid of candidate vectors, hence and . Score each candidate by the actual post-gaming outcome of the rule it publishes: on small two-piece instances that recovered the strategic maximum every time, while the paper's shortcut score returned a worse rule in about 6% of instances, by up to 0.83 in accuracy (my check, not in the paper).
For metrics the problem is NP-hard, by a 3SAT reduction on a two-distance metric. Gaming closes the jury's acceptance set under neighborhoods, which leaves a covering problem with no one-dimensional order to exploit. With distances 1.5 and 2.5 only (the triangle inequality is automatic), close pairs form a graph, and accepting a point accepts all its rejected neighbors. Weighted gadgets (negative literal points, positive clause-pair points, linking points for non-contradictory literal pairs) make accepting anything profitable exactly when one literal per clause can be chosen with no two contradictory, that is, when the formula is satisfiable, with a gap that is a fraction of the population.
In Hardt's experiment the strategy-robust classifier beats an SVM once gaming is substantial. On review spam with hand-assigned linear costs and deliberately misspecified simulated gaming, the strategy-robust classifier beats a linear SVM once gaming reaches about half a unit, and tolerates misspecification up to about ; the SVM is as good with almost no gaming. One data set, results in figures only.
Existence is standard, and uniqueness reduces to positive definiteness of a weighted pseudo-Jacobian. Each cost is continuous and strictly convex in the player's own action on a compact convex set, so the classical existence theorem for convex games applies. For uniqueness, split the generator into players, one per instance, which keeps the equilibria (its cost is convex over a product set) and allows one Rosen weight per block. The equilibrium is unique if is strictly monotone (Rosen's diagonal strict concavity, with signs flipped for costs), for which it suffices that its nonsymmetric Jacobian satisfies everywhere; the weights , rescale the generator's instance weights to the learner's.
The curvature part is a sum of squares exactly when the curvatures agree. Differentiating twice gives curvature entries (the score is a scalar index) and coupling entries (the score is bilinear). With and the weights above, the curvature part is the curvature of the loss along the change in each score. It is never definite: , leaves every score unchanged to first order, so definiteness has to come from the regularizers. With unequal curvatures the square structure is lost, and the paper warns the equilibrium may then not be unique.
In the coupling only the slopes that fail to cancel count, and the regularizers must dominate them. Definiteness depends only on the symmetric part of the Jacobian, in which the antagonistic difference of the two slopes is skew and drops out. Put the regularizers' floors on the diagonal (their excess is positive semidefinite by condition (iii)); after a diagonal congruence, which keeps the signs of the eigenvalues, twice the symmetric part is an arrowhead matrix with spokes and eigenvalues and all positive iff , which (ii) guarantees. For Nash logistic regression, on spam the slopes sum to , which vanishes at the decision boundary, so the players are exactly opposed there; on legitimate mail they add to , since both want a low score. The condition is on the product of the regularization strengths, so a generator that moves cheaply (small ) forces a strongly regularized learner. In a small random instance definiteness failed at half the certified product once the action sets allowed large scores (my check, not in the paper), though a failed certificate does not by itself produce a second equilibrium.
Both solvers rely on the same monotonicity. One descends the weighted Nikaido-Isoda gap, the sum of each player's best unilateral cost saving, which is zero exactly at equilibrium; when is positive definite the direction to the players' best responses is a descent direction, so an Armijo line search along it works. The other is a projected extragradient method on the variational inequality , which converges because is strictly monotone and needs only projections onto balls.
The leader-follower version reduces to one level because the follower's best response is a shift along the model. In Brückner and Scheffer (2011) the learner commits to and the generator best-responds; the Stackelberg equilibrium solves a bilevel problem. With squared-distance transformation cost, a convex differentiable generator loss and an unconstrained feature space, the follower's problem is strictly convex and its solution moves each point along : The bilevel problem becomes a nonconvex single-level one in with scalar constraints, solved by SQP to a KKT point. The Nash game's first-order condition gives the same shift at an interior equilibrium (my own observation); the difference is that the Stackelberg leader differentiates through , and so knows that a longer invites a larger attack, while the Nash learner treats as fixed. The 2011 paper takes Nash to fit an adversary who cannot see the model and Stackelberg one who can probe it.
In Brückner's experiments the Nash models beat the baselines on later email in three of four corpora. On four chronologically sorted email corpora, the two solvers agree from random starts even when the bound is violated by a factor of up to 4. Forward in time, the Nash models beat logistic regression, the SVM and the invariance SVM on three corpora, with no significant gain on the short-period TREC 2007. On unshifted data the plain baseline is better (F-measure 0.957 against 0.924 on the provider corpus). The weak points: barely affects hold-out F-measure, so the adversary's regularization cannot be estimated from data and is fixed by hand; training costs up to 150 times the baseline; and robustness is tested against the very attack the model assumed. The equilibrium transform barely edits legitimate mail, but it is computed mostly outside the certificate: wherever the transform is visibly large the product fails the sufficient condition by a factor of more than 13, beyond the range where the solvers were seen to agree (my check, not the paper's).
Consequences and limits. Under a separable cost the defender's best accuracy is fixed by the cost structure: in the linear case the weight on a feature is its cost of manipulation, whatever its predictive value, so a fraud model facing adaptive fraudsters should weight signals that are expensive to fake (account age, device and payment history), with the data setting only the threshold. The Nash learner trains on the adversary's best-response copy of the data, like adversarial augmentation with an attack budget set by , the one parameter the data could not set. The limits are shared: one round, a deterministic response under a single known cost (Hardt's contestants have no private cost type; Brückner's game assumes complete information and one representative adversary), and no agents who learn the rule from outcomes or forecast the learner's update. Brückner's equilibrium is defined on the transformed training sample, with no generalization theory.
Terms
- Stackelberg game
- The jury commits to ; each contestant then best-responds, .
- Strategic maximum: the best post-gaming accuracy , measured against unmoved labels.
- Separable cost
- with (a free option exists).
- Collapse to a cutoff
- After gaming, is accepted iff , where is the cheapest accepted value.
- Published vs effective cutoff
- Publish ; the originals accepted are , two cost units lower.
- Metric hardness
- For metrics, approximating within is NP-hard, even with all labels known.
- Nash prediction game
- Learner picks , generator picks a transformed sample , simultaneously; each minimizes its own regularized cost.
- Rosen's criterion
- positive definite everywhere strictly monotone at most one equilibrium.
- : the part of the loss slopes that does not cancel; antagonistic coupling is skew and drops out.
- Stackelberg shift (2011)
- Follower's best response , which turns the bilevel problem into one level in .
Quiz
- Why can the jury restrict attention to cutoff classifiers when the cost is separable?A contestant reaches acceptance iff , so two classifiers with the same cheapest accepted value produce identical outcomes, and the cutoff at that value is one of them. Generalization is a separate, later step.
- Under a linear cost , a fraud feature is highly predictive but free to change (). What weight does the jury's optimal rule give it?Any contestant can move along a zero-cost direction for free, so a rule that rewards it is crossed by everyone. The post-gaming outcome depends only on , so the optimal rule is a halfspace with normal and the data choose only its offset.
- In the definiteness test of the coupling block, the learner's slope and the generator's slope enter only through their sum. Why?For a nonsymmetric , . The learner's row carries and the generator's row , so the symmetric part has and the antagonistic difference vanishes from the test.
- For Nash logistic regression with uniform weights, uniqueness is guaranteed when . What does this say when the adversary can move its data cheaply?Cheap movement means a small , and the certificate needs the product of the two regularization strengths to dominate the non-cancelling coupling, so must grow. The paper reads this as needing more regularization when training data poorly represent test data.
Sources
- Moritz Hardt, Nimrod Megiddo, Christos Papadimitriou, and Mary Wootters. Strategic Classification. ITCS, 2016.
- Michael Brückner, Christian Kanzow, and Tobias Scheffer. Static Prediction Games for Adversarial Learning Problems. Journal of Machine Learning Research, 2012.
- Michael Brückner and Tobias Scheffer. Stackelberg Games for Adversarial Prediction Problems. KDD, 2011.