Loki: An Open-Source Tool for Fact Verification

Haonan Li, Xudong Han, Hao Wang, Yuxia Wang, Minghan Wang, Rui Xing, Yilin Geng, Zenan Zhai, Preslav Nakov, Timothy Baldwin

Abstract

LOKI is a novel open-source, human-in-the-loop fact-verification tool designed to assist journalists and content moderators in the fight against digital misinformation. Unlike traditional "black-box" automated systems, LOKI utilizes a transparent, five-step pipeline that retrieves evidence and presents it hierarchically to support human judgment. By leveraging asynchronous processing, LOKI achieves state-of-the-art accuracy while significantly reducing processing latency compared to existing sequential systems.

Introduction

The rapid proliferation of digital misinformation necessitates scalable yet trustworthy fact-checking solutions. While manual verification remains the gold standard for reliability, its speed cannot match the volume of modern online content. Conversely, fully automated systems often lack transparency, acting as opaque oracles that remove human oversight, which can undermine user trust and accuracy.

Furthermore, many existing tools are inaccessible to non-programmers, lacking graphical user interfaces (GUIs), multilingual support, or the speed required for real-time applications. LOKI addresses these challenges by providing a semi-automated system that empowers users with structured evidence rather than a single, unexplained verdict.

Comparison of LOKI with other state-of-the-art fact-checking systems across key usability features.

System Architecture and Methodology

LOKI employs a modular, Large Language Model (LLM)-powered pipeline divided into five distinct stages:

  1. Decomposer: Breaks down complex, long-form texts into self-contained, atomic claims.
  2. Checkworthiness Identifier: Filters out subjective or vague statements, focusing resources on verifiable facts.
  3. Query Generator: Translates claims into optimized search engine queries.
  4. Evidence Retriever: Utilizes search APIs (such as Google Serper) to locate web evidence, optionally ranking snippets using Natural Language Inference (NLI) models.
  5. Claim Verifier: Evaluates retrieved evidence to determine if a claim is supported, refuted, or controversial.
The modular LOKI pipeline and its parallel execution flow using asynchronous processing.

A core innovation in LOKI is its heavy use of Python's asyncio library. Unlike standard sequential pipelines, LOKI runs independent components concurrently—for instance, generating queries and retrieving evidence for multiple claims simultaneously. This "human-in-the-loop" design is further supported by a hierarchical UI that allows users to drill down from an overall credibility score to specific highlighted text snippets and source URLs.

Evaluation and Key Results

The system was evaluated using several prominent automatic fact-checking benchmarks, including FacTool-QA, Factcheck-Bench, and FELM-WK, covering diverse domains such as history, science, and technology.

Performance and Efficiency

Using GPT-4o as a backend, LOKI demonstrated highly competitive performance. On the Factcheck-Bench dataset, it achieved an F1 score of 0.84 for true claims, significantly outperforming the baseline FacTool (0.71).

Despite processing a higher volume of evidence and consuming more tokens to ensure thoroughness, LOKI's asynchronous architecture resulted in superior speed. LOKI averaged 8.32 seconds per sample, compared to 12.38 seconds for FacTool. Additionally, by utilizing the Serper API ($0.001/search) instead of more expensive alternatives, LOKI remains commercially viable for high-volume operations.

Feature Completeness

In a survey of eight competing fact-checking systems, LOKI was the only tool to support all seven critical usability features: a graphical UI, asynchronous processing, multilingual support, multi-LLM compatibility, claim-level granularity, transparency, and open-source availability.

Insights and Future Directions

LOKI’s success suggests that transparency is a prerequisite for trust in automated tools. By breaking down verdicts into granular evidence, the system acts as an assistant that preserves journalistic integrity.

However, the system currently relies heavily on structured JSON outputs, which can lead to pipeline failures when using certain open-source models (like Llama-3) without rigorous prompt engineering. Future work will focus on optimizing hyperparameter settings, expanding out-of-the-box support for more languages beyond English and Chinese, and further developing its nascent multimodal capabilities for speech, image, and video verification.

Summary updated

BibTeX
@inproceedings{li2025loki,
  author = {Haonan Li and Xudong Han and Hao Wang and Yuxia Wang and Minghan Wang and Rui Xing and Yilin Geng and Zenan Zhai and Preslav Nakov and Timothy Baldwin},
  title = {{Loki: An Open-Source Tool for Fact Verification}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2025},
}
Figure