Manuscript Offprint
arXiv:2610.29918Preventing Model Extraction in Contextual Linear Optimization
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Consider a contextual linear optimization problem, where a predict-then-optimize (PTO) system returns optimal decisions without revealing the cost vectors used in its downstream linear program. Our focus is on how to prevent attackers, who can submit context queries, from extracting the underlying prediction model. Although the cost-to-decision map is many-to-one, observations across contexts can reveal the underlying prediction model. For linear models, we provide sufficient conditions where the attacker can learn the model up to positive scaling by only observing the decision. These conditions motivate an adaptive attack that alternates inverse optimization with boundary sampling, i.e., using context queries leading to decision boundaries of the current attacker model. To prevent extraction, we propose a mechanism that perturbs decisions only when the predicted cost vector is near a decision boundary. We establish a regret bound in terms of the perturbation radius. For the attackers that fit the defended responses as optimal decisions under the evaluation distribution, we also prove a lower bound on expected extraction error. Experiments on synthetic instances and real data quantify the security-performance tradeoff of the defense mechanism and illustrate that our defense can increase the extraction error.
1 INTRODUCTION
Many decision-making problems can be formulated as optimization problems whose parameters are unknown and must be inferred from contexts. For example, a recommendation system uses user features to predict click probabilities before optimizing which items to display. In portfolio optimization, asset returns must be estimated before making allocation decisions. This class of problems is referred to as contextual optimization (Sadana et al., 2025). A widely adopted approach to contextual optimization is the predict-then-optimize (PTO) framework (Elmachtoub and Grigas, 2022). In the linear optimization setting studied here, PTO proceeds in two stages: (i) a machine learning (ML) model predicts the unknown objective cost vector from a given context and (ii) the predicted cost vector is used to solve the downstream linear optimization problem and produce a decision. Due to its modularity and empirical effectiveness, PTO has been successfully applied across a broad range of application domains, including recommendation systems, e-commerce, logistics, and resource allocation.
This setting raises a model-security question: can an attacker recover the hidden prediction model by interacting only with the optimization system's decision outputs? Such a threat is known as a model extraction attack: the attacker repeatedly queries the deployed system with contexts (perhaps through an API) and uses the returned decisions to build a substitute prediction model. Successful extraction can allow the attacker to replicate the service while bypassing access costs or usage restrictions, and moreover, can provide a stepping stone for user privacy or inference attacks (Narayanan and Shmatikov, 2008; Papernot et al., 2017; Shokri et al., 2017; Salem et al., 2019; Juuti et al., 2019) and information leakage (Tan et al., 2016; Zhang et al., 2023). At first glance, the optimization layer appears to make extraction difficult. The attacker does not observe predicted costs directly, and the map from costs to optimal decisions is many-to-one in linear optimization. This intuition is incomplete: the same polyhedral geometry that hides costs in the interior of normal cones creates boundary contexts where small changes in predicted costs change the returned decision. This leads to two central questions: (i) when do decision-level observations identify the underlying prediction model, and (ii) how can we mitigate extraction while preserving decision quality?
Existing approaches do not answer these questions directly. Prior work on privacy in contextual decision-making has studied differential privacy (DP) (Lei et al.,
(2024), which protects training data but does not directly defend the deployed predictive model against extraction. A second related line is inverse optimization (Chan et al., 2025), which infers unknown parameters of an optimization problem from observed optimal decisions. While inverse optimization includes both fixed-parameter and contextual formulations, our focus is on whether decision-level observations identify the deployed predictor. More importantly, because the decision map is many-to-one, decision consistency does not in general imply prediction recovery.
In this paper, we focus on model extraction in contextual linear optimization. First, we study vulnerability through a loss calibration condition that links global inverse feasibility consistency to prediction recovery. Motivated by this condition, we then develop an adaptive attack that combines inverse optimization with boundary sampling to reconstruct the hidden predictor using only decision-level observations. This insight motivates a defense that perturbs the returned decision only when the deployed predictor's cost vector is near a decision boundary. Our theory establishes a regret bound for linear predictors and a lower bound on expected prediction error under a response-matching condition. Our experiments on synthetic instances and real data examine the security-performance trade-off.
Contributions. We formalize model extraction in contextual linear optimization under the predict-then-optimize paradigm and study when the decision-level observations identify the predictor and how to mitigate extraction while limiting the loss in decision quality. Our contributions are summarized as follows:
-
We identify loss calibration as a vulnerability criterion: if it holds, global inverse feasibility consistency is sufficient for prediction recovery up to positive scaling. For linear predictors and unrestricted contextual queries, we use boundary contexts to establish this identification result under sufficient geometric and regularity conditions. This motivates an adaptive attack that alternates inverse optimization with boundary sampling, which targets contexts near decision boundaries of the current attacker model.
-
We propose a decision perturbation defense that randomizes only near decision boundaries and prove a regret upper bound that is linear in the boundary radius. For attackers that fit the defended responses as optimal decisions under the evaluation distribution, we also prove a lower bound on expected prediction error. This lower bound is nondecreasing in the boundary radius.
-
We evaluate the attack and defense on synthetic instances and a short video recommendation task. In the tested settings, boundary sampling achieves lower prediction error than the non-adaptive inverse-optimization baseline, while the proposed defense can increase the prediction error of the evaluated attacks at modest regret.
Related work. Privacy in contextual optimization has been studied through differential privacy, including personalized pricing and revenue management (Chen et al., 2022, 2023; Lei et al., 2024; Mochaourab et al., 2021; Sun et al., 2025; Chowdhury and Zhou, 2023; Fu et al., 2026; Selvi et al., 2026). These works are complementary to ours: DP protects data privacy, whereas we study model extraction attacks that target the deployed predictor itself. In model extraction attacks, the goal is to recover a substitute model via query access to a target system (Wang and Gong, 2018; Reith et al., 2019; Orekondy et al., 2019; Milli et al., 2019; Chandrasekaran et al., 2020; Pal et al., 2020; Truong et al., 2021; Huang et al., 2024; Ferry et al., 2024; Khouna et al., 2025; Gorgé et al., 2026). Our work is also related to adaptive query attacks (Tramèr et al., 2016; Zhao et al., 2025). In our setting, the attacker observes downstream decisions but not predicted cost vectors. Since the prediction-to-decision map is generally many-to-one, we examine how the geometry of the downstream feasible set affects predictor recovery.
Another related line concerns inverse optimization, which infers unknown problem parameters from observed decisions (Chan et al., 2014; Aswani et al., 2018; Babier et al., 2021; Sun et al., 2023; Besbes et al., 2025; Chan et al., 2025; Patel and Vempala, 2026). We use inverse optimization to study when decision consistency identifies the underlying predictor.
Notation. We write for parallel vectors and for the angle between two nonzero vectors. The polyhedral cone generated by is denoted by polycone . For a polytope , we let denote its vertex set. For a vertex , we denote cone( ) as its normal cone: the set of cost vectors satisfying for all . We also denote by the set of vertices whose normal cones share a facet with cone( ). For , its angular distance to cone( ) is .
where is a compact, full-dimensional polytope. We assume that each inequality in defines a distinct facet of , and denote the nonzero rows of by . We denote the optimal solution set by and let be an optimal vertex selected by a fixed tie-breaking rule. Compactness ensures existence of an optimizer, while full dimensionality allows us to study cost directions in the ambient space .
In the PTO pipeline, the user's true cost vector is not observed. The decision-maker instead learns a prediction model from contexts and exposes the induced decision rule (perhaps through an API) . A user submits a context and receives the decision . We focus on the linear prediction model in the form of , where is the decision-maker's prediction matrix. The attacker knows the linear structure but not , and learns a model with . We consider , assume , and exclude the zero attacker matrix .
Attackers. A key step is to define the attacker's prediction loss. Since positive scaling of the cost vector does not change the optimal solution set of a linear program, the attacker succeeds whenever it recovers a prediction model for some . We then measure prediction error by angular distance. Since , prediction matrices have nontrivial kernels. We extend the angular loss by setting and when exactly one of and is zero.
Definition 2.1 (Prediction Loss). Given a context and prediction matrices and , the prediction loss is . For , the empirical prediction loss is .
We assume that the attacker can make queries , each chosen using the preceding query-response pairs. Without defense, query returns . After observing , the attacker returns a prediction matrix , where is his algorithm. Fixing a test distribution , we evaluate , where the expectation is taken over an independent evaluation context and any attack or defense randomness. The attacker aims to reduce this prediction loss using only information available through the query interface. The following proposition shows that traditional model extraction on classification model fits into the predict-then-optimize model.
Proposition 2.2. For the simplex , we define as the negative class utility vector of an n-class classifier. With matched tie-breaking rules, returning the optimal vertex is equivalent to returning label for a n-classification problem with prediction model .
Defense. To defend against extraction, the decision-maker may strategically modify the query interface to restrict the information revealed to adversarial users. Instead of returning the exact optimizer , the decision-maker (API) outputs a perturbed decision , so that an attacker querying observes . The decision-maker aims to prevent reconstruction of the prediction model while maintaining near-optimal decision quality.
This interaction admits a Stackelberg interpretation: the decision-maker commits to a response mechanism before the attacker chooses its queries and learning procedure. For a specified attack, the security-performance trade-off is measured by
Security: ,
Performance: .
The expectations are taken over an independent and any attack or defense randomness. The first criterion favors larger attacker prediction error, whereas the second favors smaller regret under the deployed predicted costs. We consider the expected regret when .
3 MODEL EXTRACTION
We characterize how decision-level query responses can reveal the underlying prediction model. Throughout this section, we assume that no defensive mechanism is deployed, so the decision-maker returns the true optimal decision .
For a lower-dimensional feasible set, an affine-hull reduction preserves the optimization problem (Rockafellar, 1970), but recovery concerns only the predictor projected onto the direction space of that affine hull.
3.1 Vulnerability identification
Our conditions are set-valued: an attacker is consistent with the response at if . This convention avoids making the analysis depend on arbitrary tie-breaking among multiple optimal vertices.
The attacker first assesses whether the decision-maker is vulnerable to model extraction, where vulnerability means that the prediction model can be recovered using decision-level queries. Since is never observed,
Appendix A.6 also evaluates the attack empirically under nonlinear deployed predictors and misspecified linear attacker models.
the attacker cannot directly evaluate . Instead, the attacker optimizes a surrogate loss that depends on only through the observed decision . A class of surrogate loss functions comes from inverse optimization (Chan et al., 2025). Given a query-response dataset , we define the inverse feasible set as follows:
We allow at individual contexts but exclude the zero prediction matrix. This is the set of prediction matrices whose induced costs make every observed decision optimal.
Definition 3.1. A nonnegative loss defined on nonzero matrices is an inverse feasibility loss for if . We also write for a single context .
Achieving zero inverse feasibility loss enforces decision consistency on the observed queries. However, decision consistency alone does not in general imply prediction recovery since different cost vectors can induce the same optimal decision. We thus need to identify when inverse feasibility losses are appropriate surrogates for the prediction loss.
Definition 3.2. An inverse feasibility loss calibrates the prediction loss if, for any attacker model , we have that for all if and only if for all . Equivalently, global decision consistency implies recovery of the predicted cost directions, up to the positive scaling ambiguity of linear objectives.
Loss calibration is an exact global identification property: zero inverse feasibility loss on all nonkernel contexts identifies the predictor up to positive scaling. It does not itself bound prediction error from a small loss on a finite dataset. The following lemma shows that for a fixed downstream problem, calibration holds for either all inverse feasibility losses or none.
Lemma 3.3. The loss calibration property holds for either all inverse feasibility losses or none. If is an -dimensional hypercube, the loss calibration property holds for none.
We provide a sufficient condition under which the loss calibration property holds in the following assumption.
Assumption 3.4. There exist facet normals so that are linearly independent and where for all .
Theorem 3.5. Suppose Assumption 3.4 holds. Then, if a nonzero attacker model satisfies for all , we have
Algorithm 1 Attacking scheme
1: Input: , , and . 2: Initialize: and . 3: while there exist and a vertex such that do 4: . 5: . 6: . 7: . 8: Return: .
for some . Consequently, every inverse feasibility loss calibrates the prediction loss.
The geometry behind Theorem 3.5 also motivates the use of boundary contexts. Indeed, we define . A boundary context associated with facet satisfies for some . At this cost, every vertex of that facet is optimal. For an attacker model, nearby contexts can enter each incident normal cone. Global decision consistency constrains the true cost direction at these boundary contexts.
Proposition 3.6. Suppose that the rank of is and for all . Then, at every boundary context .
Proposition 3.6 shows that global decision consistency fixes the cost direction at boundary contexts. To establish Theorem 3.5, global consistency first gives , and cone preservation implies with . Applying to the relation in Assumption 3.4 gives for every . Since all are nonzero, these eigenvalues coincide, so is a scalar multiple of the identity. The scalar is positive because .
Assumption 3.4 holds for various application problems with when for all and . The lower-coordinate facets have normals and the budget facet has normal . Since , this assumption holds. By contrast, the hypercube has the normals and does not satisfy Assumption 3.4. Although failing a sufficient condition does not prove that calibration fails, Lemma 3.3 shows that calibration fails for this set. For comparison, on the Euclidean unit ball, the optimal decision is for , so it reveals the cost direction. This implies that vulnerability is not restricted to the polyhedral setting.
3.2 Algorithmic framework
Under Assumption 3.4, global decision consistency implies prediction recovery. This motivates the adaptive attack in Algorithm 1 that alternates inverse optimiza-tion with sampling. The algorithm stops when every observed decision is -optimal under the current attacker model . The following proposition shows that this procedure stops after finite steps.
Proposition 3.7. Suppose , each inverse-optimization update achieves zero inverse feasibility loss, and every sampling call returns finitely many queries. Assume for every query in the run, for some finite . For , Algorithm 1 terminates after at most inverse optimization updates, where .
The tolerance controls empirical suboptimality after Frobenius normalization. The bound counts inverse optimization updates and our result guarantees finite termination. A smaller makes the stopping criterion stricter and may require more updates.
Inverse optimization. The inverse optimization step minimizes an inverse feasibility loss on the current dataset . Any inverse feasibility loss can be used in this framework and we use the suboptimality loss where is the observed decision. We define . The empirical loss is zero exactly when for every observation. Babier et al. (2021) have shown that minimizing the empirical suboptimality loss admits the convex reformulation in the form of
The above homogeneous formulation admits . In the experiments, we solve two convex optimization problems with the respective constraints or before normalizing the fitted matrix in Frobenius norm. These constraints exclude zero prediction matrices but do not cover matrices whose entries sum to zero. Appendix A.2 discusses this restriction and alternative inverse feasibility losses.
Sampling. Decision consistency on a finite dataset does not necessarily imply small prediction loss, even under loss calibration, since many cost vectors can induce the same downstream optimizer. The sampling step therefore focuses on contexts where this ambiguity is easiest to expose.
Our key idea is to query boundary and near-boundary contexts. Using the directions defined in Section 3.1, an -near-boundary context satisfies and for some . Such queries can expose prediction misalignment even when interior contexts return the same decision (see Figure 1). Formally, we define . A context in this set reveals a decision inconsistency. The following proposition summarizes the observation.

(a) near-boundary context

(b) non-boundary context
Figure 1: Illustration of prediction misalignment. Arrows show negative cost vectors. The two models return different decisions in (a) and the same decision in (b).
Proposition 3.8. Suppose that Assumption 3.4 holds, the rank of is and for some . Then, for every , there is an -near-boundary context .
Proposition 3.8 shows that, whenever the attacker model is misaligned with , some near-boundary query can expose this misalignment through nonzero inverse feasibility loss. Boundary sampling is designed to choose informative queries. Given , the attacker queries contexts whose predicted costs point along the inward facet directions , and queries nearby contexts obtained by moving slightly from these boundary directions into adjacent normal cones. We use a parameter M to control proximity to these directions, where larger M places the sampled cost directions closer to the corresponding facet rays. Appendix A.3 specifies the boundary sampling construction.
We now state the convergence guarantee for Algorithm 1 with boundary sampling.
Theorem 3.9 (Informal). Suppose Assumption 3.4 holds. Run Algorithm 1 with a full-rank initialization and boundary sampling as specified in Appendix A.3. Assume that each inverse optimization update returns a full-rank matrix with zero inverse feasibility loss on the accumulated dataset, and that the samples
Algorithm 2 Prediction perturbation scheme
1: Input: , and . 2: Sample . 3: Return: .
satisfy the uniform boundedness and conditioning requirements of Theorem A.3 across all runs. Choose with as , and suppose that satisfies the stopping condition in Theorem A.3. Each run terminates, and its output satisfies for every .
Theorem 3.9 establishes asymptotic prediction recovery under uniform sampling regularity. This regularity prevents the boundary representatives from becoming asymptotically uninformative. The stopping condition couples and so that the algorithm cannot stop while a prescribed near-boundary response disagrees with its unique predicted optimizer. Appendix A.3 gives the construction and the formal conditions.
4 PREVENTING MODEL EXTRACTION
We introduce a prediction perturbation baseline that adds Gaussian noise to the predicted cost before optimization (see Algorithm 2). This scheme perturbs costs without using their distance to a decision boundary. Independent resampling allows an attacker to estimate the response distribution by repeating a query.
We then propose a decision perturbation defense. Since near-boundary queries can expose prediction misalignment, we modify responses in these regions by selecting neighboring decisions whose normal cones are close to the predicted cost. Algorithm 3 first computes the true optimizer and then checks whether the predicted cost lies close to the normal cone of any neighboring vertex. If no neighboring normal cone is within angular distance , and the decision-maker returns the true optimal decision. Otherwise, the algorithm returns a vertex from , which contains and all eligible neighboring vertices. For each fixed deployed model and boundary radius, the cache is initialized once and retained across queries. Each new candidate set is assigned a uniformly sampled member using fresh randomness. The cache prevents repeated queries from yielding fresh independent perturbations: once a candidate set has been assigned an output, the same output is returned whenever that set appears again.
The parameter controls which neighboring decisions are eligible for perturbation. Increasing enlarges each candidate set. Below, we bound the regret incurred by the defense scheme in Algorithm 3.
Algorithm 3 Decision perturbation scheme
1: Input: , and . 2: Compute and . 3: if or then 4: Return: . 5: Initialize: . 6: for do 7: if then 8: . 9: if has been recorded then 10: Return: record(). 11: else 12: Sample uniformly from . 13: record() . 14: Return: .
Proposition 4.1. Define the regret at context by . Under Algorithm 3, for every cache realization and every test distribution with , we have
where .
Proposition 4.1 provides a regret upper bound that is linear in . This bound also depends on the feasible set's diameter and the predicted cost's scale.
We quantify the prediction error incurred by attackers that fit the defended responses. For a context , we write and . For and , we define
In this case, is the final candidate set in Algorithm 3 before cache lookup. When or , we set . For each fixed cache realization and boundary radius, we let denote the set of predicted costs for which the algorithm returns a vertex different from .
Theorem 4.2. For a context with and , we let and be the angular distances from these costs to the nearest normal cones neighboring cone and cone, respectively, with margin zero at ties. For every cache realization, if and , we have
In particular, the loss is at least if also . The fitting condition holds in particular if
where . Fix independently of the cache. Suppose that, for almost every realization of the defense and attacker randomness, both costs are nonzero and for Q-almost every . Then, we have
where . On the left-hand side, the expectation is taken over the defense and attacker randomness and an independent . For fixed and , is nondecreasing in .
Theorem 4.2 formalizes the defense effect for response-fitting attackers: viewing a perturbed decision as optimal can lead to moving away from the true cost direction. Under the population fitting condition, it provides an expected prediction-error lower bound that is nondecreasing in , while Proposition 4.1 bounds the regret cost. Section 5 evaluates the effect of empirically.
5 EXPERIMENTS
We evaluate the proposed attack and defense methods on synthetic instances and a short-video recommendation task. We compare adaptive sampling attacks with inverse optimization baselines and examine the security-regret trade-off induced by the defensive algorithm. We report the angular prediction loss in Definition 2.1 and the decision-maker's regret in Proposition 4.1.
Synthetic instances. We compare three attacks: boundary sampling (BndS), uniform sampling (Unif), and an inverse optimization baseline method that uses a single nonadaptive fit (INV). Here, the feasible set is , with for and . The deployed model is fitted by linear regression to noisy synthetic data. Unif samples directions uniformly on the unit sphere and maps them to contexts using the current attacker model, so it remains adaptive. All three attacks use the suboptimality-loss fit in Eq. (2), and the INV comparisons use matched sample sizes. Figure 2 reports prediction loss after three adaptive iterations for BndS and Unif, together with the INV comparison, and the sample sizes required to attain prediction loss below 0.001 as the decision dimension and feature dimension vary. BndS achieves near-zero median prediction loss across the tested settings. Unif performs similarly at smaller feature dimensions, but has substantially higher loss at and after three iterations. BndS also uses fewer samples than Unif to reach the loss threshold at these larger feature dimensions. Across the tested decision dimensions, BndS has lower median prediction loss than INV in the displayed comparisons.
Figure 3 compares prediction loss under query budgets up to 3000 for BndS, Unif, and a mixture of the two sampling methods (MIX). MIX uses equal numbers of boundary and uniform samples. For , we use the interface without any perturbation. All three strategies attain near-zero prediction loss at the largest evaluated budget. For , prediction loss decreases as the budget grows, but at 3000 queries all three strategies have higher median loss than in the undefended setting. MIX has the lowest or near-lowest median loss at the displayed budgets. These results demonstrate finite-budget mitigation for the evaluated attacks, and our defense effectively reduces model extraction accuracy even under large query budget.
Figure 4 reports attack-specific prediction loss-regret trade-offs. In particular, Figure 4a compares attacks under decision perturbation: the attacker who aims to get more boundary information (BndS(M=50)) suffers from larger prediction under defense. Figure 4b shows decision perturbation increases the attacker's prediction loss at modest regret and is more effective than prediction perturbation. These comparisons concern the reported attacks and parameter settings.
Short video recommendation. We examine the performance of our framework on a real dataset. We consider a short video recommendation problem constructed from the public dataset KuaiRand-1K (Gao et al., 2022). We use 800 users for training and 200 for testing, with contextual features and video types. Recommendations satisfy and . In this experiment, the user contextual information is used to fit a linear predictor of click-through rates, and recommendations are selected by solving a resource-allocation problem using these predictions (see Appendix A.5). The cost vector in Eq. (1) is the negative of the predicted click-through-rate vector in this example.
Figure 4c shows that BndS has lower prediction loss than INV at the lowest plotted regret levels. At larger regret levels, both attacks incur greater prediction loss, with a more pronounced increase for BndS. This is compatible with the mechanism in Theorem 4.2: making boundary query causes perturbed responses, and fitting perturbed responses as optimal decisions can cause higher prediction loss.
6 CONCLUSION
This paper studies model extraction and defense in contextual linear optimization under the PTO paradigm. We characterize vulnerability through loss calibration, develop an adaptive inverse optimization attack with boundary sampling, and propose a near-boundary decision-perturbation defense. Our theory bounds the regret of the defense and provides a lower bound on expected prediction error for attackers that fit the

Figure 2: Attack performance on synthetic data as the decision dimension (left) and feature dimension (right) vary. The first and third panels report prediction loss. The second and fourth report the number of context-decision observations required to attain loss below 0.001. Prediction loss points and error bars show medians and - percentiles over 100 repetitions per parameter setting.

Figure 3: Prediction loss under increasing query budgets for BndS (), Unif, and MIX, with (left) and (right). Curves show medians over five repetitions with and .

(a)
(b)
(c)
Figure 4: Empirical prediction loss-regret trade-offs: (a) decision perturbation against different attacks on synthetic instances; (b) prediction versus decision perturbation on synthetic instances; and (c) decision perturbation on the short-video recommendation task. Points show median regret and median prediction loss, and shaded bands show the - percentiles of prediction loss over 100 repetitions per parameter setting.
defended responses as optimal decisions under the evaluation distribution. This lower bound is nondecreasing in the perturbation degree. Experiments show that the defense can increase prediction error for the evaluated attacks within the tested query budgets. Future work includes analyzing attackers that explicitly model the defense and extending the analysis to nonlinear contextual optimization.
References
A. Aswani, Z-J. Shen, and A. Siddiq. Inverse optimization with noisy data. Operations Research, 66(3): 870–892, 2018.
A. Babier, T. C. Y. Chan, T. Lee, R. Mahmood, and D. Terekhov. An ensemble learning framework for model fitting and evaluation in inverse linear optimization. INFORMS Journal on Optimization, 3(2): 119–138, 2021.
O. Besbes, Y. Fonseca, and I. Lobel. Contextual inverse optimization: Offline and online learning. Operations Research, 73(1):424–443, 2025.
T. C. Y. Chan, T. Craig, T. Lee, and M. B. Sharpe. Generalized inverse multiobjective optimization with application to cancer therapy. Operations Research, 62(3):680–695, 2014.
T. C. Y. Chan, R. Mahmood, and I. Y. Zhu. Inverse optimization: Theory and applications. Operations Research, 73(2):1046–1074, 2025.
V. Chandrasekaran, K. Chaudhuri, I. Giacomelli, S. Jha, and S. Yan. Exploring connections between active learning and model extraction. In USENIX Security Symposium, pages 1309–1326, 2020.
X. Chen, D. Simchi-Levi, and Y. Wang. Privacy-preserving dynamic personalized pricing with demand learning. Management Science, 68(7):4878–4898, 2022.
X. Chen, S. Miao, and Y. Wang. Differential privacy in personalized pricing with nonparametric demand models. Operations Research, 71(2):581–602, 2023.
S. R. Chowdhury and X. Zhou. Differentially private reward estimation from preference based feedback. In ICML Workshop on The Many Facets of Preference-Based Learning, 2023.
A. N. Elmachtoub and P. Grigas. Smart “predict, then optimize”. Management Science, 68(1):9–26, 2022.
J. Ferry, R. Fukasawa, T. Pascal, and T. Vidal. Trained random forests completely reveal your dataset. In ICML, pages 13545–13569. PMLR, 2024.
X. Fu, N. Chen, P. Gao, and Y. Li. Privacy-preserving personalized recommender systems. Manufacturing & Service Operations Management, 28(1):271–289, 2026.
C. Gao, S. Li, Y. Zhang, J. Chen, B. Li, W. Lei, P. Jiang, and X. He. KuaiRand: An unbiased sequential recommendation dataset with randomly exposed videos. In CIKM, pages 3953–3957, 2022.
A. Gorgé, J. Ferry, S. Gambs, and T. Vidal. Training set reconstruction from differentially private forests: How effective is DP? In SaTML, pages 1136–1171. IEEE, 2026.
H. Huang, Y. Li, B. Jiang, B. Jiang, L. Liu, Z. Liu, R. Sun, and S. Liang. Enhancing the resilience of LLMs against grey-box extractions. In ICML Workshop on Next Generation of AI Safety, 2024.
M. Juuti, S. Szyller, S. Marchal, and N. Asokan. PRADA: Protecting against DNN model stealing attacks. In IEEE European Symposium on Security and Privacy, pages 512–527. IEEE, 2019.
A. Khouna, J. Ferry, and T. Vidal. From counterfactuals to trees: Competitive analysis of model extraction attacks. In NeurIPS, pages 2721–2756, 2025.
Y. Lei, S. Miao, and R. Momot. Privacy-preserving personalized revenue management. Management Science, 70(7):4875–4892, 2024.
S. Milli, L. Schmidt, A. D. Dragan, and M. Hardt. Model reconstruction from model explanations. In FAccT, pages 1–9. ACM, 2019.
R. Mochaourab, S. Sinha, S. Greenstein, and P. Papapetrou. Robust counterfactual explanations for privacy-preserving SVM. In ICML Workshop on Socially Responsible Machine Learning, 2021.
A. Narayanan and V. Shmatikov. Robust de-anonymization of large sparse datasets. In IEEE Symposium on Security and Privacy, pages 111–125. IEEE, 2008.
T. Orekondy, B. Schiele, and M. Fritz. Knockoff nets: Stealing functionality of black-box models. In CVPR, pages 4954–4963, 2019.
S. Pal, Y. Gupta, A. Shukla, A. Kanade, S. Shevade, and V. Ganapathy. Activethief: Model extraction using active learning and unannotated public data. In AAAI, pages 865–872, 2020.
N. Papernot, P. McDaniel, I. Goodfellow, S. Jha, Z. B. Celik, and A. Swami. Practical black-box attacks against machine learning. In Asia Conference on Computer and Communications Security, pages 506–519. ACM, 2017.
S. Patel and S. Vempala. Tight bounds for learning polyhedra with a margin. ArXiv Preprint: 2604.14614, 2026.
R. N. Reith, T. Schneider, and O. Tkachenko. Efficiently stealing your machine learning models. In ACM Workshop on Privacy in the Electronic Society, pages 198–210, 2019.
R. T. Rockafellar. Convex Analysis, volume 28. Princeton University Press, 1970.
U. Sadana, A. Chenreddy, E. Delage, A. Forel, E. Frejinger, and T. Vidal. A survey of contextual optimization methods for decision-making under uncertainty. European Journal of Operational Research, 320(2): 271–289, 2025.
A. Salem, Y. Zhang, M. Humbert, P. Berrang, M. Fritz, and M. Backes. ML-Leaks: Model and data independent membership inference attacks and defenses on machine learning models. In Network and Distributed System Security Symposium. The Internet Society, 2019.
A. Selvi, H. Liu, and W. Wiesemann. Differential privacy via distributionally robust optimization. Operations Research, 74(1):356–376, 2026.
R. Shokri, M. Stronati, C. Song, and V. Shmatikov. Membership inference attacks against machine learning models. In IEEE Symposium on Security and Privacy, pages 3–18. IEEE, 2017.
C. Sun, S. Liu, and X. Li. Maximum optimality margin: A unified approach for contextual linear programming and inverse linear programming. In ICML, pages 32886–32912. PMLR, 2023.
L. Sun, K. Cong, J. Q. Chooi, and R. Li. DP-AdamW: Investigating decoupled weight decay and bias correction in private deep learning. In ICML Workshop on Reliable and Responsible Foundation Models, 2025.
K. H. Tan, W. P. Wong, and L. Chung. Information and knowledge leakage in supply chain. Information Systems Frontiers, 18(3):621–638, 2016.
B. Tang and E. B. Khalil. Cave: A cone-aligned approach for fast predict-then-optimize with binary linear programs. In CPAIOR, pages 193–210. Springer, 2024.
F. Tramèr, F. Zhang, A. Juels, M. K. Reiter, and T. Ristenpart. Stealing machine learning models via prediction APIs. In USENIX Security Symposium, pages 601–618, 2016.
J-B. Truong, P. Maini, R. J. Walls, and N. Papernot. Data-free model extraction. In CVPR, pages 4771–4780, 2021.
B. Wang and N. Z. Gong. Stealing hyperparameters in machine learning. In IEEE Symposium on Security and Privacy, pages 36–52. IEEE, 2018.
C. Zhang, B. Liu, G. G. Cai, and T. Huang. When ignorance is bliss: The retailer's intelligence hazard under information sharing and exchanging. Transportation Research Part E: Logistics and Transportation Review, 180:103356, 2023.
K. Zhao, L. Li, K. Ding, N. Z. Gong, Y. Zhao, and Y. Dong. A systematic survey of model extraction attacks and defenses: State-of-the-art and perspectives. ArXiv Preprint: 2508.15031, 2025.
Supplementary Material: Preventing Model Extraction in Contextual Linear Optimization
A ADDITIONAL TECHNICAL MATERIAL
A.1 Condition of loss calibration
We present the condition of loss calibration and provide additional insights into how the decision-maker can assess vulnerability. For a full-rank attacker matrix , Proposition 3.6 implies that for every ensures positive alignment of and at every boundary context of . Recall that . For a full-rank attacker matrix , we define the candidate space
The candidate space is a linear subspace that contains . Its definition requires only that the images of the boundary contexts lie on the corresponding lines. In particular, this space includes the zero matrix, although the zero matrix is excluded from the attacker class.
If has full row rank and satisfies global inverse feasibility, Proposition 3.6 gives . If this space is 1-dimensional, for some scalar . Since , this scalar is nonzero and the positive boundary alignment in Proposition 3.6 implies . Thus the two matrices have zero prediction loss at every context. Then, we connect Assumption 3.4 to the dimension of by the following result:
Proposition A.1. Suppose that Assumption 3.4 holds. Then, for every full-rank matrix , we have . In particular, the dimension of is 1.
Proposition A.1 ensures that is 1-dimensional under Assumption 3.4. The following corollary shows that this property is sufficient for loss calibration.
Corollary A.2. If is 1-dimensional, every inverse feasibility loss calibrates the prediction loss.
Corollary A.2 provides a diagnostic for the decision-maker. For each facet , we choose linearly independent contexts satisfying for all and set . Since has full row rank, the linear space has dimension , and the columns of form a basis of . Such representatives exist: if satisfies and form a basis of , one may take .
Since is a unit vector, the condition is equivalent to . This implies
Thus, the decision-maker can determine the dimension of the candidate space by solving a linear system in the entries of . If its solution space is 1-dimensional, Corollary A.2 implies loss calibration. This diagnostic uses and is available to the decision-maker.
A.2 Inverse optimization methods
We present other loss functions motivated by inverse optimization and the approaches to solve them. Any inverse feasibility loss function can be incorporated into our framework, although the resulting empirical optimization problems are different and may require different solution methods.
Scale normalization of the suboptimality loss function. The suboptimality-loss formulation in Eq. (2) is homogeneous and admits . In the experiments, we solve two convex programs with the respective constraints
Each constraint excludes the zero matrix. Every matrix with a nonzero entry sum has a positive rescaling satisfying one of these constraints, so zero-loss feasibility is preserved for such matrices. Matrices with zero entry sum are excluded. Since positive rescaling changes the value of the suboptimality loss, the fitted matrix is normalized in Frobenius norm before applying the stopping test in Algorithm 1.
Distance loss function. The distance loss measures the distance from an observed decision to the optimal solution set under :
We define the empirical distance loss by
Recall that the set is nonempty and compact. Thus, the minimum in Eq. (4) is attained and we have if and only if . By nonnegativity, the empirical loss vanishes exactly on when restricted to nonzero matrices. Since , this also holds when .
The distance loss is not continuous in general. Following the duality-based approach of Aswani et al. (2018), we consider an optimality-gap relaxation for the fixed feasible set . For , we define
Strong linear programming duality makes these constraints equivalent to and for every . This implies . For , the relaxed loss is continuous in but need not be an inverse feasibility loss. For every fixed , we have
When minimization is over a fixed nonempty compact set of nonzero matrices, every accumulation point of global minimizers of the relaxed loss as minimizes the exact empirical distance loss over the same set.
CaVE loss function. Following the approach of Tang and Khalil (2024), we define the cone-aligned vector estimation (CaVE) loss function as follows,
Its empirical value is
For nonzero costs, zero angular distance to the closed normal cone is equivalent to being in that cone. At zero cost, every feasible decision is optimal. For every nonzero matrix , we have
Algorithm 4 Learning the prediction matrix via ADMM
1: Input: satisfying and for all , , and .
2: Initialize: and , , and for .
3: while do
4: .
5: for do
6: .
7: .
8: .
9: .
10: Return: .
Thus, is an inverse feasibility loss. The loss can be discontinuous at a zero predicted cost.
For each observed vertex , we let and let contain the corresponding rows of . Then, we have . Here, contains the coefficients of the inward active normals for . For , its angular loss can therefore be written as
With a numerical bound , we minimize the empirical loss subject to an entry-sum normalization and bounds on the matrix entries:
In this formulation and the expressions below, the entire angular summand is defined to be zero when its predicted cost is zero, as in Eq. (5). The matrix constraints restrict the admissible predictors.
Introducing a local matrix for each observation gives the consensus formulation as follows,
For , the augmented Lagrangian function is defined as follows,
where is the multiplier for . The ADMM method in Algorithm 4 alternates between updates of , , and , followed by the multiplier updates. In the local updates of Algorithm 4, denotes the summand of the augmented Lagrangian function. We also write .
The local minimizations can be approximated by first-order updates. For , a projected gradient step for and a gradient step for are

(a) ADMM
(b) Tang and Khalil's method
Figure 5: Convergence of the ADMM algorithm and Tang and Khalil's method. The red line represents the optimization loss, defined as the proportion of incorrect decisions over the dataset.
Table 1: Comparison of three approaches for minimizing the CaVE loss.
| Algorithm | CaVE loss | predLoss | optLoss |
|---|---|---|---|
| ADMM | 0.0007018 | 0.0356 | 0.1450 |
| Tang and Khalil's method | 0.0000032 | 0.0539 | 0.1150 |
| Global | 0.0000030 | 0.0378 | 0.0650 |
where are step sizes and denotes Euclidean projection onto the feasible set . The projection may have multiple solutions, in which case any minimizer can be selected. These updates require nonzero local predicted costs and ADMM is used as a numerical method without a global convergence guarantee.
The experiment shows that our solution approach can achieve near-zero optimality gap. Apart from ADMM, we tried the heuristic algorithm (Tang and Khalil, 2024) and the global solver in scipy package to solve the optimization problem. Figure 5 shows the convergence of ADMM and Tang and Khalil's method. We observe that both methods achieve near zero CaVE loss. Table 1 compares all methods and shows that the global solver attains the smallest reported CaVE loss. Furthermore, if we encounter some context such that , then we discard this context in practice.
A.3 Sampling algorithms
We specify the sampling step of Algorithm 1. Indeed, for a full-rank matrix , the uniform sampling method in Algorithm 5 draws a direction uniformly from the unit sphere in and chooses a context whose predicted cost has that direction. Since the context is chosen using , the sampling rule is adaptive, unlike a nonadaptive batch of contexts used by the inverse optimization benchmark. Uniform sampling is simple, and its sample size controls the number of observations added at each iteration. It does not target the decision boundaries of the downstream problem. To exploit this geometry, we use the boundary sampling method in Algorithm 6.
We enumerate the vertices as and write . For each vertex , we let . Then, for each facet , we define the set of incident vertex indices by and set . Using the inward directions , we have
Figure 6 illustrates the facet-vertex incidences. For each facet , Algorithm 6 chooses linearly independent boundary contexts satisfying for all and sets . These columns span the -dimensional linear space . For , each , and

(a)
(b)
Figure 6: (a) the tight constraints (also the boundaries of normal cone) incident to the a normal cone . (b) the normal cones (also the vertex) incident to the constraint .
each , the associated near-boundary context is
The vector in the denominator is a positive combination of all active inward normals at , so it belongs to and is nonzero. Thus, we have
Thus, is the unique optimizer under the attacker cost at , and as . The algorithm queries all boundary contexts and all of these near-boundary contexts.
In what follows, we describe the stopping condition mentioned in Theorem 3.9. Indeed, we define
Clearly, . For , at least one is strictly positive, because the active facet normals at span . Thus, . For , , and , we have
We impose the sufficient stopping condition as follows,
If a near-boundary query returns any vertex other than , its suboptimality loss under then exceeds , so Algorithm 1 cannot terminate at that sampling call.
Theorem A.3. Suppose Assumption 3.4 holds. For each in a family tending to zero, run Algorithm 1 with a full-rank initialization and Algorithm 6 with . Assume that every inverse optimization update returns a full-rank matrix with zero inverse feasibility loss on the accumulated dataset. Suppose there exist constants and , independent of the iteration and of , such that every queried context satisfies and for all at every sampling call. Here, denotes the smallest of the singular values of . Assume that as and that Eq. (9) holds for all sufficiently small . Then, every run terminates after at most inverse optimization updates and its normalized output satisfies . As a consequence, we have for every .
Algorithm 5 Uniform sampling (Unif)
Input: A full-rank matrix and a positive integer .
Initialize: .
for do Sample and set . Choose satisfying . Query and observe . . end
Return: .
Algorithm 6 Boundary sampling (BndS)
Input: A full-rank matrix and a parameter .
Initialize: .
for do Choose linearly independent satisfying for all . for do Query and observe . . for do for do for do . Query and observe . . end end end end
Return: .
The bound on yields a positive lower bound on the distance between distinct nonterminal iterates, which ensures finite termination. And the uniform lower bound ensures that the columns of remain linearly independent in the limit. A sufficient parameter choice is and as . Indeed, these limits imply , so Eq. (9) holds eventually. For example, satisfies these conditions. Theorem A.3 concerns this coupled limit. A smaller increases the stated upper bound on the number of inverse optimization updates.
A.4 Restricted context region
We consider the undefended interface with query contexts restricted to a set . The following result gives a sufficient condition for identifying the prediction matrix from decisions observed in this region.
Lemma A.4. Let be a set of facet indices such that contains normals satisfying Assumption 3.4. Suppose that, for each , there exists with for some . If a nonzero matrix satisfies for every , for some .
For boundary sampling, fix a set of facet indices. At each sampling call, choose the boundary representatives in Algorithm 6 for all facets, but query only and for all , and . Every query in these selected blocks is retained and must lie in . Boundary representatives for facets outside may still be needed to form the near-boundary mixtures.
Lemma A.5. Suppose contains normals satisfying Assumption 3.4. For each in a family tending to zero, run Algorithm 1 with a full-rank initialization and the restricted sampling rule above, using . Assume every inverse optimization update returns a full-rank matrix with zero inverse feasibility loss on the accumulated dataset. Suppose there exist constants and , independent of the iteration and of , such that every queried context and every boundary representative used to construct these queries has norm at most , and for all at every sampling call. The norm bound includes auxiliary representatives for facets outside . Assume that as and for all sufficiently small . Then, every run terminates after at most inverse optimization updates and its normalized output satisfies . As a consequence, we have for every .
A.5 Experiment setup
Synthetic instances. In the experiment, the decision-maker first learns the prediction model by performing a linear regression on a randomly generated dataset , where all coordinates of are independently drawn from . The responses satisfy , where . Here, is a randomly generated ground-truth prediction matrix, unknown to the decision-maker, with . Given a query context , the decision-maker will predict the cost vector and solve the downstream linear optimization problem . The downstream optimization problem is a fractional Knapsack problem:
where is a vector whose entries start at 1 and increase by 0.5 successively and . We use the fractional Knapsack problem because it models resource allocation decisions, including those arising in recommendation systems. The number of vertices can grow exponentially with , which affects the size of a complete boundary sampling call. The optimization problem in Eq. (2), however, is a linear program using the inequality representation of the polytope and does not require vertex enumeration.
We compare boundary sampling (BndS), uniform sampling (Unif), and a nonadaptive inverse optimization baseline (INV). Unif and BndS alternate sampling and inverse optimization as in Algorithm 1, using the sampling constructions in Algorithms 5 and 6, respectively. INV performs one inverse optimization fit on a nonadaptive batch of contexts, with sample sizes matched in the reported comparisons. Unif draws predicted cost directions uniformly from the unit sphere in and maps them to contexts using the current attacker matrix. The INV batch is selected without adapting to an updated attacker matrix. Unless otherwise specified, all three methods use the suboptimality-loss formulation in Eq. (2).
For the attack comparisons, we perform 100 repetitions, using a different deployed matrix in each repetition. We report the median prediction loss and the interval between its 25th and 75th percentiles.
In the query-budget experiment, we use d = 10 and n = 5, with 100 queries per iteration. MIX allocates 50 queries to boundary sampling and 50 to uniform sampling. Each parameter setting is repeated five times, and we report the median prediction loss. Here, BndS and the boundary component of MIX use a budgeted variant of Algorithm 6 rather than its complete query set, while Theorem A.3 is proved for the complete construction.
For each defensive parameter setting, we perform 100 repetitions and record the attacker's prediction loss and the decision-maker's regret. The parameter is for decision perturbation and for prediction perturbation. Each point in a trade-off plot reports the median regret and median prediction loss over the repetitions, with the 25th and 75th percentiles of prediction loss shown as an interval.
All experiments were conducted on a machine with two AMD EPYC 7643 48-core processors, with each job allocated one CPU core and 16 GB of memory.
Real data. The KuaiRand-1K dataset (Gao et al., 2022) contains 1000 users and approximately four million videos. Its standard policy portion contains 11713045 interactions. We use the records of 800 users for training and the remaining users for testing. Each user is represented by a feature vector of dimension . We cluster the videos into types and then estimate each user's click probability for every video type from the interaction logs. Each log entry records the interaction between a specific user and a specific video. Using the cluster label of the video and the observed interaction, we update the user's click-through rate for the corresponding video type. The platform fits a linear predictor of click-through rates and defines as the negative of its coefficient matrix. Thus, the predicted click-through-rate vector is . With , the recommendation is obtained from
Prediction loss is evaluated using the attacker and deployed cost vectors, and regret is measured under the fitted cost vector rather than realized clicks.

Figure 7: The out-of-sample prediction loss and iterations for the attacking framework in different attacker's parameter settings.

(a)
(b)
(c)
Figure 8: (a) Prediction loss; (b) Sample size for BndS and Unif against MLP and SVR predictors fitted to the linear synthetic data; and (c) Prediction loss of a linear attacker against MLP and SVR predictors as the quadratic coefficient varies.
A.6 Additional experimental results
Attacker's coefficient. Figure 7 compares prediction loss and the number of iterations for different values of and . In the tested settings, larger is generally associated with fewer iterations and greater prediction loss. For fixed , both quantities change little once is sufficiently small. The condition is sufficient for the stopping argument in Theorem A.3 but the figure does not establish that it is a sharp threshold.
Proposition 3.7 bounds the number of inverse optimization updates rather than specifying its realized value. With a common query-norm bound , the bound has no explicit dependence on , although the observed number of iterations can depend on . Prediction recovery in Theorem A.3 concerns a coupled limit in and under uniform sampling regularity.
Attacker's robustness to misspecification. On the synthetic dataset, we evaluate the linear attack against two nonlinear deployed model classes: a multilayer perceptron (MLP) with one hidden layer and ReLU activation, and support vector regression (SVR) with a Gaussian kernel. The hyperparameters, including hidden-layer width and kernel bandwidth, are selected by cross-validation.
Figure 8a reports prediction-loss values below 0.01 for the evaluated linear attacks against both deployed models, while Figure 8b reports their sample sizes. These results show that a linear attacker can approximate the deployed

(a) Prediction Loss

(b) Time
Figure 9: Prediction loss (a) and runtime per iteration (b) of Unif on fractional Knapsack instances of different dimensions.

Figure 10: Security-performance trade-off under the fractional Knapsack problem with n = 20, using at most three neighboring vertices per query.
prediction directions in these experiments even when the decision-maker uses a nonlinear model class.
We also evaluate the linear attacker on data with a quadratic component:
Here, collects all quadratic terms of , , , and is a zero-mean Gaussian noise vector. The decision-maker fits the MLP or SVR model to these data, while the attacker retains its linear model class. Figure 8c shows generally larger prediction loss for larger values of over the tested range.
Large-scale optimization problem. A call to Algorithm 6 makes query calls, counting repeated contexts separately. This count can grow exponentially with through the number of vertices. Context construction, oracle evaluations, and inverse optimization also contribute to the computational cost. The cost of Algorithm 3 likewise depends on how neighboring vertices and their angular eligibility are computed. We evaluate uniform sampling and a restricted-neighbor defense on larger fractional Knapsack instances.
To control the number of queries in larger problems, we use uniform sampling on the fractional Knapsack problem in Eq. (10), with and new queries per iteration. The number of new queries is therefore linear in

Figure 11: Prediction loss (left) and decision-maker's regret (right) as functions of the defensive parameter .
n, while the size of the inverse-fitting problem depends on the accumulated dataset. This choice does not by itself establish a polynomial bound on total attack time. Figure 9a reports small prediction losses without defense, and Figure 9b reports increasing time per iteration as n grows.
For the defender, we evaluate decision perturbation restricted to at most three neighboring vertices per query against a uniform-sampling attacker on fractional Knapsack instances with n = 20. Figure 10 shows a security-performance trade-off for this implementation. The regret bound in Proposition 4.1 remains valid provided every selected neighbor passes the angular eligibility test in Algorithm 3. The expected prediction error bound in Theorem 4.2 assumes that Algorithm 3 includes every neighboring vertex satisfying the angular eligibility condition..
Prediction loss and regret on defensive parameter. Figure 11 shows that prediction loss and regret generally increase over the tested values of . This fits our theoretical result. Proposition 4.1 gives a regret upper bound linear in , while Theorem 4.2 gives a nondecreasing lower bound on expected prediction loss under its population-fitting condition.
B PROOF
Proof of Proposition 2.2. Suppose that is the class utility vector. Then, the classifier selects a label by finding . For every , we have
with equality at exactly when . Matching the tie-breaking rules therefore identifies each returned class label with the returned vertex , and conversely.
Proof of Lemma 3.3. The key is to show that calibration is independent of the particular inverse feasibility loss. Indeed, we define the set of globally decision consistent matrices by
and the set of matrices with globally correct prediction directions by
For any inverse feasibility loss , we obtain that if and only if for every nonzero matrix and every context . This implies that all inverse feasibility losses have the same global zero loss set . Then, we establish the relationship between and .
We claim that . Indeed, we take any and . Since and , we have for some . This implies and . Since this holds at every nonkernel context, . This yields the desired claim.
It suffices to consider two cases. If , the calibration holds for every inverse feasibility loss. Otherwise, there exists a matrix . By definition, we have (i) for every and (ii) there exists a context such that , for every inverse feasibility loss . In this case, none of the inverse feasibility losses calibrates the prediction loss.
We now show that calibration fails for an -dimensional hypercube. Indeed, for every , we have where , , and is an orthogonal matrix. This implies that minimizing over is equivalent to minimizing over . This problem separates coordinate-wise: an optimal satisfies
We define and . Since is invertible and has full row rank, has full row rank and is an admissible nonzero attacker matrix. For every context , we have . Since all diagonal entries of are positive, these transformed cost vectors have identical coordinate-wise signs. The preceding characterization of the optimal solution set therefore gives for every . In particular, every decision returned by the deployed model is optimal under the attacker cost. Thus, every inverse feasibility loss satisfies for every .
Since has full row rank and , there exists such that . By definition, we have . Putting these pieces together yields
This implies that and . Therefore, we conclude that no inverse feasibility loss calibrates the prediction loss on an -dimensional hypercube.
For the remaining proofs, we let
where indexes the facets containing , indexes the vertices of facet , and is closed, full-dimensional and pointed. In our analysis, we will use three facts: (i) , (ii) and (iii) . The last fact follows since a cost vector makes every point of facet optimal if and only if it is a nonnegative multiple of the inward normal .
Proof of Theorem 3.5. Suppose that satisfies for every . Then, we show that . Indeed, we fix , choose for some vertex , and take satisfying . Since has full row rank, such exists. Then, we have for every and hence . The consistency condition implies for every . Since is a closed cone, . Since is pointed, . Thus, we have .
Since has full row rank and , we can write for a linear map . It suffices to show that for some . Indeed, for any , we choose with . Consistency gives , so . Since , continuity gives for every . This implies that, for each facet , we have . Thus, we have for some . Applying to both sides of in Assumption 3.4 yields . Linear independence and give for every . Since form a basis of , we have , where . As , we have and .
Proof of Proposition 3.6. The proof of Theorem 3.5 shows that global decision consistency alone gives a linear map satisfying , and for every . Since , the relation implies that is invertible. Since , we have for every .
Suppose that is the boundary context, so that for some facet and . Then, by using , we have
This implies that the two costs are nonzero and positively aligned. Thus, we have .
Proof of Proposition 3.7. Since and every update is normalized, we have for every . By the zero-loss assumption and invariance of inverse feasibility under positive scaling, each , , is inverse feasible on . At any nonterminal iteration , there exist and such that
For every subsequent iterate , we have . This implies . Thus, we have
Thus, any two nonterminal iterates are separated by more than in Frobenius norm.
For any finite collection of nonterminal iterates, the open Frobenius balls of radius centered at these iterates are disjoint. Since every iterate has unit Frobenius norm, these balls lie in the ball centered at zero with radius . Then, we have
which implies
Each nonterminal iteration performs one inverse optimization update, and each sampling call is finite. Therefore, Algorithm 1 terminates after at most inverse optimization updates.
Lemma B.1. Let have full row rank, and let satisfy for some facet and . Suppose that, for some , we have for every such that , and . Then, we have
In particular, if , we have .
Proof. If , the conclusion is immediate. Otherwise, we fix . Since has full row rank, we choose with and define for any . Then, we have as and
For sufficiently small , we have and . Consistency guarantees so we have . Closedness guarantees which holds for every . Thus, we have
If , this implies that is positively aligned with and .
Proof of Proposition 3.8. Suppose that no -near-boundary context belongs to . Then, by using the definition of , every such context has zero suboptimality loss. Thus, we have whenever and for some facet . By Lemma B.1, we have
This implies that . By Assumption 3.4 and Proposition A.1, we have for some . The displayed ray membership and imply . This implies that the prediction loss is zero at every context, yielding a contradiction. Therefore, an -near-boundary context in must exist.
Proof of Theorem 3.9. Theorem A.3 shows finite termination and . For every , the limiting cost is nonzero. Therefore, the continuity of angular distance gives the desired result.
Proof of Proposition 4.1. Fix a cache realization and a context , and write , and . If or , the regret is zero. Otherwise, Algorithm 3 gives . The intersection of with the unit sphere is nonempty and compact. We choose a unit vector satisfying
Since is optimal under , we have . Thus, we have
Taking expectation under yields
This completes the proof.
Proof of Theorem 4.2. Fix a cache realization and a context with nonzero costs, and write , , and . The boundary of a vertex normal cone is the union of its facets shared with neighboring cones. Thus, at a cost with a unique optimizer, its margin equals its angular distance to the boundary of its normal cone. At a tied cost, this distance is zero for every optimal vertex.
Suppose that and . Then, we have . This implies that and have disjoint interiors. We consider a shortest spherical path from to . If has a unique optimizer, the initial segment before leaving the interior of has length at least . If has a unique optimizer, the final segment after its last entry into the interior of has length at least . At a tied endpoint, we take the corresponding segment to have length zero, equal to its margin. The two segments do not overlap, giving
In particular, the loss is at least when .
Next, we consider the sufficient condition for fitting. If , its strict inequality cannot hold since the optimality gap is nonnegative. Otherwise, is the unique optimizer under . For every , we have . A shortest spherical path from to the hyper-plane must reach the cone boundary no later than its endpoint. Thus, we have
This implies
Therefore, we conclude that forces .
For the expected bound, the cache can equivalently be generated by assigning an independent uniformly chosen member to every possible candidate set before queries begin. For each fixed , the set is independent of these assignments and contains . Averaging over the cache randomness yields
Under the stated assumption, the pointwise bound is at least on this event and is nonnegative otherwise. Averaging over the defense and attacker randomness and an independent therefore yields
Finally, is nondecreasing in under set inclusion, including at , while is independent of . Therefore, we conclude that is nondecreasing in .
Proof of Proposition A.1. Fix a full-row-rank matrix and . For each facet , we choose with . If , we have . This implies and . Since the normals include two independent directions, we have . This implies and the full row rank of gives for a linear map .
For each , we have or equivalently for some . Applying to the relation in Assumption 3.4 yields . Linear independence and imply for every . Thus, we have and for some . Conversely, every real multiple of belongs to the candidate space. Thus, we have and its dimension is 1.
Proof of Corollary A.2. Suppose that satisfies for every . Then, the proof of Theorem 3.5 gives a linear map satisfying and for every . Thus, we have whenever . This implies and for some . For any with , we have . Since , this implies . Thus, every inverse feasibility loss calibrates the prediction loss.
Lemma B.2. For each , we let be a full-row-rank terminal output of Algorithm 1 with parameters and , normalized so that . Fix a nonempty set . Suppose its final sampling call uses the construction in Algorithm 6 and retains every boundary and near-boundary query with . Denote the boundary representatives and near-boundary queries in that call by and , respectively, where and . In particular, . Assume that every boundary representative used to form these queries, including auxiliary representatives outside , has norm at most a common constant . If and for all sufficiently large , we have
where K and are defined in Appendix A.3.
Proof. Fix , , and . Using the estimate in Appendix A.3 and the stated stopping condition, for sufficiently large , we have
Since this query is retained in the dataset on which satisfies the stopping test, its returned vertex must be . Thus, we have . For , we have
which implies
The sequence is bounded. Since each is closed, every subsequential limit lies in . If did not tend to zero, a bounded subsequence staying a positive distance from this closed ray would have a limit in the ray, yielding a contradiction.
Lemma B.3. Let be such that contains normals satisfying Assumption 3.4. Let consist of full-row-rank matrices with . For each and , we choose satisfying for , and set . Suppose there are constants , independent of , such that and for every and , where is the smallest of the singular values. If for all and , we have and for every .
Proof. Since , it suffices to identify every subsequential limit. We take a subsequence with . Boundedness of the finitely many representatives gives a further subsequence, denoted by the same indices, such that for all and .
We define . Then, , and continuity gives , and . The image of contains the selected , including independent directions. Thus, has full row rank. For each , the columns of lie in a -dimensional space . There are such columns, and the conditioning bound makes them independent, so they form a basis of this space. The assumed convergence gives . By linearity, we have whenever , and in particular, whenever .
Since contains normals satisfying Assumption 3.4, the argument in the proof of Proposition A.1, restricted to , gives for some . Since and , we have . Normalization then gives and . Every subsequent limit is the same, proving convergence of the full sequence. For every , we have . Continuity of angular distance therefore gives the desired convergence of the prediction loss.
Proof of Theorem A.3. Under the stated assumptions, Proposition 3.7 guarantees that every run terminates after at most inverse optimization updates. We take any sequence in the specified family and set and . For each , we let denote the boundary representatives in the final sampling call associated with , and set . This call is included in the dataset used by the stopping test. Every boundary representative is queried and hence has norm at most . Since and the stopping condition holds for sufficiently large , Lemma B.2 applies with and gives
The bound then allows us to apply Lemma B.3, yielding . Since the sequence was arbitrary, the matrix convergence holds for the full family. For every , the same lemma gives .
Proof of Lemma A.4. Suppose that satisfies the stated consistency condition on . Then, for each , we fix and from the assumption, so that . We fix and any with . For each , we choose with , using the full row rank of . For sufficiently small , we have and . Consistency gives . Letting and using closedness yields .
We fix . For each and sufficiently small nonzero , both and lie in and have deployed cost . The preceding conclusion gives , and . Since the selected normals include two independent directions, we have . This implies and for a linear map . Evaluating at gives . Thus, we have for some for each . Applying the eigenvalue argument from the proof of Theorem 3.5 to the selected normals gives with . Since , we have and .
Proof of Lemma A.5. Under the stated assumptions, Proposition 3.7 guarantees that every run terminates after at most inverse optimization updates. We take any sequence in the specified family and set and . For each , we let denote the boundary representatives in the final sampling call associated with , and set for all . Every query in each selected block is retained in the dataset used by the stopping test. All representatives used to form these queries, including those outside , have norm at most . Lemma B.2 therefore gives
The selected facets contain normals satisfying Assumption 3.4, and for every . Lemma B.3 yields . Since the sequence was arbitrary, the matrix convergence holds for the full family. For every , the same lemma gives .