Stochastic Optimization Schemes for Performative Prediction with Nonconvex Loss

Qiang Li, Hoi To Wai

TL;DR

In many real-world scenarios, deploying a machine learning model alters the very data distribution it attempts to predict—a phenomenon known as "performative prediction." This paper provides the first theoretical analysis of how standard Stochastic Gradient Descent (SGD) behaves in these settings when using complex, nonconvex loss functions (such as those in neural networks). The authors prove that while models converge to a "biased" stable point, employing "lazy" deployment strategies can significantly mitigate this bias and improve accuracy.

Introduction: The Performative Prediction Problem

Standard machine learning theory typically assumes that data is drawn from a static distribution. However, in "performative" settings—like credit scoring, traffic routing, or spam detection—the model's predictions actively influence the environment. For instance, if a bank updates its credit scoring model, applicants will alter their financial behavior to secure better scores. This creates a feedback loop: the model parameters $\theta$ influence the data distribution $\mathcal{D}(\theta)$, which subsequently impacts the next iteration of the model.

Previous research into this feedback loop has predominantly focused on strongly convex loss functions. While mathematically well-behaved, these do not represent the reality of modern deep learning. This paper tackles the challenges of nonconvex losses. The primary hurdle is that the standard goal of "Performative Stability" (where a model is strictly optimal for the distribution it induces) is often too restrictive for nonconvex landscapes. Consequently, the authors define a new metric for success and prove that standard optimization algorithms can achieve it.

Comparison of this work with existing literature on performative prediction.

Methodology

To bridge the gap between performative prediction theory and practical deep learning, the authors introduce several key concepts:

  • Stationary Performative Stability (SPS): Because finding a global optimum in a nonconvex landscape is generally intractable, the authors propose SPS. An SPS solution is a point where the gradient of the loss is zero (or sufficiently small) relative to the specific distribution that the model itself induces.
  • SGD-GD (Greedy Deployment): This represents the standard approach where the learner updates the model via SGD and immediately deploys it to collect new data.
  • SGD-Lazy (Lazy Deployment): In this scheme, the learner performs multiple SGD updates ($K$ steps) using data from the current deployment before officially updating the deployed model in the real world.
  • Time-Varying Lyapunov Analysis: To prove convergence, the authors develop a novel mathematical framework utilizing a Lyapunov function that adapts over time to account for the continuously shifting data distributions.
  • Sensitivity Measures: The system is analyzed under two metrics for distribution shift: Wasserstein-1 distance (ideal for shifts in continuous values) and Total Variation (TV) divergence (useful for bounded losses, such as in classification tasks).

Experimental Setup

The researchers validated their theoretical findings using two primary setups:

  1. Synthetic Binary Classification: A linear model utilizing a sigmoid loss function. Distribution shifts were simulated by moving data points based on the model's current parameters.
  2. Real-World Spam Detection: Using the Spambase dataset, they trained a Neural Network with three fully-connected layers. They modeled "strategic" spammers who actively modify their emails to evade the current classifier.

Key Insights and Results

  • Bias is the Price of Performance: The analysis reveals that greedy SGD does not converge to a perfect SPS solution but instead hits a "bias floor." This bias is directly proportional to the sensitivity of the distribution shift ($\epsilon$) and the variance of the stochastic gradients ($\sigma_0$).
  • Noise Exacerbates Bias: Interestingly, the bias scales as $\mathcal{O}(\epsilon)$ when using noisy stochastic gradients, but improves to $\mathcal{O}(\epsilon^2)$ if exact (deterministic) gradients are used. This highlights that mini-batch size is not merely a computational parameter—it directly dictates the quality of the final stable model in performative environments.
  • Laziness is a Virtue: A highly practical takeaway is that "Lazy Deployment" (waiting $K$ steps between real-world deployments) significantly reduces bias. By allowing the model to "settle" on the current distribution before altering the environment again, practitioners can achieve a much more stable and accurate solution.
  • Convergence Rate: Both greedy and lazy schemes converge at a rate of $\mathcal{O}(T^{-1/2})$, matching the standard convergence rate for SGD on traditional, non-performative nonconvex problems.
  • Empirical Stability: In the Spambase neural network experiments, the Lazy scheme reached a substantially lower SPS measure (gradient norm) than the Greedy scheme. Even with complex neural networks, the models eventually settled into a stable regime rather than oscillating wildly, empirically validating the SPS concept.

Limitations and Future Work

  • Bounded Gradients: The theoretical analysis for the Lazy Deployment scheme relies on the assumption that gradients are uniformly bounded. While common in optimization literature, this can be a strong requirement for certain neural network architectures.
  • Shift Model Sensitivity: In the neural network experiments, the SPS measure appeared somewhat insensitive to the specific shift parameter ($\epsilon_{NN}$), suggesting deeper structural properties of neural network shifts that are not yet fully captured by the current theory.
  • Future Directions: The authors propose extending this work to "stateful" performative prediction (where the distribution depends on a historical sequence of past models) and exploring advanced variance reduction techniques to further lower the bias floor.

Summary updated

BibTeX
@inproceedings{li2024stochastic,
  author = {Qiang LI and Hoi To Wai},
  title = {{Stochastic Optimization Schemes for Performative Prediction with Nonconvex Loss}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=ejIzdt50ek},
}
Figure