[KongchangAI]
· 2 min read· 1,387 words

CounselTraj: Dialogue-Act Trajectory Planning Makes AI Counseling More Complete

CounselTraj: Dialogue-Act Trajectory Planning Makes AI Counseling More Complete

CounselTraj uses dialogue-act trajectory planning to generate session-level Chinese counseling dialogues and trains a dedicated model.

The article introduces CounselTraj, a trajectory planning framework for long-dialogue synthesis in psychological counseling. To address the scarcity of real counseling records due to privacy and the brevity of existing synthetic data, the method learns dialogue-act patterns from human counselor role-play dialogues, then plans coordinated behavior trajectories for client and counselor as flexible guidance to drive session-level generation. On three Chinese datasets, its generated sessions outperform direct extension and random-trajectory extension in completeness, coherence, and intervention quality, showing the gain comes from structured guidance rather than longer dialogues. The team built the 10K+ CounselTrajD dataset and trained CounselTrajLM, which outperforms public Chinese counseling models. Code and models are open-sourced.

Why Psychological Counseling Dialogue Data Is So Scarce

Demand for psychological counseling keeps growing, and LLM-based assistive systems are seen as an important way to relieve the pressure on counselors. But training such systems faces a fundamental contradiction: high-quality real counseling records are extremely difficult to obtain and share due to privacy concerns, making synthetic dialogue a key alternative.

The shortcoming of existing synthetic datasets is that they are "short." Although they cover diverse scenarios and client profiles, they often contain only brief exchange fragments and cannot reproduce the procedural nature of a complete counseling session—how counseling opens, how it explores in depth, how interventions are advanced, and how it concludes. All of this process information is lost in short dialogues.

CounselTraj paper source page

CounselTraj's Core Idea: Plan the Trajectory First, Then Generate the Dialogue

To address these issues, the researchers propose CounselTraj, a framework based on dialogue-act trajectory planning, with the goal of extending brief synthetic dialogues into session-level psychological counseling dialogues with process awareness.

Its approach has two steps. First, it learns dialogue-act patterns from role-play counseling dialogues produced by human counselors; second, it plans mutually coordinated behavior trajectories for the client and the counselor respectively, and uses these trajectories as flexible guidance to drive the generation of long dialogues.

This "plan first, generate later" design is fundamentally different from simply having a model continue a dialogue: the trajectory provides structural constraints for the generation process, so that a counseling session does not lose direction midway.

How Trajectories Act as a "Flexible Scaffold"

One detail: the trajectory is not a rigid template. The paper describes it as "flexible guidance"—it specifies the general direction of counseling behavior but leaves room for specific expression. This balance allows the generated dialogue to maintain the integrity of the counseling process without appearing mechanical and rigid.

Dialogue-act originates from speech act theory in pragmatics and computational linguistics: every utterance, beyond its literal content, also carries a functional intent, such as asking, clarifying, empathizing, advising, or summarizing. In the context of psychological counseling, dialogue acts characterize what the counselor is "doing" at a given moment, rather than "saying." Representing a complete counseling session as a sequence of dialogue acts yields a dialogue-act trajectory. Modeling at the trajectory level abstracts dialogue structure away from specific wording, making it easier to learn common patterns of the counseling process and allowing the generation stage to reuse these patterns without copying the original sentences. This line of thinking is consistent with dialogue planning in task-oriented dialogue systems, except that in the psychological counseling scenario, the behavior space focuses more on therapeutic intent than on information slot filling.

The term flexible scaffold can be compared with the "plan-and-write" paradigm in natural language generation. In tasks such as story generation and long-form writing, researchers first produce an event sequence or outline of key points and then generate the final text from it, finding that this approach maintains long-range consistency better than end-to-end continuation. CounselTraj's trajectory plays a similar role: it constrains the macro-level order of behaviors rather than sentence-by-sentence content, so the model can still freely organize language at each behavior node and fit the client's specific concerns. Compared with hard templates, the cost of flexible guidance is slightly weaker controllability—the model may still deviate from the trajectory—but the benefit is avoiding stereotyped, unnatural dialogues. This trade-off between "structural constraint + expressive freedom" is a design compromise common in long-dialogue synthesis.

Experimental Results: Improvements in Both Completeness and Intervention Quality

The researchers conducted experiments on three Chinese synthetic psychological counseling datasets. The comparison targets included two baselines: direct extension, and extension using randomly sampled trajectories.

