Research map / Large language models / Language, safety and interpretability
GRAMMAR-LLM: Grammar-Constrained Natural Language Generation
Gabriele Tuccio, Luana Bulla, Maria Madonia, Aldo Gangemi, Misael Mongiovì
University of Catania · ISTC - National Research Council · University of Bologna
Read the paperPlace an idea next to itCheck your own paper ↗
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 |
|---|---|---|---|
| add grammar constraint during decoding (ablation) | LLaMA-3 1B · WoS Level 1 (zero-shot) | micro F1: .002 -> .308 | Improved |
| add grammar constraint during decoding (ablation) | LLaMA-3 1B · WoS Level 2 (one-shot) | micro F1: .071 -> .231 | Improved |
| add grammar constraint during decoding (ablation) | LLaMA-3 70B · WoS Level 2 (zero-shot) | micro F1: .464 -> .504 | Improved |
| add grammar constraint during decoding (ablation) | LLaMA-3 8B · WoS Level 1 (few-shot) | micro F1: .680 -> .680 | No clear effect |
| add grammar constraint during decoding (ablation) | LLaMA-3 1B · WoS Level 1 (few-shot) | micro F1: .501 -> .504 | No clear effect |
| add grammar constraint during decoding (ablation) | LLaMA-3 (1B, 8B, 70B) · WoS classification | output validity: 0%-85% -> 100% | Improved |
| add grammar constraint during decoding (ablation) | LLaMA-3 1B · ASL gloss translation (few-shot) | BLEU: 0.31 -> 0.47 | Improved |
| add grammar constraint during decoding (ablation) | LLaMA-3 8B · ASL gloss translation (few-shot) | F1: 0.89 -> 0.94 | Improved |
| add grammar constraint during decoding (ablation) | AMRBART-base · AMR parsing | Smatch F1: 0.559 -> 0.577 | Improved |
| add grammar constraint during decoding (ablation) | AMRBART-large · AMR parsing | Smatch F1: 0.789 -> 0.790 | No clear effect |
| increase model size from 1B to 70B | LLaMA-3 with grammar constraint · WoS Level 1 (zero-shot) | micro F1: .308 -> .734 | Improved |
Open problems in controlled text generation
How can generation be controlled and checked reliably across languages, domains and model sizes without extra cost?
- Each study covers one domain, source or task, so transfer is unknown. · 13 papers state it
- Only a few languages are tested, mostly English or high-resource ones. · 12 papers state it
- Extra stages, calls or tokens make generation slower and costlier. · 10 papers state it
Closest papers by meaning
- HyGenar: An LLM-Driven Hybrid Genetic Algorithm for Few-Shot Grammar Generation (ACL 2025 · similarity 0.91)
- Grammar-Aligned Decoding (NeurIPS 2024 · similarity 0.89)
- Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generation (ICML 2024 · similarity 0.88)
- A Paradigm Shift in Machine Translation: Boosting Translation Performance of Large Language Models (ICLR 2024 · similarity 0.88)
- LLM Augmented LLMs: Expanding Capabilities through Composition (ICLR 2024 · similarity 0.88)
- CRANE: Reasoning with constrained LLM generation (ICML 2025 · 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.