Datasets:

ArXiv:
License:
BaochangRen commited on
Commit
44a9b90
·
verified ·
1 Parent(s): 3d12b84

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +87 -3
README.md CHANGED
@@ -1,3 +1,87 @@
1
- ---
2
- license: mit
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ ---
4
+
5
+ <div align="center">
6
+ <h1 align="center"> KnowRL-Knowledge-Base </h1>
7
+ <h3 align="center"> Knowledge Base for "KnowRL: Exploring Knowledgeable Reinforcement Learning for Factuality" </h3>
8
+
9
+ <p align="center">
10
+   <a href="https://arxiv.org/abs/2506.19807">📄arXiv</a> •
11
+   <a href="https://github.com/zjunlp/KnowRL">💻GitHub Repo</a> •
12
+   <a href="https://huggingface.co/collections/zjunlp/knowrl-68485613feca77696d252a1d">🤗Models</a> •
13
+ <a href="https://huggingface.co/datasets/zjunlp/KnowRL-Train-Data">📚Training Data</a>
14
+ </p>
15
+
16
+ </div>
17
+
18
+ ## Overview
19
+
20
+ This repository contains the external knowledge base used in the research paper, **[KnowRL: Exploring Knowledgeable Reinforcement Learning for Factuality](https://arxiv.org/abs/2506.19807)**.
21
+
22
+ The KnowRL framework is designed to address the issue of hallucinations in Large Language Models (LLMs), particularly in "slow-thinking" models that perform complex reasoning. It achieves this by integrating a factuality reward into the Reinforcement Learning (RL) process, guiding the model to ground its reasoning in verifiable facts. This knowledge base is the source of truth against which the model's statements are verified during training.
23
+
24
+ ## Dataset Description
25
+
26
+ This dataset is a crucial component for **Stage 2: Knowledgeable Reinforcement Learning (RL)**. It serves as the external knowledge source used to calculate the `Fact Reward`, which evaluates the factuality of the model's reasoning process.
27
+
28
+ * **Purpose**: Provides the grounding knowledge for factuality verification during the RL training stage of the KnowRL framework.
29
+ * **Data Source**: The knowledge base is constructed from a snapshot of English Wikipedia (en.wikipedia.org) from November 1, 2023, containing 6.4 million entries.
30
+ * **Data Format**: Each entry consists of an entity (title) and the full text content from the corresponding Wikipedia page.
31
+
32
+ ```json
33
+ {
34
+ "title": "Specific Entity Name",
35
+ "text": "Full text content from the corresponding Wikipedia page..."
36
+ }
37
+ ```
38
+
39
+ ## How to Use
40
+
41
+ ### Using the `datasets` Library
42
+
43
+ You can easily load the knowledge base using the `datasets` library in Python.
44
+
45
+ ```python
46
+ from datasets import load_dataset
47
+
48
+ # Load the knowledge base
49
+ knowledge_base = load_dataset("zjunlp/KnowRL-Knowledge-Base")
50
+ ```
51
+
52
+ ### Using `huggingface-cli`
53
+ You can also download the entire dataset from the command line using `huggingface-cli`.
54
+ ```bash
55
+ huggingface-cli download zjunlp/KnowRL-Knowledge-Base --repo-type dataset --local-dir KnowRL-Knowledge-Base
56
+ ```
57
+
58
+ ### Dataset Construction Process
59
+ The knowledge base was constructed as part of the data preparation for the KnowRL training process.
60
+
61
+ 1. **Data Source**: A comprehensive dump of English Wikipedia from November 1, 2023 was used as the foundation.
62
+
63
+ 2. **Entity Linking**: During the RL data construction phase, questions were processed to extract key entities.
64
+
65
+ 3. **Knowledge Retrieval**: For each question in the training data, the extracted entities were used to retrieve corresponding entries from the Wikipedia dump. An exact match or full containment of the entity within a Wikipedia entry title was required for a successful link.
66
+
67
+ 4. **Base Construction**: The textual content of these successfully matched Wikipedia entries was compiled to form this knowledge base. To avoid redundancy, each entity keyword is linked to a maximum of three Wikipedia entries.
68
+
69
+ ## Citation
70
+ If you find this work useful in your research, please consider citing our paper:
71
+ ```bibtex
72
+ @article{ren2025knowrl,
73
+ title={{KnowRL: Exploring Knowledgeable Reinforcement Learning for Factuality}},
74
+ author={Ren, Baochang and Qiao, Shuofei and Yu, Wenhao and Chen, Huajun and Zhang, Ningyu},
75
+ journal={arXiv preprint arXiv:2506.19807},
76
+ year={2025}
77
+ }
78
+ ```
79
+
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+