Introduction
Abstractive summarization models, such as BART and T5, have significantly improved the fluency and coherence of AI-generated text. However, these models remain prone to "hallucinations"—generating extrinsic entity errors where names, dates, or facts appear in the summary despite being absent from the source text. In abstractive datasets like XSum, up to 70% of generated summaries may contain such factual inconsistencies.
Traditional approaches to fixing these errors often involve post-editing, where a secondary model attempts to swap incorrect entities with correct ones from the source. This strategy frequently fails when no suitable replacement exists in the source text. Conversely, simple deletion methods often result in ungrammatical or nonsensical output. To address these challenges, we introduce CompEdit, a model-agnostic post-editor that utilizes controlled sentence compression to remove erroneous entities while maintaining linguistic integrity.
Methodology: The CompEdit Pipeline
CompEdit operates through a two-step training pipeline centered on the concept of controlled sentence compression. Rather than simply deleting words, the model learns to restructure sentences to remain fluent after information is removed.
- The Perturber: To create training data, a "perturber" model is trained on standard sentence-compression datasets. This model performs the inverse of summarization: given a compressed sentence and a list of entities, it learns to "inflate" the sentence to include those entities.
- The Post-Editor (CompEdit): The perturber is used to generate a synthetic training set by taking high-quality reference summaries and "corrupting" them with entities from the source text that do not belong in that specific context. CompEdit is then trained to take these corrupted summaries—where errors are marked by special tokens—and compress them back into the original, factually consistent summary.
The Compression Advantage
A core insight of this work is that compression is superior to simple deletion or entity swapping. In many instances of hallucination, there is no "correct" entity to swap in. CompEdit acknowledges that the most factual path is often to be less specific.
Unlike simple deletion, which often leaves behind "orange" errors (grammatically awkward fragments), compression allows the model to rewrite the surrounding context. For example, instead of leaving a fragment like "The CEO at a for much of the year," CompEdit can restructure the sentence to maintain a natural flow while removing the hallucinated data point.
Experimental Results
CompEdit was evaluated on the XSum and CNN/Daily Mail benchmarks, demonstrating that a "less is more" approach significantly enhances factual reliability:
- Precision and Stacking: On the XSum dataset, CompEdit improved entity precision by approximately 30%. When stacked with other post-editors like ReDRESS (which focuses on entity replacement), the combined system achieved a total precision improvement of 38%.
- Fluency: CompEdit maintained high CoLA scores (Linguistic Acceptability), outperforming simple deletion methods like FactPegasus in terms of grammatical correctness.
- Human Evaluation: In tests using the FactCC set, the number of factually consistent summaries rose from 441 to 473 after applying the ReDRESS + CompEdit pipeline.
Conclusion and Future Work
CompEdit provides a robust, model-agnostic solution for mitigating hallucinations in abstractive summarization. By framing factual correction as a compression task, it preserves the "gist" of a summary without sacrificing grammatical quality. While the model currently focuses on extrinsic entity errors in English news datasets, future research will explore automatic error detection and the distillation of these models for high-speed production environments. Although compression can lead to a slight decrease in ROUGE scores due to reduced word overlap, the significant gain in factual reliability represents a critical step forward for trustworthy AI summarization.
Summary updated