Introduction
In automated planning—ranging from logistics to space exploration—the cost of an action is rarely a static value. Factors like traffic congestion or weather conditions introduce variability, necessitating a system that can predict these costs accurately to find optimal solutions. Traditionally, this is handled by a two-stage pipeline: a machine learning (ML) model predicts costs by minimizing Mean Squared Error (MSE), and these predictions are then passed to a planner.
However, MSE is "decision-blind." It treats all errors equally, regardless of whether an error leads to a suboptimal plan or has no impact at all. This paper introduces Decision-Focused Learning (DFL) to automated planning, training models to predict action costs by directly optimizing the quality of the resulting plans, thereby minimizing "regret."
The Predict-then-Optimize Framework
The core of this research is the adaptation of the Smart Predict-then-Optimize (SPO) framework. Unlike standard approaches that isolate prediction from optimization, DFL integrates the planner into the training loop.
As shown in Figure 1, the process begins with correlated features $\mathcal{X}$ being fed into an ML model $\mathcal{M}_\omega$. This model outputs predicted action costs $\hat{C}$, which are then used by a planning system to generate a solution $\pi^*(\hat{C})$. The loss function is then calculated based on the "regret"—the difference between the cost of the predicted plan and the true optimal plan—allowing the model to learn from its decision-making performance.
Overcoming Technical Hurdles
Implementing DFL in planning presents unique challenges, particularly regarding negative cost predictions and computational efficiency.
Handling Negative Costs
During training, ML models may predict negative costs. Standard planners, such as those using A* search, cannot handle negative values and may fail or enter infinite loops. The authors propose two solutions:
- Add-min: Instead of clipping negative values to zero, which can distort the relative priority of actions, the authors shift all predicted costs by the absolute value of the minimum predicted cost. This preserves the ordering of actions.
- Explicit Training Penalty: A novel penalty term is added to the loss function to discourage the model from entering "illegal" cost regions, guiding gradient descent toward valid, positive predictions.
Scaling via Caching and Approximation
Running a full planner inside every training iteration is computationally expensive. To mitigate this, the authors utilize solution caching. By storing previously found plans and reusing them to provide gradients, the system can achieve high performance while training 4-5 times faster. Additionally, using sub-optimal planners (like weighted A*) during training was found to provide a "good enough" gradient for effective learning.
Experimental Evaluation
The approach was tested on three domains: Shortest Path, Transport, and Rovers. Costs were generated using non-linear functions to simulate real-world "model misspecification."
Figure 3 illustrates the Transport domain, where an agent must navigate between locations (A, B, C) to pick up and drop off items. The table demonstrates how specific action costs $C$ influence the selection of actions in the plan $\pi$. DFL excels here because the gradient acts as a teacher, specifically penalizing errors that lead to choosing the wrong path (e.g., choosing a longer route because a bottleneck cost was underestimated).
Key Results and Insights
The researchers found that DFL ($SPO+_P$) consistently outperformed standard MSE approaches. In the Transport domain, regret was reduced from approximately 5.8% to 4.2%.
A critical insight is that structure matters more than numerical accuracy. The success of the "Add-min" approach suggests that for a planner, the relative ordering of action costs is more vital than the absolute precision of any single value. Furthermore, the study proved that exactness is not required during training; cached or sub-optimal solutions provide sufficient feedback to improve the model's decision-making capabilities.
Conclusion and Future Work
This work demonstrates that "planning-aware" models significantly outperform decision-blind baselines in complex tasks. While currently focused on static costs, future research could extend this to state-dependent costs (e.g., fuel consumption). Additionally, exploring "black-box" optimization techniques may allow DFL to scale to even more complex, industrial-sized planning formalisms.
Summary updated