Abstract
Traditional inventory routing separates demand prediction from route optimization, often leading to sub-optimal decisions despite high predictive accuracy. This paper explores Decision-Focused Learning (DFL), which integrates the optimization solver directly into the neural network training loop. By making the optimization process differentiable through quadratic regularization and interior point methods, the model learns to minimize actual supply chain costs (regret) rather than just statistical error. Experimental results demonstrate that DFL effectively bridges the gap between predictive performance and operational efficiency.
Introduction
In logistics and supply chain management, the Inventory Routing Problem (IRP) is a fundamental challenge. It requires determining the optimal delivery quantities and routes to minimize the combined costs of inventory holding and transportation. Traditionally, companies address this using a "Predict-then-Optimize" framework: first, a machine learning (ML) model predicts customer demand; then, an optimization algorithm calculates the best routes based on those predictions.
However, research presented at NeurIPS 2023 by MD Shafikul Islam and Azmine Toushik Wasi suggests this two-stage approach is fundamentally flawed. They propose a Decision-Focused Learning (DFL) alternative that aligns the training objective of the neural network with the ultimate goal of the supply chain: minimizing cost.
The Problem: Misaligned Objectives
The primary issue with the traditional approach is the misalignment of loss functions. Standard ML models are trained to minimize statistical metrics like Mean Squared Error (MSE). In the context of routing, however, not all errors are equal. A small prediction error for a remote customer with limited storage can disrupt an entire routing schedule far more than a larger error for a local customer with high capacity. Because the predictor has no "awareness" of these downstream constraints, improving statistical accuracy does not always lead to better business outcomes.
Methodology: Decision-Focused Learning
To solve this, the authors propose embedding the optimization solver directly into the neural network's training loop. In this paradigm, the loss function is the actual quality of the decision produced by the optimizer, known as "Regret."
Overcoming the Differentiability Barrier
A major technical hurdle in DFL is that standard optimization problems, such as Mixed Integer Linear Programs (MILPs), are discrete and non-differentiable. To backpropagate gradients through the optimizer, the authors utilize two primary smoothing techniques:
- Quadratic Regularization: Adding a squared term to the objective function transforms the linear program into a Quadratic Program (QP), creating a "curved" and differentiable surface.
- Interior Point Solving (Logarithmic Barriers): By adding logarithmic terms that act as barriers near constraints, the solver can navigate the feasible region smoothly, allowing the neural network to learn from the optimization results.
Key Insights: Accuracy vs. Decision Quality
The most significant finding of the study is that predictive accuracy is a poor proxy for decision quality. The authors' analysis of "Regret vs. Error" reveals a non-linear relationship where a model with lower statistical error can actually result in higher operational costs.
By using DFL, the system learns to be "smart" about its mistakes, prioritizing accuracy on variables that have the greatest impact on the bottom line. The authors found that the logarithmic barrier method was particularly effective for IRPs, as it robustly handles strict capacity constraints for trucks and warehouses.
Conclusion and Future Work
This research provides a roadmap for moving beyond the two-stage approach in logistics. While the DFL framework offers superior decision quality, it introduces computational complexity, as an optimization problem must be solved during every training iteration. Future work will focus on scaling these differentiable solvers to handle industry-scale datasets with thousands of customers and exploring hybrid regularization methods to balance mathematical smoothness with strict constraint enforcement.
Summary updated