--- license: mit task_categories: - question-answering language: - en size_categories: - 1M - **Repository:** https://github.com/kilian-group/phantom-wiki - **Paper:** [PhantomWiki: On-Demand Datasets for Reasoning and Retrieval Evaluation](https://huggingface.co/papers/2502.20377) - **Demo:** https://github.com/kilian-group/phantom-wiki/blob/main/demo.ipynb ## Uses **We encourage users to generate a new (unique) PhantomWiki instance to combat data leakage and overfitting.** PhantomWiki enables quantitative evaluation of the reasoning and retrieval capabilities of LLMs. See our full paper for analysis of frontier LLMs, including GPT-4o, Gemini-1.5-Flash, [Llama-3.3-70B-Instruct](https://huggingface.co/meta-llama/Llama-3.3-70B-Instruct) and [DeepSeek-R1-Distill-Qwen-32B](https://huggingface.co/deepseek-ai/DeepSeek-R1-Distill-Qwen-32B). ### Direct Use PhantomWiki is intended to evaluate retrieval augmented generation (RAG) systems and agentic workflows. ### Out-of-Scope Use ## Dataset Structure PhantomWiki exposes three components, reflected in the three **configurations**: 1. `question-answer`: Question-answer pairs generated using a context-free grammar 2. `text-corpus`: Documents generated using natural-language templates 3. `database`: Prolog database containing the facts and clauses representing the universe Each universe is saved as a **split**. ## Dataset Creation ### Curation Rationale Most mathematical and logical reasoning datasets do not explicity evaluate retrieval capabilities and few retrieval datasets incorporate complex reasoning, save for a few exceptions (e.g., [BRIGHT](https://huggingface.co/datasets/xlangai/BRIGHT), [MultiHop-RAG](https://huggingface.co/datasets/yixuantt/MultiHopRAG)). However, virtually all retrieval datasets are derived from Wikipedia or internet articles, which are contained in LLM training data. We take the first steps toward a large-scale synthetic dataset that can evaluate LLMs' reasoning and retrieval capabilities. ### Source Data This is a synthetic dataset. The extent to which we use real data is detailed as follows: 1. We sample surnames from among the most common surnames in the US population according to https://names.mongabay.com/most_common_surnames.htm 2. We sample first names using the `names` Python package (https://github.com/treyhunner/names). We thank the contributors for making this tool publicly available. 3. We sample jobs from the list of real-life jobs from the `faker` Python package. We thank the contributors for making this tool publicly available. 4. We sample hobbies from the list of real-life hobbies at https://www.kaggle.com/datasets/mrhell/list-of-hobbies. We are grateful to the original author for curating this list and making it publicly available. #### Data Collection and Processing This dataset was generated on commodity CPUs using Python and SWI-Prolog. See paper for full details of the generation pipeline, including timings. #### Who are the source data producers? N/A ### Annotations \[optional\] N/A #### Annotation process N/A #### Who are the annotators? N/A #### Personal and Sensitive Information PhantomWiki does not reference any personal or private data. ## Bias, Risks, and Limitations PhantomWiki generates large-scale corpora, reflecting fictional universes of characters and mimicking the style of fan-wiki websites. While sufficient for evaluating complex reasoning and retrieval capabilities of LLMs, PhantomWiki is limited to simplified family relations and attributes. Extending the complexity of PhantomWiki to the full scope of Wikipedia is an exciting future direction. ### Recommendations PhantomWiki should be used as a benchmark to inform how LLMs should be used on reasoning- and retrieval-based tasks. For holistic evaluation on diverse tasks, PhantomWiki should be combined with other benchmarks. ## Citation \[optional\] **BibTeX:** \[More Information Needed\] **APA:** \[More Information Needed\] ## Glossary \[optional\] \[More Information Needed\] ## More Information \[optional\] \[More Information Needed\] ## Dataset Card Authors \[optional\] \[More Information Needed\] ## Dataset Card Contact agong@cs.cornell.edu