Convert Language Model into a Value-based Strategic Planner

Xiaoyu Wang, Yue Zhao, Qingqing Gu, Zhonglin Jiang, Yong Chen, Luo Ji

Sure, here's a blog-style summary of the paper "Convert Language Model into a Value-based Strategic Planner":

TL;DR

This paper introduces straQ, a novel framework that transforms Large Language Models (LLMs) into value-based strategic planners for Emotional Support Conversations (ESC). By framing ESC as a strategy-level Markov Decision Process (MDP) and leveraging Q-learning, straQ enables LLMs to select optimal long-term strategies, significantly improving response quality and planning compared to existing methods.

What Problem Does This Paper Address?

Emotional Support Conversations (ESC) aim to help individuals manage emotional distress through dialogue. While LLMs have shown promise in this area, most existing approaches focus on immediate, turn-by-turn responses without a clear long-term strategy. This can lead to suboptimal conversations that fail to effectively address the user's underlying emotional challenges. The paper highlights that current LLM-based ESC often lacks a defined state model perspective, resulting in a fragmented and less effective support experience. The core problem is how to equip LLMs with the ability to plan and execute strategies that optimize for long-term user satisfaction in ESC.

Methods

The paper proposes straQ, a framework that converts LLMs into value-based strategic planners. The core idea is to treat ESC as a strategy-level MDP*, where the LLM itself acts as a Q-function.

Here's a breakdown of the key techniques:

  • Strategy-Level MDP Formulation: The ESC task is redefined as an MDP where states are defined by conversation context (description, emotion, history, query), and actions are the discrete conversational strategies (e.g., "Question," "Reflection of Feelings").
  • LLM as Q-Function: A pretrained LLM is finetuned to act as a Q-function. It takes the current state (conversation context) and a potential strategy as input and outputs a Q-value, representing the expected long-term return of choosing that strategy.
  • Q-Learning for Strategy Selection: The framework employs Deep Q-Learning (DQN) principles. The Q-value is approximated by averaging the logits of action tokens corresponding to available strategies. The LLM is trained using the Bellman equation to minimize the TD loss, effectively learning to predict the "value" of different strategies.
  • Plug-and-Play Planner: straQ* acts as a lightweight, plug-and-play module. Once the optimal strategy is selected by the Q-function, it can then guide another LLM (or the same one) to generate a response that aligns with that strategy.
  • Reward Mechanisms: Two reward mechanisms are introduced:
  • Distillation: A strong LLM (like GPT-4) provides a score for (state, strategy) pairs, distilling knowledge from a teacher model.
  • Imitation: Expert demonstrations (strategy choices from the dataset) are assigned a reward of +1, while randomly sampled strategies get -1, mimicking expert behavior.

Datasets

The paper utilizes two established datasets for training and evaluation:

  • ESConv: This dataset is used for both training and in-domain (ID) testing. It provides 8 distinct support strategies categorized into three stages: Exploration, Comforting, and Action.
  • EmpatheticDialogues: This dataset is used for out-of-domain (OOD) evaluation. It does not have explicit strategy annotations, making it a good benchmark for generalization.

Key Insights and Ideas

  • LLMs as Value-Based Planners: The most significant insight is demonstrating that LLMs can be effectively finetuned using RL principles (specifically Q-learning) to act as strategic planners, optimizing for long-term conversational goals rather than just immediate responses.
  • Strategy-Level MDP is Effective: Framing ESC as a strategy-level MDP allows for a more structured and goal-oriented approach to conversation, moving beyond simple next-token prediction.
  • Imitation vs. Distillation Rewards: The study reveals interesting trade-offs: imitation-based rewards lead to better performance on automatic metrics for in-domain tasks, while distillation-based rewards offer better generalization and human preference alignment in out-of-domain scenarios.
  • Balancing Strategy Usage: straQ* shows a more balanced utilization of different strategies compared to simpler fine-tuning methods, which might over-rely on common strategies or fail to predict less frequent ones.

Key Results

  • Improved Strategy Accuracy: straQ* significantly outperforms baselines in strategy prediction accuracy and reduces bias.
  • Higher Response Quality: straQ* achieves better results on automatic metrics like Bleu-2 and Rouge-L, indicating more relevant and higher-quality responses.
  • Human Evaluation Wins: In human evaluations, straQ*-distill, in particular, outperforms baseline methods across various metrics, including Fluency, Emotion, Acceptance, Effectiveness, Sensitivity, Alignment, and Satisfaction.
  • Generalization: straQ*-distill demonstrates strong generalization capabilities on out-of-domain datasets.
  • Long-Term Value Optimization: The framework demonstrably optimizes for long-term returns (value) rather than just immediate rewards, as evidenced by GPT-4 scoring.

Limitations and Future Work

  • Human Evaluation Bias: The authors acknowledge that human evaluation results might be subject to bias due to evaluators' awareness of scoring.
  • Dataset Size: While not a major issue for comparison, sample sizes for specific sub-categories might be insufficient for detailed analysis.
  • Scalability vs. Performance: Larger models improve performance but increase computational overhead and slow down inference. The paper opts for a 1B model for practical applications.
  • Future Work: The paper suggests exploring more sophisticated reward mechanisms and further investigating the trade-offs between different reward strategies for optimal performance across various scenarios. The potential for straQ* to be applied to other goal-oriented dialogue tasks is also implied.

Summary updated

BibTeX
@inproceedings{wang2025convert,
  author = {Xiaoyu Wang and Yue Zhao and Qingqing Gu and Zhonglin Jiang and Yong Chen and Luo Ji},
  title = {{Convert Language Model into a Value-based Strategic Planner}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure