OpenFActScore: Open-Source Atomic Evaluation of Factuality in Text Generation

Lucas Fonseca Lage, Simon Ostermann
7/8/2025
cs.CLcs.AI

Official code: lflage/OpenFActScore (6 stars, MIT, last commit 2025-07-22).

Abstract

We introduce OpenFActScore, an open-source implementation of the FActScore framework for evaluating the factuality of text generated by large language models (LLMs). FActScore evaluates the factual accuracy of long-form text by using Atomic Fact Generation (AFG) to extract individual factual claims and Atomic Fact Validation (AFV) to verify each claim against a trusted knowledge source. While the original FActScore relies on closed-source and commercial models such as InstructGPT and ChatGPT, OpenFActScore enables the use of any Hugging Face-compatible model for both AFG and AFV. We provide a detailed technical overview of our implementation, highlighting design choices and modifications made to support open models. We evaluate multiple open-source LLMs on both AFG and AFV using the original FActScore benchmark, reporting BERTScore-F1 for AFG and Error Rate relative to human annotations for AFV. Our results show that open models can approximate the performance of closed-source systems, with Gemma achieving the best overall performance, and our final setup obtains a 0.99 Pearson correlation with the original FActScore experiments. OpenFActScore promotes transparency, reproducibility, and cost-effective evaluation, and is available at: https://github.com/lflage/OpenFActScore.

View on arXivView PDF

Code Implementations(1)

MIT

A package to evaluate factuality of long-form generation using open usage models.

62PythonOct 14, 20241 years agoMIT

Similar Papers

Cite this paper

@article{lage2025openfactscore,
  title  = {OpenFActScore: Open-Source Atomic Evaluation of Factuality in Text Generation},
  author = {Lucas Fonseca Lage and Simon Ostermann},
  year   = {2025},
  eprint = {2507.05965},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.05965v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.05965.svg)](https://codeofpaper.com/paper/2507.05965)

Discussion