File size: 6,943 Bytes
8e96f4d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
---
pretty_name: CounselTrajD
language:
- zh
license:
- cc0-1.0
- apache-2.0
- cc-by-sa-4.0
task_categories:
- text-generation
size_categories:
- 10K<n<100K
tags:
- counseling
- synthetic
- dialogue
- dialogue-act
- counseltraj
configs:
- config_name: default
  default: true
  data_files:
  - split: train
    path:
    - data/smilechat_derived.jsonl.gz
    - data/psydt_derived.jsonl.gz
    - data/cpsycound_derived.jsonl.gz
- config_name: smilechat
  data_files:
  - split: train
    path: data/smilechat_derived.jsonl.gz
- config_name: psydtcorpus
  data_files:
  - split: train
    path: data/psydt_derived.jsonl.gz
- config_name: cpsycound
  data_files:
  - split: train
    path: data/cpsycound_derived.jsonl.gz
---

# CounselTrajD

📄 **Paper:** [CounselTraj (arXiv:2611.24168)](https://arxiv.org/abs/2611.24168)

💻 **Project:** [GitHub](https://github.com/UEC-InabaLab/CounselTraj) · [中文说明](https://github.com/UEC-InabaLab/CounselTraj/blob/master/README_zh-CN.md)

CounselTrajD contains **10,964 synthetic Chinese counseling dialogues**, totaling
**958,791 utterances** across **15 topics**. The mean length is **87.45 individual
utterances per dialogue**. These are generated expansions conditioned on seed
conversations, rather than newly collected human counseling sessions.

The three compressed JSONL files and their manifest are identical to the GitHub
data release. They are separated by provenance to preserve attribution and make
source-specific licensing explicit.

## Load the dataset

```bash
pip install datasets
```

```python
from datasets import load_dataset

dataset = load_dataset("UEC-InabaLab/CounselTrajD", split="train")
print(len(dataset))  # 10964
messages = dataset[0]["messages"]
```

The `train` split contains the entire public release; no predefined evaluation
split is supplied. The default configuration includes all three sources. To load
a single source or stream the data:

```python
smilechat = load_dataset("UEC-InabaLab/CounselTrajD", "smilechat", split="train")
psydt = load_dataset("UEC-InabaLab/CounselTrajD", "psydtcorpus", split="train")
cpsy = load_dataset("UEC-InabaLab/CounselTrajD", "cpsycound", split="train")

stream = load_dataset("UEC-InabaLab/CounselTrajD", split="train", streaming=True)
first_dialogue = next(iter(stream))
```

After downloading this repository, the standard-library loader can verify the
file checksums, unique IDs, dialogue counts, and utterance counts:

```bash
python3 scripts/load_counseltraj.py
```

The full-record comparison and configuration loading checks are documented in
[validation.json](validation.json). [SHA256SUMS](SHA256SUMS) covers the release files.

## Sources and licenses

**Licenses apply by source, not as interchangeable license options for the whole
dataset.** Each record includes its applicable `license` identifier. Please
retain attribution and notices as required by the respective source terms.

| Source of seed conversations | Configuration | Dialogues | License | Paper |
| --- | --- | ---: | --- | --- |
| SmileChat | `smilechat` | 7,672 | CC0-1.0 | [SMILE (Qiu et al., 2024)](https://aclanthology.org/2024.findings-emnlp.34/) |
| PsyDTCorpus | `psydtcorpus` | 2,595 | Apache-2.0 | [PsyDT (Xie et al., 2025)](https://aclanthology.org/2025.acl-long.55/) |
| CPsyCounD | `cpsycound` | 697 | CC-BY-SA-4.0 | [CPsyCoun (Zhang et al., 2024)](https://aclanthology.org/2024.findings-acl.830/) |
| **Total** | `default` | **10,964** | **Source-specific terms** | |

See [LICENSING.md](LICENSING.md), [THIRD_PARTY_NOTICES.md](THIRD_PARTY_NOTICES.md),
and the complete license texts in [LICENSES](LICENSES). The data do not inherit a
blanket code license.

## Statistics

| Statistic | Overall | Client | Counselor |
| --- | ---: | ---: | ---: |
| Dialogues | 10,964 | — | — |
| Utterances | 958,791 | 473,910 | 484,881 |
| Mean utterances per dialogue | 87.45 | 43.22 | 44.22 |
| Characters | 42,197,155 | 18,321,830 | 23,875,325 |
| Topics | 15 | — | — |

Utterances are individual messages. Character counts exclude speaker and tag
markup. Counts, topic frequencies, and source-file SHA256 checksums are recorded
in [data/manifest.json](data/manifest.json).

## Schema

Each JSONL record contains:

| Field | Meaning |
| --- | --- |
| `id` | Stable unique CounselTrajD identifier |
| `source_dataset`, `source_id` | Source of the seed conversation and original record identifier |
| `topic`, `topic_zh` | Topic labels |
| `license` | Source-specific release license identifier |
| `messages` | Ordered generated messages with `role`, `dialogue_act`, and `content` |
| `planned_dialogue_acts` | Intended trajectory entries with `role` and `dialogue_act` |

`user` denotes the client, and `assistant` denotes the counselor. A dialogue may
start with a counselor greeting; strict speaker alternation is not enforced.

<a id="dialogue-acts"></a>

### Dialogue-act fields

The message-level `dialogue_act` values preserve tags emitted during generation.
They are stored separately from the planned trajectory and are **not guaranteed
to align with it one-to-one**. In this release, 114 dialogues have different
planned and generated sequence lengths. These records are retained without
truncation or silent repair. Label definitions are documented in the
[project README](https://github.com/UEC-InabaLab/CounselTraj#dialogue-acts).

The export excludes raw seed dialogue text, API wrappers, request IDs, billing,
usage metadata, and internal file paths. See the [data card](data/README.md) for
additional schema details.

## Construction and use

CounselTraj learns session-level interaction patterns from
[KokoroChat](https://github.com/UEC-InabaLab/KokoroChat), plans dialogue-act
trajectories from brief dialogues, and uses these plans to guide dialogue
expansion. The CounselTrajD release was generated using GPT-5.5. The
[construction overview](https://github.com/UEC-InabaLab/CounselTraj#data-construction)
and [DA annotation prompts](https://github.com/UEC-InabaLab/CounselTraj/tree/master/annotation)
are available in the project repository. The
[CounselTrajLM model versions](https://github.com/UEC-InabaLab/CounselTraj#counseltrajlm)
are fine-tuned on this dataset for next counselor response generation.

This dataset is intended for counseling dialogue research. Synthetic generation
and automated pattern screening do not establish complete anonymity, clinical
safety, or freedom from bias. The data are not a substitute for professional
diagnosis or treatment.

## Citation

```bibtex
@inproceedings{qi-inaba-2027-counseltraj,
    title = "{CounselTraj}: Synthesizing Process-Aware Psychological Counseling Dialogues via Dialogue-Act Trajectory Planning",
    author = "Qi, Zhiyang and Inaba, Michimasa",
    booktitle = "Proceedings of the 20th Conference of the European Chapter of the Association for Computational Linguistics",
    year = "2027",
    url = "https://arxiv.org/abs/2611.24168",
}
```