# Evaluating Ukrainian Grammatical Competence in Language Models: Probability Versus Prompting

Ukrainian minimal pairs reveal that language models invert the vocative case

Dmytro Babarytskyi, Oleksandr Babarytskyi, Vadym Savanevych · arXiv · 2026-11-25

- **Problem** Prompted grammar tests for Ukrainian models can reward answer position rather than knowledge of the norm. Probability scoring avoids that bias, but Ukrainian had no minimal-pair resource beyond subject-verb agreement.
- **Method** The authors release 1,444 Ukrainian minimal pairs and score each pair twice. They compare sentence probabilities and also ask the model with both sentence orders, to measure position effects.
- **Results** Across 19 models, probability accuracy on the vocative is 0.153, against 0.951 on the subject-verb control. Models prefer the non-normative nominative form of address.

![Figure 1: Accuracy per phenomenon under both scoring methods, averaged over the 19 models. Dots are individual models](https://refivu.com/papers/b9da328b-a55a-404e-8dab-7573f504b062/figures/figure-f1a694a1d6fc714585aaee17d7a44dd7.png?thumb=512)

**Figure 1** : Accuracy per phenomenon under both scoring methods, averaged over the 19 models. Dots are individual models.

[Original paper](https://arxiv.org/abs/2611.34016v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Dmytro Babarytskyi, Oleksandr Babarytskyi, Vadym Savanevych · Evaluating Ukrainian Grammatical Competence in Language Models: Probability Versus Prompting · Original paper figure · Extracted the figure area from page 7 of the original PDF.

## Why prompted grammar scores can mislead

Prompting is the usual way to test a model's grammar: show several variants, ask which one is correct, and count the hits. The method only works if the answer follows the content of the options, and that assumption is rarely checked. Multiple-choice selectors are known to favour particular option positions, a position bias that Zheng et al.

and Tang et al. document. For Ukrainian, a prompted accuracy figure then reports the strength of a position preference rather than knowledge of the norm.

Probability scoring avoids this problem, because it reads the model's own likelihoods and does not depend on following an instruction. But it needs minimal pairs, and for Ukrainian the only existing resource covers subject–verb agreement, which models already handle almost perfectly.

## Building and checking the minimal pairs

Forty-four pairs have members with different word counts, and the released data records that property for every pair.

Numeral–noun agreement, adjective–noun agreement and the subject–verb control come from templates filled with pymorphy3 forms. Non-normative members are made by substituting a form with the wrong number, gender or case. The vocative uses a list of given names placed in eight address frames, and each calque is instantiated in four contexts.

A fixed random seed picks the instantiations, so the same inputs rebuild the same file.

Labels are set by published reference works rather than by the authors' own judgement. Verb government and calques rely on usage handbooks, and items where those sources disagree, or where the difference is nuance rather than norm, were dropped during construction. The benchmark therefore measures agreement with a codified standard, not with all acceptable Ukrainian.

To check the labels, a stratified sample of 368 pairs, 25% of the set, was rated independently by two native speakers who did not see the answer key. Their agreement reached Cohen's kappa of 0.963, with 98.1% raw agreement.

## Scoring each pair by probability and by prompting

The probability channel sums the log-probability each token receives under the model, so a sentence gets one total score. The sentence score is \\( \\log P(s) = \\sum\_i \\log p(t\_i \\mid t\_1 \\dots t\_{i-1}) \\), summed over the tokens of the sentence. The verdict is \\\[ y = I\[\\log P(s^+) \> \\log P(s^-)\] \\\], where I is the indicator function and s^+ is the normative sentence.

Vocative forms run about 0.46 tokens longer than the nominatives, so a length-normalised verdict divides each total by its own token count.

The prompted channel shows both sentences labelled А and Б, and asks which one follows the norms of standard Ukrainian. For instruction-tuned models the question sits inside the model's own chat template. The margin for the normative letter is \\( m(q) = \\log P(\\ell^+ \\mid q) - \\log P(\\ell^- \\mid q) \\), and the verdict uses the mean of the margins from the two presentations.

Consistency comes before accuracy in this design, because a model that answers by position produces a prompted accuracy set by that preference. The authors compare the two scoring methods only for models whose consistency exceeds 0.6, and they also report accuracy on the consistent subset. Nineteen models were evaluated: six from the Gemma family, five from Qwen2.5, five from Llama 3 and three Ukrainian-adapted models.

Only the discordant pairs enter that statistic, which is why pairs both measurements get right or wrong carry no information about a difference. Models above 3B ran in 4-bit NF4, and the 12B checkpoints ran in float32, because Gemma 3 overflowed in float16.

## Order consistency decides which channel to trust

Across the 19 models, order consistency averages 0.242. For ten models it falls below 0.05, so the model names the same letter whichever sentence carries that label.

Instruction tuning separates the usable models, not model size. No base checkpoint reaches 0.2 consistency: lapa-12b-pt answers consistently on 0.0% of pairs and gemma-3-12b-pt on 19.2%. Among instruction-tuned models, consistency rises from 0.308 at 1B to 0.666 at 4B. Instruction tuning does not lift probability accuracy either: multilingual base checkpoints average 0.702, and instruction-tuned ones 0.672.

Across all models, accuracy on order-consistent pairs is 0.810, compared to 0.676 for the unrestricted prompted score. The authors turn this into a rule: read prompted accuracy only for models above a stated consistency level, and use probability scoring for the rest. The extra cost of this check is one additional presentation per item.

## Where the two channels agree

The authors fixed a threshold of 0.6 in advance, and four models clear it: MamayLM at 0.759, gemma-3-4b-it at 0.666, Qwen2.5-7B-Instruct at 0.657 and Llama-3.1-8B-Instruct at 0.628. The selected set is sensitive to the cut-off: at 0.55 lapa-v0.1.3-instruct joins, and at 0.7 only MamayLM remains.

McNemar's test finds no difference between the two methods for MamayLM (p = 1.00), Llama-3.1-8B-Instruct (p = 0.90) or Qwen2.5-7B-Instruct (p = 0.07). The authors read this as a modest form of the dissociation Hu and Levy reported for English, not a universal one.

lapa-v0.1.3-instruct sits at 0.572 consistency, just below the threshold, so the fixed rule excludes it. Its scores point the other way: 0.986 prompted against 0.886 by probability, and 0.994 on its consistent subset.

## The vocative inversion

The vocative scores 0.153 on probability accuracy, compared to 0.951 on the subject–verb control, averaged over 19 models. That is well below the 0.5 a random choice would give, so the models are systematically inverted rather than merely weak.

Restricted to the sixteen multilingual models, the figure falls to 0.079, with the best at 0.267 and the worst at 0.013. Token count is a partial explanation: length-normalised scoring lifts the vocative to 0.323 overall and 0.227 for the multilingual models, still far below chance.

The decisive case is lapa-12b-pt, which reaches 0.950 under length-normalised scoring. The authors argue this rules out a measurement artefact, since an artefact would depress every model equally. Instead, the models trained on Ukrainian text handle the vocative well, while the multilingual ones prefer the wrong form.

## Ukrainian adaptation against its own starting checkpoint

The cleaner pair is lapa-12b-pt against gemma-3-12b-pt, since lapa-12b-pt is a continued pre-train of that checkpoint.

Overall probability accuracy rises from 0.801 to 0.889, with 164 pairs corrected and 37 broken (chi2 = 79.0, p = 6.3e-19). The instruction-tuned lapa-v0.1.3-instruct shows a similar gain over the same base, reaching 0.886. MamayLM against gemma-3-4b-it moves from 0.766 to 0.868, with 178 pairs corrected and 31 broken (chi2 = 102.0).

The gain sits in the vocative and in calques, while the control stays at ceiling. The vocative rises by +0.293 for Lapa and +0.263 for MamayLM, and calques rise by +0.098 and +0.168. Subject–verb agreement moves from 1.000 to 1.000 for Lapa and from 0.997 to 1.000 for MamayLM. The authors read this as repair of specific deficits rather than a general lift.

Because 60 pairs is a small sample, the authors treat the MamayLM drop as a property of one model rather than a cost of adaptation.

## Which calques fail, and why

Calques score 0.773 on probability accuracy in aggregate, but the 46 curated items are strongly bimodal.

The hard items share one pattern: the form models prefer is the form Ukrainian speakers actually use. Examples are підняти питання preferred over порушити питання, ладно over гаразд, and пока over бувай.

Adaptation repairs most of the tail: наводити приклад rises from 0.36 to 1.00, and складати іспит from 0.41 to 0.92. гаразд improves from 0.09 to 0.75, while порушити питання moves only from 0.16 to 0.25 and бувай from 0.25 to 0.33. The authors attribute the two items that resist to non-normative variants that dominate written Ukrainian, such as підняти питання in journalistic prose and пока in informal writing.

For a deployed system, a lexical check over that short list of entrenched items is cheap.

## Limitations

Eight address frames recur across all 300 vocative pairs, and familiarity with those frames may add to the score. The authors did not test longer sentences with competing attractors.

The prompted result is tied to one format: two labelled sentences, Cyrillic letters, one Ukrainian question template and two options.

Only open-weight models were evaluated, because probability scoring requires token log-probabilities. The vocative result for large closed models is therefore not established.

Each model was evaluated once.

## Paper info

- **Authors**: Dmytro Babarytskyi, Oleksandr Babarytskyi, Vadym Savanevych
- **Venue**: arXiv · Preprint
- **First published**: 2026-11-25
- **Added**: 2026-11-26
- **Updated**: 2026-11-25
- **Version**: v1
- **arXiv**: 2611.34016
- **Category**: cs.CL · cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info, commentary and permitted figures from the original paper

[Original paper ↗](https://arxiv.org/abs/2611.34016v1) · [PDF ↗](https://arxiv.org/pdf/2611.34016v1)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Abstract

Organisations deploying large language models in Ukrainian-language information systems need to know whether a model produces normative Ukrainian. This paper establishes a protocol for measuring that reliably and applies it to 19 models. The instrument is a released set of 1,444 Ukrainian minimal pairs covering the vocative case, numeral-noun and adjective agreement, verb government and calques from russian, with subject-verb agreement as a control; a quarter of the set was checked against the answer key in two independent native-speaker ratings, which agreed at Cohen's $κ$ = 0.963. Every pair is scored twice: by comparing the probabilities a model assigns to the two sentences, and by asking the model directly, with the sentences presented in both orders so that answer-position effects are measured instead of being absorbed into the score. Three results follow. Order consistency (the share of pairs answered identically when the sentences are exchanged) falls below 0.05 for ten of the nineteen models, and what separates the usable models is instruction tuning, not scale. The vocative case is systematically inverted: 0.153 accuracy against 0.951 on the control, with models preferring the non-normative nominative form of address. Ukrainian adaptation substantially reduces this deficit, measured against the exact checkpoints two adapted models were trained from.

## Quote from the paper

Dmytro Babarytskyi, Oleksandr Babarytskyi, Vadym Savanevych (2026). Evaluating Ukrainian Grammatical Competence in Language Models: Probability Versus Prompting. arXiv:2611.34016v1. https://arxiv.org/abs/2611.34016v1

**BibTeX**

```
@misc{babarytskyi2026evaluating,
  title = {{Evaluating Ukrainian Grammatical Competence in Language Models: Probability Versus Prompting}},
  author = {Dmytro Babarytskyi and Oleksandr Babarytskyi and Vadym Savanevych},
  year = {2026},
  eprint = {2611.34016},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.34016v1}
}
```

## Related papers

- [A Comprehensive Overview of Large Language Models](https://refivu.com/en/papers/4e2425c0-8669-49f7-80be-dd35ce0a70b2-a-comprehensive-overview-of-large-language-models.md)
- [Auditing black-box clinical prediction models with a large language model through queries alone: a blinded test with planted flaws](https://refivu.com/en/papers/42b571d7-f993-4ac8-853f-382abfa8b6e5-auditing-black-box-clinical-prediction-models-with-a.md)

## Terms in this paper

- [instruction tuning](https://refivu.com/en/terms/0a2a2d11f238-instruction-tuning)
- [Cohen's Kappa](https://refivu.com/en/terms/d92996ffadce-cohen-s-kappa)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/b9da328b-a55a-404e-8dab-7573f504b062-evaluating-ukrainian-grammatical-competence-in-language)
