Directional Stimulus: Definition and Examples
Directional Stimulus is a prompt engineering technique that consists of providing a specific hint or direction in the prompt to guide the language model toward the desired response, without directly giving it the answer.
Full definition
Directional Stimulus Prompting is a method introduced by researchers from the University of Hong Kong in 2023. It is based on the idea of adding a 'directional stimulus' — a small hint, keyword, or prompt — to the prompt in order to guide the model's reasoning in the right direction. Unlike a direct instruction, the stimulus acts as a subtle signal that pushes the LLM to explore a particular reasoning path.
In practice, the directional stimulus can take many forms: a relevant keyword, a draft outline, a targeted contextual element, or a specific constraint. The goal is to reduce prompt ambiguity and channel the model's generation toward more precise and relevant outputs, without restricting its creativity.
This technique differs from classic approaches like few-shot prompting because it does not require providing complete examples. Instead, it relies on minimal but strategically chosen hints. In the original article, the researchers even proposed training a small auxiliary model (a 'policy model') capable of automatically generating these optimal stimuli for a main LLM.
Directional Stimulus is particularly effective for summarization, dialogue generation, and reasoning tasks, where a simple hint can significantly improve the quality and relevance of responses. It is an elegant approach that exploits the ability of LLMs to pick up on weak signals to produce significantly better results.
Etymology
The term comes from English 'directional' (indicating a direction) and 'stimulus' (from Latin stimulus, goad). The expression was formalized in the research paper 'Guiding Large Language Models via Directional Stimulus Prompting' published in 2023 by Zekun Li et al. The image is that of a goad that guides the model in a specific direction without rigidly constraining it.
Concrete examples
Article summary with directional keywords
Summarize the following article focusing on these aspects: economic impact, technological adoption, resistance to change.
[ARTICLE_TEXT]
Creative generation with directional prompt
Write a short story about a space journey. The tone should evoke solitude and wonder. Start with a scene where the character watches the Earth recede.
Reasoning guided by a hint
Solve this math problem. Hint: think about using the Pythagorean theorem and decomposing the figure into right triangles.
[PROBLEM_STATEMENT]
Practical usage
To apply Directional Stimulus, first identify the specific aspect of the response you want to improve, then add a targeted hint in your prompt: a keyword, a thematic constraint, or a structural prompt. For example, instead of simply asking 'summarize this text', add the 3-4 key themes the summary should cover. This technique is especially useful when the model's responses are too vague or off-topic.
Related concepts
FAQ
What is the difference between Directional Stimulus and few-shot prompting?
Does Directional Stimulus work with all language models?
How to choose the right directional stimulus?
See also
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More definitions
Discriminative Model: Definition and Examples
A discriminative model is a type of machine learning model that learns to distinguish and classify data by directly modeling the bound
Dropout: Definition and Examples
Dropout is a regularization technique used during neural network training that randomly deactivates a fraction of neurons at each iteration to prevent overfitting.
DSPy: Definition and Examples
DSPy is a Python framework developed by Stanford NLP that allows you to program and automatically optimize language model (LLM) pipelines, replacing manual prompt engineering with a declarative, compiled approach.
ElevenLabs: Definition and Examples
ElevenLabs is a company specializing in AI-powered speech synthesis, capable of generating realistic and expressive voices from text.
Embedding: Definition and Examples
An embedding is a numerical representation of text, image, or other data type as a vector of numbers, enabling AI models to measure semantic similarity between items.
Emotional Prompting: Definition and Examples
A prompt engineering technique that involves incorporating emotional elements into instructions given to an AI model to improve the quality and
Get new prompts every week
Join our newsletter.