TL;DR
This paper introduces a "stretch-and-link pointer" network that provides word-level explanations of how Latin authors reworked source texts, identifying operations like copying, inflection, and substitution. By combining synthetic training data with uncertainty-based active learning, the authors demonstrate that a model can reach peak performance with only 200 human-corrected examples, significantly reducing the annotation burden for complex literary analysis.
What Problem Does This Paper Address?
In classical philology, identifying that one text reuses another (intertextuality) is just the beginning. Scholars want to understand the mechanics of that reuse: Did the author quote verbatim? Did they change the verb tense to fit a new sentence? Or did they substitute a word with a synonym to create a subtle allusion?
While automated systems are getting better at detecting these parallels, they rarely explain how the text was transformed. Providing these explanations requires word-level "edit scripts"—aligning words between the source and the reuse and labeling the transformation. However, creating these scripts is incredibly labor-intensive. For Latin, a language with complex inflections and flexible word order, the lack of large-scale annotated datasets has been a major bottleneck for fine-grained intertextuality research.
Methods
The authors propose a multi-stage approach to learn these word-level explanations with minimal human effort:
- The Stretch-and-Link Pointer Network: The core model uses a LatinBERT encoder to create contextual embeddings for both passages. It then employs a pointer network architecture with three specialized "heads":
- Link Head: Decides which source word (if any) a reuse word corresponds to.
- Operation Head: Labels the link (e.g.,
COPY,INFLECT,SUBST). - Stretch Head: Determines if a word belongs to a reused segment at all, helping the model handle the "noise" of surrounding original text.
- Synthetic Data Pre-training: To overcome the "cold start" problem, the authors generated 25,000 synthetic pairs. They took clean Latin text and automatically applied known transformations (shuffling, inflecting, substituting synonyms) to create "perfect" ground-truth data for the model to learn the basic "shape" of the task.
- Active Learning (AL): After pre-training, the model identifies the real-world examples it is most uncertain about. A human annotator corrects these specific "hard" cases, and the model is re-trained. This loop continues, focusing human effort where it matters most.
Datasets
- Loci Similes Benchmark: A collection of 1,490 expert-verified Latin references, split into 858 verbatim citations and 632 allusions. The authors provided new word-level annotations for this entire set.
- Synthetic Pairs: 25,000 pairs generated from clean Latin corpora using automated edit scripts.
- Latin Resources: The model incorporates external knowledge from the Latin WordNet and the Collatinus decliner to help identify lexical and morphological relationships.
Key Insights and Ideas
- Joint Learning is Key: The authors found that linking (alignment) and labeling (operation classification) are best learned together in a single step. Models that tried to align first and label later performed significantly worse, especially on difficult labels like substitutions.
- Synthetic Data as a "Warm Start": Pre-training on synthetic data effectively teaches the model the "grammar" of text reuse. This allows active learning to be effective from the very first human-annotated pair, avoiding the initial random-guess phase typical of AL.
- Uncertainty Sampling Efficiency: The model's uncertainty about a link is a better signal for what to annotate next than the predicted difficulty of the labels themselves.
- Edit Scripts as Features: Beyond just explaining a single pair, the predicted operations (the "edit scripts") serve as powerful features for downstream tasks. For instance, the frequency of
SUBST(substitution) vs.COPYoperations is a strong indicator of whether a passage is a verbatim quote or a subtle allusion.
Key Results
- Annotation Efficiency: Using uncertainty-based active learning, the model reached the same performance level (Macro F1 ~84.5) with only 200 corrected pairs as it did when trained on the full 1,490-pair dataset.
- Model Performance: The "stretch-and-link" pointer achieved a Macro F1 of 85.37, outperforming standard statistical aligners and rule-based systems.
- Downstream Utility: Features derived from the model's edit scripts identified true references significantly better than standard text similarity scores (Macro F1 of 69.85 vs 51.34).
Limitations and Future Work
- Annotation Robustness: The current gold-standard data was produced by a single annotator. Future work should involve multiple experts to measure and account for inter-annotator agreement, as literary interpretation can be subjective.
- Lexical Coverage: The model struggles when a substitution involves words not found in current Latin lexical resources (like WordNet).
- Generative Synthetic Data: The authors suggest that using a Large Language Model (LLM) to generate more sophisticated synthetic substitutions (e.g., context-aware synonyms) could further improve the model's ability to detect complex allusions.
The authors have released their code, the word-level predictions for the benchmark, and an interactive demo to allow the community to explore these "edit scripts" in action.
Summary updated