- Introduced by
- Adapted from biological phylogenetics (Howe, Robinson, O'Hara); benchmarked by Roos & Heikkilä
- Year
- 2009
- Type
- Algorithmic tree-inference pipeline for reconstructing manuscript genealogies
- Family
- Computational philology / phylogenetics applied to texts
What does it do?
Computational stemma reconstruction applies methods from biological phylogenetics to infer the genealogy of a manuscript tradition from coded variant readings.
Each witness is treated as a taxon and each place of textual variation as a character with discrete states. Tree-inference algorithms then search for the tree that best explains the pattern, typically the one requiring the fewest reading changes (maximum parsimony) or the highest likelihood or posterior probability under a model. Roos and Heikkilä's 2009 study compared several such methods on three artificial benchmark data sets, scored with a numerical criterion, and reported that maximum parsimony (as implemented in PAUP*) and a compression-based method performed best among those tested. Because these data sets were artificial and had a known history, the ranking may not carry over directly to real manuscript traditions. The output is a computational counterpart to the hand-built Lachmannian stemma, not a substitute for philological judgement.
The intuition behind the method
A manuscript is copied from an exemplar. Copies inherit that exemplar's readings and accumulate new scribal changes, so closely related copies tend to share more readings than distant ones. This is structurally similar to biological inheritance, and tree-building algorithms developed for evolutionary biology can be applied to the same kind of data: a table with manuscripts as rows, variation points as columns, and the reading found at each point as the cell value. The algorithm then looks for the tree along which the readings could have changed with the least total effort, under an explicit criterion. Because the criterion is stated, the same matrix and settings reproduce the same result, and simulated traditions with a known history can be used to test whether a method recovers the true tree.
History
The application of phylogenetic methods to manuscript traditions is usually traced to work by Howe, Robinson and O'Hara in the late 1990s. Teemu Roos and Tuomas Heikkilä's 2009 article in Literary and Linguistic Computing evaluated computer-assisted stemmatology methods on three artificial benchmark data sets, using a numerical criterion to score all solutions. Among the methods tested, they reported the best results for maximum parsimony as implemented in PAUP* and for a compression-based method proposed in their earlier work. The year 2009 therefore marks this benchmark evaluation, not the introduction of the approach.
When to use it
Choose computational stemma reconstruction when a tradition has many witnesses and variation points that are impractical to analyse by hand, or when you want an explicit, reproducible genealogy to compare with an editor's proposed stemma. It can also help in exploratory work, since grouping witnesses by shared readings may reveal relationships a human editor overlooks. It is less suitable when few witnesses survive or when variation is too sparse to be informative. When contamination is heavy, a single bifurcating tree is forced onto data that are not tree-like, so split networks or other methods that display conflicting signal are preferable. Use the method as a complement to philological assessment of the readings, not as a replacement for it.
Limitations and considerations
- Coding the character matrix involves philological judgement that the algorithm does not see but that strongly shapes the result.
- Standard tree methods assume each witness descends from a single exemplar, so contamination biases the inferred genealogy.
- Unit-cost parsimony treats all reading changes as equally likely and ignores direction. Where readings are reversed, conflated or independently corrected (homoplasy), unrelated witnesses may be grouped together. The benchmark does not test these assumptions on real traditions.
- Inferred trees are usually unrooted, and orienting them into a directed stemma needs evidence that the variant matrix does not contain.
- Parsimony and model-based methods can disagree, and a single best tree may conceal large uncertainty on individual branches.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Handles large traditions, with many witnesses and variation points, that would be laborious to analyse by hand.
- Applies an explicit optimality criterion, so analysts working from the same matrix and settings obtain the same tree.
- Can be checked against artificial traditions with a known history, as in the benchmark design of Roos and Heikkilä.
- Bayesian and network variants expose uncertainty and conflicting signal that a single bifurcating stemma conceals.
Applications
- Reconstructing the genealogy of large, multi-witness manuscript traditions too big for hand analysis.
- Producing an explicit, reproducible tree to test or challenge an expert editor's proposed stemma.
- Detecting unexpected groupings and possible contamination through split networks of the witnesses.
- Benchmarking and comparing stemmatic methods on artificial traditions with a known true tree.
- Providing a quantitative scaffold on which philologists then evaluate individual readings.
How it works
How it works
The pipeline begins by converting a collation into a character matrix: rows are witnesses, columns are loci of variation, and each cell records the reading state that witness shows at that locus. States are the distinct readings attested at a locus, coded as discrete symbols. This plays the role of the alignment fed to phylogenetic software, and the result depends on consistent coding of variants, on how lacunae and orthographic noise are treated, and on which variation points are informative.
Formula
X \in \Sigma^{n\times m},\ X_{ij} = \text{state of witness } i \text{ at variation locus } j,\ \Sigma = \{\text{reading states}\}Next the analyst specifies the cost of each reading change, since the algorithms judge candidate trees by the total change they imply. The simplest scheme, the unit (Fitch) cost given in the mechanics, charges one unit for any change between distinct states and treats all changes as equal. This assumes unordered states, equal cost for every change, and no special treatment of reversals. Alternative cost matrices can make some changes cheaper than others, for example where the analyst judges a particular scribal confusion more plausible. Whichever scheme is used encodes assumptions about how scribes erred, so it should be stated explicitly and justified on philological grounds.
Formula
c: \Sigma\times\Sigma\to\mathbb{R}_{\ge 0},\quad c(a,b)=\text{cost of reading } a \to b;\ \text{Fitch: } c(a,b)=\mathbb{1}[a\neq b]With the matrix and cost scheme fixed, a search seeks the tree that minimises total change under parsimony, or maximises likelihood or posterior probability under a model. In the parsimony formula, readings at internal nodes are not observed. They are inferred by a parsimony reconstruction (Fitch or Sankoff), and L(T) is the minimum total change over all assignments of internal-node states, not a sum over observed witnesses alone. The number of possible trees grows very rapidly with the number of witnesses, so exact optimisation is generally infeasible and heuristic searches are used, such as branch-swapping, neighbour-joining for distance-based methods, or Markov chain Monte Carlo for Bayesian inference. The output is a tree relating the witnesses, the computational counterpart of a hand-drawn stemma, representing the genealogy that most economically or most probably accounts for the data.
Formula
T^* = \operatorname*{arg\,min}_{T} L(T),\quad L(T)=\min_{\text{internal states}} \sum_{j=1}^{m} \sum_{(u,v)\in E_T} c\bigl(X_{uj}, X_{vj}\bigr)Tree-inference algorithms usually return an unrooted tree, which shows relatedness but not the direction of descent. To obtain a stemma with an archetype at the top, the analyst must root the tree. The root is placed at an outgroup (a text known to lie outside the tradition) or at the oldest independently dated witness, chosen on external evidence. The variant matrix alone does not determine the root, and the choice fixes the direction of every edge. Only after rooting does the undirected tree become a directed genealogy in which ancestors precede descendants.
Formula
\text{root } \omega = \operatorname*{arg\,sel} \ \text{by outgroup or oldest witness};\ \text{undirected } T \to \text{directed stemma}Finally the analyst asks how reliable each branch is, since a single best tree can hide substantial uncertainty. Bootstrap support is estimated by resampling the variation loci and re-inferring the tree many times, recording how often each grouping recurs. Bayesian analyses report posterior probabilities for the same groupings. This is standard phylogenetic practice and is not part of the Roos and Heikkilä benchmark. Weakly supported branches should not be read as firm genealogical fact. Their benchmark design, which scores inferred trees against artificial traditions with a known history, is a complementary way to assess method accuracy rather than a branch-level measure.
Formula
B(e) = \frac{1}{R}\sum_{r=1}^{R}\mathbb{1}[e \in T^{(r)}],\ \ T^{(r)}\ \text{from resampled loci (bootstrap)}Common pitfalls
- Feeding orthographic or trivial variation to the algorithm as if it were genealogically significant.
- Reporting only the best tree without bootstrap or posterior support, which overstates confidence in weak branches.
- Presenting an unrooted tree as a stemma without justifying the root and the direction of descent.
- Treating the tree as settling which reading is original; the algorithm groups witnesses but does not evaluate individual readings.
Frequently asked questions
How is reconstructing a stemma like building a phylogenetic tree?
Copying a text and biological reproduction both pass heritable features down lineages with occasional change, so the same formal structure can be used: manuscripts correspond to taxa, variant readings to characters, and scribal changes to mutations. Algorithms for inferring evolutionary trees from shared character states can therefore be applied to shared readings. The analogy is useful but imperfect, because scribes can draw on several exemplars, whereas vertical-descent models assume a single parent for each lineage.
Why is rooting the tree a separate, harder step?
Most tree-inference algorithms measure how related witnesses are but not which came first, so they return an unrooted tree that is symmetric with respect to time. A stemma, however, needs an archetype at the top and a clear direction of descent. Rooting therefore requires information the variant matrix alone does not contain: an outgroup text outside the tradition, the known age of certain manuscripts, or historical evidence about transmission. Choosing the root is consequential, because the same unrooted tree implies different genealogies depending on where descent is taken to begin.
Can computational methods handle contamination?
Standard bifurcating-tree methods assume each manuscript descends from a single exemplar, so they misrepresent contaminated traditions where scribes mixed multiple sources. Network methods that allow reticulation, and split-decomposition approaches that display conflicting signal as boxes rather than forcing a single tree, partially address this by showing where the data are not tree-like. They reveal contamination rather than removing it, and they cannot by themselves decide which source a scribe used for a mixed reading, which is why philological judgement remains essential.
Related methods
Sources
Roos, T., & Heikkilä, T. (2009). Evaluating methods for computer-assisted stemmatology using artificial benchmark data sets. Literary and Linguistic Computing, 24(4), 417-433.
Open DOI reference