Abstract
Abstractive summarization models frequently generate "hallucinations"—factual errors where entities such as names, dates, or locations are swapped or misrepresented. This paper introduces RFEC (Retrieval-based Factual Error Corrector), a post-editing system designed to identify and rectify these errors. Unlike traditional sequence-to-sequence (seq2seq) models that regenerate entire summaries, RFEC employs a surgical "retrieve and replace" strategy. By focusing specifically on entity-level corrections, RFEC achieves competitive accuracy while operating up to 8x faster than standard generative baselines and providing significantly higher interpretability.
Introduction
While modern neural summarization models produce remarkably fluent text, their utility is often undermined by a lack of factual consistency. A model may correctly capture the narrative arc of a news article but fail on critical details—for instance, attributing an action to the wrong person or misstating a numerical figure.
Existing solutions typically rely on a second generative model (e.g., BART) to rewrite the summary. However, this approach suffers from two primary drawbacks: high computational overhead, as it effectively doubles the generation time, and a lack of transparency. These "black box" models do not explain why a specific change was made, making it difficult for users to verify the correction. RFEC addresses these issues by treating factual correction as a targeted retrieval and classification task rather than a generation task.
Methodology: The RFEC Pipeline
RFEC operates through a three-step pipeline designed for efficiency and precision:
1. Evidence Sentence Retrieval
To minimize computational costs, RFEC avoids processing the entire source document for every correction. Instead, it identifies the most relevant context for each summary sentence using ROUGE-L similarity. By selecting the top-2 "evidence sentences" from the source text, the model focuses its attention on the most likely location of the ground-truth information.
2. Entity Extraction
Using the SpaCy NLP library, the system extracts all named entities (e.g., PERSON, DATE, GPE, CARDINAL) from both the summary and the retrieved evidence sentences. This narrows the problem space from general text editing to specific entity verification.
3. BERT-based Detection and Correction
The summary sentence and its corresponding evidence are fed into a BERT-based architecture for two simultaneous sub-tasks:
- Error Detection: The model calculates an "erroneous score" for each entity in the summary. A specialized
<Is Error>token is used to flag entities that are inconsistent with the evidence. - Error Correction: For any entity flagged as erroneous, the model evaluates all candidate entities found in the evidence sentences. It assigns a "correction score" to each candidate, and the entity with the highest score replaces the incorrect one in the summary.
Experimental Setup
The researchers evaluated RFEC using two distinct benchmarks:
- Synthetic CNN/DM: A large-scale dataset of 133,000 training samples created by "corrupting" standard CNN/DailyMail summaries. Entities were randomly swapped with others of the same type to create a ground-truth set for training error detection.
- FactCC-Test: A real-world evaluation set consisting of 503 summaries generated by various abstractive systems and manually annotated for factual consistency. This dataset tests the model's ability to handle authentic system hallucinations.
Results and Key Insights
Efficiency and Speed
One of the most significant advantages of RFEC is its inference speed. In comparative testing, RFEC processed 4,024 samples per minute, whereas a BART-based seq2seq corrector managed only 933 samples per minute. This 8x speedup is largely attributed to the retrieval-based approach, which avoids the heavy computational cost of autoregressive text generation.
Accuracy and Reliability
On the synthetic test set, RFEC achieved an accuracy of 91.06%, performing on par with much larger and slower BART baselines (which ranged from 90.93% to 92.20%). On the FactCC dataset, RFEC demonstrated a robust ability to fix real-world errors without "over-editing"—a common problem where generative models change parts of a summary that were already factually correct.
Interpretability
Unlike generative models, RFEC provides explicit scoring for its decisions. Developers and users can see exactly which entities were flagged as errors and which candidates from the source text were considered for replacement. This transparency is vital for building trust in automated editing systems.
Discussion and Limitations
While RFEC represents a significant step forward in efficient factual correction, it has specific dependencies:
- NER Sensitivity: The system's performance is capped by the accuracy of the Named Entity Recognition (NER) tool. If an entity is not recognized by SpaCy, RFEC cannot detect or fix it.
- Scope of Errors: RFEC is currently optimized for entity-level swaps. It is not designed to correct errors involving complex logic, negations (e.g., changing "did" to "did not"), or relational inconsistencies that do not involve a specific named entity.
Conclusion
RFEC demonstrates that factual error correction in abstractive summarization does not require full-scale text regeneration. By adopting a "retrieve and replace" methodology focused on entities, the system provides a faster, more interpretable, and highly accurate alternative to traditional post-editing models. Future work will focus on expanding the system's capabilities to handle a broader range of linguistic and logical inconsistencies.
Summary updated