Eight decisions

Each step in the pipeline fixed a measured problem. Here is what each one was for and what it brought.

#DecisionGainMeasured as
1Fix the scorer before anything else54.9 → 69.0validation F1, same model
2Split the text into words first—needed for every later step
3Read each word from its meaningful piece+2.3matched tests, 3 of 3 won
4Read long articles in overlapping windows+4.6 to 6.4ORG F1, four comparisons
5Ask seven models and average83.8 → 86.7held-out F1, one model vs seven
6Choose the best answer for the whole sentence+2.5 to 3.7every model tested
7Write one rulebook and teach it+5.4held-out F1
8Label the articles the model is unsure about+5.2held-out F1, 21 articles

Gains are exact-span F1 points from the preprint. The test sets are small, so a single step's gain is uncertain; the overall gain from the first version to the release is +20.8 pooled F1 (95% range +13.5 to +28.6).

1. Fix the scorer before anything else

Turning word labels back into character spans dropped punctuation inside names (U.S.A. came back as U.S.A) and mishandled prefixes, so correct answers were scored as wrong. Fixing it before any retraining was worth 14 points.

2. Split the text into words first

The model labels one word at a time, and Khmer doesn't mark where words end. Every word also keeps its exact position, so answers point at the right characters.

3. Read each word from its meaningful piece

A third of words begin with a blank "▁" piece, and the standard method read the label there. In matched tests the new method won every time. The release that introduced it rose 9.7 points, but it also changed the training recipe. Case study.

4. Read long articles in overlapping windows

Back-to-back chunks leave words at the cut with context on one side only. Overall F1 barely moved (76.28 → 76.50), but long organization names, the most likely to be cut, improved every time.

5. Ask seven models and average

Single models trained the same way differ by up to 8.6 F1. Averaging seven gives 86.7 on held-out news, against a single-model mean of 83.8, and removes the luck of one seed.

6. Choose the best answer for the whole sentence

Choosing each word's tag alone can produce a name that continues without having started, which falls apart into fragments. Viterbi decoding picks the best valid sequence.

7. Write one rulebook and teach it

Training data and test labels disagreed on recurring cases, such as nationality phrases and titles. A written annotation policy settled each case once, and 64 short training sentences taught the nationality rule.

8. Label the articles the model is unsure about

Labelling is slow, so new articles were chosen where the models disagreed most. An AI drafted the labels and a person reviewed every one. Most of the gain was in organizations (+11.5).


The original illustrated version of this story is still available as the visual walkthrough.