Introduction
Document evolution is a complex, collaborative process. While version control systems like Git or Wikipedia's revision history track what changed at a character level, they often fail to capture the intent behind those changes. This research addresses this gap by introducing a new dataset and a multi-layered modeling approach designed to answer two fundamental questions: Why was an edit made (intent), and how can we describe it in plain English (description)?
The Revision Dataset and Taxonomy
The researchers curated a new dataset consisting of approximately 9,300 human-annotated Wikipedia revisions. These data points include the text before and after the edit, the original author's comment, and a human-labeled intent. To scale the research, they also developed a "weakly labeled" dataset of 90,000 revisions using distant supervision.
Central to this work is a taxonomy of seven edit intents, which provides a structured way to categorize why an editor modified a page. This taxonomy allows models to move beyond simple character-level diffs toward semantic understanding.
Methodology: Intent-Aware Generation
The proposed system operates in two stages: intent classification and edit-comment generation.
Intent Classification
A classifier was trained to map edits to one of the seven categories in the taxonomy. Interestingly, a simple Logistic Regression model using Bag-of-Words features performed exceptionally well, achieving nearly 90% accuracy. This high-performance classifier provides a reliable foundation for the subsequent generation task.
Edit-Comment Generation
To generate natural language descriptions, the authors developed a hierarchical Seq2Seq model. Unlike standard models that process the entire text, this architecture focuses specifically on the differences between versions.
Key components of this architecture include:
- Global Difference Attention: This layer aligns subphrases between the source and target to isolate the specific changes, making the summary process more efficient.
- Intent Embedding: The predicted intent from the classification stage is used as a semantic "hint," guiding the decoder toward the correct descriptive tone and preventing the model from hallucinating irrelevant details.
- Distant Supervision: Pre-training on the larger 90,000-sample dataset helped the model master the specific, functional linguistic style of Wikipedia edit summaries.
Key Results and Insights
The study yielded several critical findings regarding document evolution modeling:
- Intent as a Semantic Anchor: Knowing the intent of an edit nearly doubled the performance of the description generator. It acts as a semantic anchor, keeping the summary focused on the substance of the change.
- Specialized Attention: The "Global Difference Attention" mechanism proved far more effective than standard attention, as it prioritizes the delta between document versions rather than the static text.
- Domain Specificity: General-purpose models like BART performed poorly (10.4 ROUGE-1) compared to the custom model (28 ROUGE-L). This suggests that the terse, functional nature of edit comments is a niche domain that requires specialized training.
Conclusion
By combining intent classification with specialized attention mechanisms, this work provides a robust framework for understanding document revisions. While a ROUGE-L score of 28 indicates room for improvement, the dataset and methodology lay the groundwork for more transparent collaborative writing tools. Future research may explore the sequential nature of edits to provide even richer context for document evolution.
Summary updated