Script-Strategy Aligned Generation: Aligning LLMs with Expert-Crafted Dialogue Scripts and Therapeutic Strategies for Psychotherapy

Xin Sun, Jan de Wit, Zhuying Li, Jiahuan Pei, Abdallah El Ali, Jos A. Bosch

TL;DR

Large Language Models (LLMs) offer the empathy needed for psychotherapy but lack the controllability of traditional rule-based systems. This paper introduces Script-Strategy Aligned Generation (SSAG), a framework that guides LLMs using high-level therapeutic strategies and partial scripts, achieving expert-level therapeutic quality while reducing manual scripting effort by over 60%.

What Problem Does This Paper Address?

Digital psychotherapy chatbots typically face a "rigidity vs. risk" trade-off. Traditional systems rely on rule-based designs and exhaustive, expert-crafted scripts. While safe and clinically grounded, they are often robotic, non-adaptive, and incredibly labor-intensive to build. On the other hand, pure LLMs are fluent and empathetic but struggle with "hallucinations," lack domain-specific structure, and can deviate from evidence-based therapeutic principles like Motivational Interviewing (MI) or Cognitive Behavioral Therapy (CBT).

The authors seek a middle ground: How can we leverage the generative power of LLMs while ensuring they strictly adhere to expert-guided therapeutic flows without requiring experts to write every single possible line of dialogue?

Methods

The researchers proposed two levels of alignment:

  1. Script-Aligned Generation (SAG): A "strict" approach where the LLM is aligned with a full, tree-structured expert script. The authors compared two implementation methods: Supervised Fine-Tuning (SFT) and Prompting using the Tree-of-Thoughts (ToT) technique combined with Breadth-First Search (BFS) to navigate dialogue branches.
  2. Script-Strategy Aligned Generation (SSAG): A more flexible "collaborative" approach. Instead of a full script, experts provide only core elements: psychotherapeutic topics, key questions, and optional advice.

As shown in the figure below, SSAG operates in two steps:

  • Step 1 (Strategy Prediction): The model predicts the next therapeutic move (e.g., "Should I ask a question, provide a reflection, or give advice?").
  • Step 2 (Response Generation): The model generates a response aligned with that strategy. If "reflection" is chosen, the LLM generates it freely; if "question" or "advice" is chosen, it retrieves and paraphrases the expert-provided content.
Visualization of the SSAG framework and its two-step process compared to the strict SAG approach.

Datasets

  • Expert-Crafted Dataset: The authors collaborated with 15 psychology experts to create a new dataset of over 1,800 expert-written utterances across 26 psychotherapeutic topics (e.g., sleep hygiene, exercise barriers) grounded in MI and CBT.
  • Benchmarking Datasets: They used AnnoMI and BiMISC (open-source MI datasets) to validate the model's ability to predict therapeutic strategies.

Key Insights and Ideas

  • Prompting Beats Fine-Tuning: Surprisingly, prompting (via Tree-of-Thoughts) outperformed fine-tuning for aligning LLMs with complex dialogue trees. The authors suggest that prompting allows the model to better navigate structured paths while maintaining the adaptability needed to handle "out-of-script" user inputs.
  • The Strategy Layer as a Safety Buffer: By forcing the model to first predict a strategy (like "Reflective Listening"), the framework ensures the LLM stays within therapeutic bounds even when generating free-form text.
  • LLMs as "Co-Authors": SSAG shifts the expert's role from "scriptwriter" to "director." Experts define the high-level goals and key questions, while the LLM handles the "connective tissue" of the conversation, such as empathetic transitions and paraphrasing.

Key Results

The researchers conducted two studies to validate their approach:

  • Study 1 (N=43): Aligned LLMs (SAG) significantly outperformed both rule-based systems and pure LLMs in empathy, dialogue relevance, and adherence to MI principles.
  • Study 2 (10-day field study, N=21): The flexible SSAG approach achieved comparable therapeutic effectiveness to the full-scripted SAG approach.
  • Efficiency Gain: SSAG required only 37.5% of the expert-authored content compared to the full script, drastically reducing the development bottleneck.
  • Behavioral Impact: Participants using the SSAG and SAG chatbots showed sustained increases in intrinsic motivation and daily step counts over the 10-day period.
An example of the complex, tree-structured dialogue scripts that experts traditionally have to craft manually.

Limitations and Future Work

While promising, the authors note several areas for improvement:

  • Sample Size: The field study was relatively small (N=21) and short-term (10 days). Longitudinal studies are needed to see if the "empathy" of the bot wears off over time.
  • Generalizability: The dataset focused on physical activity interventions using MI and CBT. It remains to be seen how well SSAG scales to more intensive forms of psychotherapy or different cultural contexts.
  • Workload Measurement: While the number of utterances was reduced, the authors did not directly measure the time experts saved, which is a crucial metric for real-world scalability.
  • Safety: Even with strategy alignment, deploying LLMs in high-stakes mental health contexts requires robust real-time monitoring and fallback mechanisms for high-risk situations.

Summary updated

BibTeX
@article{sun2025script,
  author = {Xin Sun and Jan de Wit and Zhuying Li and Jiahuan Pei and Abdallah El Ali and Jos A. Bosch},
  title = {{Script-Strategy Aligned Generation: Aligning LLMs with Expert-Crafted Dialogue Scripts and Therapeutic Strategies for Psychotherapy}},
  journal = {Proc. ACM Hum. Comput. Interact.},
  year = {2025},
  doi = {10.1145/3757655},
}

Loading related content...

Figure