U-Define: Designing User Workflows for Hard and Soft Constraints in LLM-Based Planning

Christine P Lee, Xinyu Jessica Wang, Aws Albarghouthi, David Porfirio, Bilge MutluarXiv 2026

TL;DR

U-Define is a novel interactive planning system that allows users to declare natural language constraints as either "hard" rules or "soft" preferences. By combining deterministic formal model checking for hard constraints with fluid LLM-as-judge evaluation for soft ones, it delivers reliable, verifiable plans without sacrificing the flexibility of generative AI.

What Problem Does This Paper Address?

Large Language Models (LLMs) are highly capable of generating complex task plans (e.g., vacation itineraries, wedding schedules), but their black-box nature makes them notoriously unreliable. They frequently hallucinate, ignore user preferences, or fail to enforce strict safety and logical requirements.

Prior attempts to fix this fall into two extremes: rigid automated planners that require specialized, user-unfriendly logic languages, or LLM verifiers that use confusing numerical weights to balance constraint flexibility. Everyday users and domain experts need a way to express non-negotiable rules (like dietary restrictions or strict budgets) alongside flexible desires (like a "relaxing pace") using natural language, without having to manually audit every line of the AI's output.

Fig. 1. In a conventional workflow (top), users receive an LLM plan but must manually detect errors and missing preferences. In contrast, U-Define (bottom) enables users to explicitly state their own constraints in natural language, distinguishing between hard rules that must never be violated (e.g., “include vegetarian options”) and soft preferences that reflect flexibility (e.g., “keep a relaxing pace”). These are then verified by mechanisms tailored to their type: formal model checking for hard constraints and LLM-as-judge evaluation for soft ones. The system produces verification results on which constraints are met or violated, allowing users to iteratively refine, relax, or strengthen constraints. U-Define enables users to leverage constraint types that combine reliability with flexibility.

Methods

U-Define introduces a hybrid verification workflow split into three distinct stages:

  1. Definition Stage: The user inputs their planning prompt and specifies constraints in natural language, categorizing them as either Hard Constraints (must never be violated) or Soft Constraints (flexible preferences).
  2. Translation Pipeline: To bridge the gap between natural language and formal logic, U-Define uses a fine-tuned LLM to translate hard constraints into Linear Temporal Logic (LTL) properties. A prompt-engineered GPT-4 agent then converts these LTL properties and the LLM-generated plan into a format compatible with the PRISM model checker.
  3. Verification Stage:
  4. Hard Constraints are evaluated deterministically using the PRISM Model Checker and Stormpy (a Python API). If a state violation is found, the plan is marked invalid, and the exact broken rule is flagged.
  5. Soft Constraints are evaluated using an LLM-as-Judge (GPT-4), which provides a 1-to-5 star rating and a qualitative explanation of how well the plan aligns with the user's vibe.

The system then ranks candidate plans based on hard-constraint compliance and feeds any violations back into the LLM planner as context for iterative refinement.

Fig. 2. Front-end interface of U-Define — The user begins by defining soft or hard constraints for their planning task into U-Define. The user then inputs their request, and in response, an initial set of plans is generated. Each plan is then evaluated by distinct verification mechanisms on its adherence to the user-defined soft and hard constraints. The verification results and explanations are presented to the user. The user can select the plan they like most and provide feedback on the prompt and constraints to align the details of the plan to their needs.

Datasets

  • Training: The system's LTL translation layer was fine-tuned on the NL2LTL dataset, a synthetic natural-language-to-LTL dataset, utilizing QLoRA techniques on a LLaMA 7B base model.
  • Evaluation: The authors evaluated the system using 36 unique hard constraints and three distinct planning scenarios (Family Vacation, Wedding Planning, and Dinner Party Recipe Planning) generated during user studies.

Key Insights and Ideas

  • Needs vs. Wants: Separating constraints into binary "hard" and "soft" categories perfectly mirrors human decision-making. Users intuitively treat hard constraints as foundational building blocks and soft constraints as customizable layers.
  • The Asymmetry of Trust: When hard constraint verification fails, user trust drops precipitously. Users tolerate occasional misses on soft preferences, but a single failure of a "hard rule" is often seen as a total system dealbreaker.
  • The LTL Expressiveness Gap: While LTL works beautifully for temporal sequencing (e.g., "marinate the chicken before cooking"), domain experts frequently require constraints involving arithmetic, cardinality, or durations (e.g., "stay under a $3500 budget" or "permits take one month to approve"). This reveals a critical need for more expressive formal verification backends in end-user AI tools.

Key Results

  • Technical Accuracy: The fine-tuned LTL translator achieved an average Levenshtein similarity score of 83.12% (which jumps to 94.32% when adjusting for minor phrasing mismatches). The PRISM plan conversion pipeline achieved 97.4% accuracy.
  • Everyday User Study: In a within-subjects study ($N=12$), the full U-Define system (combining hard and soft constraints) achieved significantly higher perceived performance, usefulness, and satisfaction compared to a standard LLM baseline. It also significantly reduced the number of iterations users needed to finalize a plan.
  • Expert User Study: A study with domain experts ($N=6$, including project managers and accountants) showed that professionals heavily favor hard constraint validation to offload the tedious "sanity checking" of plans, though they noted a high "context overhead" when manually entering large rule sets.

Limitations and Future Work

The primary limitation is the expressiveness of the underlying formal verification framework. PRISM and LTL cannot easily handle non-temporal constraints like numeric budgets or complex calendar durations. Additionally, the user studies relied on a modest sample size (18 total participants).

Future work will focus on integrating more expressive formalisms like Metric Temporal Logic (MTL), incorporating Retrieval-Augmented Generation (RAG) to allow users to reuse past constraint profiles, and building smarter authoring interfaces to reduce the manual typing burden for experts.

Summary updated

BibTeX
@misc{lee2026u,
  author = {Christine P Lee and Xinyu Jessica Wang and Aws Albarghouthi and David Porfirio and Bilge Mutlu},
  title = {{U-Define: Designing User Workflows for Hard and Soft Constraints in LLM-Based Planning}},
  year = {2026},
  eprint = {2605.02765},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.02765},
}
Figure