The results show that sessions generated by CounselTraj are more complete and coherent, and the quality of counselor interventions is higher. This indicates that the performance improvement does not come from the simple fact that "the dialogue became longer," but from the structured guidance brought by trajectory planning—random trajectories can also lengthen dialogues but cannot achieve the same effect.

The randomly sampled trajectory baseline is a key ablation design in the evaluation. It keeps the dialogue length and trajectory format consistent with CounselTraj, except that the behavior order of the trajectory is randomly sampled rather than learned. If only "short dialogues" and "long dialogues" were compared, the performance improvement might simply be a length effect; adding the random trajectory baseline separates the two factors of "getting longer" and "being structured." CounselTraj outperforming random trajectories shows that the gain comes from the reasonableness of the behavior sequence, not merely the number of tokens. Such controls are especially important in synthetic data research, because generative models are often sensitive to input length and context richness themselves, and it is easy to overestimate the method's contribution without appropriate baselines.

From Dataset to Model: CounselTrajD and CounselTrajLM

Building on the framework, the team constructed CounselTrajD, a dataset containing more than 10K process-guided Chinese psychological counseling dialogues. This scale has practical value in the field of Chinese synthetic psychological counseling data.

Leveraging this dataset, the researchers trained CounselTrajLM, specifically for counseling response generation. Evaluation was conducted at both the response level and the session level: response quality, therapeutic understanding and intervention ability, and the coherence and progression of the counseling process were all dimensions examined.

The conclusion is that CounselTrajLM outperforms publicly available Chinese psychological counseling models on multiple dimensions. This means that process-aware training data can indeed translate into improvements in model capability, not just an increase in data scale.

The dual-level evaluation at the response level and session level reflects the inherent difficulty of evaluating psychological counseling dialogues. The response level focuses on single-turn quality, with commonly used metrics including empathic expression, therapeutic understanding, and appropriateness of advice, which can be scored by human raters or judged by strong models; the session level focuses on cross-turn procedural progression, such as whether exploration and intervention are completed in a reasonable order and whether topic breaks or repetition occur. Good single turns do not equal an effective whole session—a dialogue pieced together from high-quality single-turn responses may lack overall structure, which is exactly the problem that process-aware data aims to solve. Dual-level evaluation therefore becomes a necessary means of testing "whether trajectory planning truly works"; reporting only response quality is insufficient to support claims about the effectiveness of session-level methods.

Open Resources and Research Significance

The paper's code and models are publicly available in the UEC-InabaLab/CounselTraj repository on GitHub. For Chinese psychological counseling AI teams hoping to reproduce the work or continue research on this basis, this is a directly usable starting point.

From a broader perspective, the value of this work lies in proposing a transferable idea: when real data cannot be obtained due to privacy, rather than merely pursuing the quantity of synthetic data, it is better to inject structural knowledge of professional processes into the generation process. Dialogue-act trajectory planning is precisely one way to encode counselors' professional experience into the data generation pipeline.

Limitations and Future Directions

Current validation is concentrated on Chinese datasets, and applicability in cross-lingual and cross-cultural counseling scenarios has not yet been addressed. In addition, trajectory learning relies on role-play dialogues produced by human counselors, and the acquisition cost and quality control of such data remain issues that must be faced in practical deployment.

One-line Summary

CounselTraj uses dialogue-act trajectory planning to generate session-level Chinese psychological counseling dialogues and trains a dedicated model.

Paragraph Summary

This article introduces CounselTraj, a trajectory planning framework for long-dialogue synthesis in psychological counseling. To address the pain point that real counseling records are difficult to obtain due to privacy and that existing synthetic data are mostly brief fragments, the method first learns dialogue-act patterns from role-play dialogues by human counselors, then plans mutually coordinated behavior trajectories for the client and counselor, using flexible guidance to drive session-level dialogue generation. On three Chinese datasets, the completeness, coherence, and counselor intervention quality of its generated sessions outperform both direct extension and random-trajectory extension, showing that the gain comes from structured guidance rather than longer dialogues. Based on this, the team built the CounselTrajD dataset with over 10K dialogues and trained the response generation model CounselTrajLM, which outperforms publicly available Chinese counseling models in response quality and counseling process progression. The code and models are open-sourced.

#CounselTraj#psychological counseling AI#dialogue-act trajectory planning#synthetic counseling dialogue#LLM counseling model
Share:

Related articles