PrefixNLI: Detecting Factual Inconsistencies as Soon as They Arise
Harary, Sapir, Hirsch, Eran, Slobodkin, Aviv, Wan, David, Bansal, Mohit, Dagan, Ido
–arXiv.org Artificial Intelligence
Natural Language Inference (NLI) models have been used in various ways to improve the factuality of LLM outputs. This is typically done by applying an NLI model to judge whether the model output is entailed from the supposed evidence, triggering some corrective actions, such as beam reranking at inference time or RL rewards during training. While NLI models are trained to detect factual inconsistencies over complete sentences, decisions in the common autoregressive generation architecture are made for each evolving text prefix, during decoding. Addressing this setting, we generalize the entailment detection task to apply over arbitrary text prefixes, and suggest its utility for improving generation faithfulness. Providing suitable evaluation and training datasets for this task, we train MiniTruePrefixes, a novel specialized model that better detects factual inconsistencies over text prefixes, outperforming comparable baseline NLI models by 5-14 F1 points in prefix-level entailment. We further demonstrate that integrating MiniTruePrefixes into a controlled decoding framework substantially improves factual consistency in abstractive summarization. When guided by MiniTruePrefixes, LLaMA-3.2-3B-Instruct matches the faithfulness and runtime of the 8B model from the same model family, while using only half the memory.
arXiv.org Artificial Intelligence
Nov-4-2025
- Country:
- Asia
- Middle East
- Israel (0.04)
- Republic of Türkiye (0.04)
- Syria (0.04)
- Singapore (0.04)
- Thailand > Bangkok
- Bangkok (0.04)
- Middle East
- Europe
- Netherlands (0.04)
- Poland (0.04)
- Portugal > Lisbon
- Lisbon (0.04)
- Romania (0.04)
- Spain > Catalonia
- Barcelona Province > Barcelona (0.04)
- United Kingdom > Northern Ireland
- County Antrim (0.04)
- North America
- Canada > Ontario
- Toronto (0.04)
- Mexico > Mexico City
- Mexico City (0.04)
- United States
- Florida
- Miami-Dade County > Miami (0.04)
- Sarasota County > Sarasota (0.04)
- Kansas > Riley County
- Manhattan (0.04)
- Washington > King County
- Seattle (0.04)
- Florida
- Canada > Ontario
- Oceania > New Zealand (0.04)
- South America > Argentina (0.04)
- Asia
- Genre:
- Research Report > New Finding (0.67)
- Industry:
- Technology: