HeAAAAA commited on
Commit
0f09eed
·
verified ·
1 Parent(s): 76bd160

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +18 -69
README.md CHANGED
@@ -47,104 +47,53 @@ language:
47
 
48
  # 1. Introduction
49
 
50
- We introduces Crab, a novel Configurable Role-Playing (RP) LLM with Assessing Benchmark, which consists of Role-Centric Dataset Curation, Persona-Embodying LLM Construction, and Comprehensive Benchmark Creation for RP dialogue generation.
51
- Distinct from traditional RP models that employ only several preset roles, Crab enables dynamic configuration of desired roles, thereby enhancing related flexibility and adaptability.
52
- To effectively train RP-LLMs, we curated the largest RP training dataset.
53
- The dataset provides a detailed role overview for each dialogue, including character profile, conversation scenario, and tagged topic, capturing a broad range of role-based behaviors, emotions, and interactions.
54
- We also noticed that current benchmarks lack both proper evaluation standards and methods.
55
- Thus, to validate RP-LLMs' effectiveness, we introduced a new benchmark containing an evaluation standard, a test dataset with manual annotations, and a reward model RoleRM designed to automatically assess specific aspects of RP while aligning with human perception.
56
- Sufficient experiments reveal that RoleRM significantly outperforms ChatGPT and other evaluation methods in conducting fine-grained evaluations of RP.
57
- Also, RP-LLMs powered by Crab demonstrate superior performance across various fine-grained aspects.
58
 
