TL;DR
If you ask a language model a multiple-choice grammar question, there is a remarkably high chance it isn't reading the grammar at all—it’s just picking its favorite letter ("A" or "B"). By evaluating 19 open-weight models on a new benchmark of Ukrainian grammar, the authors show why direct probability scoring is essential, expose a massive blind spot in how multilingual models address people by name, and prove that targeted language adaptation fixes the exact blind spots general models miss.
What Problem Does This Paper Address?
Every modern LLM can generate fluent-sounding Ukrainian, so fluency is no longer an interesting test. The real question for deploying systems in the real world is normativity: does the model follow standard Ukrainian rules, or does it slip into Russian calques (literal word-for-word translations that sound natural in casual speech, like "на протязі місяця" instead of "протягом місяця") and botch obligatory grammatical cases?
Normally, engineers test this by prompting the model with multiple-choice questions. That rests on an unspoken assumption: that the model’s choice depends on the content of the options, not whether a sentence is labeled "A" or "B". Furthermore, existing Ukrainian grammar benchmarks either bundle a dozen grammatical checks into a single multiple-choice question (making it impossible to pinpoint what failed) or rely on automated multilingual pipelines that only test basic subject–verb agreement—the one rule current models already ace.
Methods
To isolate specific grammatical rules, the authors use minimal pairs: two sentences identical in every way except for a single word or phrase—one standard, one non-standard. They evaluate 19 open-weight models (spanning Gemma, Llama 3, and Qwen2.5, plus three Ukrainian-adapted variants) using two distinct channels:
- Probability Scoring (Does the model use the norm?): A standard linguistics probe where the authors feed both sentences into the model and compare the total log-probabilities assigned to their tokens (both raw sums and length-normalized per token). Whichever sentence gets the higher probability wins.
- Prompted Scoring & Order Consistency (Does the model know the norm?): They present both sentences labeled
АandБand ask which is standard Ukrainian. What’s novel here is a simple, rigorous diagnostic: every pair is asked twice, with the sentence positions swapped. From this, they calculate order consistency—the fraction of pairs where the model picks the actual same sentence regardless of whether it sits in slot А or Б.
Finally, to measure the true impact of continued Ukrainian pre-training, they perform an exact, apples-to-apples comparison between two Ukrainian-adapted models (MamayLM and Lapa) and the exact base checkpoints they were trained from, under identical hardware and precision settings.
Datasets
The authors introduce and publicly release a benchmark of 1,444 Ukrainian minimal pairs across six grammatical phenomena:
- Subject–verb agreement (included as a sanity-check control, bridging to the existing MultiBLiMP dataset).
- Adjective–noun and numeral–noun agreement (generated via templates and morphological analyzers).
- The vocative case (obligatory in Ukrainian when addressing someone directly, e.g., "Олеже" instead of nominative "Олег").
- Verb government (verbs requiring different grammatical cases than their Russian counterparts) and Russian calques.
Normativity was anchored strictly to the 2019 Ukrainian Orthography and established usage handbooks. Two native speakers blindly validated 25% of the dataset, achieving a 0.963 Cohen’s $\kappa$ agreement and weeding out ambiguous items.
Key Insights and Ideas
- Prompting often measures position bias, not grammar: Ten of the 19 models had an order consistency below 0.05—meaning over 95% of the time, they stubbornly picked the same letter regardless of which sentence was there. One 12B base model achieved the third-highest prompted accuracy in the whole study (84.6%) despite answering consistently on only 19.2% of pairs!
- Instruction tuning teaches test-taking, not grammar: What separates consistent prompt-answering models from positional guessers isn't parameter count—it's instruction tuning. Paradoxically, instruction tuning actually degraded internal grammatical probability scores slightly in five out of six base/instruct model pairs. It teaches models how to answer the question asked, without improving their grasp of the language.
- The Vocative Inversion: Multilingual models don't just struggle with the Ukrainian vocative case; they actively prefer the wrong (nominative) form roughly six times out of seven. Even accounting for vocative words being slightly longer in tokens, multilingual models systematically fail.
- Web data fixes what is rare, not what is entrenched: Continued pre-training on Ukrainian web text massively repairs the vocative deficit and wipes out colloquial calques. However, if a non-standard calque is ubiquitous in formal Ukrainian journalism (like "підняти питання" for "raise a question"), adding more web data doesn't fix it—because the training corpus itself is full of the error.
Key Results
- Phenomenon Breakdown: Averaged across all 19 models via probability scoring, the subject–verb control hit ceiling at 0.951, followed by adjective agreement (0.869), numeral–noun (0.845), calques (0.773), and verb government (0.768). The vocative case collapsed to 0.153 overall—and a dismal 0.079 across the 16 general multilingual models (where random guessing is 0.500).
- Ukrainian Adaptation Works: Compared directly against their exact starting checkpoints,
lapa-12b-ptjumped from 0.801 to 0.889 overall probability accuracy, andMamayLM-4Brose from 0.766 to 0.868. Crucially, the gains were surgical: vocative accuracy surged by +0.293 (Lapa, hitting 0.950 when length-normalized!) and +0.263 (MamayLM), and calques jumped +0.098 and +0.168, while the control stayed flat at 1.000.
- Knowing vs. Using: Among the four instruction-tuned models reliable enough to interpret prompted scores (>0.60 consistency), three showed no statistical difference between probability and prompting, suggesting little gap between "knowing" and "using" a rule once a model actually understands the prompt format.
Limitations and Future Work
- Template Simplicity: Because pairs are template-generated to keep variables strictly controlled, the sentences are short and syntactically simple. Models might behave differently in long, messy paragraphs.
- Prompt Format Scope: The prompting critique applies specifically to zero-shot, two-option Cyrillic-labeled questions. Few-shot prompting or chain-of-thought might stabilize order consistency in base models, which the authors flag as a clear next step.
- Open-Weight Only & Hardware Quirk: Because probability scoring requires token log-probabilities, closed API models (like GPT-4 or Claude) couldn't be tested with the full protocol. Models were also quantized differently to fit on 16GB T4 GPUs (notably, the authors caught a silent
float16activation overflow bug in 12B Gemma 3 models that turned all log-probabilities intoNaN, requiring afloat32fallback). - Future Directions: Expanding the dataset beyond six phenomena (to aspect, participles, and word order) and investigating why verb government resisted Ukrainian adaptation across all models.
Summary updated