U-Define: Designing User Workflows for Hard and Soft Constraints in LLM-Based Planning
This paper presents U-Define, a system that enhances user control over LLM-based planning by allowing users to categorize constraints as either strict "hard" rules or flexible "soft" preferences, which are verified through complementary formal model checking and LLM-as-judge methods to improve reliability, usability, and user satisfaction.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to plan a perfect family vacation. You have a list of things that must happen (like "we must stay within our budget" or "the kids need to wear life jackets in the pool") and things that you really hope happen (like "we'd love a quiet beach" or "it would be nice to see a museum").
In the past, when people asked AI (Large Language Models) to plan this trip, the AI would just guess. It might forget the life jackets because it was too busy trying to be creative, or it might suggest a hotel that costs way too much. The AI is like a very talented, but slightly scatterbrained, travel agent who speaks fluently but doesn't always listen to the strict rules.
The Problem:
Current AI tools are either too rigid (forcing you to use complex code to set rules) or too loose (ignoring your rules entirely). Users were stuck manually checking the AI's work, which is tiring and prone to error.
The Solution: U-Define
The researchers built a new system called U-Define. Think of it as a "Smart Travel Agent with a Double-Check System." Instead of just asking the AI to "plan a trip," U-Define lets you tell the AI exactly which rules are Hard and which are Soft.
Here is how it works, using simple analogies:
1. The Two Buckets of Rules
U-Define asks you to sort your instructions into two buckets:
- The "Hard" Bucket (The Brick Wall): These are non-negotiable rules. If the AI breaks one, the plan is useless.
- Example: "We must eat vegetarian food."
- The Magic: U-Define takes your English sentence and instantly translates it into a strict, mathematical "code" (called LTL/PRISM) that a computer can check perfectly. It's like turning your rule into a security camera that never blinks. If the plan includes a steak, the camera screams "ERROR!" immediately.
- The "Soft" Bucket (The Wish List): These are preferences. If the AI misses them, the plan is still okay, just not perfect.
- Example: "We'd prefer a relaxing pace."
- The Magic: For these, U-Define uses a second AI (a "Judge") to read the plan and give it a star rating (1 to 5 stars) and a comment on how well it matched your vibe.
2. The Workflow: How You Interact
Imagine you are sitting at a computer with U-Define:
- You Speak: You type, "Plan a trip to Venice." You add your Hard rules (life jackets, vegetarian food) and Soft rules (relaxing pace, fun for kids).
- The Translator: The system secretly turns your "Hard" rules into that strict mathematical code. It shows you the translation to make sure it understood you correctly.
- The Generator: The main AI creates three different trip plans.
- The Double-Check:
- The Math Computer checks the Hard rules. It says: "Plan A failed because it didn't pack life jackets. Plan B passed all Hard rules."
- The Judge AI checks the Soft rules. It says: "Plan B got 4 stars because it was relaxing, but Plan C got 5 stars because it had more fun activities."
- The Result: You see the plans ranked. You know for a fact that the top plans won't break your "must-haves," and you can see which one best fits your "wants."
3. What the Researchers Found
The team tested this with regular people (like parents planning vacations) and experts (like construction managers or grant coordinators).
- Regular People Loved It: They felt much more confident. They didn't have to play "detective" to find errors. They liked that they could separate the "must-dos" from the "nice-to-haves." It felt like the AI finally understood the difference between a rule and a suggestion.
- The "Hard" Rules are Powerful: When the system guaranteed the Hard rules were followed, people trusted the AI much more. They were willing to accept a few minor misses on the Soft rules, but if a Hard rule was broken, they were very unhappy.
- The "Soft" Rules are Flexible: People used the Soft rules to tweak the plan until it felt just right. However, they noticed that the AI's "star ratings" for soft rules weren't always perfect, so they still needed to look at the plan themselves.
- Experts Wanted More Help: The experts (who have very complex jobs) loved the system but found it hard to type out all their many rules. They wished the system could remember their usual rules or import them from spreadsheets so they didn't have to type everything from scratch every time.
The Big Takeaway
The paper concludes that for AI to be truly useful in planning, it needs to let you decide what is a strict rule and what is a flexible preference.
- Hard Constraints = The foundation of the house (must be solid).
- Soft Constraints = The paint and decor (can be changed to taste).
By giving users a way to clearly distinguish between these two and using different "tools" to check them (math for the hard stuff, a second AI for the soft stuff), U-Define makes AI planning more reliable without losing its creativity. It turns the AI from a "black box" that guesses into a "collaborative partner" that respects your boundaries.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.