Learning Word-Level Explanations of Text Reuse in Latin Literature with Little Annotation
Authors: Julian Schelb, Michael Wittweiler, Marie Revellio
Organizations: Department of Computer and Information Science, University of Konstanz · Institute of Archaeology, Classical Philology and Ancient Studies, University of Zurich · Department of Latin Philology, University of Konstanz
Detecting an intertextual reference is only the first step; philologists also need to know how a later author reworked the source. We explain a reuse pair word by word: each word of the reusing passage is first aligned to its source word, then labeled with the operation that transformed it, such as a copy, a change of inflection, or a substitution. Such word-level operations are expensive to annotate, and only a few corpora annotated at this level exist for text reuse in Latin literature. We describe a procedure that needs only a limited number of annotations: synthetic pairs, built by applying known operations to Latin text, train a first model, and active learning chooses the pairs an annotator corrects. Among several architectures, a model that links and labels together performs best: a pointer network that, for every reuse word, chooses a source word and names the operation in the same step. We show that with active learning, 200 pairs chosen by uncertainty are enough for the model to match one trained on every annotated pair of the 1,490 references of the Loci Similes benchmark. We release our code, word-level predictions for all references, and an interactive demo.
Figures & tables
Figure 1: Example of reworked reuse. Valerius Flaccus reworks half a line of Virgil: corde is kept ( COPY ), premebat returns as a participle ( INFLECT ), and metus stands in the slot of curam ( SUBST ).
Label
Signal
Association
Meaning
Example
Annotation
(source / reuse)
n
%
cit. %
cf. %
Links (share of links)
COPY
form
verb.
same form, spelling folded
frigidus / frigidus
4,828
77.2
85.2
48.0
INFLECT
form
verb.
same lemma, other form
regem / reges
870
13.9
9.3
30.8
SUBST
lexical
allus.
other lemma, same slot
pugnam / calamitatem
503
8.0
4.7
20.5
SPLIT
cardinality
allus.
two reuse words, one source
n/a
40
0.6
0.7
0.4
Table 1: Label inventory and distribution. Labels are grouped by the signal that decides them and by their association with the reference (Association: verbatim, allusion, marker, or no match). n is the count in the annotation and % its share of the operation. INS , NEW , DEL , OUT , and the patterns are derived from the links and not annotated.
Figure 2: Architecture of our stretch-and-link pointer. For each reuse word, the model scores every source word and two null positions, which link to no source word ( INS / NEW or MARK ). Three heads decide: the link head chooses a source word or a null position, the operation head names what was done to the chosen word (such as COPY or SUBST ), and the stretch head estimates whether the reuse word is reused at all and adds this estimate to the INS / NEW null. A source word that no reuse word chooses (here sub ) is labeled DEL .
Links
Labels
System
Method
P
R
F1
macro F1
INFLECT
SUBST
MARK
Invented
Links, then the rule
Statistical aligner
Brown et al.,1993
84.87
62.39
71.87
67.46
66.07
1.32
8.46
1.15
Rule-based aligner
Sultan et al.,2014
94.16
83.07
88.15
70.87
56.88
7.17
12.47
0.20
Embedding similarity
Jalili Sabet et al.,2020
90.73
75.17
82.16
66.47
25.32
23.21
16.34
0.17
Embedding similarity (FT)
Dou and Neubig,2021
89.57
84.37
86.75
67.50
37.23
13.05
14.67
0.41
Table 2: Performance comparison of alignment architectures. Links are scored by precision (P), recall (R), and F1 under sure/possible scoring, operation labels by F1, and citing formulas by MARK span F1. Invented counts links per pair on random re-pairings, which contain no reuse. Method gives the work each system is based on; FT marks the fine-tuned embedding aligner. All other values are ×100 and averaged over five folds.
Figure 3: Performance vs. annotation effort trade-off. Macro F1 against the number of corrected pairs; the learning curve uses random annotated pairs. Mean over five folds, bands ±1 standard deviation.
Figure 4: Projection of operation-derived features for verbatim references, allusions, and no-match pairs. Allusions overlap with both verbatim references and no-match pairs, while verbatim references and no-match pairs are distinct. Contours show density.
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
Label
Signal
Association
Meaning
Example
Annotation
(source / reuse)
n
%
cit. %
cf. %
Links (share of links)
COPY
form
verb.
same form, spelling folded
frigidus / frigidus
4,828
77.2
85.2
48.0
INFLECT
form
verb.
same lemma, other form
regem / reges
870
13.9
9.3
30.8
SUBST
lexical
allus.
other lemma, same slot
pugnam / calamitatem
503
8.0
4.7
20.5
SPLIT
cardinality
allus.
two reuse words, one source
n/a
40
0.6
0.7
0.4
Appendix
Table 3: Label inventory with the relations of SUBST . As Table 1 , with the 13 relations a SUBST link can name; relations under 1 % are pooled as other, and their shares are of SUBST links.
Row
macro F1
INFLECT
SUBST
Δ
Components, added one at a time
Pointer, plain
83.18
74.59
47.47
n/a
+ evidence grid
84.24
77.87
49.06
+1.06 (4/5)
+ stretch head
84.44
76.52
51.26
+0.19 (3/5)
+ COPY gate
85.37
78.36
53.60
+0.94 (5/5)
The untyped pointer’s links, labeled by
Appendix
Table 4: Ablations of our model. Mean over five folds, ×100 : macro F1, INFLECT and SUBST F1, and Δ , the paired gain in macro F1 over the row above with the folds won out of five. The COPY gate is the copy rule at decoding, and the last component row is our model. Restoring split links adds +0.23 (3/5).
Reference vs. no match
cit. / cf.
Script from
F1
R@10
F1
Annotation
n/a
n/a
79.62
Ours
69.85
93.99
77.77
Span aligner
68.98
94.02
78.27
Embedding similarity
52.67
80.41
71.09
fine-tuned
56.28
87.39
74.27
Appendix
Table 5: Scripts as evidence of reuse. A logistic regression over the script features separates references from no-match pairs (per-query macro F1, Recall@10; both reference types pooled) and verbatim references from allusions among the true references (macro F1). Mean over five folds, ×100 . The last two rows use no script.
Feature
Meaning
Group
AUC
n_q
words in the reusing passage
amount
0.47
n_s
words in the source passage
amount
0.48
n_links
links drawn
amount
0.85
link_rate
links per reuse word
amount
0.81
src_cov
links per source word
amount
0.79
len_ratio
reuse length over source length
amount
0.49
Appendix
Table 6: Script features of the downstream classifier. Each of the 30 features is read off the decoded script of a candidate pair. AUC measures how well a feature alone ranks verbatim references above allusions among the true references (0.5 is chance), on our model’s scripts over all five folds.
Amount
Copying
reuse words
source words
links
link rate
source coverage
length ratio
longest run
runs
COPY share
longest quotation
quota- tions
quoted share
Reference vs. no match
+0.12
−0.08
+2.22
0.00
+0.06 †
+0.05 †
+1.54
+0.36
−2.16
+0.23
+0.26
+0.23
Verbatim vs. no match
+0.33
0.00
+3.50
+0.13
+0.35
−0.16
+2.75
+0.52
−2.23
+0.12
+0.13
+0.11
Allusion vs. no match
+0.06 †
−0.04 †
+1.21
−0.03
0.00
+0.09 †
+0.19
−0.05 †
−1.31
+0.04
+0.04
+0.04
Verbatim vs. allusion
+0.22
+0.12
+1.34
+0.33
+0.27
−0.05 †
+2.21
+0.26
−0.85
+0.13
−0.21 †
−0.24
Appendix
Table 7: Feature coefficients per contrast. Standardized coefficients of a logistic regression over our model’s scripts, one contrast per row, averaged over five fits by test fold. Blue favors the first kind of pair of the row, orange the second, and the shade follows the size; † marks a feature whose sign differs between the fits. The first row is the reference classifier of Table 5 , the two middle rows sample 10 no-match pairs per positive as that classifier does, and the last uses the true references only. Table 6 defines the features.
Table 12
Figure 5: The review app. The predicted script of one reference (Virgil, Eclogues 4.60, in Jerome, Epistula 130.16): the list of pairs with filters on the left, the links as arrows from the source words (top) to the reuse words (bottom) with their operations, and the legend. The app is released with the code.
Tracing connections between historical texts is an important part of intertextual research, enabling scholars to reconstruct the virtual library of a writer and identify the sources influencing their creative process. These intertextual links manifest in diverse forms, ranging from direct verbatim quotations to subtle allusions and paraphrases disguised by morphological variation. Language models offer a promising path forward due to their capability of capturing semantic similarity beyond lexical overlap. However, the development of new methods for this task is held back by the scarcity of standardized benchmarks and easy-to-use datasets. We address this gap by introducing Loci Similes, a benchmark for Latin intertextuality detection comprising a curated dataset of ~176k text segments and 1,490 expert-verified parallels, including 945 labeled references from an existing dataset. Using this data, we establish baselines for retrieval and classification of intertextualities with both lexical methods and pretrained encoder language models.
Julian Schelb, Michael Wittweiler, Marie Revellio +2
Department of Computer and Information Science, University of Konstanz · Institute of Archaology, Classical Philology and Ancient Studies, University of Zurich · Department of Latin Philology, University of Konstanz
Computational approaches to intertextuality have advanced from string matching to neural retrieval, yet their outputs, similarity scores and parallel-passage lists, identify where texts reuse one another without characterizing how or why. We recast fine-grained intertextuality extraction as an agentic task in which a large language model (LLM) reads two text units in full and, through a constrained tool interface, must ground each proposed reuse in exact character spans on both sides and label it under a five-dimension typology of reuse (form, aspect, source-marking, function, stance). We validate the approach on an exhaustive comparison of the Analects with the Book of Han, where three domain experts adjudicate a pooled multi-model candidate set into a benchmark of 2,533 intertextual pairs. Against this standard we study twelve LLMs, reporting precision (56%-93%), a 51× cost spread at comparable quality, and how well their confidence is calibrated. Expert agreement traces a reliability gradient: dimensions legible on the textual surface are annotated consistently, while those requiring inference of intent are contested, delimiting the claims such annotation supports. Scaling the validated extractor to the full Twenty-Four Histories (65,380 comparisons, 5,766 pairs) recovers corpus-level structure a similarity score cannot express. The interpretive composition of citation shows no systematic change across eighteen centuries, yet the same passage is quoted less and less literally. Stability in the aggregate with drift in the individual case is what a cultural-attraction account expects. We release the extraction protocol and the expert-adjudicated benchmark.
Zhaoji Wang, Wanyu Si, Jun Wang
Department of Information Management, Peking University, Beijing, China · Research Center for Digital Humanities, Peking University, Beijing, China
Medieval documentary sources remain inadequately served by existing natural language processing tools. None of the five readily available Latin treebank models attains usable performance on a collection of 160 inventories compiled in Marseille between 1258 and 1446. The best labelled attachment score is 0.62 and the best morphology-aware score is 0.24. Performance does not correlate with either genre or period proximity. To address this shortfall, in-domain training data was generated as a by-product of using these inadequate models. In each of nine iterations, a model pre-annotated 200 sentences; an expert corrected the annotations; and the corrected sentences were used to train the subsequent model, with batches sampled independently of model state, without active-learning selection. Thirty-three hours of annotation effort over 1,804 sentences increased universal part-of-speech accuracy from 0.80 to 0.98 and labelled attachment from 0.48 to 0.92, outperforming all baselines on the reported metrics while using 97% less training data than the largest one of them. Annotator effort declined from 54% of tokens to a plateau of 14-18%, an operational progress metric that requires no separate gold standard and can serve as a stopping criterion.
Gabriel H. Pizzorno
Harvard University · Department of History | Robinson Hall, Office 210 | 35 Quincy Street, Cambridge, MA 02138