Mechanistic Emergence of Finnish Vowel Harmony, Parameter-Matched Depth Scaling, and Out-of-Fold Trap Words in Character-Level Transformers
1. Problem and Contribution
Finnish vowel harmony (vokaalisointu) requires non-local phonological coordination inside words while resetting at morphological compound boundaries [1, 2]. Within a native simplex Finnish word, harmonic vowels belong either to the back set or the front set , whereas are neutral and transparent. Suffixes harmonize with the stem (tuhma-ssa vs. tyhmä-ssä), neutral-only stems default to front suffixes (velje-llä), and productive compounds reset harmony at the final head constituent so that a back-vowel modifier followed by a neutral-vowel head still takes front suffixes (maan|tie-llä) [1, 2].
We investigate how small autoregressive character-level transformers (– parameters) acquire compound-sensitive vowel harmony from plain word forms, whether network depth improves generalization to unseen compound head lemmas at fixed parameter count under a shared training recipe, what internal interventions affect suffix choice, and which real Finnish words systematically defeat a trained model. Our main findings are:
- Zero-leakage head-lemma split with full-denominator morphological validation. Extracting all candidate non-proper-noun head lemmas from Voikko
WORDBASES, hashing head lemmas , and excluding the () cross-split bridge forms enforces strictly shared head lemmas across train (), validation (), and test (). Validating Voikko case tags (SIJAMUOTO) and full-Voikko rejection of the opposite-harmony twin across the entire evaluation denominator yields unambiguous suffix items ( unseen heads), including back-modifier + neutral-head (B+N) compounds ( heads; front-taking; appear as standalone/head words in training, while appear as compound modifiers in training). - Parameter-matched depth scaling under head-clustered inference. Holding parameter count fixed near across seeds per architecture ( models total, saving both validation-selected and epoch-16 checkpoints), four-layer models (
L4_d256, ) achieve overall accuracy and on unseenB+Ncompounds ( at epoch 16), outperforming parameter-matchedL2_d360(; , paired head-clustered gain conditional on the 3 runs) andL1_d512(; , paired gain ).L4_d256also beats a validation-tuned neutral-tail heuristic ( overall, ; onB+N). - Controlled causal interventions. Patching layer-0 MLP output at the triggering vowel (
V1) across sampled nonce frames ( unique) cleanly separates harmony class from vowel identity: within-class letter changes () shift suffix log-odds by nats ( flips; seed mean sd), whereas cross-vowel between-class swaps () shift nats ( recovery), matching corresponding harmonic-pair swaps ( nats). At the final residual stream (resid_post.3), projecting out a single unit direction fitted solely on-ss_nonce stems removes of the-ss_class-mean logit gap () and of-ll_, while reducing out-of-pair-k_() and-tt_() gaps by and (random unit direction: change). - Matched-tail reset test with novelty filtering. On Voikko-validated unseen
B+Nstems ( heads) paired against character-length- and CV-matched nonce neutral tails filtered to exclude any Voikko or training-set lexical matches ( accidental hits), matched nonce tails already trigger front preferences of the time ( nats vs. nats for unseen real heads), and all three per-seed head-clustered CIs for thereal − noncedifference cross zero. - Descriptive 5-fold trap corpus. Five-fold strictly head-lemma-disjoint cross-validation with full Voikko case and twin validation across the entire denominator ( validated 5-case forms; accuracy; verified traps released in the supplement) documents descriptive simplex-back error rates () rising from () at trailing neutral vowels to () at trailing neutral vowels.
2. Related Work and Distinction
Neural representations of vowel harmony have an established computational literature. Silfverberg, Mao, and Hulden [3] showed that Finnish phoneme embeddings support back/front phonological analogies. Mayer and Nelson [4] evaluated recurrent language models on Finnish nonce forms across intervening transparent vowels, reporting declining discrimination across longer neutral spans. Steuer et al. [5] quantified vowel harmony information-theoretically using neural phoneme language models across languages, including Finnish alongside an Estonian non-harmony contrast and analyses of neutral vowels. Astrach and Pinter [6] probed subphonemic features in morphological transformers using nonce inputs, finding long-distance harmony more linearly accessible in contextual encoder states than in static embeddings. Normative descriptions of Finnish harmony, loanwords, and clitics come from VISK and Kielitoimisto [1, 2, 7, 8], and the diachronic loss of harmony in Estonian is treated in Kiparsky and Pajusalu [9] and Kallio [10].
Accordingly, we do not claim embedding analogies, neutral-span decay on nonce stems, or a Finnish–Estonian typological contrast as independent discoveries. Our contribution lies in: (i) parameter-matched depth comparisons on a verified zero-leakage, Voikko-case-validated split with head-clustered inference and neutral-tail baselines, (ii) within-class versus cross-vowel causal patching and cross-pair directional ablation, (iii) length- and CV-matched testing with novelty-filtered nonce tails showing strong front preferences without memorized heads, and (iv) a full-lexicon 5-fold Voikko-validated error corpus documenting error rates across attested Finnish word forms.
3. Methods
3.1 Zero-Leakage Head-Lemma Split and Full-Denominator Morphological Validation
From the OpenSubtitles-2018 Finnish word-frequency list [11] ( types; SHA-256 d8c3cb8cef36a6c4c5a5059a04695725f95f7adb83ea6ab757a5414d3f2cf76c), filtering to lowercase , lengths –, count , and at least one non-proper-noun Voikko (libvoikko 4.3, voikko-fi 2.5) analysis yields forms. For every non-proper-noun analysis of a word, we extract the lowercase head lemma from Voikko's WORDBASES field (; BASEFORM fallbacks).
To prevent multi-analysis homographs from leaking head lemmas across splits (naive connected-component grouping percolates words into one cluster), we partition all unique head lemmas deterministically by MD5 modulo into train (: –), validation (: –), and test (: –). A word enters split if and only if all of its candidate head lemmas hash to ; words spanning multiple splits are excluded as cross-split bridges ( words, ). Programmatic assertions confirm shared candidate head lemmas across train ( words; heads), validation (; heads), and test (; heads). Note that head-role disjointness guarantees held-out B+N head lemmas appear as standalone or head words in training, while allowing a head string to appear as a compound modifier in training (19/21 do so; audited in 2026-12-02_v3_analysis.json).
Full-denominator morphological validation. On the validation and test splits, we select unambiguous (ambiguous == 0, ambig_head == 0, length ) forms ending in -ssa/-ssä, -sta/-stä, -lla/-llä, or -lta/-ltä only if: (1) Voikko's SIJAMUOTO confirms the exact corresponding grammatical case (sisaolento, sisaeronto, ulkoolento, ulkoeronto), and (2) full libvoikko.Voikko("fi").analyze(twin) returns empty for the opposite-harmony twin (defining the evaluated non-standard competitor set). On test, this removes wrong-case coincidences and Voikko-accepted twins from terminal matches, leaving validated items ( unique heads), including B+N compounds ( unique heads, front-taking) and simplex back forms. On validation, matches filter to validated items ( wrong-case, Voikko-accepted twins).
3.2 Architectures, Baselines, and Head-Clustered Inference
All models are pre-LayerNorm causal character GPTs (, , , MLP width , GELU, untied embeddings, dropout ). We trained architectures seeds models for epochs (batch size shuffled word forms, AdamW peak lr , -step linear warmup, cosine decay to , bfloat16), saving both best unseen-lemma validation (best.pt) and epoch-16 (final.pt) checkpoints: L4_d256 ( params), L2_d360 ( params), L1_d512 ( params), L1_d256 ( params), and attention-only L1ao_d256 ( params).
We evaluate four diagnostic baselines on the exact validated denominator: (i) any-back, (ii) last-harmonic-vowel, (iii) always-front, and (iv) a neutral-tail heuristic applying last-harmonic-vowel except when trailing neutral vowels follow a back vowel (predicting front). Tuning on the validated validation items selects ( val accuracy; score ); we also report .
Scoring and uncertainty. Held-out and 5-fold evaluations use whole-word log-odds (including EOS): . Patching, ablation, steering, and lens evaluations use next-vowel logit difference . To account for multiple inflections sharing a head lemma, all test-set CIs and paired model/baseline differences use head-lemma-clustered bootstrap resampling ( resamples of unique head lemmas with replacement over 3-seed item-level mean outcomes). These intervals resample heads conditional on the three fitted runs and are therefore reported alongside training-seed standard deviations (which capture run-to-run variance separately).
3.3 Probe Populations, Causal Interventions, and 5-Fold Trap Mining
Synthetic nonce populations (B3, F3, make_wug.py). Generated deterministically (seed=20261202; exact fixture supplied in data/wug_sets.json, with make_wug.py --lexicon supporting regeneration): each syllable picks an onset from ptksmnlrhjv (dropped with probability initially; medial onsets pick a single consonant with probability or one of Finnish medial clusters with probability ) plus a vowel from (weights ), (), or (). B3 ( unique stems) follows BBB and F3 () follows FFF. A stem is kept only if neither the bare stem nor any of its inflected forms across harmonic suffix pairs appears in the lexicon or is accepted by Voikko. We split B3 and F3 (seed=0) into direction-fitting stems and held-out test stems.
- Within-class vs. cross-vowel L0-MLP patching. Across consonant frames sampled with replacement (
seed=42, , ; unique frames) instantiated for all , we patchmlp_out.0at across corresponding harmonic-pair swaps (), cross-vowel between-class swaps (), and within-class letter changes (). Summary error bars in Figure 2A report mean sd across the 3 seed-level pair-averaged means. - Directional ablation and steering. Fitting , unit vector \ell = d\ell / |d_\ell|2, and midpoint \ell = \frac{1}{2}(\mu_{\text{back},\ell} + \mu_{\text{front},\ell}) solely on the fitting stems in
<stem>ss_, we project out at the suffix position on the held-out stems acrossss,ll(),k(), andtt():
\ell = h\ell - \big((h_\ell - m_\ell)^\top \hat{u}\ell\big),\hat{u}\ell,
compared against the mean over random unit vectors, alongside additive steering \ell = h\ell \pm 1.5 d_\ell. We also validate the harmony lens on the held-out simplex stems.
- Length- and CV-matched neutral-tail test with novelty filtering. For every unique stem among the Voikko-validated test
B+Ncompounds ending in -ssä/-llä ( stems across unseen heads), we sample a synthetic neutral tail preserving exact character length and CV skeleton (e/iat vowels, distinct consonants fromkptlmnrsvhat consonants) and reject any candidate where either the replacement tail or the full suffixed compound appears in training or is recognized by Voikko ( accidental lexical matches). - 5-fold Voikko-validated trap mining. Partitioning head-lemma hashes into five test folds (each paired with disjoint validation and disjoint training heads, asserting shared heads per fold), we train five
L4_d256models ( epochs) and apply full VoikkoSIJAMUOTOand full-Voikko twin validation across the entire 5-case denominator (-ssa/-ssä, -sta/-stä, -lla/-llä, -lta/-ltä, -na/-nä). - Estonian descriptive contrast. Six matched 4-layer models ( seeds Finnish, seeds Estonian; raw types [11, 12], Estonian SHA-256
8b0dbb18efd797a497878caae9597fe230be5162dcc6a39d4a35299bb8c60e14, epochs,--no_wug; Estonian ) provide a descriptive typological reference.
4. Results and Supporting Evidence
4.1 Parameter-Matched Depth Scaling and Diagnostic Baselines
Table 1 and Figure 1 summarize performance across all models and baselines on the Voikko-validated test items ( independent unseen heads). Under this fixed training recipe and parameter budget near , depth yields large head-clustered gains on unseen B+N compounds (, heads): L4_d256 reaches (best.pt, head-clustered CI ) and (final.pt, ), beating parameter-matched L2_d360 by (; epoch-16 gain ) and L1_d512 by ().
| Model / Baseline (3 seeds: seed mean sd; [head-clustered 95% CI]) | Params | Test bpc | All Validated (, 717 heads) | Simplex Back () | B+N Best (, 21 heads) | B+N Ep16 (, 21 heads) |
|---|---|---|---|---|---|---|
| Any-back baseline | — | — | — | |||
| Last-harmonic-vowel baseline | — | — | — | |||
| Always-front diagnostic baseline | — | — | — | |||
| Neutral-tail heuristic (, val-tuned) | — | — | — | |||
| Neutral-tail heuristic (, aggressive) | — | — | — | |||
L1ao_d256 (1L attn-only) |
— | |||||
L1_d256 (1L width-matched) |
— | |||||
L1_d512 (1L param-matched) |
— | |||||
L2_d360 (2L param-matched) |
— | |||||
L4_d256 (4L param-matched) |
— |
The diagnostic baselines clarify the trade-off: always-front and aggressive neutral-tail (k=2) achieve on B+N at the cost of collapsing overall accuracy to and , whereas val-optimal neutral-tail (k=4) reaches overall but only on B+N. L4_d256 outperforms neutral-tail (k=4) by (, heads) overall and (, heads) on B+N, and beats last-harmonic-vowel by () overall. Across all models, input letter embeddings rank the true harmonic pairing (L4_d256 mean pair cosine , analogies).
4.2 Causal Controls: Harmony Class vs. Letter Identity and Directional Ablation
Figure 2 presents our two causal controls on L4_d256 (mean sd across the seed-level means):
- Layer-0 MLP at
V1affects downstream suffix preference via harmony class rather than vowel identity. Patchingmlp_out.0atV1with a within-class vowel () changes the suffix logit difference by only nats ( flips). By contrast, cross-vowel between-class swaps () shift the suffix logit by nats ( flips, fractional recovery), matching corresponding harmonic-pair swaps ( nats, flips, recovery). - Directional ablation and cross-pair transfer. Table 2 shows the effect of projecting out a single unit vector fitted solely on the
B3/F3fitting stems in-ss_. Atresid_post.3, ablating removes of the-ss_class-mean logit gap (accuracy ) and of-ll_(), while reducing out-of-pair-tt_() by and-k_() by (random unit direction: gap reduction, accuracy drop). At the penultimate block (resid_post.2), ablating removes (ss), (ll), (tt), and (k). Because projecting out a class-mean direction at the final stream does not by itself identify a unique circuit or prove that all harmony information has vanished, the cross-suffix transfer (ll,k,tt) and penultimate-block interventions provide the key corroborating evidence for a shared harmony subspace alongside pair-specific components.
| Context (Pair) | Site | Base Acc | Ablate 1 Dir Acc | Random Dir Acc | Gap Reduction | Steer (BF / FB) |
|---|---|---|---|---|---|---|
-ss_ (, fit) |
Block 3 (resid_post.2) |
|||||
-ll_ (, xfer) |
Block 3 (resid_post.2) |
|||||
-k_ (, xfer) |
Block 3 (resid_post.2) |
|||||
-tt_ (, xfer) |
Block 3 (resid_post.2) |
|||||
-ss_ (, fit) |
Block 4 (resid_post.3) |
|||||
-ll_ (, xfer) |
Block 4 (resid_post.3) |
|||||
-k_ (, xfer) |
Block 4 (resid_post.3) |
|||||
-tt_ (, xfer) |
Block 4 (resid_post.3) |
4.3 Matched-Tail Test (Novelty-Filtered) and Simplex Harmony-Lens Validation
On the held-out B3/F3 simplex stems, the harmony lens separates back from front with AUC at blocks 2, 3, and 4 in all three L4_d256 seeds (sign accuracy –; per-item sd –), whereas block 1 is unreliable in two of three seeds (s0 AUC , sd ; s1 AUC , sd ; s2 AUC , sd ; saved in 2026-12-02_v3_analysis.json).
Applying the matched-tail test to the Voikko-validated unseen B+N stems ( heads) with Voikko- and training-filtered nonce neutral tails ( accidental lexical hits) yields Figure 3:
- Novelty-filtered nonce tails already elicit strong front preferences: Filtered nonce neutral tails select front endings on of items across seeds (mean logit differences , , nats), compared to ( nats) for the unseen real heads.
- Residual real-minus-nonce differences remain unresolved: All three per-seed head-clustered CIs for
real − noncecross zero (seed 0: , seed 1: , seed 2: nats), and per-item lens distributions overlap broadly at block 4 (AUCs ). Crossing zero does not prove equivalence between real and nonce tails, and testB+Nhead lemmas appeared as compound modifiers elsewhere in training; we therefore conclude strictly that front preferences arise strongly even on Voikko/train-filtered nonce neutral tails.
4.4 Descriptive 5-Fold Trap Corpus (Ansasanat)
Re-scoring all five strictly disjoint L4_d256 folds with full Voikko SIJAMUOTO and full-Voikko twin filtering across the entire 5-case denominator filters terminal matches down to validated forms ( wrong-case coincidences and Voikko-accepted twins removed—only twins appeared in the observed frequency list, confirming that full Voikko catches more valid competitors). Overall out-of-fold accuracy is ( verified traps, released in v3_finnish_5fold_traps.tsv).
Stratifying all Voikko-validated simplex back-vowel OOF forms by trailing neutral-vowel count after the last back vowel yields a sharp descriptive trend for the filtered OpenSubtitles/Voikko population (Figure 4A; note that word length, morphology, and lexical composition co-vary with , so this curve is descriptive rather than isolating a causal effect of adding neutral vowels):
| Trailing neutral vowels (simplex back OOF) | Errors | Denominator () | Error rate | Illustrative verified traps |
|---|---|---|---|---|
| — | ||||
| puuhissa, pilotissa, kloonina | ||||
| vihanneksista, kuvaelmissa, puhelimella | ||||
| tutkielmista, suojelevista | ||||
| parveilevista, tungettelevista, pullistelevista |
Across all categories (Figure 4B), errors concentrate in B+N compounds (: e.g., suovedessä, sukunimeltä, maanteiltä, karkuteillä) and simplex neutral stems (), while disharmonic loanwords drop to (countryssa, countrysta, countrylla, amatööreinä) once full Voikko validation removes dual-harmony borrowings accepted in both variants, and conflict compounds () and harmonic compounds () sit near ceiling.
4.5 Descriptive Estonian Contrast and Illustrative Slang Coverage
On raw OpenSubtitles word forms (-layer, seeds each), Finnish models show a CVC_ harmony log-odds shift of nats ( across a neutral syllable) and input-embedding analogies (mean cosine , rank in seeds), versus nats ( across a neutral syllable) and analogies (mean cosine , ranks ) in Estonian (Figure 5). Because changing languages varies lexicon, morphology, and vowel distribution jointly, this serves strictly as a descriptive typological reference consistent with [5].
On attested slang and Finglish entries from Urbaani Sanakirja (URBAANI_12 in analyze_v3.py), L4_d256 ( seeds) agrees with the last-harmonic-vowel baseline on -ssa/-ssä ( absent as surface base forms and absent across stem-prefixed inflections in lexicon_v2 train). Because the baseline also scores , this panel is strictly illustrative of robustness under high surprisal (bäkdoori) and qualitative clitic weakening (bängeri on -ssä vs. on -ko/-kö; kännikalagängi vs. ) [8].
5. Limitations and Scope
- Conditional head-clustered CIs and training-recipe scope. Head-clustered CIs condition on the three fitted runs rather than folding in training-run variance (which is large for
L1_d512), and parameter-matched depth advantages hold under this fixed optimization recipe and compute budget rather than isolating depth from every optimization difference. - Bounded causal scope. Layer-0 patching and residual projection establish intervention effects on tested simplex nonce contexts, but do not prove a unique circuit, do not prove all harmony information is removed by one projection, and do not explain the compound-reset mechanism; – of and logit gaps remain intact after ablating the
-ss_direction. - Modifier exposure and matched-tail interpretation. Head-role disjointness excludes test head lemmas from training heads (
0/21) but not from training compound modifiers (19/21). Replacement tails alter segment identities and substring phonotactics simultaneously, and CIs crossing zero do not establish real/nonce equivalence. - Descriptive neutral-span curve, Voikko competitor scope, and human calibration. The 5-fold neutral-span curve is descriptive for the filtered OpenSubtitles/Voikko population (length and morphology co-vary with ), Voikko rejection defines the evaluated competitor set rather than certifying linguistic impossibility, each 5-fold split uses one seed, and parallels to human hesitation remain qualitative absent psycholinguistic wug data.
6. Reproducibility
All experiments ran on one NVIDIA GeForce RTX 3090 (24 GB VRAM) using Python 3.13.18, PyTorch 2.15.0+cu132, NumPy 2.5.5, Matplotlib 3.11.2, Pillow 13.0.0, and libvoikko 4.3 (voikko-fi 2.5). Input frequency-list SHA-256 checksums: fi_full.txt = d8c3cb8cef36a6c4c5a5059a04695725f95f7adb83ea6ab757a5414d3f2cf76c, et_full.txt = 8b0dbb18efd797a497878caae9597fe230be5162dcc6a39d4a35299bb8c60e14. The self-contained supplement archive includes every script (prep_data_v2.py, make_wug.py, train_v2.py, analyze_v3.py, kfold_traps.py, score_kfold_v3.py, prep_raw.py, crossling.py, make_figures_v3.py, vs_common.py), the exact data/wug_sets.json fixture, per-seed item-level validated test predictions (v3_test_items.tsv), the -entry Voikko-validated 5-fold trap corpus (v3_finnish_5fold_traps.tsv), full JSON metrics, all five 300-DPI figures, and exact CLI commands in README.md (verified in a clean-room throwaway directory with zero absolute paths).
7. References
[1] Kotimaisten kielten keskus (Kotus). Iso suomen kielioppi (VISK) § 15: Mitä vokaalisointu on? Helsinki: Kotus, 2004. https://scripta.kotus.fi/visk/sisallys.php?p=15
[2] Kotimaisten kielten keskus (Kotus). Iso suomen kielioppi (VISK) § 16: Taivutustunnusten ja johtimien vokaalin määräytyminen. Helsinki: Kotus, 2004. https://scripta.kotus.fi/visk/sisallys.php?p=16
[3] Silfverberg, M., Mao, L., and Hulden, M. Sound analogies with phoneme embeddings. Proceedings of the Society for Computation in Linguistics (SCiL), 1:136–144, 2018. https://aclanthology.org/W18-0314
[4] Mayer, C. and Nelson, M. Phonotactic learning with neural language models. Proceedings of the Society for Computation in Linguistics (SCiL), 3:291–301, 2020. https://aclanthology.org/2020.scil-1.36
[5] Steuer, J., Abdullah, B. M., List, J.-M., and Klakow, D. Information-theoretic characterization of vowel harmony: A cross-linguistic study on word lists. Proceedings of the 5th Workshop on Research in Computational Linguistic Typology and Multilingual NLP (SIGTYP), pp. 96–109, 2023. https://aclanthology.org/2023.sigtyp-1.10/
[6] Astrach, G. and Pinter, Y. Probing subphonemes in morphology models. Findings of the Association for Computational Linguistics: ACL 2025, pp. 12954–12961, 2025. https://doi.org/10.18653/v1/2025.findings-acl.672
[7] Kielitoimiston ohjepankki (Kotus). Vierassanojen taivutuspäätteen vokaali: perustapaukset ja yhdyssanat. Helsinki: Kotus. https://kielitoimistonohjepankki.fi/ohje/vierassanojen-taivutuspaatteen-vokaali-perustapaukset-kaviaaria-inkivaaria-argumentissa
[8] Kielitoimiston ohjepankki (Kotus). Vierassanojen vokaali: johdokset ja liitepartikkelit (appelsiiniko). Helsinki: Kotus. https://kielitoimistonohjepankki.fi/ohje/vierassanojen-vokaali-johdokset-marttyyrius-ja-marttyyriys-ja-liitepartikkelit-appelsiiniko
[9] Kiparsky, P. and Pajusalu, K. Towards a typology of disharmony. The Linguistic Review, 20(2–4):217–241, 2003. https://doi.org/10.1515/tlir.2003.009
[10] Kallio, P. The diversification of Proto-Finnic. In J. Ahola and Frog (eds.), Fibula, Fabula, Fact: The Viking Age in Finland, Studia Fennica Historica 18, pp. 155–168. Helsinki: Suomalaisen Kirjallisuuden Seura, 2014. https://doi.org/10.21435/sfh.18
[11] Hermit Dave. FrequencyWords: Finnish OpenSubtitles-2018 word frequency list (fi_full.txt). GitHub repository, 2018. https://raw.githubusercontent.com/hermitdave/FrequencyWords/master/content/2018/fi/fi_full.txt
[12] Hermit Dave. FrequencyWords: Estonian OpenSubtitles-2018 word frequency list (et_full.txt). GitHub repository, 2018. https://raw.githubusercontent.com/hermitdave/FrequencyWords/master/content/2018/et/et_full.txt
Reproducibility: Skill File
Use this skill file to reproduce the research with an AI agent.
--- name: vokaalisointu-luotain-v3 description: Reproduce zero-leakage Voikko-validated Finnish vowel-harmony character-GPTs, parameter-matched depth ablations, L0-MLP class controls, directional ablation, matched-tail CIs, and 5-fold trap mining. allowed-tools: Bash(python *) --- # Reproducing Vokaalisointu-luotain (v3) 1. Install Python 3.13, PyTorch (CUDA), NumPy, Matplotlib, Pillow, and `libvoikko` (`libvoikko1`, `voikko-fi`). 2. Download OpenSubtitles-2018 Finnish (`fi_full.txt`) and Estonian (`et_full.txt`) into `data/`. 3. Build the verified 0-leakage split (`prep_data_v2.py`) and synthetic probe fixture (`make_wug.py`, seed 20261202). 4. Train 15 models (`train_v2.py`, 16 epochs, saving `best.pt` and `final.pt`) across `L4_d256`, `L2_d360`, `L1_d512`, `L1_d256`, `L1ao_d256` (3 seeds each) plus 6 Finnish/Estonian raw contrast models (`--no_wug`). 5. Run `analyze_v3.py` for full-denominator Voikko-validated benchmarks, 4 diagnostic baselines, head-clustered bootstrap CIs, L0-MLP controls, directional ablation, simplex-lens validation, and matched-tail CIs. 6. Run `kfold_traps.py` + `score_kfold_v3.py` for full-denominator Voikko-validated 5-fold trap mining (`100,344` forms -> `1,390` traps) and population neutral-span error curves.
Discussion (0)
to join the discussion.
No comments yet. Be the first to discuss this paper.