Abstract: Users of natural language interfaces, generally powered by Large Language Models (LLMs), often must repeat their preferences each time they make a similar request. To alleviate this, we propose including some of a user's preferences and instructions in natural language — collectively termed standing instructions — as additional context for such interfaces. For example, when a user states "I'm hungry," their previously expressed preference for Persian food will be automatically added to the LLM prompt, so as to influence the search for relevant restaurants. We develop NLSI, a language-to-program dataset consisting of over 2.4K dialogues spanning 17 domains, where each dialogue is paired with a user profile (a set of users specific standing instructions) and corresponding structured representations (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 44.7% exact match on API prediction. Our results demonstrate the challenges in identifying the relevant standing instructions and their interpretation into API calls.
The Problem: The "Repetition Tax"
Current natural language interfaces often suffer from a "repetition tax." If you have specific preferences—like a favorite airline, a budget range for hotels, or a preferred movie theater—you usually have to restate them every time you make a request. While some systems try to learn these implicitly from history, those methods are often "black boxes" that are hard for users to inspect or edit.
To address this, the authors propose Standing Instructions (SI): explicit, human-readable rules provided by the user. The core challenge is twofold:
- Selection: Out of a large profile of instructions, which ones actually apply to the current request?
- Interpretation: How do you combine the user's immediate utterance with those persistent instructions to generate the correct structured output (API calls)?
The NLSI Dataset
The authors introduced NLSI (Natural Language Standing Instructions) to benchmark this task. Built by "reverse-engineering" the Schema Guided Dataset (SGD), NLSI includes 2,040 test examples across 17 domains (flights, hotels, restaurants, etc.).
The dataset categorizes requests into several reasoning types to test model robustness:
- Plain: Direct mapping of a preference to a field.
- Multi-Hop: Instruction A triggers Instruction B (e.g., "If I'm flying American Airlines, check for Economy").
- Multi-Preference: Multiple instructions applying to a single request.
- Multi-Domain: Booking a flight triggers a preference in another domain, like a hotel search.
- Conflict: The user's current request contradicts their standing instructions.
Experimental Methods
The researchers evaluated several prompting paradigms using LLMs (GPT-3.5, GPT-4, and LLaMA 2):
- Direct Interpretation: The model receives the entire user profile and the utterance, then tries to generate API calls directly.
- Select-and-Interpret: A "Chain-of-Thought" approach where the model first lists the relevant instructions and then generates the API call in a single pass.
- Select-then-Interpret: A modular approach where one process (like BM25 retrieval or a separate LLM call) selects the instructions, and a second model generates the API calls based only on that subset.
- Multi-Pass Selection: An iterative approach where the model looks at the profile again to find instructions it might have missed, which is particularly useful for Multi-Hop reasoning.
Key Insights and Results
- The Selection Bottleneck: The biggest hurdle is finding the right rules. Even with "Oracle" selection (providing the model with the exact correct instructions), GPT-4 only hits 58.5% accuracy. Without it, performance drops significantly.
- Reasoning Hierarchy: Models are effective at "Plain" instructions but fail significantly at Multi-Domain tasks (under 17% accuracy), where a request in one area should trigger a preference in another.
- LLMs vs. Traditional Retrieval: For the selection task, using an LLM with In-Context Learning (ICL) outperformed traditional lexical (BM25) or dense (Contriever) retrieval methods, as LLMs better understand intent over keyword matching.
- Performance Leaders: GPT-4 achieved a maximum Exact Match (EM) of 46% on API prediction using the Multi-Pass method. In contrast, smaller models like LLaMA 2 (7B) struggled, peaking at around 15% EM.
Conclusion and Future Work
While Standing Instructions offer a transparent way to personalize AI, current LLMs struggle with the complexity of selecting and interpreting these rules in multi-domain or multi-hop scenarios. Future work will need to address prompt length limits for larger user profiles and the gap between generating API calls and managing multi-turn conversations where those calls might fail.
Summary updated