Aligning Learning and Endogenous Decision-Making

Rares Cristian, Pavithra Harsha, Georgia Perakis, Brian QuanzarXiv 2025 · DOI

Introduction

In many real-world decision-making scenarios, the outcomes we observe are directly influenced by our previous actions—a phenomenon known as endogenous uncertainty. For instance, a retailer setting a price directly affects the demand they observe. Traditional machine learning approaches typically follow a "two-stage" pipeline: first, a model is trained to minimize a statistical error (like Mean Squared Error) to predict a variable (e.g., demand); second, this prediction is fed into an optimizer to determine the best action (e.g., price).

However, this decoupled approach often fails due to two primary issues. First is Counterfactual Blindness: data is only observed for the actions taken, leaving the model uncertain about what would have happened under different decisions. Second is Objective Mismatch: a model optimized for average prediction accuracy may perform poorly if the downstream cost function is asymmetric or non-linear. This paper introduces an end-to-end (E2E) framework that aligns the learning process with the final decision-making objective, incorporating robust optimization to handle data scarcity and counterfactual uncertainty.

The End-to-End Framework

The proposed framework shifts the focus from minimizing prediction error to minimizing downstream task-based costs through several technical innovations.

Task-Based Loss Functions

Instead of standard regression losses, the authors propose a loss function that measures the difference between the predicted cost of a historical decision and the actual observed cost. This ensures the model prioritizes learning the specific features of the data distribution that most significantly impact the final decision. For example, in inventory management, the model implicitly learns to predict specific quantiles of demand that minimize the combined cost of stockouts and overstocking, rather than just the mean demand.

Robust Learning under Uncertainty

To mitigate the risks of over-optimism in regions with sparse data, the framework employs Robust End-to-End Learning. By constructing an "uncertainty set" of models consistent with the training data, the system solves a min-max problem: identifying the decision that performs best under the worst-case scenario within that set. This "pessimism" prevents the optimizer from selecting high-risk actions that appear favorable only due to model inaccuracies.

Comparison of demand curve approximations and their resulting revenue predictions.

Information-Gathering and Scalability

The framework also extends to two-stage problems where the initial decision involves gathering information (e.g., polling specific demand sources) to refine a subsequent operational decision. For implementation, the authors provide a Mixed-Integer Quadratic Optimization (MIQO) formulation for small-scale problems and a sampling-based iterative learning approach for larger datasets.

Experimental Evaluation

The framework was tested across three diverse domains, demonstrating significant improvements over traditional "predict-then-optimize" baselines:

  • Synthetic Pricing: In a scenario where demand is a polynomial function of price, the robust E2E approach outperformed standard baselines by over 30% in revenue when data was limited or noisy.
  • Inventory Management: In a 5-product inventory problem with capacity constraints and skewed data, the E2E method reached near-optimal costs with far fewer data points than K-Nearest Neighbor or standard regression baselines.
  • Electricity Scheduling: Using real-world data from the PJM regional transmission organization, the task involved scheduling generation over 24 hours. The "Endogenous E2E" approach achieved a 7.5% improvement over traditional cost-learning methods and came within 8% of the theoretical optimal performance.

Conclusion

By integrating the decision-making objective directly into the training loop and accounting for endogenous uncertainty through robust optimization, this framework offers a principled way to bridge the gap between machine learning and operations research. The results highlight that "pessimism" in the face of uncertainty is a valuable feature, preventing models from making wild, over-optimistic predictions in data-sparse regions. While computational complexity remains a challenge for high-dimensional action spaces, the framework provides a robust foundation for aligning learning with real-world operational goals.

Summary updated

BibTeX
@misc{cristian2025aligning,
  author = {Rares Cristian and Pavithra Harsha and Georgia Perakis and Brian Quanz},
  title = {{Aligning Learning and Endogenous Decision-Making}},
  year = {2025},
  eprint = {2507.00851},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.00851},
}
Figure