
When Models Lie, We Learn: Multilingual Span-Level Hallucination Detection with PsiloQA
https://github.com/s-nlp/PsiloQA
PsiloQA is the largest dataset for training and evaluating systems on multilingual span-level hallucination detection with retrieved context. It offers:
The dataset is constructed synthetically through the following stages:
Explore the full PsiloQA pipeline code implementation on GitHub: s-nlp/PsiloQA
PsiloQA is primarily intended for developing and benchmarking multilingual hallucination detection systems. At the same time, we believe that PsiloQA may be of broader interest: the dataset also provides question–context–answer triplets with golden answers and model hypotheses, which can support a wide range of applications such as benchmarking LLMs with and without retrieval, developing multilingual QA systems, and beyond.
Among span-level hallucination detection datasets, PsiloQA stands out by covering 14 languages, providing the largest training split, focusing on the general domain, and containing naturally occurring hallucinations. The training set comprises 63,792 samples, while the test set includes 2,897 samples. In total, hypotheses were generated using 24 different open-source LLMs.
| Dataset | Domain | Annotation | Generation | # Languages | # LLMs | # Train | # Val | # Test | Licence |
|---|---|---|---|---|---|---|---|---|---|
| Mu-SHROOM | General | Manual | Natural | 14 | 38 | 3,351 (unlabeled) | 499 | 1,902 | CC-BY-4.0 |
| HalluEntity | Biography | Manual | Natural | 1 (En) | 1 | -- | -- | 157 | MIT |
| RAGTruth_QA | General | Manual | Natural | 1 (En) | 6 | 5,034 | -- | 900 | MIT |
| FAVA-Bench | General | Auto | Synthetic | 1 (En) | 3 | -- | -- | 902 | CC-BY-4.0 |
| PsiloQA | General | Auto | Natural | 14 | 24 | 63,792 | 3,355 | 2,897 | CC-BY-4.0 |
This repository contains the full PsiloQA generation pipeline — from sampling multilingual Wikipedia contexts to question–answer generation, LLM hypothesis production, annotation, and filtering.
Install uv:
pip install uv
Install dependencies:
uv sync --no-dev
Copy env.example and fill env variables:
cp env.example .env
The PsiloQA pipeline automates the construction of a multilingual, span-level hallucination detection dataset with contexts — from sampling Wikipedia passages to generating Q&A, producing model hypotheses, annotating hallucinated spans, and filtering the results.
It consists of five sequential stages:
Each stage can be run individually, or you can execute the full pipeline with a single command:
uv run psilo dataset pipeline --num-pages 10 --language ru --language en --limit 100 --model Qwen/Qwen2.5-3B-Instruct
All API keys and model settings are managed via the .env file (QA_GENERATOR_, ANNOTATOR_, and FILTER_ prefixes).
The first step in PsiloQA pipeline is getting contexts for QA generation. You can use your own, or, as in out paper, parse random pages from Wikipedia as input contexts. Just run the following command with languages you need. If no --language list specified, it will parse random pages for 14 languages presented in our paper. --num-pages determines how many contexts to parse from Wikipedia.
uv run psilo dataset get_contexts --num-pages 10 --language ru --language en
Next step is question and answer generation for the obtained contexts. The script generates three questions of different complexity based on provided contexts. Fill QA_GENERATOR settings in .env file to use this script. By default, gpt-4o is used. Feel free to use another models by providing another model name through QA_GENERATOR setting in .env.
uv run psilo dataset generate_qa
All available models are listed in psilo/dataset/answer_generator/models. You can add any new Hugging Face model by implementing a runner class that inherits from either:
RunnerWithChatTemplate — if the tokenizer supports chat templates, orRunnerWithCustomTemplate — if it does not.
Some models require a Hugging Face access token. Make sure to provide HF_TOKEN in your .env file — models that need it will be skipped if the token is missing.uv run psilo dataset generate_hypotheses
Annotate hypotheses (fill ANNOTATOR_OPENAI_API_KEY variable in .env):
uv run psilo dataset annotate_hypotheses
The annotation process includes two filtering stages. Heuristic-based filters ensure structural correctness — they verify that all opening tags have corresponding closing tags, that there are no nested tags, and perform other automated pre-checks. LLM-based filters remove samples with subjective or incomplete questions, as well as cases where the model refuses to answer. For LLM-based filter, fill FILTER_OPENAI_API_KEY variable in .env
uv run psilo dataset filter
An example of the data:
{
"id": "psiloqa_togethercomputer/Pythia-Chat-Base-7B-v0.16_13830",
"lang": "en",
"wiki_title": "Kyoto Animation",
"wiki_url": "https://en.wikipedia.org/wiki/Kyoto%20Animation",
"llm_checkpoint": "togethercomputer/Pythia-Chat-Base-7B-v0.16",
"wiki_passage": "Kyoto Animation Co., Ltd. (Japanese: 株式会社京都アニメーション, Hepburn: Kabushiki-gaisha Kyōto Animēshon), often abbreviated KyoAni (京アニ, Kyōani), is a Japanese animation studio and light novel publisher located in Uji, Kyoto Prefecture. It was founded in 1985 by husband and wife Hideaki and Yoko Hatta, who remain its president and vice-president respectively. Kyoto Animation has produced anime films and series including The Melancholy of Haruhi Suzumiya (2006), Clannad (2007), K-On! (2009), Nichijou (2011), Free! (2013), Sound! Euphonium (2015), A Silent Voice (2016), and Violet Evergarden (2018).",
"question": "Name three anime titles produced by Kyoto Animation.",
"golden_answer": "The Melancholy of Haruhi Suzumiya, Clannad, K-On!",
"llm_answer": "Three anime titles produced by Kyoto Animation are: 1. Blue Spring 2. Clannad 3. Air",
"annotated_span": "Three anime titles produced by Kyoto Animation are: 1. [HAL]Blue Spring[/HAL] 2. Clannad 3. [HAL]Air[/HAL]",
"complexity": "hard",
"labels": [[55, 66], [81, 84]]
}
Fields description:
id – a unique identificator of a samplelang – language of a QA pairwiki_title – a title of Wikipedia page used for QA pair generationwiki_url – a link to the Wikipedia page used for QA pair generationllm_checkpoint – an LLM id from HuggingFace Hub used for hypothesis generationwiki_passage – a parsed text of a Wikipedia passagequestion – a question generated by GPT-4o for this wiki_passagegolden_answer – an answer generated by GPT-4o for the questionllm_answer – a hypothesis produced by LLMannotated_span – a span-level annotation of inconsistencies between llm_answer and wiki_passage generated by GPT-4ocomplexity – a complexity of the QA pair generated by GPT-4olabels – a character-level spans of inconsistencies converted from annotated_spanWe evaluated various methods (both based on Uncertainty Quantification and based on retrieved information) in a few-shot and SFT setting on PsiloQA testing part. IoU is given as evaluation metric.
| Method | Mode | ar | ca | cs | de | en | es | eu | fa | fi | fr | hi | it | sv | zh |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MSP | -- | 35.70 | 28.36 | 33.68 | 30.03 | 45.69 | 33.72 | 33.04 | 22.13 | 53.13 | 37.67 | 43.45 | 31.61 | 26.96 | 28.42 |
| CCP | -- | 35.70 | 28.37 | 33.68 | 33.25 | 45.69 | 33.72 | 33.04 | 22.13 | 53.13 | 37.67 | 43.45 | 32.20 | 26.96 | 27.39 |
| Focus | -- | 36.93 | 28.37 | 33.68 | 32.05 | 45.69 | 42.24 | 34.65 | 29.94 | 53.13 | 39.26 | 43.45 | 32.20 | 36.15 | 27.83 |
| lettuce-detect-base | -- | 37.81 | 44.37 | 30.08 | 30.31 | 43.28 | 40.08 | 33.35 | 32.45 | 56.44 | 35.60 | 16.95 | 34.97 | 49.11 | 35.94 |
| ModernBERT-base | SFT | 55.27 | 65.70 | 44.73 | 46.27 | 68.23 | 61.69 | 50.43 | 68.63 | 64.68 | 53.90 | 54.15 | 62.75 | 67.09 | 56.95 |
| mmBERT-base | SFT | 58.10 | 67.01 | 48.81 | 54.97 | 70.67 | 66.18 | 50.27 | 76.61 | 68.16 | 56.38 | 61.19 | 66.57 | 66.24 | 61.58 |
| FActScore (GPT-4o) | -- | 20.75 | 28.99 | 10.44 | 26.68 | 25.84 | 28.54 | 19.68 | 26.62 | 28.16 | 10.21 | 21.03 | 43.92 | 19.25 | 25.18 |
| Qwen2.5-32B-it | 3-shot | 35.54 | 51.71 | 46.83 | 23.57 | 39.98 | 40.51 | 36.52 | 19.18 | 34.69 | 31.92 | 44.56 | 37.95 | 50.89 | 42.77 |
While PsiloQA presents significant advancements in span-level hallucination detection across languages, several limitations remain:
Since both the generation and annotation of PsiloQA rely on GPT-4o, there is an inherent risk of model bias influencing the dataset. Although GPT-4o was among the state-of-the-art models available during dataset development, its judgments may reflect underlying model biases or fail to align with human consensus in edge cases. Furthermore, GPT-4o’s proficiency varies across languages, which may affect the consistency and quality of cross-lingual annotations. Future iterations of PsiloQA may incorporate diverse model perspectives and human-in-the-loop validation to mitigate this concern.
@inproceedings{rykov-etal-2025-models,
title = "When Models Lie, We Learn: Multilingual Span-Level Hallucination Detection with {P}silo{QA}",
author = "Rykov, Elisei and
Petrushina, Kseniia and
Savkin, Maksim and
Olisov, Valerii and
Vazhentsev, Artem and
Titova, Kseniia and
Panchenko, Alexander and
Konovalov, Vasily and
Belikova, Julia",
editor = "Christodoulopoulos, Christos and
Chakraborty, Tanmoy and
Rose, Carolyn and
Peng, Violet",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2025",
month = nov,
year = "2025",
address = "Suzhou, China",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.findings-emnlp.626/",
doi = "10.18653/v1/2025.findings-emnlp.626",
pages = "11663--11682",
ISBN = "979-8-89176-335-7",
abstract = "Hallucination detection remains a fundamental challenge for the safe and reliable deployment of large language models (LLMs), especially in applications requiring factual accuracy. Existing hallucination benchmarks often operate at the sequence level and are limited to English, lacking the fine-grained, multilingual supervision needed for comprehensive evaluation. In this work, we introduce PsiloQA, a large-scale, multilingual dataset annotated with span-level hallucinations across 14 languages. PsiloQA is constructed through an automated three-stage pipeline: generating question{--}answer pairs from Wikipedia using GPT-4o, eliciting potentially hallucinated answers from diverse LLMs in a no-context setting, and automatically annotating hallucinated spans using GPT-4o by comparing against golden answers and retrieved context. We evaluate a wide range of hallucination detection methods-including uncertainty quantification, LLM-based tagging, and fine-tuned encoder models-and show that encoder-based models achieve the strongest performance across languages. Furthermore, PsiloQA demonstrates effective cross-lingual generalization and supports robust knowledge transfer to other benchmarks, all while being significantly more cost-efficient than human-annotated datasets. Our dataset and results advance the development of scalable, fine-grained hallucination detection in multilingual settings."
}

