Abstract
In the era of AI-assisted writing, stylistic polish often takes precedence over factual accuracy. This paper addresses the challenge of "fact-based text editing," a novel task where a model must revise a draft to align with a set of structured knowledge base triples. We propose FACTEDITOR, a transition-based model that treats editing as a sequence of discrete actions: Keep, Drop, and Gen. By utilizing a buffer for the draft and a stream for the revised text, FACTEDITOR maintains high fidelity to the original draft while ensuring factual consistency. Our evaluations on the WEBEDIT and ROTOEDIT datasets show that FACTEDITOR significantly outperforms traditional encoder-decoder models in accuracy, fluency, and computational efficiency.
Introduction
While large language models have revolutionized text generation, they frequently struggle with "hallucinations"—generating content that is fluent but factually incorrect. Traditional NLP tasks generally fall into text-to-text (e.g., paraphrasing) or table-to-text (e.g., data-to-document generation). However, a common real-world scenario involves editing a human-written draft that may contain a mix of correct information, missing facts, and errors. This paper, authored by researchers at the Nara Institute of Science and Technology and ByteDance AI Lab, introduces the task of fact-based text editing to bridge this gap, requiring models to surgically modify drafts based on structured data.
Methodology: The FACTEDITOR Model
The core innovation of this work is FACTEDITOR, a neural architecture designed specifically for the editing task. Unlike standard sequence-to-sequence (Seq2Seq) models that re-generate text from scratch, FACTEDITOR employs a transition-based system.
The model maintains three primary components:
- Buffer ($b_t$): A queue containing the words of the original draft.
- Stream ($s_t$): A sequence where the revised text is incrementally constructed.
- Memory: A structured store of factual triples (Subject, Predicate, Object).
At each time step, the model predicts one of three discrete actions:
Keep: The current word is moved from the buffer to the stream, preserving supported information.Drop: The current word is discarded from the buffer, removing unsupported or incorrect claims.Gen: A new word is generated from the knowledge base or a fixed vocabulary and added to the stream, filling in missing information.
This approach reduces time complexity to $O(NM)$, where $N$ and $M$ are the lengths of the draft and the knowledge base respectively, making it significantly more efficient than the $O(N^2 + NM)$ complexity of standard attention-based encoder-decoder models.
Datasets and Evaluation
To evaluate this new task, the authors constructed two benchmarks by aligning existing table-to-text datasets with reference texts:
- WEBEDIT: Derived from WebNLG, containing approximately 233,000 instances of entity descriptions.
- ROTOEDIT: Derived from RotoWire, consisting of 37,000 basketball game summaries, which are typically longer and more complex.
The datasets were created by identifying "gold" texts and pairing them with "drafts" that required specific factual updates (additions or deletions) to match the underlying data.
Results
FACTEDITOR was compared against a strong Encoder-Decoder baseline (ENCDECEDITOR). The results highlighted several key advantages:
- Factual Fidelity: On the WEBEDIT dataset, FACTEDITOR achieved a factual F1 score of 93.17, surpassing the baseline's 92.51.
- Fluency: The model achieved a BLEU score of 75.68 on WEBEDIT, significantly higher than the baseline's 71.03, indicating better preservation of the draft's stylistic qualities.
- Efficiency: The performance gap was most pronounced on the longer texts of ROTOEDIT. FACTEDITOR demonstrated a 2.8x speedup in inference, processing 1,412 words per second compared to 505 for the baseline.
- Qualitative Analysis: Manual reviews indicated that FACTEDITOR avoids unnecessary paraphrasing, which often leads to errors in standard generation models.
Conclusion
FACTEDITOR represents a significant step toward reliable AI-assisted writing. By framing editing as a transition-based task, the model achieves a superior balance between stylistic preservation and factual accuracy. Future work will focus on handling more complex knowledge base structures and improving the model's ability to perform high-level narrative reordering.
Reference: Iso, H., Qiao, C., & Li, H. (2020). Fact-based Text Editing. Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, 171–182.
Summary updated