Abstract
Users of natural language interfaces, frequently powered by Large Language Models (LLMs), must often repeat their full set of preferences each time they make a similar request. We describe an approach to LLM-based dialogue modeling in which persistent user constraints and preferences – collectively termed standing instructions – are provided as additional context for such interfaces. For example, when a user states “I’m hungry”, a previously expressed preference for Persian food can be automatically added to the LLM prompt, influencing the search for relevant restaurants. We develop NLSI, a language-to-program dataset consisting of over 2.4K English dialogues spanning 17 domains, in which each dialogue is paired with a user profile (a set of user-specific standing instructions) and corresponding structured representations (a sequence of API calls). A key challenge in NLSI is to identify which subset of the standing instructions is applicable to a given dialogue. NLSI contains diverse phenomena, from simple preferences to interdependent instructions such as triggering a hotel search whenever the user is booking tickets to an event. We conduct experiments on NLSI using prompting with large language models and various retrieval approaches, achieving a maximum of 46% exact match on API prediction. Our results demonstrate the challenges in identifying the relevant standing instructions and their interpretation into API calls.
The Challenge of Persistent Preferences
In human-to-human interaction, an assistant remembers a client's preferences over time. If you tell a travel agent once that you prefer flying American Airlines and staying in budget hotels, they incorporate that knowledge into every future booking. However, current LLM-based interfaces are often "forgetful," requiring users to repeat their full set of constraints and preferences for every new request.
While commercial models have introduced features like "Custom Instructions," there has been little systematic research into how models handle a large, diverse set of persistent constraints—referred to as standing instructions—in task-oriented dialogues. The core challenge is two-fold: selection (identifying which subset of dozens of instructions applies to a specific request) and interpretation (correctly incorporating those instructions into a structured format, such as an API call).
The NLSI Dataset: Benchmarking Personalization
To address this, researchers developed the NLSI dataset, a language-to-program benchmark built by extending the Schema Guided Dataset (SGD). It consists of over 2,400 English dialogues across 17 domains, including airlines, restaurants, and movies. Each dialogue is paired with a "User Profile" containing both relevant instructions and "distractor" instructions from unrelated domains.
The dataset categorizes examples into six levels of difficulty to test different reasoning capabilities:
- Plain: Simple, direct preferences (e.g., "I like fantasy movies").
- MultiHop: Scenarios where one instruction triggers another (e.g., "If I'm looking for a flight, use American Airlines" and "If I'm flying American Airlines, check for Economy").
- MultiPreference: Handling multiple, potentially overlapping preferences within a single domain.
- MultiDomain: Complex links where an instruction in one domain (travel) triggers an action in another (hotels).
Methodology: Prompting for Selection and Interpretation
The study evaluated several prompting strategies to bridge the gap between a user's simple utterance (e.g., "I'm hungry") and a personalized API call:
- Direct Interpretation: The model receives the entire user profile and the utterance, attempting to generate the API call directly.
- Select-and-Interpret: A Chain-of-Thought approach where the model explicitly lists relevant instructions before generating the API call.
- Select-then-Interpret: A two-stage pipeline where a separate module (like BM25 or another LLM) selects a subset of instructions, which are then passed to the interpreter.
- Multi-Pass Selection: Designed for complex dependencies, the model performs an initial selection and then a second pass to identify any missed instructions triggered by the first set.
Key Results and Insights
The experiments revealed that retrieval is the primary bottleneck. When models were provided with an "Oracle" (the exact correct instructions), performance jumped significantly. Without it, models frequently missed subtle constraints or failed to navigate complex dependencies.
- GPT-4 Performance: GPT-4 led the field, achieving a 46% Exact Match (EM) score using the Multi-Pass method. However, even with the "Oracle" subset, it only reached 58.5% EM, suggesting that the interpretation task itself remains difficult.
- Reasoning Breakdown: While performance on "Plain" instructions was relatively high (~67% for GPT-4), it plummeted to under 17% for Multi-Domain tasks, highlighting a significant gap in cross-domain reasoning.
- Model Scaling: Smaller open-source models struggled immensely; LLaMA 2 (7B) managed only a 15.1% EM on the core task.
Conclusion and Future Directions
The NLSI benchmark demonstrates that simply providing instructions in a prompt is insufficient for robust personalization. Models are prone to both omission (missing conditional arguments) and hallucination (over-generating API calls). Future work must explore more sophisticated memory-augmented architectures and move beyond single-turn API generation to manage multi-turn conversations where API results are fed back to the user. Furthermore, exploring how models might implicitly infer these instructions from past behavior remains a vital area for future research.
Summary updated