NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Strategic Classification

Moritz Hardt, Nimrod Megiddo, Christos H. Papadimitriou, Mary Wootters

TL;DR

Standard machine learning assumes data is a passive observer, but in high-stakes scenarios like loan applications or school admissions, individuals strategically "game" the system to get better outcomes. This paper formalizes this behavior as a game-theoretic problem and provides robust algorithms that maintain high accuracy even when people manipulate their features to fool the model.

What Problem Does This Paper Address?

Most machine learning models are built on the "i.i.d. assumption"—the idea that the data we see at test time comes from the same distribution as the data we used for training. However, when a model is used to make life-altering decisions (employment, health, education), the subjects of the model become strategic.

If a university admissions office starts using "number of books in the home" as a proxy for academic potential, parents might simply buy a library's worth of cheap books to boost their child's chances. This is known as gaming or Goodhart’s Law: "When a measure becomes a target, it ceases to be a good measure."

The authors tackle the challenge of designing classifiers that remain accurate even when individuals know how the model works and are willing to incur a "cost" to change their attributes to achieve a favorable classification.

Methods

The authors model classification as a Stackelberg Game (a leader-follower game) between two players:

  1. The Jury (The Model): Publishes a classifier $f$.
  2. The Contestant (The Individual): Receives an input $x$, but can choose to change it to $y$ before being classified.

The Contestant wants to be "accepted" but faces a cost function $c(x, y)$ for changing their features. The Jury’s goal is to maximize accuracy relative to the contestant's original (truthful) state, knowing the contestant will play their "best response" to the published model.

The paper focuses on a specific class called separable cost functions. In these cases, the cost of moving from state $x$ to $y$ depends only on the "value" of those states (e.g., the price of the books you need to buy). They provide two main algorithms:

  • Algorithm 1: Designed for simple separable costs. It effectively finds an optimal threshold on the cost-weighted features.
  • Algorithm 2: An extension for more complex costs that can be represented as the minimum of several separable functions.

Datasets

The authors evaluated their approach using real-world data from Apontador, a Brazilian social network.

  • Task: Identifying review spam.
  • Features: 15 discriminative attributes, such as the number of URLs, phone numbers, followers, and word count.
  • Setup: Since they couldn't observe real-time gaming, they simulated it by defining a cost vector for these features (e.g., it's "cheap" to add more words to a review, but "expensive" to gain more followers) and allowed the "spammers" to optimize their profiles against the classifier.

Key Insights and Ideas

  • The "Smoothing" Effect: One of the most surprising findings is that strategic behavior can actually make learning easier. The authors show that because contestants move toward "better" regions of the feature space, they effectively "smooth out" the complexities of the underlying distribution. This allows the Jury to find near-optimal classifiers even for concept classes that are traditionally computationally hard to learn.
  • Secrecy is Not a Strategy: While many organizations keep their models secret to prevent gaming (security through obscurity), the authors argue this isn't robust. Information leaks, and models can be reverse-engineered. Their work shows that transparency is possible if the model is designed to be "strategy-proof" from the start.
  • Hardness of General Costs: While separable costs are tractable, the authors prove that for general cost functions (like those following a metric), finding the optimal strategic classifier is NP-hard.

Key Results

  • Theoretical Optimality: For separable cost functions, the authors' algorithm achieves a classification error arbitrarily close to the theoretical minimum (the "Strategic Maximum").
  • Robustness to Modeling Errors: In the Apontador experiments, the authors' robust classifier outperformed a standard Support Vector Machine (SVM) as soon as even a small amount of gaming occurred.
  • Hybrid Success: They found that "hybrid" classifiers—which mix a standard SVM with their robust approach—provided an excellent trade-off between raw accuracy and resilience to manipulation. Even when the Jury's assumption about the Contestant's cost function was slightly wrong, the robust model remained effective.

Limitations and Future Work

  • Cost Function Knowledge: The primary limitation is that the Jury must have a reasonably good estimate of the Contestant's cost function. In the real world, knowing exactly how "hard" it is for someone to change a specific attribute is difficult.
  • Separability Dimension: The complexity of the algorithm grows exponentially with the number of separable functions needed to describe the cost. The authors suggest that exploring whether this is a fundamental limit or if "fixed-parameter tractable" solutions exist is a key open problem.
  • Dynamic Gaming: The current model is a one-shot game. Future work could look at repeated interactions where the Jury and Contestants adapt to each other over time.

Summary updated

BibTeX
@inproceedings{hardt2016strategic,
  author = {Moritz Hardt and Nimrod Megiddo and Christos H. Papadimitriou and Mary Wootters},
  title = {{Strategic Classification}},
  booktitle = {ITCS},
  year = {2016},
  doi = {10.1145/2840728.2840730},
}
Figure