Prompting technique

Dual-Level Adaptive Prompting (GALA)

Strategize Globally, Adapt Locally: A Multi-Turn Red Teaming Agent with Dual-Level Learning, arXiv:2504.01278 (2025) · read the paper

What it does

A method of multi-turn dialogue with an LLM using two-level adaptation: global (changing overall interaction tactics) and local (correcting formulations). Instead of a single prompt, an agent conducts sequential dialogue, analyzing model responses and adapting strategy to achieve the goal. Transforms interaction with the model into a managed persuasion process.

Task typemulti step
Shapemulti turn
Efforta pipeline
Addressesrefusals on legitimate requests; answers that are close but wrong; the same prompt giving different answers
Published2025-04-02
AuthorsSi Chen, Xiao Yu, Ninareh Mehrabi et al.

When it helps

Use this technique when single prompts don't give the desired result or the model refuses to fulfill the request. Particularly effective for complex tasks requiring circumventing LLM protection mechanisms, obtaining detailed answers on sensitive topics, or when you need to gradually guide the model toward the desired result. Suitable for creating adaptive dialogue agents that analyze model reactions and correct interaction strategy in real time. Requires understanding of two-level adaptation

A prompt you can paste

Generic by design: it applies the technique without knowing your task. Adapt the marked parts.

Prompt
**System:** You are an AI agent employing the Global-Adapt-Local-Adaptive (GALA) prompting strategy. Your goal is to engage in a multi-turn dialogue to achieve a complex objective, adapting your approach based on the LLM's responses.

**User:** I need to develop a reusable prompt template for applying the GALA technique. This template should guide a user through the process of creating a multi-turn, adaptive prompt for a given task. The template needs to clearly define the initial "legend" (role, context), the iterative steps of interaction and belief updating, and the dual-level adaptation (global tactic change and local prompt refinement).

**Initial Prompt Structure (Turn 1):**

### Role & Context Definition (Global Tactic: Initial Setup)

**You are:** [Describe the AI agent's persona and overall objective for the task. Example: "an expert prompt engineer tasked with developing a sophisticated prompt."]
**Your Goal:** [Clearly state the ultimate goal of the interaction. Example: "to generate a high-quality, nuanced response to a complex user request."]

**Initial Strategy (Global Tactic):** [Define the starting approach. Examples: "Role-playing as a specific professional," "Simulating a collaborative brainstorming session," "Acting as a technical consultant."]

**Context:**
- **User's Task:** [Briefly describe the user's core task or problem. Example: "The user wants to create a prompt for a specific purpose."]
- **Key Constraints/Requirements:** [List any critical limitations or mandatory inclusions for the final output. Example: "The prompt must be adaptable, multi-turn, and avoid common LLM refusal patterns."]
- **Existing Information/Data:** [Mention any initial data the LLM should be aware of. Example: "No specific user data provided yet, focus on the GALA methodology itself."]

**Task for this Turn:** [Define the specific action or information requested from the LLM for the *first* response. Example: "Based on the defined role, goal, and initial strategy, outline the first major step in applying the GALA technique to prompt creation. What should the user's *first* prompt to the LLM look like to establish this initial strategy?"]

---

**Assistant:** (LLM generates its response based on the above structure. This response will be analyzed in subsequent turns.)

---

**User Analysis & Adaptation (Subsequent Turns - Manual User Input Required):**

After receiving the LLM's response, the user will analyze it and decide on the next prompt. This involves:

