Logion: Machine-Learning Based Detection and Correction of Textual Errors in Greek Philology
Paper · 2023 · Charlie Cowen-Breen, Creston Brooks, Barbara Graziosi et al.
Summary
Much of ancient Greek literature survives in copies of earlier manuscripts. An error introduced during copying can pass from one manuscript to the next and eventually enter a printed edition. The resulting passage may still contain familiar words, making the problem harder to spot than an ordinary misspelling. Logion uses machine learning to direct a philologist’s attention to places where the surviving wording looks improbable and a small change would make better sense of the surrounding text.
The authors train BERT to predict missing pieces of premodern Greek, first on a broad collection of roughly 70 million words and then on particular works. To inspect a passage, Logion estimates how well each word fits its context and compares it with the strongest candidate that can be reached by a small number of character edits. The comparison gives a low score to a word when a close alternative fits substantially better. The system can then present that alternative alongside other suggestions for a scholar to investigate. A separate screening procedure uses thresholds for contextual probability, confidence in a suggestion, and spelling distance.
The main controlled experiment puts a single artificial error into each paragraph. The altered word has to be a form that the author has used repeatedly, so a dictionary check would accept it. Across 615 test instances, the chance-confidence ratio put the altered word first in 90.5% of paragraphs. Ranking by the observed word’s probability alone achieved 59.7%, and ranking by confidence in a nearby candidate achieved 54.2%. When the ratio put the right location first, Logion’s leading replacement recovered the original word in 98.1% of those instances.
A case from Michael Psellus shows how the shortlist can lead to a different kind of discovery. An edition printed two words where Logion proposed joining the text and changing its letters. The suggestion that matched the manuscript came third, yet it was enough to prompt a fresh look at the manuscript and resolve the reading. The controlled results establish how the method works for simulated substitutions. The Psellus case shows what can happen when a scholar takes a suggestion back to the surviving evidence, even when the strongest suggestion is something else.
Deep dive: Logion: Machine-Learning Based Detection and Correction of Textual Errors in Greek Philology
Logion ranks possible copying errors in premodern Greek and proposes corrections, tested on simulated errors and a manuscript reading. · about 34 minutes to read
The problem and its context
How an error comes to look ordinary
The starting point is a distinction between the text an author wrote and the text that a reader can consult. For much of the Greek material at issue, the reader encounters the outcome of a succession of copies. Earlier manuscripts in that chain may have disappeared. Once a scribe introduces an alteration, later scribes can reproduce it faithfully from the copy in front of them. A reading can therefore persist because it was transmitted successfully, even if it began as a mistake.
The authors describe several ways in which a copy can depart from its source. A scribe can skip material, simplify a difficult expression, or substitute a word whose sound, appearance, or function resembles that of the word being copied. A substitution may yield an entirely recognizable form. Its suspicious feature might be the meaning it gives to the sentence, the construction it creates, or its departure from an author’s ordinary usage. Finding the spot can demand as much attention as working out what once stood there.
The possible errors also differ in how much of the original wording they leave visible. With a small spelling change, the transmitted form might offer a strong clue to its predecessor. An omission can remove that clue along with the words. Simplification poses a different problem. It can leave a complete and readily intelligible sentence in which the very ease of the wording conceals the history of the change. A statistical approach has an especially clear point of entry when a surviving expression looks out of place and a closely related expression would fit.
The paper uses Michael Psellus, a Byzantine author, as its initial focus. The authors describe him as a convenient choice for philological reasons at the proof-of-concept stage. Their broader proposal concerns premodern works that have passed through a copying tradition and for which enough relevant text is available. These conditions explain why the project needs both a substantial collection of Greek and a way of adapting what it learns to the works actually being examined.
A shortlist is the natural output for that purpose. Someone reviewing a passage can use it to decide where to look closely, consult the manuscript evidence, and ask whether an alternative makes sense in the larger argument. The statistical step changes the order in which places receive attention. Philological investigation determines whether the printed or transmitted reading has a defensible explanation, whether an earlier witness supports a change, and what a change would do to the meaning.
What scholars and related systems had done
In the account given by the authors, finding scribal errors had chiefly meant reading with care until something gave a specialist cause for suspicion. Database searches could then help with the investigation. A scholar might turn to other passages to assess whether a construction was plausible or to see how an author used a particular expression. Such a search depends on the reader first noticing a difficulty worth pursuing. Logion places a statistical screening step before that investigation. It can raise a question about a place that a reader would otherwise have passed over.
The paper distinguishes this problem from grammatical error correction and spelling checks in modern writing. It cites work on both as examples of automated textual checking, while emphasizing the wider range of changes that arise in manuscript transmission. A form may be grammatical in ordinary use and still be poorly suited to a particular passage. Conversely, a construction that a checker would prefer to regularize may be just what a philologist wants to preserve. The relevant baseline is partly the usage of the author being studied.
Work on Greek inscriptions gives a closer point of comparison because it also uses language to help recover early texts. The study by Assael and colleagues, as described in the paper, trains a system to estimate dates and places and to fill damaged passages in inscriptions. In that setting, physical damage can show where letters are missing. Logion frequently begins with a visible stretch of text and asks whether the visible reading itself deserves scrutiny. The condition of the physical witness and the history of the reading give these tasks different kinds of evidence.
The statistical parallel the authors draw is with out-of-distribution detection. In that setting, a system asks whether an observation looks as if it came from a source whose regularities it has learned. Here, the observation is a word in context, and the source of interest is the author’s usage. The paper draws on earlier likelihood-ratio work by Ren and colleagues, which examined images and genomic sequences, and also discusses likelihood-ratio work on dialogue. Logion makes the comparison local to the word under inspection. It asks how that word fares against alternatives that could plausibly be connected to it by a copying change.
This framing leaves room for more than one explanation of an unusual reading. A word may fall outside the patterns that BERT has learned because the author uses it rarely, because the passage differs from the training material, or because someone altered the text. A nearby alternative supplies an additional clue by giving the reviewer a specific change to consider. The clue becomes evidence of a historical error when the textual circumstances support that interpretation.
The authors situate the technical study alongside a companion philological investigation by Graziosi and colleagues. In their account, that investigation established the initial cases in which contextual prediction helped uncover errors, and the present paper explains the procedure behind those findings and tests it under controlled conditions. They describe the identification and correction of such errors by machine learning as a first to their knowledge. That claim concerns errors in the transmission and presentation of premodern texts, a narrower problem than the automatic restoration of damaged writing in general.
The method, step by step
Learning what can go in a gap
Logion begins with a reader that can complete a gap. During training, some parts of a Greek passage are hidden. BERT uses the visible parts to assign probabilities to possible completions. Because the missing material can occur within a passage, words after the gap can be as relevant as words before it. When Logion inspects an existing reading, it uses the same arrangement. It temporarily treats the word under examination as missing and asks what belongs there, given the surrounding language.
The complete procedure moves from general Greek usage to the local question of whether a particular word might be wrong. It first learns from a broad corpus, then adjusts to a more specific collection, such as selected works. It scores each position against nearby spellings and presents the strongest proposed changes for review. The authors also describe a threshold-based route to a shortlist. The ranking stage in the following diagram shows the route used in the controlled experiment.
How Logion proposes readings for philological review
The steps in order.
The initial training history matters because the paper describes two different amounts of Greek. For the early proof of concept, the authors trained on 6.4 million words obtained from Pranaydeep Singh. Singh and colleagues had compiled that material using sources including the Perseus Digital Library and First1KGreek while developing BERT for ancient and medieval Greek. The Logion authors subsequently compiled a larger collection of approximately 70 million words. That is the corpus behind the broader training setup described in the technical study.
They divided the larger collection with a 90-10 train-test split. During preparation, they packed as much punctuation-separated material as would fit into an input with a limit of 512 tokens. A token is a unit that BERT reads and predicts. Under the subword tokenization used here, a written Greek word can be represented by several tokens. The limit therefore applies to the encoded text rather than to the count of Greek words on the page. Training used two NVIDIA A100 GPUs, a batch size of 16 and a mask ratio of 0.15. The authors report training for 200 epochs until validation loss stabilized. An epoch is a pass through the training data, and validation loss tracks how well the system predicts held-out material during training.
The authors used the tokenizer from Singh and colleagues for two starting conditions. In one, training began from randomly initialized parameters. In the other, it began from an existing Ancient Greek BERT whose training history included Modern Greek. The tokenizer in both conditions divided text according to a vocabulary originally prepared for Modern Greek. Holding it fixed let the authors compare starting parameters under the same segmentation. The implications of that comparison concern initialization with that tokenizer in place.
After broad training, the authors use fine-tuning to adapt BERT to the works they want to examine. They partition the chosen works with a 90-10 train-test split and continue the same masked prediction task until the validation loss stabilizes. The broad training supplies experience with many Greek contexts. The additional training makes the distribution more specific to the material from which suspected errors will be drawn. Throughout this process the training target is the missing text itself. The procedure does not require the author’s works to come with examples labeled as scribal errors.
The trained checkpoint is named LOGION-base. The authors make it available together with shareable data, and they provide code and instructions for reproducing the detection method in the Logion repository. Part of the larger training collection came from the Thesaurus Linguae Graecae under terms restricting further distribution. The available materials consequently include the trained parameters and the portion of the data that can be shared.
From token predictions to word scores
Consider a sequence of tokens. The prediction task centers on a position in the sequence and uses the remaining tokens as its context. The paper writes the quantity learned through masking as follows.
p(w | w₋ᵢ)
Here p is the learned conditional probability, w is a candidate token, and i identifies the position occupied by the hidden token. The expression w₋ᵢ denotes the sequence with the item at position i left out. The minus sign in that subscript marks exclusion. The vertical bar separates the candidate being evaluated from the context supplied to BERT. A higher value means that BERT assigns more probability to w in that position with those surroundings.
Detection operates on words. The authors extend the token prediction procedure to words composed of several tokens using beam search. Beam search keeps a set of promising partial candidates while constructing longer ones. It lets the procedure consider a sequence of sub-word pieces as a possible word without having to pursue every partial sequence equally far. From this point in the method, the paper reuses the same conditional notation for the resulting word-level distribution. The surrounding sequence is now described in words and the candidate is a whole word. This change of unit matters because a textual editor wants to examine the transmitted word, and the proposed character change need not respect the tokenizer’s divisions.
The first score, called chance, evaluates the word actually present in the passage.
p(wᵢ | w₋ᵢ)
The symbol wᵢ is the written word at position i. The notation w₋ᵢ refers to the other words, and p evaluates the written word conditional on them, as indicated by |. A low chance means that BERT gives the existing reading little probability in that location. Rare but sound readings can receive such scores, which is why chance is the starting point of the comparison.
The second score, called confidence, asks how strongly the prediction favors its best candidate.
max over w of p(w | w₋ᵢ)
The operation max takes the greatest probability among the candidates. Here w varies over candidate words, p is the word-level probability given the context, and w₋ᵢ again contains the words outside position i. The vertical bar denotes conditioning on those surroundings. This quantity can be high because the system strongly favors the word that is already there. It becomes a clue to an error when the favored reading differs from the observed one and the latter has little support.
The third score concerns the spelling relationship between the observed word and the unrestricted favorite.
d(wᵢ, argmax over w of p(w | w₋ᵢ))
The function d is Levenshtein distance, which counts the fewest character insertions, deletions, or substitutions needed to change one string into another. Its first argument, wᵢ, is the written word at position i. Its second argument is the candidate selected by argmax, the operation that returns a word w achieving the largest probability p given context w₋ᵢ. The vertical bar denotes that dependence on context. This score, which the paper calls scribal distance, makes graphic closeness measurable. The authors connect that closeness to the fact that changes in copying may involve similar-looking or similar-sounding forms. Levenshtein distance itself counts edits to writing.
The scores address different situations. A grammatical construction with several defensible completions may give the observed word a modest probability, while leaving every plausible alternative with a modest probability too. A very predictable construction may give its best completion high confidence, with that completion already in the text. A short edit can connect legitimate words whose interchange would leave the text intact or change its meaning substantially. To turn these observations into a screening rule, Logion needs to ask how the existing word fares against candidates that satisfy the spelling constraint.
Ranking the observed reading against nearby words
The paper defines a neighborhood of a written form by allowing a bounded number of edits.
Wₖ(x) = {y : d(x, y) ≤ k}
Here x is the form from which distances are measured, y is a candidate string, and Wₖ(x) is the set of strings allowed by the bound. The braces denote a set, and the colon introduces the condition for belonging to it. The function d(x, y) is the Levenshtein distance from x to y. The symbol k is the fixed positive integer setting the maximum allowed distance, and ≤ includes candidates exactly at that limit. Under this definition the written form belongs to its own neighborhood.
For any position, Logion compares the chance of the written word with the greatest probability in its neighborhood. The authors call the result the chance-confidence ratio, or CCR.
ρᵢ(s) = p(wᵢ | w₋ᵢ) / max over w ∈ Wₖ(wᵢ) of p(w | w₋ᵢ)
The expression ρᵢ(s) is the ratio for position i in word sequence s. Its numerator is p, the conditional probability of the observed word wᵢ given the remaining words w₋ᵢ. The slash divides that value by the maximum conditional probability among the candidate words w. The membership sign ∈ restricts those words to Wₖ(wᵢ), the neighborhood of the observed form under edit bound k. Both probabilities use the same context, indicated by |.
A small ratio requires a plausible rival in the allowed neighborhood that substantially improves on the existing reading. This is what makes the ratio more informative than low chance alone. If a rare word is the best nearby option, the denominator equals its own probability. The rarity then gives it no advantage in the ranking of suspicious positions. A common word can move up that ranking if a small edit produces a form that is much more likely in the same passage.
The authors explain the name through a further conditioning step. Suppose the prediction is limited to words in the edit neighborhood and their probabilities are rescaled to sum to the whole probability available there. The observed word’s probability and the strongest candidate’s probability are rescaled by the same amount. Dividing one by the other cancels that change. The ratio can therefore be read as chance divided by confidence within the family of nearby spellings.
The paper’s pipeline figure demonstrates the procedure with a short English illustration. The word bumps appears where the wording before corruption had jumps. The ratio calls attention to bumps because the context favors jumps and changing the first letter is enough to reach it. The illustration shows why a recognizable word can be a good target for the method. Its spelling is acceptable in isolation, and the local grammatical and semantic context supplies the information needed to prefer a different word.
What the probability argument establishes
The paper gives the ratio a sentence-level interpretation under an explicit assumption. Suppose there is a joint distribution assigning probabilities to complete sentences and the conditional word scores come from that distribution. Under this assumption, the authors consider the most probable sentence among those reachable through an edit at a single word position. They write the choice for the one-character case as follows.
s∗ = argmax over s′ ∈ W₁(s) of p(s′)
Here s is the starting sentence, s′ ranges over candidate sentences, and W₁(s) is the sentence neighborhood used for the one-character search. The membership sign ∈ restricts the search to that neighborhood. In this formula p(s′) is the joint probability of the entire candidate sentence. The operation argmax returns a candidate achieving the greatest such probability, and the star in s∗ marks the selected candidate.
For a change at a fixed position, all surrounding words stay the same. The joint probability of a sentence can be written as the probability of those surroundings multiplied by the conditional probability of the selected word. When the altered and unaltered sentences are compared at that position, the surroundings contribute the same factor to both. The ratio of the joint probabilities is thus determined by the two conditional word probabilities. The appendix expresses the optimization across positions in the following form.
max over s′ ∈ W₁(s) of p(s′) = p(s) × max over 1 ≤ i ≤ n of 1 / ρᵢ(s)
On the left, s′ is a sentence in the edit neighborhood W₁(s) of the original sentence s, ∈ indicates membership, and p(s′) is its joint probability. The first max selects the largest such probability. On the right, p(s) is the joint probability of the observed sentence. The multiplication sign joins that probability to the largest reciprocal of the position scores ρᵢ(s). The index i ranges from 1 through n, the number of words, including the endpoints indicated by ≤. The numerator 1 and division sign indicate the reciprocal. The expression uses the same choice of allowed candidates in the sentence search and in the local ratios.
The reciprocal explains the direction of the ranking. A small CCR at a position corresponds to a large proportional gain in probability from the best change there. In the case where an alteration improves the sentence, the best location has the following characterization.
i∗ = argmin over i of ρᵢ(s)
The symbol i∗ denotes a position at which the strongest allowed sentence-level improvement can be made. The operation argmin returns a position i achieving the smallest ρᵢ(s), the chance-confidence ratio at that position in s. Once that position is selected, the procedure uses the highest-probability candidate allowed there. The argument extends to a larger character budget when the search still changes only a single word position.
There is a boundary detail in the printed proposition worth distinguishing from this ranking argument. The paper writes the strict criterion for keeping the original sentence as follows.
ρᵢ(s) > 1 for all i
Here ρᵢ(s) is the position ratio for sentence s, i ranges over its word positions, and > means that the observed word beats the strongest candidate in the denominator strictly. The value 1 marks equality between the observed and best candidate probabilities. This strict test makes sense when the denominator runs over genuine changes. With the inclusive neighborhood in the displayed CCR definition, the observed word is itself a candidate, so the denominator is at least as large as the numerator. The inclusive score reaches 1 where no allowed change is better, and that equality can cover ties. The appendix’s strict comparison is explicitly with sentences that differ from the original. The distinction affects the condition for leaving a reading alone while preserving the interpretation of a low ratio as evidence of an improving edit.
The assumption about the joint distribution matters as well. The practical scores originate in masked prediction. The proposition says what their ordering means when the conditionals agree with a joint distribution over sentences. It does not supply a separate probability that the highest-scoring sentence matches the manuscript that an ancient or medieval scribe had in front of them. That historical question depends on the transmission process and the surviving evidence.
A likelihood ratio and another route to a shortlist
A second interpretation treats the original word as unknown and asks which possible reading best accounts for the observed surroundings. The null hypothesis, H₀, treats the written word as correct. The alternative, H₁, treats the original as a different word within the allowed edit distance. Under this setup the paper gives the likelihood-ratio statistic as follows.
p(w₋ᵢ | wᵢ) / max over w ∈ Wₖ(wᵢ) of p(w₋ᵢ | w)
In this expression p gives the probability of the surroundings w₋ᵢ conditional on a word, as indicated by |. The numerator uses the observed word wᵢ at position i. The denominator maximizes the same quantity over words w belonging, via ∈, to Wₖ(wᵢ), the neighborhood defined by character budget k. The slash divides the likelihood under the written reading by the best available likelihood within that search family. H₀ is the case of an unchanged reading, and H₁ is the case of an actual alteration. The denominator as displayed includes the written word among the possibilities.
The difference in conditioning from the earlier formula is deliberate. Here the question is how likely the context would be if a candidate were original. In the CCR, the question is how likely the candidate is given that context. With a uniform prior over the neighborhood and no prior weight outside it, Bayes’ rule lets the paper relate the two. Every allowed candidate has the same prior weight, and the normalization for the common context also stays fixed. These shared terms cancel in the ratio. This interpretation supplies a formal way to study the score under examples with intact and altered readings.
Logion can also screen positions by setting separate thresholds. In the companion study, the procedure retained cases with confidence of at least 50% and scribal distance at most 3, then ordered the remaining words from lowest chance upward. This allows the reviewer to set requirements for the strength and closeness of a leading suggestion before examining how unusual the written word is. When the favorite meets the distance threshold, restricting the search to that distance retains the favorite.
The paper illustrates stricter screening with a confidence requirement of 90%, a chance threshold of 10⁻⁶, and a distance limit of 2. With these settings, the search aims to improve the list’s precision by increasing the proportion of flags that prove worthwhile. For a search intended to improve recall, meaning to reach more of the errors present, the authors illustrate thresholds of 50% confidence, 10⁻⁴ chance, and a distance limit of 4. Those numbers are examples of how to set the filters. The paper does not report measured precision and recall for those configurations on a collection of real scribal errors.
Once a word is flagged in the controlled experiment, the proposed emendation is the strongest word in the one-character neighborhood. An emendation is a proposed change to the text. The authors express the selection this way.
argmax over w ∈ W₁(wᵢ) of p(w | w₋ᵢ)
Here argmax returns a candidate word w maximizing the conditional probability p(w | w₋ᵢ). The vertical bar means that the candidate is evaluated given the surrounding words w₋ᵢ, and ∈ restricts the candidates to W₁(wᵢ), the neighborhood within a single character edit of the observed word wᵢ at position i. In practice the authors allow a reviewer to see several suggestions, ordered by those probabilities, and use a broader neighborhood when appropriate. A ranked list is especially useful when the relevant manuscript reading receives some support from the context but sits below a more familiar expression.
Experiments and results
Prediction on held-out Greek
The paper first reports how well BERT recovers a masked token on its premodern Greek test set. On that split, the 1-token prediction task gives top-1 accuracy of 84.4% and top-5 accuracy of 95.2%. Top-1 credits cases in which the hidden token is the leading prediction. Top-5 credits cases in which it appears anywhere within the first five suggestions. The reported pseudo-perplexity is 2.162. Pseudo-perplexity summarizes how well a masked predictor scores observed tokens using their surroundings.
These measures evaluate the mechanism that later supplies word probabilities. Their unit is the token under this particular segmentation, and the authors caution against comparing them across different tokenizations. A word represented by several pieces creates a different prediction problem from one represented by a single piece. The token scores also answer a different question from whether Logion can find a textual error. In the prediction test, the location of the gap is known from the beginning. In the paragraph test, the system has to identify which location is worth changing.
How the artificial errors were made
For the detection experiment, the authors started with paragraphs of Greek and put one altered word in each. They chose a character at random and attempted to replace it with another character. They accepted a change only if it produced a form that the author had used at least ten times. If a trial failed that check, they continued trying substitutions. The resulting error is an attested word in an unsuitable place, with a recorded original available for checking proposed corrections.
This choice controls an important source of easy success. If random edits often produced forms absent from the author’s vocabulary, a lookup could detect many of the altered words without examining a sentence. The requirement that the resulting form occur repeatedly moves the experiment toward contextual discrimination. The system must decide whether a word belongs where it appears. The paper motivates substitutions partly by pointing to itacism, the confusion among vowels and vowel combinations whose pronunciations converged on /i/. The actual simulation uses random character substitutions subject to the vocabulary condition, so it tests a broader mechanical rule than a list of that particular kind of spelling confusion.
The setup gives every altered paragraph an answer that can be checked without asking scholars to decide among plausible reconstructions. The original word is the reference for the correction test, and its location is the reference for detection. A paragraph contains an average of 230 words in the experiment. Logion ranks all of its words using the one-character neighborhood, with the most suspicious score first. Evaluating success at several depths shows how the method would behave when a reviewer inspects a short list rather than just the leading word.
The baseline rankings use the same task with different scores. One orders words by chance alone, so the least probable observed readings come first. The other orders them by confidence in the best candidate subject to scribal distance 1. The latter retains the restriction on how far the candidate may be from the observed form. The paper’s table calls this confidence alone. Its definition in the experimental setup is important because it isolates the effect of assessing how convincing a nearby candidate is without also dividing by the support for the written word.
Finding the altered word
The detection test consists of 615 randomly generated instances. The CCR put the deliberately altered word first on 556 occasions, giving top-1 accuracy of 90.5%. Chance alone reached 59.7%, and confidence with the distance restriction reached 54.2%. In each case, top-1 accuracy measures the share of paragraphs in which the deliberately altered word is ranked ahead of all the other words for inspection.
Top-1 detection accuracy on paragraphs with an artificial Greek error
The ratio puts the altered word first more often than either component ranking.
The numbers
| System or setting | accuracy % |
|---|---|
| Chance alone | 59.7 |
| Confidence at scribal distance 1 | 54.2 |
| Chance-confidence ratio (this paper) | 90.5 |
The ratio also leads at the depths relevant to a longer shortlist. On the same artificial-error test, top-5 detection accuracy is 95.9% for CCR, 88.2% for chance, and 81.1% for restricted confidence. At top-10, the corresponding results are 97.6%, 93.1%, and 83.5%. These measures credit the presence of the altered word anywhere within the number of places specified. For a reviewer working through suggestions, the top-10 result describes how often the known target can be reached before looking beyond that depth in a paragraph.
Top-10 detection accuracy on paragraphs with an artificial Greek error
The ratio retains its lead when the altered word can appear anywhere on the shortlist.
The numbers
| System or setting | accuracy % |
|---|---|
| Chance alone | 93.1 |
| Confidence at scribal distance 1 | 83.5 |
| Chance-confidence ratio (this paper) | 97.6 |
The experiment also asks whether Logion can recover the original word once the leading flag is in the right place. Among paragraphs in which CCR located the altered word first, the original word was the highest-ranked replacement 98.1% of the time. That denominator matters. The correction figure is conditional on successful top-1 detection. It describes how well Logion chose a replacement when its first choice of location was correct. The original is eligible under the one-character constraint because the experiment generated the corruption with a single substitution.
The rank distribution shows what happens beyond a handful of fixed depths. The authors plot the cumulative distribution of the altered word’s percentile within its paragraph. The first position corresponds to the 0th percentile. They report that more than 85% of altered words reach the most suspicious 10% under any of the ranking schemes. The figure uses bands based on the DKW inequality with 99% coverage probability. The curves describe how rapidly the known errors accumulate as the reviewer looks farther down each ordering. The ratio’s particularly strong showing at the start is valuable when reading time is scarce.
How a flag led back to a manuscript
The controlled test gives a known answer for every paragraph. The paper’s example from the Historia brevis of Psellus illustrates another route to establishing a reading. At lines 81.89–90, the edition by Aerts prints a passage about a man who had already held royal power twice and wanted further terms. The sentence invokes the sun after clouds. As printed, the remark offers the image of sun returning after cloud, while the recovered reading describes that sun as sweet. The adjective makes the image an evaluation of the return and fits the man’s desire to rule again.
When the authors screened the passage by confidence and distance, the token δε was among the readings with the lowest chance in the test set. The figure accompanying the example also shows it with the smallest CCR in the displayed analysis of its 512-token context. The suggestions involve removing the space before δε and considering forms that span the two printed words. The manuscript’s reading, ἡδὺ, corresponds to the third suggestion depicted in the figure. Re-examination of the witness used for the edition showed that it already carried that reading. The mistake in this particular case arose in the scholarly reading of the manuscript.
The case makes the separation between finding a location and recovering a reading concrete. The software identified a place worth attention and put the attested reading within reach. The manuscript supplied the reason to choose it. The paper also reports discoveries involving errors made by scribes, mistakes in print, and problems from digitization, with the detailed philological work published in the companion study. The displayed Psellus example documents the route from an unusual score to a particular correction. The collection of reported discoveries serves a different evidential purpose from the counts on generated substitutions.
What the ablations show
Comparing a ratio with its ingredients
The principal ablation changes the rule that orders words for inspection while keeping the artificial-error task fixed. In the chance-only comparison, the observed form receives all the attention. If its contextual probability is low, it can rise to the top even when no nearby candidate looks much better. In the restricted-confidence comparison, a strong prediction for a nearby form is the signal, whether or not the existing word already fits. The CCR uses both quantities and interprets them relative to one another. The character radius provides the same kind of local restriction used in the confidence comparison.
The top-1 results show that this relative comparison helps the most where the ordering has to make a sharp decision. Chance alone does identify many suspicious readings. Its top-10 result of 93.1% on the artificial paragraphs shows why it remains a viable shortlist score. Yet it reaches the correct first position substantially less frequently than CCR. Restricted confidence also concentrates alterations toward the suspicious end of the paragraph while supplying a weaker first choice. Looking only at whether a position gets some attention would obscure the difference in how quickly each ranking tends to reach the altered word.
The contrast is easy to interpret in light of the generator. Every accepted artificial change is an attested form, and the original remains a close competitor. A score that compares the two kinds of support can exploit both properties. Chance alone can respond to the poor resulting fit, and restricted confidence can respond to the presence of a good candidate. The ratio has a direct way to recognize the combination of poor fit for the given word and a strong nearby alternative. The experiment supports that combination for the substitutions constructed here.
The comparisons leave the independent contribution of the edit restriction unresolved. The confidence baseline already uses distance, and chance alone discards the alternative search with which distance is used. A comparison between ratios built with different neighborhood rules would address a different question. The reported results also do not independently measure graphic resemblance and sound resemblance. The edit budget operates on written characters, so the evidence concerns the joint procedure defined in the paper.
Inspecting the score distributions
The paper examines the scores themselves as well as where the changed word ranks. Its distribution plots compare samples associated with H₀, the case of an intact reading, with samples associated with H₁, the case of an artificial alteration. Each plot uses roughly 500,000 samples under H₀ and 1,000 under H₁. The authors restrict the artificial replacement to a single token in this analysis to generate samples efficiently. The dataset for these plots therefore has a more specific replacement constraint than the general word-level explanation of the procedure.
The horizontal scale is the negative logarithm of the score under study. This transformation spreads out small positive probabilities and ratios, which are important in the comparisons.
−log T
Here T stands for the metric plotted in a given panel, namely CCR, chance, or confidence. The operation log takes its logarithm, and the leading minus sign reverses its sign. The curves show how the scores distribute under each of the two sampled conditions. The observed separation supports the use of the likelihood-ratio framing for simulated corruptions. The plots do not estimate how frequent such corruptions are in the real texts a reviewer would examine.
The rank plots answer a related question from a practical angle. A global distribution can show that intact and altered words tend to receive different scores, while a within-paragraph rank shows whether a known error wins attention over the other words in that passage. These can come apart when a paragraph has several unusual words. The artificial error can have a score typical of alterations overall and still face strong competition in its own paragraph. The paper’s percentile curves directly measure that competition and show where the ratio improves the order.
What changed when training started elsewhere
The initialization comparison asks a separate question about training. One run starts with random parameters. The other starts from Singh and colleagues’ Ancient Greek BERT, which had been adapted from Modern Greek. Both runs use the same Modern Greek sub-word tokenizer. The authors report that their validation losses converged to the same level after a small number of epochs, and they find no discernible benefit from the inherited pretraining under that comparison.
This result concerns the validation objective with a fixed tokenizer. An inherited vocabulary can influence which pieces BERT sees even when its other parameters start from scratch. Since the tokenizer was common to both runs, the convergence does not evaluate a vocabulary learned specifically for premodern Greek. The paper identifies such a vocabulary as a direction for future work. It also gives no equivalent controlled comparison that removes fine-tuning and reports the effect on the paragraph detection rankings. The evidence for changing the ranking rule is direct, while the training comparison is about where the prediction system starts and where its validation loss settles.
Limitations
Limits the authors state
The authors emphasize that scribal errors are difficult to simulate. The individual scribe, the circumstances of copying, and the scribe’s interest in the work can all shape the resulting text. Some changes are close to the experiment’s small spelling substitutions. Others involve simplification or omission and can extend beyond the selected position. The authors chose a tractable generator and used it as a controlled test of contextual ranking. Their account of transmission gives reasons to expect some errors to behave differently.
Among those reasons is the possibility that a copyist improves the reading according to the predictor’s own criteria. A scribe can make a rare construction easier, exchange an unfamiliar word for a familiar one, or resolve an awkward phrase by making it ordinary. The altered text can consequently receive a higher probability than the original. The paper connects this possibility to the philological principle known as lectio difficilior potior. In suitable circumstances, a more difficult reading may have a stronger claim to authenticity because simplification offers a plausible route from that reading to its competitors.
This point qualifies the interpretation of the sentence-level argument. The ratio identifies the allowed revision that the learned distribution favors most, given the mathematical assumption used in the proposition. The authors explicitly caution against taking that preference as proof of the author’s wording. In some transmission histories, the smoothest available candidate could resemble the scribe’s intervention more closely than the lost reading. The procedure is most directly aligned with cases where the transmitted change makes the context less probable and the restoration reverses that effect.
The authors also describe the practical importance of access to Greek text. Part of the training material from the Thesaurus Linguae Graecae cannot be redistributed under its license. The available parameters and shareable data allow others to use the trained predictor and follow the published procedure, while recreating the full training collection calls for access to the restricted material. The authors make the availability of sufficient data a condition of extending their methods to other bodies of premodern writing.
Tokenization and training exposure remain open technical issues in the paper. The authors would like a sub-word vocabulary suited to ancient Greek. They also want a way to inspect a section that contributed to training while excluding its influence at inference time, without retraining on a new collection. They discuss DEMix as a possible route because it offers a way to vary which components contribute during prediction. That capability is presented as future work. The paper’s current setup uses the trained distributions as they stand.
A more ambitious proposal treats a history of copying as a process in which changes can accumulate over successive stages. The authors suggest thinking about these changes through a diffusion process and mention Gibbs sampling from conditional word distributions as one possible way to describe a trajectory of altered texts. In that proposal, the historical question becomes how to infer an earlier text from a later state after repeated changes. They also mention ELECTRA as a promising architecture for future investigation. The experiments reported here evaluate scores and candidate rankings rather than either of those proposed approaches to learning the corruption process.
Limits apparent from the experimental setup
The artificial evaluation supplies one known corruption per paragraph. The rankings therefore answer a question about placement given that a target is present. A collection under ordinary philological review can contain passages with no discoverable error and passages with several possible difficulties. Looking at the highest-ranked word in every passage will always produce a candidate, including for passages where no change is warranted. The experiment establishes how much reviewing is needed to reach a planted error. It leaves the rate of genuine findings among flags in an ordinary corpus open.
For the same reason, top-10 accuracy is a coverage measure over paragraphs in the simulated test. It counts a paragraph as a success when the planted word appears within the short list. A successful list can contain several plausible-looking false leads. The result therefore gives a reviewer evidence about how frequently the target will be somewhere on the list, while the effort required to establish which entries deserve action depends on the texts and evidence at hand. The threshold examples in the method suggest ways to trade breadth for selectivity, but the paper supplies no calibration of that tradeoff for a representative set of philological cases.
Correction is especially well constrained by construction. The hidden original must be available through a single character edit, since that is how the altered word was created. In real texts, the correct reading can be farther away, involve a different division between words, or require reconstructing missing material. The Psellus example is informative because a suggestion crosses a printed word boundary. A single example of that kind can establish that the output led to an actual discovery. It cannot establish how frequently similar boundary errors, omissions, or longer alterations are recoverable.
The conditional correction figure also excludes paragraphs where the method’s leading flag points to the wrong word. A reviewer faced with those paragraphs would first have to recognize that the leading flag is unhelpful and then look farther down the list. The experiment’s separate measures make both outcomes visible. The high correction result describes the subset where the initial search chose the right location. The shortlist results describe how often another location remains within easy reach even if it was missed at the first rank. Neither directly measures a full editing session with a reviewer making decisions about every suggestion.
The original word in the simulator is the word in the unmodified input. It is the right reference for reversing the artificial edit. The design does not require a philological demonstration that every surrounding word in that input is itself authentic. Any unresolved historical issues in the background text are a separate matter from the generated target. This separation is what makes the experiment repeatable and also sets the limit of its ground truth. A score can be correct for the defined task while leaving the status of the broader passage undecided.
Levenshtein distance assigns proximity according to the number of written edits. For the experiment, this aligns directly with how errors were generated. For real copying, the chance of an alteration can depend on which letters are involved, how a scribe forms them, and whether pronunciations encourage a particular confusion. The uniform prior used to interpret the likelihood ratio does not account for preferences among candidates within the allowed radius. Its role is to make the ratio interpretable under a stated assumption. The paper gives no estimated distribution of actual confusions from which to test how far that assumption departs from the copying habits in the witnesses examined.
Another boundary is the amount of context BERT sees. The input limit permits substantial local context, as the Psellus example illustrates. A reader can also use evidence elsewhere in a work or in other witnesses. The paper’s case study shows the value of bringing those different sources of evidence into contact. Its conditional probabilities come from the trained system and the supplied context, while the attested reading is established by consultation of the manuscript. A probability attached to a candidate can tell a reviewer why it was surfaced without resolving whether it is historically preferable.
Finally, the discussion of extension to other authors and languages is a statement of applicability in principle. The evidence reported for the detection rankings comes from artificial edits in the studied Greek material, and the concrete case is from Psellus. How well the same scores work with other authors depends partly on how much relevant text is available, how the tokenizer represents it, and how closely the errors resemble those that the search can propose. The paper does not report a comparative study across languages, authors, or manuscript traditions that would settle those questions.
What came after
Gretino (2026) cites Logion and presents a Greek and Latin dataset for benchmarking information retrieval in classical languages. It continues the line of work concerned with evaluating computational methods on classical-language material. In Logion, the immediate object of evaluation is an ordering of words within a passage, checked against the known position of an artificial corruption. Gretino puts retrieval systems at the center of its benchmark and includes material in both languages.
The documented connection is the citation and the shared concern with evaluation on classical texts. Gretino’s stated purpose establishes its contribution to retrieval benchmarking. It leaves open whether its benchmark uses Logion’s scores, its Greek training resources, or its procedure for proposing emendations.
Cite
Cite as Charlie Cowen-Breen, Creston Brooks, Barbara Graziosi and Johannes Haubold. 2023. Logion: Machine-Learning Based Detection and Correction of Textual Errors in Greek Philology. Proceedings of the Ancient Language Processing Workshop.
@inproceedings{cowenbreen2023logion,
title = {{Logion: Machine-Learning Based Detection and Correction of Textual Errors in Greek Philology}},
author = {Charlie Cowen-Breen, Creston Brooks, Barbara Graziosi and Johannes Haubold},
booktitle = {Proceedings of the Ancient Language Processing Workshop},
year = {2023},
url = {https://aclanthology.org/2023.alp-1.20/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/breen-2023-logion-machine-learning-based-detection/