TL;DR
LAPPI (LLM-Assisted Preference-based Problem Instantiation) is a framework that uses Large Language Models to bridge the gap between vague human desires and rigorous mathematical optimization. By using an LLM to translate natural language into structured objective functions and constraints, the system allows non-experts to leverage powerful classical solvers for complex tasks like trip and meal planning.
What Problem Does This Paper Address?
Combinatorial optimization—the math behind finding the best "itinerary" or "combination" from a massive set of options—is incredibly powerful but notoriously user-unfriendly. To use a traditional solver (like Gurobi), a user must perform problem instantiation: they have to manually enumerate every candidate item, assign numerical preference scores to each, and define strict mathematical constraints (e.g., "total time < 8 hours").
For a regular person planning a vacation, this is an impossible burden. While LLMs like GPT-4 are great at "brainstorming" ideas in natural language, they are notoriously bad at actually solving optimization problems; they often hallucinate infeasible routes, fail at basic arithmetic, or ignore hard constraints. This paper addresses the "upstream" bottleneck: how do we help a user turn "I want a history-focused trip to Paris that isn't too rushed" into a format a computer can actually solve?
Methods
The authors introduce LAPPI, a framework that splits the workload between an LLM and a classical optimization solver. The process follows a two-stage conversational loop:
- Item Enumeration: The user tells the LLM their general preferences. The LLM uses its vast domain knowledge to suggest a set of candidate items (e.g., specific museums or landmarks in a city).
- Value Assignment: The user provides more nuanced feedback (e.g., "I want to spend more time at the Louvre"). The LLM then translates these qualitative statements into quantitative values: preference scores (0-10) and estimated durations (in hours).
Once these values are generated, they are fed into a Classical Solver. For trip planning, the authors formulated the problem as an Orienteering Problem (OP)—a variant of the Traveling Salesperson Problem where you try to maximize "points" collected at locations within a fixed time budget. The solver (Gurobi) then calculates the mathematically optimal route. Crucially, the system is interactive: if the user doesn't like the result, they simply talk to the LLM again to refine the problem instance and re-run the solver.
Datasets
The paper does not use a static training dataset; instead, it evaluates the framework through:
- User Study Data: 12 participants planned trips for cities they had never visited (selected from a list of 8 major European and Australian cities).
- Technical Benchmark: The authors reused the 24 problem instances generated by users to compare LAPPI’s backend against a "pure LLM" approach (GPT-4 with intensive prompt engineering).
Key Insights and Ideas
- The LLM as a "Translator," not a "Solver": The core "aha moment" is recognizing that the LLM’s strength lies in its ability to understand "vibes" and "context," while its weakness is logic and constraints. By using the LLM only to instantiate the problem and letting a classical algorithm solve it, you get the best of both worlds.
- Dynamic Problem Scope: Traditional interactive optimization usually assumes the list of items is fixed and only the weights change. LAPPI allows the problem definition itself to evolve through conversation—users can add or remove items on the fly.
- Multi-LLM Agents: The authors experimented with using two LLMs simultaneously to suggest items. Interestingly, while this increased the variety of suggestions, users didn't necessarily find it more helpful than a single-LLM setup, suggesting that "more choice" isn't always better in optimization UI.
Key Results
- Superior Constraint Satisfaction: In technical evaluations, LAPPI had a 100% success rate in meeting time constraints, whereas GPT-4 alone failed in several instances, often producing routes that were significantly over the time budget.
- Better Efficiency: Users in the study found LAPPI significantly more efficient and easier to use than a baseline of Google Maps + ChatGPT.
- Higher Quality Solutions: LAPPI-generated routes covered more Points of Interest (POIs) and achieved higher total reward scores than those generated by the LLM alone.
- Versatility: Beyond trip planning, the authors successfully adapted LAPPI to a meal planning use case (formulated as a Knapsack Problem), where the LLM suggests recipes based on a photo of a refrigerator and optimizes ingredients to meet caloric goals.
Limitations and Future Work
- Fixed Problem Classes: Currently, a developer must pre-define the optimization model (e.g., "this is an Orienteering Problem"). Future versions could see the LLM identifying the problem type or even writing the solver code dynamically.
- Explainability: Participants noted that while the system gave them an optimal route, it didn't always explain why certain preferred spots were left out (usually because they were geographically isolated). Improving the "critique" or explanation phase is a key next step.
- Long-term Memory: The current system focuses on real-time preference shifts. Incorporating a memory of a user’s long-term habits could make the initial "Item Enumeration" phase even more accurate.
Summary updated