Mova0.6 pre-release

coref — SLM coreference: a sieve of rules with a reason for every link

The annotator keeps context and resolves pronouns (Context, layers and memory, "Document memory").

A separate crate that depends on en (en = { path = "../en" }), not the other way round.

This is the in-house coreference of the small language model (SLM):

The frame reader has its own pronoun resolver and can call this crate's sieve instead (PRAG_COREF; see how roles and links are found).

How it works

UD tree (gold or en annotate) → mentions (mention.rs) → sieves (sieve.rs) → CorefUD Entity= (corefud.rs)
                                                                          → evaluation (score.rs, eval.rs)

Mentions from the tree

Heads:

Not heads:

Span — the subtree of the head under CorefUD rules:

Coordination "John and Mary" gives two mentions with one head: the whole group and the first conjunct. The CRAC scorer tells them apart by span. The group is output only when something refers to it.

Features — from UD FEATS (Number, Gender, Person, PronType, Poss, Reflex), hand-made closed lists and the noun lexicon Mova counted from its own parses (below):

What is not known stays unknown and matches anything, like "unknown" in Lee et al. 2013. Gender is not guessed from a name (context). Instead there are:

Cluster features are the union of the features of its mentions, except gender: two known gender sets that overlap narrow to the overlap (one entity, one gender: «the mechanic», he or she, joined with «He» is masculine), and only unknown or clashing sets are united (COREF_X=gender-union keeps the plain union).

The noun lexicon (src/lexicon.rs)

When the tree, the closed lists and titles say nothing, a common noun takes gender and animacy from a lexicon that Mova counted from its own parses (after Bergsma & Lin 2006, bergsma-2006-bootstrapping-path-based-pronoun-resolution; Lee et al. 2013 use their table the same way):

en annotate $MOVA_DATA/en/models/en.bin pool.tsv | coref lexicon count tales - > part.tsv   # one part per corpus chunk
coref lexicon build $MOVA_DATA/coref/gender.tsv part-*.tsv --label "<provenance>"
coref lexicon paths <gold.conllu> [--trees f]      # precision of each path against gold coreference
coref lexicon rotate <table> <out> <k>             # negative control: every row moved k lemmas on
coref lexicon show <table> <lemma>…  |  coref lexicon compare <a> <b>

