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

A Data Efficient and Feasible Level Set Method for Stochastic Convex Optimization with Expectation Constraints

Qihang Lin, Selvaprabu Nadarajah, Negar Soheili, Tianbao Yang

TL;DR

This paper introduces the Stochastic Feasible Level Set (SFLS) method to solve convex optimization problems with expectation constraints. Unlike existing stochastic methods that only guarantee constraint satisfaction at final convergence, SFLS ensures high-probability feasible solutions throughout its execution while maintaining low data complexity, making it ideal for early termination in data-rich environments.

What Problem Does This Paper Address?

Many real-world applications in machine learning (such as enforcing fairness across classes), finance (limiting portfolio risk), and operations research involve optimizing an objective subject to constraints expressed as expectations over large datasets. These are known as Stochastic Convex Optimization problems with Expectation Constraints (SOECs).

Current stochastic first-order methods are data-efficient but only guarantee that constraints are satisfied at final convergence. Because theoretical convergence criteria are often highly conservative, practitioners frequently terminate algorithms early. Doing so with standard methods often yields highly infeasible—and therefore completely unusable—solutions. Conversely, deterministic methods that guarantee feasibility throughout the optimization process require processing the entire dataset at every step, which is computationally prohibitive for massive datasets.

Methods

The authors bridge this gap by developing SFLS (Stochastic Feasible Level-Set method), which reformulates the SOEC into a root-finding problem using a min-max level-set function.

To solve this root-finding problem without expensive full data passes, they introduce a novel, tractable stochastic oracle called OVSMD (Online Validation based Stochastic Mirror Descent). OVSMD combines stochastic mirror descent with an online validation technique to compute a reliable stochastic upper bound on the level-set function. This formulation avoids the biased estimates and high data complexity typical of standard Sample Average Approximations (SAA).

By carefully updating a scalar level parameter and keeping it strictly above the root of the level-set function, SFLS ensures that the solution generated at each outer iteration remains feasible with high probability.

Datasets

The authors evaluated their method across three distinct applications using the following datasets:

  • Perishable Inventory Control (Operations): Simulated data for a Markov Decision Process modeling inventory management with continuous random variables for stochastic demand.
  • Multi-class Neyman-Pearson Classification (Machine Learning): Benchmark datasets from the LIBSVM library:
  • connect-4 (3 classes, 67,557 instances, 126 features)
    • covtype (7 classes, 581,012 instances, 54 features)
    • news20 (20 classes, 15,935 instances, 62,061 features)
  • Fairness-Constrained Classification (Machine Learning):
  • a9a dataset (32,561 training instances) used to predict income levels while ensuring demographic fairness.
  • LoanStats dataset from Lending Club (2019), consisting of 128,375 loan records to predict loan approvals under fairness constraints.

Key Insights and Ideas

  • Feasibility First: In many practical deployments (like clinical trials or financial compliance), a solution that violates constraints is worthless. SFLS flips the standard optimization paradigm by prioritizing feasibility during the optimization process rather than treating it as an afterthought at convergence.
  • Saddle-Point Reformulation to Bypass Bias: Directly computing subgradients on a maximum of expectations introduces severe bias. The authors elegantly bypass this by reformulating the level-set function into an equivalent primal-dual saddle-point form, allowing them to compute unbiased stochastic gradients using small mini-batches.
  • Theoretical Efficiency: SFLS achieves an iteration complexity of $O(1/\epsilon^2)$, matching the dependency on $\epsilon$ of state-of-the-art non-feasible stochastic methods, meaning feasibility does not inherently degrade asymptotic convergence speed.

Key Results

  • Perishable Inventory Control: SFLS rapidly found feasible solutions and steadily reduced the optimality gap. In contrast, the state-of-the-art stochastic subgradient method (YNW) frequently fluctuated into infeasible territory.
  • Neyman-Pearson Classification: SFLS closed the optimality gap significantly faster in terms of data passes compared to the Deterministic Feasible Level-Set (DFLS) baseline, which required too many full data scans to be practical.
  • Fairness Constraints: On the LoanStats dataset, the benchmark YNW method produced highly infeasible, "superoptimal" solutions (solutions that look artificially good because they violate constraints). SFLS consistently provided valid, feasible solutions with a steadily shrinking optimality gap over successive data passes.

Limitations and Future Work

  • Hyperparameter Tuning: Like most first-order methods, SFLS requires tuning parameters such as the step-length parameter ($\theta$) and the inner iteration limit ($T$). However, the authors provide a simplified implementation strategy in Section 5.2 to help mitigate this burden.
  • Condition Measure Dependency: The iteration complexity of SFLS depends on a condition measure ($\beta$) that reflects the slope of the level-set function. If a problem is highly ill-conditioned (small $\beta$), the algorithm requires more iterations—a cost explicitly paid to guarantee feasibility.
  • Extension to Non-Convexity: The current theoretical guarantees rely strictly on the assumption of convexity. Extending this feasible level-set framework to non-convex stochastic optimization problems remains an open challenge.

Summary updated

BibTeX
@article{lin2020data,
  author = {Qihang Lin and Selvaprabu Nadarajah and Negar Soheili and Tianbao Yang},
  title = {{A Data Efficient and Feasible Level Set Method for Stochastic Convex Optimization with Expectation Constraints}},
  journal = {J. Mach. Learn. Res.},
  year = {2020},
}
Figure