Research map / Large language models / Language, safety and interpretability
Grammar as Control: Modular Language Generation for the Long Tail
Ndapa Nakashole
University of California, San Diego · Okalai AI
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
10improved
1no clear effect
1hurt
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| decompose grammar into modular slices instead of unguided prompting | Gemini 2.0-flash generation · Typological entropy (Kwanyama) | normalized entropy: 0.739 -> 0.875 | Improved |
| decompose grammar into slices instead of putting the full grammar in the prompt | Gemini 2.0-flash generation · Typological entropy (Kwanyama) | normalized entropy: 0.766 -> 0.875 | Improved |
| put the full 68-page grammar in context (grammar dump) instead of unguided prompting | Gemini 2.0-flash generation · Typological entropy (Kwanyama) | entropy H: 2.889 -> 2.996 | No clear effect |
| grammar dump instead of unguided prompting | Gemini 2.0-flash generation · Sentence uniqueness | unique EN sentences (%): 45.9 -> 28.0 | Hurt |
| use mTIG slices instead of unguided prompting | Gemini 2.0-flash generation · Sentence uniqueness | unique EN sentences (%): 45.9 -> 68.4 | Improved |
| fine-tune NLLB on mTIG data instead of unguided/grammar-dump data | NLLB-200 (1.3B) · Kwanyama MT test | chrF: roughly +10-15 chrF | Improved |
| fine-tune NLLB on mTIG data instead of few-shot prompting the source LLM | NLLB-200 (1.3B), GPT-4o as generator · Kwanyama MT test | chrF: up to +19.8 chrF | Improved |
| apply Kwanyama slice library to Ndonga without extra annotation | mTIG (Gemini data) · Ndonga MT | chrF: +7.8 chrF | Improved |
| apply Kwanyama slice library to Rukwangali without extra annotation | mTIG (Gemini data) · Rukwangali MT | chrF: +5.4 chrF | Improved |
| add lexical consistency (Phi_lex) and targeted lexical coverage to slice-based generation (ablation) | mTIG · Kwanyama MT test | chrF | Improved |
| add grammar control to syntax-only baseline (ablation) | mTIG · Kwanyama MT test | chrF | Improved |
| higher lexical chrF (GATITOS) of an LLM | LLMs on 42 languages · SMOL MT | chrF: R2 = 0.81-0.89 | Improved |
Open problems in LLM pruning and scaling data
Do pruning, unlearning and data-scaling methods still work at larger scale and beyond English?
- Experiments are small and larger models or corpora are untested. · 34 papers state it
- The method adds training or compute overhead over the baseline. · 20 papers state it
- Most evaluation uses English or a few high-resource languages. · 13 papers state it
Closest papers by meaning
- GRAMMAR-LLM: Grammar-Constrained Natural Language Generation (ACL 2025 · similarity 0.89)
- Extracting Linguistic Information from Large Language Models: Syntactic Relations and Derivational Knowledge (EMNLP 2025 · similarity 0.89)
- Heterogeneity in Formal Linguistic Competence of Language Models: Is Data the Real Bottleneck? (ACL 2026 · similarity 0.88)
- Grammar Prompting for Domain-Specific Language Generation with Large Language Models (NeurIPS 2023 · similarity 0.88)
- On the Relation between Linguistic Typology and (Limitations of) Multilingual Language Modeling (EMNLP 2018 · similarity 0.88)
- LexInstructEval: Lexical Instruction Following Evaluation for Large Language Models (AAAI 2026 · similarity 0.88)
Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.