The table is data, outside the repository: gender.tsv, or COREF_GENDER=<path>. COREF_GENDER=off turns it off everywhere, COREF_X=no-gender-table in the sieve only; COREF_GENDER_TAU, COREF_GENDER_MIN, COREF_GENDER_ALPHA change the decision. An internal-only table (counted from Wikipedia: a # source wikipedia line, # use: internal, or a licence line that says internal) is refused unless COREF_GENDER_INTERNAL=1; CC BY-SA alone is not internal — the released table is a public CC BY-SA file. Without a table the sieve is byte for byte the sieve without the lexicon (GUM dev, both tree sources, 2026-11-04).

The table of 2026-11-04: 13.87 million sentences parsed by en.bin — 5 110 public-domain (EU/UA) Project Gutenberg books of corpora/tales/free (13.51 million) and the school's lessons (0.36 million); 23 666 lemmas, 6 222 decided; pairs: poss 336 169, pred 257 958, refl 62 016, say 33 005, appos 2 360, who 187 237, which 302 652. Parsing took 45 minutes on 6 CPU processes. Two counts of the school part and two builds were byte-identical. The internal comparison table from the Wikipedia school's 127 096 sentences (CC BY-SA, never shipped) decides 199 lemmas; of 140 decided in both, animacy agrees on 124 (88.6%).

Measured (2026-11-04, dev only; the switch off = main):

measurewithoutwith the tablerotated table (control)
GUM dev, gold trees: CoNLL F1 with / without singletons75.25 / 64.3675.22 / 64.2974.86 / 63.74
GUM dev, gold trees: 3rd-person pronouns right498 of 741500481
GUM dev, SLM trees: CoNLL F170.60 / 58.8170.69 / 58.8770.29 / 58.33
GUM dev, SLM trees: 3rd-person pronouns right470 of 743478454

Precision of the paths on GUM dev gold (coref lexicon paths): poss 20 of 25, pred 22 of 25. τ from 0.7 to 0.9 and the minimum from 3 to 30 move CoNLL F1 by at most 0.1. The lexicon fixes pronouns whose antecedent is a person noun («his», «him», «he»); most «it» errors on GUM are events, statements and inanimate rivals, which gender cannot tell apart.

The frame reader (prag) can use the same table (PRAG_VN=gender-table, opt-in). Measured 2026-11-04 on the school (CPU, train and cv courses only):

measurewithoutwith the tablerotated table (control)
frame bench dev (world frames bench dev prons): overall F1 / coref F10.738 / 0.471 (89 right)0.741 / 0.489 (92)0.737 / 0.466 (88)
24 primary courses: tests right (odd / even), exam12 306 (6 162 / 6 144), 3 56412 305 (6 156 / 6 149), 3 56212 285, 3 560
the books' course: tests right (odd / even), exam7 339 (3 721 / 3 618), 2 1957 339 (3 704 / 3 635), 2 1797 283, 2 191
Wikipedia school: train / cv-a / cv-b15 672 / 7 654 / 8 01415 671 / 7 653 / 8 01315 672 / 7 650 / 8 018

All course controls stayed red. The rotated table loses 21 and 56 tests, the real table neither gains nor loses: the pupil reads a few pronouns better (the bench) but its answers rarely depend on them; 557 tests of the 24 courses flip, 280 one way and 277 the other, as often with a pronoun in the question as without. So the reader keeps the lexicon opt-in. The Wikipedia school's lead «It» goes to the nearest noun («It sits on …» → «state») for another reason: the frame reader never resolves «it» to a name (a name is a person to it), and the lexicon has no names. Two runs with the table gave byte-identical traces (24 courses and the Wikipedia courses); the runs without it were byte-identical across two builds.

Sieves — from the most precise

The architecture follows Raghunathan et al. 2010 (raghunathan-2010-multi-pass-sieve-coreference-resolution) and Lee et al. 2013 (lee-2013-deterministic-coreference-resolution-based-entity):

Candidate order — in the spirit of Hobbs. Hobbs 1978 itself is missing from the library; it is taken from the descriptions in Raghunathan 2010 and Lee 2013:

Heads higher in the tree come first, as in Haghighi & Klein 2009 (haghighi-2009-simple-coreference-resolution-rich-syntactic).

idwhat it doesdefault
speaker"I" of one voice is one person. A voice is a speaker from # speaker, a separate quotation or the narrator. "I" in a quotation is its author, i.e. the subject of the speech verb outside the quotes. "we" and "you" of one voice go together. "you" addressed to an addressee is that addressee's earlier "I". Rules follow Lee 2013, §3.3.1 and Baldwin 1997 (baldwin-1997-cogniac-high-precision-coreference-limited)yes
exactexact text match of nominal mentionsyes
relaxedtext match up to and including the head. After the head — only relative clauses (acl); a quantified antecedent — noyes
apposappos in the treeyes
predpredicative noun: subject — cop — noun, without negationyes
relpronrelative pronoun → the noun the relative clause is attached to. Memory only: relatives are not annotated in GUM, so they do not go into the outputyes
acronym"AFP" — capital letters of a nameyes
reflexivereflexive pronoun → subject of its predicate (principle A); an emphatic reflexive right under a nominal («the word itself», «Galois himself»: nmod:unmarked, nmod:npmod, appos) → that nominal (COREF_X=no-emphatic turns this off)yes
strict_ahead is among the cluster heads + cluster words ⊆ + modifiers ⊆ + not i-within-iyes
strict_bthe same without modifiersyes
strict_cthe same without wordsno
proper_headthe same proper head, without conflicting proper names and numbers in modifiersyes
relaxed_headthe proper head is among the cluster wordsno
deixisan event «it» and a bare «this/that» → the clause before it, added as a mention (details below)no
pronoun3rd-person pronoun, details belowyes
nearestbaseline: nearest preceding agreeing mentionbaseline only

What «it» is (src/it.rs, before the sieves; PRAG_OFF=it-class turns it off, it-pleonastic and it-event each half). Tests on the predicate, after Loáiciga et al. 2017 and Eckert and Strube's context test in Kolhatkar et al. 2018:

The SLM's frame reader does not use this test.

The deixis sieve (off): an event «it» or a bare «this/that» (not before a noun) is linked to the clause before it — the clause to the left in the same sentence, else the main clause of the previous sentence (Yu et al. 2022's baseline, Kolhatkar et al. 2018's search order). The clause is added as a mention with the predicate as its head. The right clause is rarely the nearest one, so the sieve is not in the default.

The pronoun sieve:

The speaker constraint (Lee 2013) lives in compatible: clusters with "I" of different voices do not merge.

Transparency

coref explain — the chains of a document: each mention with its sentence and bounds, the sieve id and evidence. Example from GUM dev (gold trees):

## chain 2 (53 mentions): Number=Sing Gender=Masc Animacy=Anim Person=3
  - GUM_bio_emperor-2:1-17 «Joshua Abraham Norton (c. 1818 – January 8, 1880), known as Emperor Norton» — first mention
  - GUM_bio_emperor-2:20-42 «a citizen of San Francisco, California, who … "Norton I, Emperor of the United States"» ← [pred] «Joshua Abraham Norton …» (GUM_bio_emperor-2:1) —cop «was»— «a citizen …» (GUM_bio_emperor-2:21)
  - GUM_bio_emperor-2:28-28 «who» [memory only] ← [relpron] relative «who» in the relative clause of «a citizen …» (GUM_bio_emperor-2:21)
  - GUM_bio_emperor-2:32-32 «himself» ← [reflexive] «himself» → subject «who» (GUM_bio_emperor-2:28) of predicate «proclaimed»
  - GUM_bio_emperor-3:1-1 «He» ← [pronoun] «he» → «a citizen …» (GUM_bio_emperor-2:21): candidate #1 in Hobbs order, 1 sent. back; cluster Number=Sing Gender=Masc Animacy=Anim; animacy preference
  - GUM_bio_emperor-5:10-10 «his» ← [pronoun] «his» → «his» (GUM_bio_emperor-5:5): candidate #4 in Hobbs order, 0 sent. back; …; rejected: «his mother» (GUM_bio_emperor-5:6): Gender Masc≠Fem
  - GUM_bio_emperor-6:1-1 «Norton» ← [strict_a] head «norton» is in the cluster; words ⊆ ["born", "england", "norton"]; modifiers [] ⊆ []; …

Rivals. A pronoun link also counts its rivals: other clusters, later in Hobbs order, that pass the same tests, so that the choice among them was the order alone. The link keeps its single choice; explain adds «rivals: N other agreeing cluster(s), first …» and Link::rivals holds N for the frame reader and the world. eval reports the two groups: on GUM dev with gold trees (2026-11-15), 559 of 739 resolved third-person pronouns had rivals, precision 63.9%, against 79.4% for the 180 with one agreeing antecedent.

coref resolve — CoNLL-U with Entity= in MISC (CorefUD, nedoluzhko-2022-corefud-1-0-coreference-meets):

The resolver does not see the gold standard: test resolver_ignores_gold_entities; in addition, every eval compares the output from MISC with and without Entity (fail-fast).

Scorer

Metrics (src/score.rs):

Formulas for predicted mentions without manipulations — Pradhan et al. 2014 (pradhan-2014-scoring-coreference-partitions-predicted-mentions).

Mention matching — by head, as in the main CRAC 2023–2026 metric (novak-2025-findings-fourth-shared-task-multilingual, novak-2026-findings-fifth-shared-task-multilingual):

Singletons: with and without them. Without them, singleton entities are removed on both sides before matching. The total over documents is the sum of numerators and denominators.

Checks that can show red:

Data and licenses

GUM (UD 2.18, UD_English-GUM) — CC BY-NC-SA:

SLM trees — en annotate $MOVA_DATA/en/models/en.bin on gold tokens (EWT + ESLSpok, CC BY-SA 4.0). Trees are supplied with --trees:

Hand-made lists in src/ are our own work, row coref-hand-lists in en/data/train-licenses.tsv:

The noun lexicon (gender.tsv, not in git) is counted by Mova from its own parses of public-domain books and its own lessons; never from GUM, and the Wikipedia table only for an internal comparison.

No third-party lexicons. What is missing is listed under "Limits".

How to run

cd coref && cargo build --release -j 2
G=$MOVA_DATA/en/ud/ud-treebanks-v2.18/UD_English-GUM
.../target/release/en annotate $MOVA_DATA/en/models/en.bin $G/en_gum-ud-test.conllu > test.slm-trees.conllu
../target/release/coref eval $G/en_gum-ud-test.conllu --out <dir>                               # gold trees
../target/release/coref eval $G/en_gum-ud-test.conllu --trees test.slm-trees.conllu --out <dir>  # SLM trees
../target/release/coref resolve <in.conllu> [--trees f] > out.conllu    # CorefUD
../target/release/coref explain <in.conllu> [doc-id] [--trees f]        # chains with reasons
../target/release/coref score <gold.conllu> <output.conllu> [--exact]   # scorer
../target/release/coref mentions <gold.conllu> [--trees f]              # mention detection against gold

coref eval … --label <name> names the input in the report header (default «gold trees» or «SLM trees»).

Dev experiment switches — environment variables; the defaults are what dev selected:

Limits

This page in Markdown https://md.mova.elamur.ai/free/en/docs/coref/