Papers
Topics
Authors
Recent
Search
2000 character limit reached

Locally Optimized Decision Losses (LODL)

Updated 21 December 2025
  • LODL is a decision-focused learning methodology that constructs instance-specific, convex surrogate losses matching the local shape of the true decision loss.
  • It decouples the loss fitting and predictor training phases by using black-box oracle evaluations and efficient gradient-based optimization.
  • Empirical evaluations on resource allocation, web advertising, and portfolio optimization tasks show improved decision quality over traditional methods.

Locally Optimized Decision Losses (LODL) constitute a methodology for decision-focused learning that circumvents the need for differentiable end-to-end optimization or handcrafted, task-specific surrogates. LODL enables learning predictive models optimized for downstream decision quality using only a black-box oracle for the combinatorial or convex program. A locally-learned, convex surrogate loss is constructed at each training instance, matching the local shape of the true task loss, facilitating efficient gradient-based predictor training. This approach generalizes across a range of resource allocation and predict-then-optimize problems while ensuring theoretical convexity and practical parallelizability (Shah et al., 2022).

1. Mathematical Formulation and Loss Construction

Given a dataset {(xn,yn)}n=1N\{(x_n, y_n)\}_{n=1}^N where xnx_n are features and ynRDy_n\in\mathbb{R}^D parameterize a downstream optimization problem, the decision variable is

z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.

The decision loss for a prediction y^\hat y is defined as

DL(y^,y)=f(z(y^);y).DL(\hat y, y) = f(z^*(\hat y); y).

LODL replaces this with a learned local surrogate

LODLϕn(y^)DL(y^,yn)DL(yn,yn)LODL_{\phi_n}(\hat y) \approx DL(\hat y, y_n) - DL(y_n, y_n)

where parameters ϕn\phi_n are fit to match the true decision loss in a neighborhood around yny_n and are chosen so LODLϕnLODL_{\phi_n} is convex in xnx_n0 and minimized at xnx_n1.

The predictive model xnx_n2 is trained to minimize

xnx_n3

without further calls to the black-box optimizer during training (Shah et al., 2022).

2. Offline Loss Fitting and Predictor Training Pipeline

LODL separates the learning process into two stages:

  • Offline loss fitting (per instance): For each xnx_n4, sample xnx_n5 perturbations xnx_n6 around xnx_n7, use the oracle to compute xnx_n8, and fit xnx_n9 via least-squares regression to

ynRDy_n\in\mathbb{R}^D0

No gradient through the oracle is taken; only forward evaluation is required.

  • Predictor training: With all ynRDy_n\in\mathbb{R}^D1 fixed, train ynRDy_n\in\mathbb{R}^D2 via SGD on the convex surrogate loss as above.

This decoupling enables amortized optimization—once local surrogates are fit, predictor training is efficient and can be reused for multiple model architectures (Shah et al., 2022).

3. Loss Family Design and Theoretical Properties

LODL's success depends on selecting convex, instance-tuned losses. Four main families are proposed:

  1. Weighted MSE: ynRDy_n\in\mathbb{R}^D3, with ynRDy_n\in\mathbb{R}^D4.
  2. Quadratic (second-order): ynRDy_n\in\mathbb{R}^D5, ynRDy_n\in\mathbb{R}^D6; captures cross-feature curvature.
  3. Directed Weighted MSE: Separate ynRDy_n\in\mathbb{R}^D7 for over/under-prediction, allowing asymmetric error costs.
  4. Directed Quadratic: Partition the sign-pattern of ynRDy_n\in\mathbb{R}^D8, fitting one PSD block per quadrant for further expressivity and error asymmetry.

All are convex (elementwise or blockwise), uniquely minimized at ynRDy_n\in\mathbb{R}^D9, and enable stable gradient-based learning (Shah et al., 2022).

4. Algorithmic Outline and Implementation Details

The LODL meta-algorithm can be summarized as follows:

Stage Operation Oracle Calls
Loss fitting Draw z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.0 local samples, compute z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.1, fit z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.2 per instance z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.3 forward calls per instance (parallelizable)
Predictor Train z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.4 with SGD on z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.5 None

During fitting:

  • Gaussian or coordinate perturbations are recommended for sampling, z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.6–z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.7 per instance.
  • Enforce PSD constraints on quadratic parameters (z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.8), and sign-consistency for directed forms.

Gradient computation is through the local parametric loss and the model only; backpropagation through the combinatorial optimizer is not needed.

5. Empirical Evaluation and Performance

LODL was evaluated on three canonical resource allocation tasks:

  • Linear Model (Top-1 selection): DirectedQuadratic LODL achieved normalized Decision Quality (DQ) z(y^)=argminzf(z;y^)s.t.gi(z)0, i.z^*(\hat y) = \arg\min_z f(z;\hat y)\quad \text{s.t.}\quad g_i(z) \le 0,\ \forall i.9, versus y^\hat y0 (2-stage) and y^\hat y1 (DFL surrogate).
  • Web Advertising (Submodular maximization): DQ y^\hat y2 for DirectedQuadratic, outperforming both 2-stage (y^\hat y3) and DFL (y^\hat y4).
  • Portfolio Optimization (Quadratic program): LODL DQ y^\hat y5, marginally below DFL (y^\hat y6), but outperforming 2-stage (y^\hat y7).

Ablations confirm performance and variance improve with increased y^\hat y8, and indicate the optimal sampling scheme depends on the chosen loss family. The methodology demonstrates high parallelizability (across samples) and amortizability (suitable for hyperparameter search or ensembling), often matching or surpassing DFL's wall-clock time as model training is detached from oracle calls (Shah et al., 2022).

6. Practical Usage Guidelines and Limitations

Key recommendations include:

  • Prefer DirectedQuadratic loss families for maximal expressivity (feature-wise and directional error modeling).
  • Use extensive, localized sampling around each y^\hat y9; Gaussian and coordinate perturbations are both effective.
  • Ensure PSD constraints and convexity for all loss parameters to guarantee stability.
  • Parallelize the oracle-based sample generation across hardware resources.
  • Monitor surrogate-vs-true decision loss fit (e.g., mean absolute error in the prediction neighborhood) as a leading indicator for downstream decision quality.

Limitations arise due to the localness assumption: LODL presumes predictions from DL(y^,y)=f(z(y^);y).DL(\hat y, y) = f(z^*(\hat y); y).0 remain near DL(y^,y)=f(z(y^);y).DL(\hat y, y) = f(z^*(\hat y); y).1. In regimes with high model bias or non-local errors, quantitative performance and sample efficiency can degrade. Each instance's surrogate is fit independently, which scales as DL(y^,y)=f(z(y^);y).DL(\hat y, y) = f(z^*(\hat y); y).2 samples for Quadratic families when DL(y^,y)=f(z(y^);y).DL(\hat y, y) = f(z^*(\hat y); y).3 (output dimension) is large (Shah et al., 2023).

7. Evolution Beyond LODL: Context and Alternatives

LODL offers a significant advantage over handcrafted surrogates by providing a generic, convex, and automatable approach for decision-focused learning with black-box oracles. However, its localness and instance-wise fitting restrict sample efficiency and generalization. Subsequent work has introduced feature-based global loss parameterizations (e.g., Efficient Global Losses—EGL), relaxing the localness assumption and achieving similar or better performance with an order of magnitude fewer oracle calls. These global approaches leverage model features and realistic model-based prediction samples, overcoming key sample complexity and scalability barriers of the purely local LODL regime (Shah et al., 2023).

LODL remains a reference point for fully automated, surrogate-free, and convex decision-focused learning when a black-box oracle is available, and when high-quality local prediction neighborhoods can be assumed. Its methodology is central to the paradigm shift from handcrafted relaxations to learned surrogates in predict-then-optimize pipelines (Shah et al., 2022).

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Locally Optimized Decision Losses (LODL).