Update with published paper
Browse files
README.md
CHANGED
|
@@ -11,7 +11,7 @@ task_categories:
|
|
| 11 |
|
| 12 |
# ReFactX: Scalable Reasoning with Reliable Facts via Constrained Generation Dataset
|
| 13 |
|
| 14 |
-
This dataset contains verbalized facts from Wikidata to simplify reproducing [ReFactX](https://
|
| 15 |
|
| 16 |
## Paper
|
| 17 |
|
|
@@ -23,7 +23,7 @@ This dataset contains verbalized facts from Wikidata to simplify reproducing [Re
|
|
| 23 |
|
| 24 |
## Abstract
|
| 25 |
|
| 26 |
-
Knowledge gaps and hallucinations are persistent challenges for Large Language Models (LLMs), which generate unreliable responses when lacking the necessary information to fulfill user instructions. Existing approaches, such as Retrieval-Augmented Generation (RAG) and tool use, aim to address these issues by incorporating external knowledge. Yet, they rely on additional models or services, resulting in complex pipelines, potential error propagation, and often requiring the model to process a large number of tokens. In this paper, we present a scalable method that enables LLMs to access external knowledge without depending on retrievers or auxiliary models. Our approach uses constrained generation with a pre-built prefix-tree index. Triples from a Knowledge Graph are verbalized in textual facts, tokenized, and indexed in a prefix tree for efficient access. During inference, to acquire external knowledge, the LLM generates facts with constrained generation which allows only sequences of tokens that form an existing fact. We evaluate our proposal on Question Answering and show that it scales to large knowledge bases (800 million facts), adapts to domain-specific data, and achieves effective results. These gains come with minimal generation-time overhead.
|
| 27 |
|
| 28 |
## Sample Usage
|
| 29 |
|
|
@@ -40,14 +40,32 @@ To reproduce the experiments described in the paper, refer to the `eval.py` scri
|
|
| 40 |
## Citation
|
| 41 |
|
| 42 |
```bibtex
|
| 43 |
-
@
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
}
|
| 53 |
```
|
|
|
|
| 11 |
|
| 12 |
# ReFactX: Scalable Reasoning with Reliable Facts via Constrained Generation Dataset
|
| 13 |
|
| 14 |
+
This dataset contains verbalized facts from Wikidata to simplify reproducing [ReFactX](https://doi.org/10.1007/978-3-032-09527-5_16). ReFactX is a scalable method that enables Large Language Models (LLMs) to access external knowledge without depending on retrievers or auxiliary models. It utilizes constrained generation with a pre-built prefix-tree index, verbalizing triples from a Knowledge Graph into textual facts, tokenizing them, and indexing them for efficient access. The dataset specifically includes `ReFactX_wikidata_facts.bz2`, which consists of 800 million textual facts from Wikidata, designed for use in the ReFactX system.
|
| 15 |
|
| 16 |
## Paper
|
| 17 |
|
|
|
|
| 23 |
|
| 24 |
## Abstract
|
| 25 |
|
| 26 |
+
Knowledge gaps and hallucinations are persistent challenges for Large Language Models (LLMs), which generate unreliable responses when lacking the necessary information to fulfill user instructions. Existing approaches, such as Retrieval-Augmented Generation (RAG) and tool use, aim to address these issues by incorporating external knowledge. Yet, they rely on additional models or services, resulting in complex pipelines, potential error propagation, and often requiring the model to process a large number of tokens. In this paper, we present a scalable method that enables LLMs to access external knowledge without depending on retrievers or auxiliary models. Our approach uses constrained generation with a pre-built prefix-tree index. Triples from a Knowledge Graph are verbalized in textual facts, tokenized, and indexed in a prefix tree for efficient access. During inference, to acquire external knowledge, the LLM generates facts with constrained generation which allows only sequences of tokens that form an existing fact. We evaluate our proposal on Question Answering and show that it scales to large knowledge bases (800 million facts), adapts to domain-specific data, and achieves effective results. These gains come with minimal generation-time overhead.
|
| 27 |
|
| 28 |
## Sample Usage
|
| 29 |
|
|
|
|
| 40 |
## Citation
|
| 41 |
|
| 42 |
```bibtex
|
| 43 |
+
@InProceedings{10.1007/978-3-032-09527-5_16,
|
| 44 |
+
author="Pozzi, Riccardo
|
| 45 |
+
and Palmonari, Matteo
|
| 46 |
+
and Coletta, Andrea
|
| 47 |
+
and Bellomarini, Luigi
|
| 48 |
+
and Lehmann, Jens
|
| 49 |
+
and Vahdati, Sahar",
|
| 50 |
+
editor="Garijo, Daniel
|
| 51 |
+
and Kirrane, Sabrina
|
| 52 |
+
and Salatino, Angelo
|
| 53 |
+
and Shimizu, Cogan
|
| 54 |
+
and Acosta, Maribel
|
| 55 |
+
and Nuzzolese, Andrea Giovanni
|
| 56 |
+
and Ferrada, Sebasti{\'a}n
|
| 57 |
+
and Soulard, Thibaut
|
| 58 |
+
and Kozaki, Kouji
|
| 59 |
+
and Takeda, Hideaki
|
| 60 |
+
and Gentile, Anna Lisa",
|
| 61 |
+
title="ReFactX: Scalable Reasoning with Reliable Facts via Constrained Generation",
|
| 62 |
+
booktitle="The Semantic Web -- ISWC 2025",
|
| 63 |
+
year="2026",
|
| 64 |
+
publisher="Springer Nature Switzerland",
|
| 65 |
+
address="Cham",
|
| 66 |
+
pages="290--308",
|
| 67 |
+
isbn="978-3-032-09527-5",
|
| 68 |
+
doi="10.1007/978-3-032-09527-5_16",
|
| 69 |
+
url="https://doi.org/10.1007/978-3-032-09527-5_16"
|
| 70 |
}
|
| 71 |
```
|