When Models Lie, We Learn: Multilingual Span-Level Hallucination Detection with PsiloQA
https://github.com/s-nlp/PsiloQA
PsiloQA is the largest dataset for training and evaluating systems on multilingual span-level hallucination detection with retrieved context. It offers:
The dataset is constructed synthetically through the following stages:
Explore the full PsiloQA pipeline code implementation on GitHub: s-nlp/PsiloQA
PsiloQA is primarily intended for developing and benchmarking multilingual hallucination detection systems. At the same time, we believe that PsiloQA may be of broader interest: the dataset also provides question–context–answer triplets with golden answers and model hypotheses, which can support a wide range of applications such as benchmarking LLMs with and without retrieval, developing multilingual QA systems, and beyond.
Among span-level hallucination detection datasets, PsiloQA stands out by covering 14 languages, providing the largest training split, focusing on the general domain, and containing naturally occurring hallucinations. The training set comprises 63,792 samples, while the test set includes 2,897 samples. In total, hypotheses were generated using 24 different open-source LLMs.
| Dataset | Domain | Annotation | Generation | # Languages | # LLMs | # Train | # Val | # Test | Licence |
|---|---|---|---|---|---|---|---|---|---|
| Mu-SHROOM | General | Manual | Natural | 14 | 38 | 3,351 (unlabeled) | 499 | 1,902 | CC-BY-4.0 |
| HalluEntity | Biography | Manual | Natural | 1 (En) | 1 | -- | -- | 157 | MIT |
| RAGTruth_QA | General | Manual | Natural | 1 (En) | 6 | 5,034 | -- | 900 | MIT |
| FAVA-Bench | General | Auto | Synthetic | 1 (En) | 3 | -- | -- | 902 | CC-BY-4.0 |
| PsiloQA | General | Auto | Natural | 14 | 24 | 63,792 | 3,355 | 2,897 | CC-BY-4.0 |
This repository contains the full PsiloQA generation pipeline — from sampling multilingual Wikipedia contexts to question–answer generation, LLM hypothesis production, annotation, and filtering.
Install uv:
pip install uv
Install dependencies:
uv sync --no-dev
Copy env.example and fill env variables:
cp env.example .env
The PsiloQA pipeline automates the construction of a multilingual, span-level hallucination detection dataset with contexts — from sampling Wikipedia passages to generating Q&A, producing model hypotheses, annotating hallucinated spans, and filtering the results.
It consists of five sequential stages:
Each stage can be run individually, or you can execute the full pipeline with a single command:
uv run psilo dataset pipeline --num-pages 10 --language ru --language en --limit 100 --model Qwen/Qwen2.5-3B-Instruct
All API keys and model settings are managed via the .env file (QA_GENERATOR_, ANNOTATOR_, and FILTER_ prefixes).
The first step in PsiloQA pipeline is getting contexts for QA generation. You can use your own, or, as in out paper, parse random pages from Wikipedia as input contexts. Just run the following command with languages you need. If no --language list specified, it will parse random pages for 14 languages presented in our paper. --num-pages determines how many contexts to parse from Wikipedia.
uv run psilo dataset get_contexts --num-pages 10 --language ru --language en
Next step is question and answer generation for the obtained contexts. The script generates three questions of different complexity based on provided contexts. Fill QA_GENERATOR settings in .env file to use this script. By default, gpt-4o is used. Feel free to use another models by providing another model name through QA_GENERATOR setting in .env.
uv run psilo dataset generate_qa
All available models are listed in psilo/dataset/answer_generator/models. You can add any new Hugging Face model by implementing a runner class that inherits from either:
RunnerWithChatTemplate — if the tokenizer supports chat templates, orRunnerWithCustomTemplate — if it does not.
Some models require a Hugging Face access token. Make sure to provide HF_TOKEN in your .env file — models that need it will be skipped if the token is missing.uv run psilo dataset generate_hypotheses
Annotate hypotheses (fill ANNOTATOR_OPENAI_API_KEY variable in .env):
uv run psilo dataset annotate_hypotheses
The annotation process includes two filtering stages. Heuristic-based filters ensure structural correctness — they verify that all opening tags have corresponding closing tags, that there are no nested tags, and perform other automated pre-checks. LLM-based filters remove samples with subjective or incomplete questions, as well as cases where the model refuses to answer. For LLM-based filter, fill FILTER_OPENAI_API_KEY variable in .env
uv run psilo dataset filter
An example of the data:
{
"id": "psiloqa_togethercomputer/Pythia-Chat-Base-7B-v0.16_13830",
"lang": "en",
"wiki_title": "Kyoto Animation",
"wiki_url": "https://en.wikipedia.org/wiki/Kyoto%20Animation",
"llm_checkpoint": "togethercomputer/Pythia-Chat-Base-7B-v0.16",
"wiki_passage": "Kyoto Animation Co., Ltd. (Japanese: 株式会社京都アニメーション, Hepburn: Kabushiki-gaisha Kyōto Animēshon), often abbreviated KyoAni (京アニ, Kyōani), is a Japanese animation studio and light novel publisher located in Uji, Kyoto Prefecture. It was founded in 1985 by husband and wife Hideaki and Yoko Hatta, who remain its president and vice-president respectively. Kyoto Animation has produced anime films and series including The Melancholy of Haruhi Suzumiya (2006), Clannad (2007), K-On! (2009), Nichijou (2011), Free! (2013), Sound! Euphonium (2015), A Silent Voice (2016), and Violet Evergarden (2018).",
"question": "Name three anime titles produced by Kyoto Animation.",
"golden_answer": "The Melancholy of Haruhi Suzumiya, Clannad, K-On!",
"llm_answer": "Three anime titles produced by Kyoto Animation are: 1. Blue Spring 2. Clannad 3. Air",
"annotated_span": "Three anime titles produced by Kyoto Animation are: 1. [HAL]Blue Spring[/HAL] 2. Clannad 3. [HAL]Air[/HAL]",
"complexity": "hard",
"labels": [[55, 66], [81, 84]]
}
Fields description:
id – a unique identificator of a samplelang – language of a QA pairwiki_title – a title of Wikipedia page used for QA pair generationwiki_url – a link to the Wikipedia page used for QA pair generationllm_checkpoint – an LLM id from HuggingFace Hub used for hypothesis generationwiki_passage – a parsed text of a Wikipedia passagequestion – a question generated by GPT-4o for this wiki_passagegolden_answer – an answer generated by GPT-4o for the questionllm_answer – a hypothesis produced by LLMannotated_span – a span-level annotation of inconsistencies between llm_answer and wiki_passage generated by GPT-4ocomplexity – a complexity of the QA pair generated by GPT-4olabels – a character-level spans of inconsistencies converted from annotated_spanWe evaluated various methods (both based on Uncertainty Quantification and based on retrieved information) in a few-shot and SFT setting on PsiloQA testing part. IoU is given as evaluation metric.
| Method | Mode | ar | ca | cs | de | en | es | eu | fa | fi | fr | hi | it | sv | zh |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| MSP | -- | 35.70 | 28.36 | 33.68 | 30.03 | 45.69 | 33.72 | 33.04 | 22.13 | 53.13 | 37.67 | 43.45 | 31.61 | 26.96 | 28.42 |
| CCP | -- | 35.70 | 28.37 | 33.68 | 33.25 | 45.69 | 33.72 | 33.04 | 22.13 | 53.13 | 37.67 | 43.45 | 32.20 | 26.96 | 27.39 |
| Focus | -- | 36.93 | 28.37 | 33.68 | 32.05 | 45.69 | 42.24 | 34.65 | 29.94 | 53.13 | 39.26 | 43.45 | 32.20 | 36.15 | 27.83 |
| lettuce-detect-base | -- | 37.81 | 44.37 | 30.08 | 30.31 | 43.28 | 40.08 | 33.35 | 32.45 | 56.44 | 35.60 | 16.95 | 34.97 | 49.11 | 35.94 |
| ModernBERT-base | SFT | 55.27 | 65.70 | 44.73 | 46.27 | 68.23 | 61.69 | 50.43 | 68.63 | 64.68 | 53.90 | 54.15 | 62.75 | 67.09 | 56.95 |
| mmBERT-base | SFT | 58.10 | 67.01 | 48.81 | 54.97 | 70.67 | 66.18 | 50.27 | 76.61 | 68.16 | 56.38 | 61.19 | 66.57 | 66.24 | 61.58 |
| FActScore (GPT-4o) | -- | 20.75 | 28.99 | 10.44 | 26.68 | 25.84 | 28.54 | 19.68 | 26.62 | 28.16 | 10.21 | 21.03 | 43.92 | 19.25 | 25.18 |
| Qwen2.5-32B-it | 3-shot | 35.54 | 51.71 | 46.83 | 23.57 | 39.98 | 40.51 | 36.52 | 19.18 | 34.69 | 31.92 | 44.56 | 37.95 | 50.89 | 42.77 |
While PsiloQA presents significant advancements in span-level hallucination detection across languages, several limitations remain:
Since both the generation and annotation of PsiloQA rely on GPT-4o, there is an inherent risk of model bias influencing the dataset. Although GPT-4o was among the state-of-the-art models available during dataset development, its judgments may reflect underlying model biases or fail to align with human consensus in edge cases. Furthermore, GPT-4o’s proficiency varies across languages, which may affect the consistency and quality of cross-lingual annotations. Future iterations of PsiloQA may incorporate diverse model perspectives and human-in-the-loop validation to mitigate this concern.
@inproceedings{rykov-etal-2025-models,
title = "When Models Lie, We Learn: Multilingual Span-Level Hallucination Detection with {P}silo{QA}",
author = "Rykov, Elisei and
Petrushina, Kseniia and
Savkin, Maksim and
Olisov, Valerii and
Vazhentsev, Artem and
Titova, Kseniia and
Panchenko, Alexander and
Konovalov, Vasily and
Belikova, Julia",
editor = "Christodoulopoulos, Christos and
Chakraborty, Tanmoy and
Rose, Carolyn and
Peng, Violet",
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2025",
month = nov,
year = "2025",
address = "Suzhou, China",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2025.findings-emnlp.626/",
doi = "10.18653/v1/2025.findings-emnlp.626",
pages = "11663--11682",
ISBN = "979-8-89176-335-7",
abstract = "Hallucination detection remains a fundamental challenge for the safe and reliable deployment of large language models (LLMs), especially in applications requiring factual accuracy. Existing hallucination benchmarks often operate at the sequence level and are limited to English, lacking the fine-grained, multilingual supervision needed for comprehensive evaluation. In this work, we introduce PsiloQA, a large-scale, multilingual dataset annotated with span-level hallucinations across 14 languages. PsiloQA is constructed through an automated three-stage pipeline: generating question{--}answer pairs from Wikipedia using GPT-4o, eliciting potentially hallucinated answers from diverse LLMs in a no-context setting, and automatically annotating hallucinated spans using GPT-4o by comparing against golden answers and retrieved context. We evaluate a wide range of hallucination detection methods-including uncertainty quantification, LLM-based tagging, and fine-tuned encoder models-and show that encoder-based models achieve the strongest performance across languages. Furthermore, PsiloQA demonstrates effective cross-lingual generalization and supports robust knowledge transfer to other benchmarks, all while being significantly more cost-efficient than human-annotated datasets. Our dataset and results advance the development of scalable, fine-grained hallucination detection in multilingual settings."
}