Abstract: Felix Faltings, Michel Galley, Gerold Hintz, Chris Brockett, Chris Quirk, Jianfeng Gao, Bill Dolan. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies.
2021.
Introduction
Most modern Large Language Models (LLMs) operate on a "one-shot" paradigm: a user provides a prompt, and the model generates a block of text in a single step. However, human writing is inherently iterative, involving drafting, rephrasing, and detailing through multiple cycles. Researchers from Microsoft and ETH Zürich have addressed this gap by developing an Interactive Editor. This system moves beyond static generation, allowing users to edit existing text via natural language commands while grounding changes in real-world evidence to mitigate hallucinations.
The Interactive Editor Framework
The authors frame text editing as a sequence-to-sequence task using the T5 (Text-to-Text Transfer Transformer) architecture. Unlike standard generation models, the Interactive Editor processes a composite input sequence consisting of four distinct elements:
- The Source Sentence ($s$): The specific text targeted for modification.
- The Context ($D$): The surrounding sentences to maintain document coherence.
- The Command ($q$): A natural language instruction (e.g., "fix profession" or "add nationality").
- The Grounding ($G$): Snippets retrieved from a commercial search engine to provide factual support.
The model's encoder processes these inputs, and the decoder auto-regressively generates the edited sentence. To manage the grounding data, a reranking system using TF-IDF scores ensures the most relevant snippets are prioritized within the model's 512-token limit.
The WikiDocEdits Dataset
To train and evaluate this system, the researchers introduced WikiDocEdits, a massive benchmark derived from Wikipedia’s revision history.
- Scale: Nearly 12 million sentence-level edits extracted from a February 2020 dump.
- Proxy Commands: Since Wikipedia lacks explicit user commands, the authors utilized editor comments (e.g., "added more marriage info") as proxies for natural language instructions.
- Grounding: For each edit, web snippets were pre-retrieved by querying a search engine with the page title and keywords from the target sentence.
Key Insights and Results
A central finding of the research is that commands and grounding are synergistic. Ablation studies showed that without a command, the model cannot effectively utilize grounding; conversely, without grounding, it cannot accurately fulfill content-heavy instructions.
Performance Metrics
The Interactive Editor significantly outperformed baselines like GPT-2 across several key metrics:
- Exact Match Accuracy: The model achieved 30% accuracy in matching human-gold standard edits exactly.
- BLEU Score: It reached a score of 0.70, indicating high similarity to human-edited text.
- Fluency vs. Content: The model excels at "fluency" edits (36% accuracy) but finds "content" edits (10% accuracy) more challenging, highlighting the difficulty of reasoning over external facts.
In human evaluations, the model's edits were judged equal to or better than original human Wikipedia edits 59% of the time. Qualitative analysis further demonstrated the model's ability to construct complex, fact-filled paragraphs through a series of successive commands.
Limitations and Future Directions
While a significant step forward, the model currently operates at the sentence level, limiting its ability to handle document-wide restructuring. Additionally, while grounding reduces hallucinations, the model can still occasionally misinterpret or ignore provided facts. Future work aims to expand the system to multi-sentence edits and explore more interactive, dialogue-based clarification for ambiguous commands.
Summary updated