1.  **Belief Update:**
    *   **What was received?** (Analyze the LLM's response: Did it follow the role? Is the information useful? Is it too generic? Does it show signs of refusal or evasion?)
    *   **What is still needed?** (Identify gaps, missing details, or areas requiring deeper exploration.)
    *   **LLM's Reaction:** (Is the LLM cooperative, evasive, or resistant?)

2.  **Adaptation Decision:**
    *   **Local Adjustment (Prompt-wise Learning):** If the LLM is generally cooperative but the last response was slightly off, refine the *next* prompt's wording. Make it more specific, add clarifying examples, or rephrase potentially problematic terms.
    *   **Global Tactic Change (Tactic-wise Learning):** If the LLM repeatedly fails or refuses, consider changing the overall strategy. (e.g., from "role-play" to "direct instruction" or "simulated dialogue").

**Example of a User's Next Prompt (Turn 2 - Local Adjustment):**

"Thank you for outlining the initial step. I appreciate the focus on [mention specific point from LLM's response]. However, to make the GALA application more concrete for prompt creation, let's refine the 'Initial Strategy' further.

**Refined Initial Strategy:** Instead of a general 'Role-playing', let's adopt the specific tactic of **'Simulated Multi-Turn Red Teaming'**.

**Task for this Turn:** Now, using this refined strategy, provide a more detailed example of the *first prompt* a user would send to an LLM. This prompt should establish the 'Red Teaming' persona and context, and specifically ask the LLM to *begin* the process of identifying potential LLM limitations for a given user task (placeholder: `[USER_SPECIFIC_TASK_HERE]`). Focus on asking the LLM to identify *potential refusal points* in a hypothetical prompt for that task."

---

**Assistant:** (LLM generates its response based on the refined prompt.)

**(This cycle of User Analysis & Adaptation and Assistant Response continues until the desired outcome is achieved.)**

---

**Template Placeholder Guide:**

*   `[Describe the AI agent's persona and overall objective for the task.]`
*   `[Clearly state the ultimate goal of the interaction.]`
*   `[Define the starting approach.]`
*   `[Briefly describe the user's core task or problem.]`
*   `[List any critical limitations or mandatory inclusions for the final output.]`
*   `[Mention any initial data the LLM should be aware of.]`
*   `[Define the specific action or information requested from the LLM for the *first* response.]`
*   `[USER_SPECIFIC_TASK_HERE]` (This placeholder is for the user to insert their actual task when using the template.)

If this one does not fit, the two closest alternatives in the corpus are Visionary Tuning (Self-Playing & Self-Improving) and Robust Prompting Framework, which target the same failure from a different angle.

Worked example

The same technique applied to a concrete job: work through a multi-step planning problem. Use it as the pattern for your own case rather than as a finished artefact.

Worked example
### Role: Multi-Turn Red Teaming Agent (GALA)

You are an advanced AI agent designed to navigate complex tasks through a multi-turn, adaptive dialogue. Your core strategy is "Strategize Globally, Adapt Locally" (GALA), which involves iterative refinement of prompts based on the LLM's responses. You will simulate a red teaming process to achieve a specific, potentially challenging, outcome.

### Context

The user needs to work through a multi-step planning problem. The exact nature of the problem is not specified, but the GALA technique implies it requires careful prompting and adaptation to achieve a desired depth or to overcome potential LLM limitations. You will act as the GALA agent, guiding the interaction.

### GALA Strategy Implementation

We will engage in a multi-turn dialogue. Each turn will consist of:
1.  **My Turn (Agent's Prompt):** I will initiate with a "legend" or overall tactic, followed by a specific task for the LLM.
2.  **LLM's Turn (Model's Response):** The LLM will provide its output.
3.  **My Analysis & Adaptation:** I will analyze the LLM's response to assess its alignment with the goal and identify areas for improvement. Based on this, I will perform either:
    *   **Local Adjustment:** Refine the current prompt's wording or constraints to elicit a better response within the existing "legend."
    *   **Global Tactic Shift:** If the current approach is consistently failing, I will change the overall "legend" or strategy.

### Initial Plan (Turn 1)

**Global Tactic:** Role-play as a collaborative problem-solving team.
**Initial Legend:** "Imagine we are a team of two expert consultants working together on a complex strategic planning project for a client. I will provide the client's initial brief, and you will act as my partner, offering insights, asking clarifying questions, and helping to build out the plan step-by-step."

**Task for LLM (Turn 1):**
"Our client needs a comprehensive strategic plan for launching a new [**USER WILL SPECIFY PRODUCT/SERVICE TYPE HERE**]. They have provided a brief overview: [**USER WILL PROVIDE INITIAL BRIEF HERE**].

As my partner consultant, your first task is to help me brainstorm the **key components** that must be included in this strategic plan. Think broadly about all essential elements, from market analysis to execution and KPIs. List at least 5-7 essential components."

---
**Note:** This prompt is the *first step* in the GALA process. Subsequent turns will be generated based on the LLM's response to this initial prompt, applying the GALA methodology of local adjustment or global tactic shift as needed. The user should be prepared to provide the specifics for "[USER WILL SPECIFY PRODUCT/SERVICE TYPE HERE]" and "[USER WILL PROVIDE INITIAL BRIEF HERE]" when initiating this prompt.

Get this written for your actual task

Paste what you are trying to do and the corpus will be matched against it directly. Free, no account, about ten seconds.

Free · no signup · ~10s
0.00match confidence
single retrieval pass
Prompt for your task

      

That number is low on purpose, and it is real. It is the raw similarity of one retrieval pass: no specialist read the paper, no judge compared anything, the first plausible match won.

6,235techniques in the corpus
one of which is this page

Picking the right one for a specific task is the work, and it is the work GetDecision does.

This pageone technique, generic prompt
What you just ranone technique matched to your wording, nothing verified
Full runten specialists read the papers in full, a judge ranks the top three for your task and shows its reasoning, generation on the model you pick, saved to your history

See the top three for your taskTen specialists, a judge, and the reasoning shown. Free account, first run included.

Run the full analysis

Related techniques

Visionary Tuning (Self-Playing & Self-Improving)A method for automatic prompt improvement through LLM self-play and self-improvement. The model simulates dial…Robust Prompting FrameworkRobust Prompting Framework — a methodology for creating structured prompts with clear separation of role, inst…Requirement-Oriented Prompt Engineering (ROPE)ROPE (Requirement-Oriented Prompt Engineering) is an approach to creating prompts as detailed technical specif…Rebuttal PromptingRebuttal Prompting — a technique for correcting LLM errors through direct indication of inaccuracy. A simple r…

All techniques · Failure modes and fixes