Abstract
In classical AI planning, defining the cost of actions is crucial for determining optimal behavior, yet these costs are often difficult to specify manually. This paper presents LACFIP$^k$, a novel algorithm that learns action costs directly from observed input plans. By treating these plans as optimal demonstrations, the system reverse-engineers a cost function that aligns with underlying human preferences. We evaluate LACFIP$^k$ across four planning domains—GRID, BARMAN, OPENSTACKS, and TRANSPORT—demonstrating its ability to recover latent cost structures and significantly outperform standard uniform-cost baselines.
Introduction
While classical planning excels at modeling the dynamics of an environment (e.g., "how an action changes the state"), it often relies on expert-defined cost functions to rank potential plans. In real-world applications, such as financial management or personalized navigation, preferences are often implicit and varied. Researchers from J.P. Morgan AI Research address this by proposing the Cost Function Learning (CFL) task: given a set of input plans, can we identify a cost function that renders these specific plans optimal?
Methodology: The LACFIP$^k$ Algorithm
The authors prove that a cost function making all input plans optimal may not exist due to potential conflicts or redundancies within the data. To address this, they introduce LACFIP$^k$ (Learning Action Costs From Input Plans), which employs a two-stage optimization process:
- Alternative Generation: To avoid comparing input plans against an infinite set of alternatives, the algorithm uses a top-$k$ planner to generate the $k$ most competitive alternative sequences for each task.
- MILP Optimization: The problem is formulated as a Mixed-Integer Linear Program (MILP). The objective is to find a cost function that maximizes the number of input plans that are optimal (the Maximal Cost Function, or MCF) or ensures they are the unique optima (the Strict Cost Function, or SCF).
The algorithm is also capable of "refining" an existing cost function, minimally adjusting it to incorporate new observations while preserving as much of the original intent as possible.
Experimental Evaluation
The performance of LACFIP$^k$ was tested across four diverse domains using problem generators to create tasks of varying complexity:
- GRID: A navigation task where agents move in cardinal directions.
- BARMAN: A domain involving cocktail preparation and ingredient manipulation.
- OPENSTACKS: A production scheduling problem.
- TRANSPORT: A logistics domain involving the movement of goods via vehicles.
The researchers generated "ground truth" preferences to create input plans and evaluated how well LACFIP$^k$ could recover these hidden costs.
Results and Insights
The experimental results demonstrate that LACFIP$^k$ significantly outperforms uniform-cost baselines. In the GRID domain, the algorithm successfully identified high-cost regions based solely on the observed paths. In the BARMAN domain, the algorithm achieved perfect alignment (a 1.0 ratio) with relatively low values of $k$.
Key findings include:
- Saturation of $k$: Performance often plateaus at moderate values of $k$ (e.g., $10^2$ or $10^3$), suggesting that only a subset of competitive alternative plans is necessary to define the cost boundaries.
- Redundancy Constraints: The authors formally established that plans containing redundant actions cannot be made optimal under any non-zero cost function, highlighting a fundamental limit of cost learning from raw behavior.
- Scalability Trade-offs: While effective, the MILP optimization is computationally intensive. As $k$ or the task size increases, solve times grow significantly, sometimes reaching the 1800s limit in complex domains like TRANSPORT.
Conclusion and Future Work
LACFIP$^k$ provides a robust framework for bridging classical planning and inverse reinforcement learning. However, the current approach assumes input plans are intended to be optimal. Future research will focus on extending the model to handle "boundedly rational" or suboptimal human inputs and improving the scalability of the optimization for larger, real-world industrial applications.
Summary updated