Explain-then-Process: Using Grammar Prompting to Enhance Grammatical Acceptability Judgments

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Scheinberg, Russell, Agrawal, Ameeta, Shore, Amber, Lee, So Young
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866908391223328768
author Scheinberg, Russell
Agrawal, Ameeta
Shore, Amber
Lee, So Young
author_facet Scheinberg, Russell
Agrawal, Ameeta
Shore, Amber
Lee, So Young
contents Large language models (LLMs) can explain grammatical rules, yet they often fail to apply those rules when judging sentence acceptability. We present "grammar prompting", an explain-then-process paradigm: a large LLM first produces a concise explanation of the relevant syntactic phenomenon, then that explanation is fed back as additional context to the target model -- either an LLM or a smaller language model (SLM) -- before deciding which sentence of a minimal pair is grammatical. On the English BLiMP, Chinese SLING, and Russian RuBLiMP benchmarks, this simple prompt design yields substantial improvements over strong baselines across many syntactic phenomena. Feeding an LLM's metalinguistic explanation back to the target model bridges the gap between knowing a rule and using it. On SLMs, grammar prompting alone trims the average LLM-SLM accuracy gap by about 20%, and when paired with chain-of-thought, by 56% (13.0 pp -> 5.8 pp), all at negligible cost. The lightweight, language-agnostic cue lets low-cost SLMs approach frontier-LLM performance in multilingual settings.
format Preprint
id arxiv_https___arxiv_org_abs_2506_02302
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Explain-then-Process: Using Grammar Prompting to Enhance Grammatical Acceptability Judgments
Scheinberg, Russell
Agrawal, Ameeta
Shore, Amber
Lee, So Young
Computation and Language
Artificial Intelligence
Large language models (LLMs) can explain grammatical rules, yet they often fail to apply those rules when judging sentence acceptability. We present "grammar prompting", an explain-then-process paradigm: a large LLM first produces a concise explanation of the relevant syntactic phenomenon, then that explanation is fed back as additional context to the target model -- either an LLM or a smaller language model (SLM) -- before deciding which sentence of a minimal pair is grammatical. On the English BLiMP, Chinese SLING, and Russian RuBLiMP benchmarks, this simple prompt design yields substantial improvements over strong baselines across many syntactic phenomena. Feeding an LLM's metalinguistic explanation back to the target model bridges the gap between knowing a rule and using it. On SLMs, grammar prompting alone trims the average LLM-SLM accuracy gap by about 20%, and when paired with chain-of-thought, by 56% (13.0 pp -> 5.8 pp), all at negligible cost. The lightweight, language-agnostic cue lets low-cost SLMs approach frontier-LLM performance in multilingual settings.
title Explain-then-Process: Using Grammar Prompting to Enhance Grammatical Acceptability Judgments
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2506.02302