59
- More details can be seen at Github {https://github.com/KaiHe-better/Crab?tab=readme-ov-file}.
60
 
61
 
62
 
 
63
 
64
- # 2. Configurable Role-Playing LLM
65
 
66
- <div align="center">
67
 
68
- <!-- Logo 图片 -->
69
- <img src="https://cdn-uploads.huggingface.co/production/uploads/650add6348983c90ab688b6e/fDaDq8tzBBUuEteND8N53.png" width="500" style="border-radius: 20px;"/>
70
 
71
- </div>
72
 
 
73
 
74
- Unlike existing RP-LLMs, where a single role is trained with numerous dialogues, our approach introduces a diverse range of roles with detailed configuration information
75
- while keeping dialogue per role minimal. This enables LLMs to generate dialogues dynamically from configurations rather than memorizing specific roles, enhancing flexibility and adaptability. Additionally, we propose RoleRM in our benchmarks to address the challenge of evaluating RP performance.
76
 
77
 
78
- # 3. Performance
79
-
80
- | Models | Overall | Language Fluency | Language Relevance | Role Language | Role Knowledge | Emotional Expression | Interactive Engagement |
81
- |----------------------|---------|------------------|---------------------|----------------|-----------------|-----------------------|------------------------|
82
- | Llama-2-7B | 1.57 | 2.19 | 1.83 | 1.63 | 1.37 | 1.21 | 1.21 |
83
- | Llama-3-8B | 1.99 | 2.56 | 2.36 | 2.09 | 1.78 | 1.56 | 1.60 |
84
- | Llama-3.1-8B | 1.94 | 2.52 | 2.30 | 2.01 | 1.75 | 1.47 | 1.57 |
85
- | Llama-2-7B-Crab | 2.14 | 2.73 | 2.35 | 2.07 | 1.88 | 1.69 | 2.12 |
86
- | Llama-3-8B-Crab | 2.22 | 2.81 | 2.51 | 2.16 | 1.95 | 1.77 | 2.13 |
87
- | **Llama-3.1-8B-Crab**| **2.23**| **2.87** | **2.56** | **2.17** | **1.95** | **1.76** | **2.09** |
88
- | GPT3.5 | 1.66 | 2.35 | 2.11 | 1.72 | 1.50 | 1.11 | 1.17 |
89
- | GPT4o | 1.86 | 2.44 | 2.27 | 1.90 | 1.69 | 1.33 | 1.51 |
90
- | GPT4 | 2.13 | 2.73 | 2.53 | 2.18 | 1.90 | 1.62 | 1.86 |
91
- | CharacterGLM-6B | 1.83 | 2.37 | 1.96 | 1.80 | 1.60 | 1.39 | 1.86 |
92
- | Pygmalion-2-7B | 2.11 | 2.82 | 2.49 | 2.01 | 1.86 | 1.58 | 1.91 |
93
- | Haruhi-Zero-7B | 2.17 | 2.80 | 2.49 | 2.12 | 2.00 | 1.74 | 1.86 |
94
-
95
-
96
- Table 1: The results of evaluation on the test data of our Benchmark. The listed scores are from our RoleRM. Bold fonts indicate the best results and underlined fonts represent the second best. The subscripts represent the difference between each model and Crab (Llama-3.1-8B-Crab) counterpart.
97
 
 
98
 
99
 
100
  <div align="center">
101
 
102
  <!-- Logo 图片 -->
103
- <img src="https://cdn-uploads.huggingface.co/production/uploads/650add6348983c90ab688b6e/veerjA_MP5ZXmOxjAdZRO.png" width="500" style="border-radius: 20px;"/>
104
-
105
- </div>
106
- Figure 2: Human evaluation comparing Crab, GPT-3.5, and Pygmalion-2-7B. We selected a general LLM and one well-known RP-LLM to compare their generations against our Crab. For the same dialogue, annotators ranked responses from the three LLMs.
107
-
108
-
109
- | Models | Overall | Language Fluency | Language Relevance | Role Language | Role Knowledge | Emotional Expression | Interactive Engagement |
110
- |---------------|---------|------------------|---------------------|----------------|-----------------|-----------------------|------------------------|
111
- | **Crab (sampled)** | **2.20** | **2.71** | **2.45** | **2.15** | **1.95** | **1.84** | **2.12** |
112
- | w/o base | 2.17 | 2.72 | 2.41 | 2.07 | 1.89 | 1.79 | 2.11 |
113
- | w/o ref. | 2.15 | 2.70 | 2.40 | 2.01 | 1.85 | 1.82 | 2.11 |
114
- | w/o scene | 2.15 | 2.69 | 2.39 | 2.10 | 1.90 | 1.81 | 1.98 |
115
-
116
- Table 2: The ablation study for Crab. Due to missing attributes in our dataset, we sampled 1,000 fully attributed instances as the sub-test set to conduct the ablation experiments, referred to as Crab (sampled). The notation “w/o base" means without base role information for training RP-LLMs, including age, gender, personality, description, and expression; “w/o ref." means without catchphrases and knowledge; “w/o scene" means without interlocutor, relation, scenario, and tags.
117
-
118
- <br>
119
 
120
- # 4. Three Datasets
121
- We publish three datasets, including Crab role-playing train set, Crab role-playing evaluation benchmark, and manually annotated role-playing evaluation dataset (can be used for training a Role-palying Evaluation Model).
122
 
123
- ## 4.1 Crab role-playing train set:
124
- {https://huggingface.co/datasets/HeAAAAA/Crab-role-playing-train-set}
125
 
126
- ## 4.2 Crab role-playing evaluation benchmark:
127
- {https://huggingface.co/datasets/HeAAAAA/Crab-role-playing-evaluation-benchmark}
128
 
129
- ## 4.3 Crab manually annotated role-playing evaluation dataset:
130
- {https://huggingface.co/datasets/HeAAAAA/Crab-manually-annotated-role-playing-evaluation-dataset}
131
 
132
 
133
- <br>
 
134
 
135
- # 5. Fine-tuned Role-playing Model
136
- We release a fine-tuned model to achieve configurable Role-Playing tasks.
137
- {https://huggingface.co/HeAAAAA/Crab}
138
 
139
- <br>
140
 
141
- # 6. Role-palying Evaluation Model
142
- We release a trained model to automate the evaluation of role-playing tasks.
143
- {https://huggingface.co/HeAAAAA/RoleRM}
144
 
145
- <br>
146
 
147
- # 7. Citation
148
 
149
  ```bibtex
150
  @misc{kimiteam2025kimivltechnicalreport,
 
47
 
48
  # 1. Introduction
49
 
50
+ This is a fine-tuned evaluator for roly-playing tasks. The used training data set can be seen in [Annotated Role-playing Evaluation Dataset](https://huggingface.co/datasets/HeAAAAA/Crab-manually-annotated-role-playing-evaluation-dataset). More details can be seen in [Crab](https://huggingface.co/HeAAAAA/Crab).
 
 
 
 
 
 
 
51
 
 
52
 
53
 
54
 
55
+ # 2. Six Aspect-specific Metrics
56
 
57
+ - **Language Fluency**: Pertains to the natural and fluent communication style, independent of grammatical strictness or contextual background.
58
 
59
+ - **Language Relevance**: Focuses on the ability to stay on topic and respond appropriately, essentially testing the capacity to follow instructions.
60
 
61
+ - **Role Language**: Evaluates whether the text reflects the vocabulary and tone specific to roles, including appropriate actions.
 
62
 
63
+ - **Role Knowledge**: Involves a deep understanding of both general knowledge and information specific to the roles, ensuring accurate and informed role portrayal.
64
 
65
+ - **Emotional Expression**: Reviews the suitability of emotions, emotional intelligence, and empathy expressed in context with the role's traits.
66
 
67
+ - **Interactive Engagement**: Measures the text's ability to draw the user in, encouraging ongoing interaction and contributing dynamically to the dialogue.
 
68
 
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
 
71
+ # 3. Performance
72
 
73
 
74
  <div align="center">
75
 
76
  <!-- Logo 图片 -->
77
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/650add6348983c90ab688b6e/22mf5uc1zpYLD0vGLtWM_.png" width="500" style="border-radius: 20px;"/>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
 
79
+ Figure 1: The Spearman and Pearson correlations with human evaluations for the proposed RoleRM, ChatGPT, PairEval, G-Eval, and GPTScore. We average all aspects for calculations.
 
80
 
81
+ </div>
 
82
 
 
 
83
 
84
+ <div align="center">
 
85
 
86
 
87
+ <!-- Logo 图片 -->
88
+ <img src="https://cdn-uploads.huggingface.co/production/uploads/650add6348983c90ab688b6e/VKwol9kSa6qJPFGZ-B1jR.png" width="500" style="border-radius: 20px;"/>
89
 
90
+ Figure 2: The comparison between RoleRM and ChatGPT. We calculate MAE to illustrate the gaps of Human Annotations with RoleRM and ChatGPT.
 
 
91
 
92
+ </div>
93
 
 
 
 
94
 
 
95
 
96
+ # 4. Citation
97
 
98
  ```bibtex
99
  @misc{kimiteam2025kimivltechnicalreport,