Naming & Terminology¶
Hifuku joins two fields, phylogenetics and quality-diversity (QD) search. QD search grew out of evolutionary computation and names its parts with words from biology, so the two fields often use one word for two different ideas. In this work a biological word keeps its biological meaning. The parts of the search have their own names, defined below. Section numbers refer to the theory overview.
Words that biology and QD search share¶
| Word | In biology, and in this work | In the QD literature | The term this work uses for the QD sense |
|---|---|---|---|
| evolution | descent with modification; along a tree, the substitution process | the loop that selects, varies and keeps candidate solutions | survey |
| mutation | a change in a sequence | a random change to a candidate solution | move |
| fitness | reproductive success, which Hifuku does not model | the score of a candidate solution | performance: the alignment log-likelihood of a tree |
| population | the organisms, or the taxa and sequences, under study | the set of solutions the search holds | archive |
| parent, offspring | an ancestor and its descendant | a solution and the varied copy made from it | elite and candidate |
| lineage | a line of descent | a chain of successive variants in the search | not used |
| niche | the conditions in which a species lives | a cell of the feature space | niche, in the QD sense only |
The chart¶
Anchor trees. Three trees that fix a coordinate system. Each is the neighbor-joining tree of one gene (Section 4).
Tree distance. The distance \( d \) between two unrooted trees, computed on the taxa the two trees share. It combines a normalized branch score with a normalized Robinson-Foulds count, and a weight \( w \) sets the share of each (Section 3).
Split. The bipartition of the taxa that one branch of an unrooted tree makes. A split takes the place of a clade, because the trees have no root.
Chart. The plane that the three anchor trees fix. The distances among the anchors place them as a triangle. Each other tree is placed by its distances to the three anchors (Section 4.3). The chart is a local coordinate system for tree space, which is not Euclidean, and not a picture of tree space as a whole.
Barycentric coordinates. The position \( (\lambda_1, \lambda_2, \lambda_3) \) of a tree on the chart, relative to the three anchors, with \( \lambda_1 + \lambda_2 + \lambda_3 = 1 \). A tree inside the anchor triangle has no negative coordinate. A position outside the triangle has no special meaning, because the anchors are references and not landmarks (Section 4.3).
Out-of-plane residual. The distance \( z \) of a tree from the plane of the chart. The chart shows the projection of a tree onto the plane, and \( z \) records what that projection leaves out. No step of the survey reads it (Section 4.4).
Saturation. Two different things. Substitution saturation is a property of the sequences: a pair too divergent for the distance correction, whose distance is then capped. Metric saturation is a property of a pair of trees: they share so few splits that their branch-score distance has lost resolution, which the saturation score \( B_\mathrm{frac} \) measures (Section 3).
The survey¶
Survey. The QD search for one gene on one chart. It fills an archive with one elite per niche (Section 5).
Niche. A cell of a grid over two of the barycentric coordinates. The grid has no bound, so every point of the chart lies in a niche (Section 5.1).
Elite. The tree of highest log-likelihood that the survey has found in a niche. The elite changes only when a candidate in its niche has a higher log-likelihood (Section 5.2).
Performance. The log-likelihood of the alignment under a substitution model, computed exactly for every candidate by the pruning recurrence (Sections 1 and 5.2).
Archive. The set of elites, one for each filled niche. A finished survey returns its archive.
Move and candidate. A move changes a copy of an elite: a nearest-neighbor interchange, a subtree prune-and-regraft, a branch slide or a branch scale. The changed copy is a candidate (Section 5.3).
Variation. One candidate made and evaluated. The effort of a survey is counted in variations.
Walker. One lane of parallel work. In each pass, a walker draws an elite and makes a set number of successive moves from it. Walkers run in parallel on a GPU.
Log-likelihood gate. The condition that lets a candidate create a new niche: its log-likelihood is within a margin of the best found so far, or at or above a fixed floor. The gate keeps the survey in the region of reasonably likely trees (Section 5.4).
Footprint. The filled niches of an archive: the region of the chart where the survey found trees that pass the gate (Section 7).
QD-score. The sum, over the filled niches, of the log-likelihood of each elite measured above an offset. A new niche and a better elite both raise it (Section 6.1).
Halt. The end of a survey before its budget is spent. By default a survey halts when a doubling of the effort no longer multiplies the QD-score by more than a set factor (Section 6).
Many genes¶
Framework. The coordinate system of a study: one taxon namespace for all the genes, and the set of charts on which the genes are surveyed (Section 8.1).
Map. The elites of a survey drawn on its chart, with the log-likelihood as height. For a study of many genes, the elites of all genes drawn together in one plane by ordination (Section 8.3).
Chart grid. On the map of many genes, the lines of constant barycentric coordinate of the chart of each gene, carried onto the map through the gene's elites (Section 8.3).
What the map is not¶
Not a free-energy surface. The height of the map is a log-likelihood computed directly for each tree. It is not reconstructed from the density of visits, as a free energy is in enhanced sampling.
Not a posterior distribution. A survey is not a Markov chain. A candidate replaces an elite only when its log-likelihood is higher. There is no acceptance ratio and no detailed balance, and the survey can use moves, such as long jumps and restarts, that a posterior sampler such as MrBayes or BEAST cannot use. These moves are valid here because every height is an exact log-likelihood and not a sample from a target density. The chart coordinates are not collective variables in the sense of enhanced sampling.
Not a confidence set. The map describes which trees the survey found and how likely each is. It does not say which trees the data can tell apart (Section 7.3).