Calibrated Data-Dependent Constraints with Exact Satisfaction Guarantees
Songkai Xue, Yuekai Sun, Mikhail Yurochkin
Abstract
We consider the task of training machine learning models with data-dependent constraints. Such constraints often arise as empirical versions of expected value constraints that enforce fairness or stability goals. We reformulate data-dependent constraints so that they are calibrated: enforcing the reformulated constraints guarantees that their expected value counterparts are satisfied with a user-prescribed probability. The resulting optimization problem is amendable to standard stochastic optimization algorithms, and we demonstrate the efficacy of our method on a fairness-sensitive classification task where we wish to guarantee the classifier's fairness (at test time). Motivation In machine learning (ML) practice, accuracy is often only one of many training objectives. For example, algorithmic fairness considerations may require a credit scoring system to perform comparably on men and women. Here are a few other examples. Churn rate and stability The churn rate of an ML model compared to another model is the fraction of samples on which the predictions of the two models differ [21, 30] . In ML practice, one may wish to control the churn rate between a new model and its predecessor because a high churn rate can disorient users and downstream system components. One way of training models with small churn is to enforce a churn rate constraint during training. Precision, recall, etc. Classification and information retrieval models must often balance precision and recall. To train such models, practitioners carefully trade off one metric for the other by optimizing for one metric subject to constraints on the other. Resource constraints Practitioners sometimes wish to control how often a classifier predicts a certain class due to budget or resource constraints. For example, a company that uses ML to select customers for a targeted offer may wish to constrain the fraction of customers selected for the offer. Another prominent example of a stochastic optimization problem with resource constraints is the newsvendor problem, which we come back to in section 4. Unlike constraints on the structure of model parameters (e.g., sparsity), the constraints encoding the preceding training objectives are data-dependent. This leads to the issue of constraint generalization: whether the constraints generalize out-of-sample. For example, if a classifier is trained to have comparable accuracy on two subpopulations in the training data, will it also have comparable accuracy on samples from the two subpopulations at test time? 36th Conference on Neural Information Processing Systems (NeurIPS 2022).
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 70420b18-1016-4e92-b713-8be813cbedb0Builds on1
Related papers
- Teaching the Old Dog New Tricks: Supervised Learning with ConstraintsFabrizio Detassis, Michele Lombardi, Michela MilanoAAAI 2021 · 29 citations
- Learning with Statistical Equality ConstraintsAneesh Barthakur, Luiz F. O. ChamonNeurIPS 2025 · 1 citation
- Private Rate-Constrained Optimization with Applications to Fair LearningMohammad Yaghini, Tudor Cebere, Michael Menart, Aurélien Bellet et al.ICLR 2026
- Conformal Mixed-Integer Constraint Learning with Feasibility GuaranteesDaniel Ovalle, Lorenz T. Biegler, Ignacio E. Grossmann, Carl D. Laird et al.NeurIPS 2025 · 2 citations
- Resilient Constrained LearningIgnacio Hounie, Alejandro Ribeiro, Luiz F. O. ChamonNeurIPS 2023 · 20 citations
