Syntactic Priming in Few-Shot Learning: How Demonstration Structure Shapes LLM Performance

Prasanth Yadla


Abstract
Large language models (LLMs) exhibit remarkable few-shot learning capabilities, yet the role of syntactic structure in demonstration examples remains unexplored. Drawing on psycholinguistic research on structural priming, we investigate whether syntactic patterns in few-shot prompts influence LLM outputs and task performance. We conduct systematic experiments across four model families (Llama, Mistral, Qwen, Gemma) using four syntactic constructions (passive voice, cleft sentences, dative alternation, particle placement). Our results reveal robust syntactic priming effects, with priming strength ranging from 1.3× to 6.4× depending on construction type, indicating that models are substantially more likely to produce constructions matching demonstration syntax. Critically, we find that priming strength shows a positive trend with model size (r = 0.85, p = 0.068), with effects intensifying from 7B to 14B parameter models. We demonstrate that priming is construction-specific rather than reflecting general stylistic preferences, and that priming effects persist across multiple intervening sentences. Analysis across three task types (sentence completion, paraphrase generation, story continuation) reveals that syntactic structure in demonstrations influences output style, and that models produce primed constructions even when the task calls for a different syntactic form. These findings have immediate implications for prompt engineering and reveal that LLMs encode syntactic abstractions beyond surface-level pattern matching. We release our benchmark, SyntaxPrime-ICL, containing controlled examples across multiple constructions for evaluating syntactic priming in few-shot contexts.
Anthology ID:
2026.starsem-conference.2
Volume:
Proceedings of the 15th Joint Conference on Lexical and Computational Semantics (*SEM 2026)
Month:
July
Year:
2026
Address:
San Diego, California, United States
Editors:
Saif M. Mohammad, Nedjma Ousidhoum
Venues:
*SEM | WS
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
13–27
Language:
URL:
https://preview.aclanthology.org/ingest-acl-workshops/2026.starsem-conference.2/
DOI:
Bibkey:
Cite (ACL):
Prasanth Yadla. 2026. Syntactic Priming in Few-Shot Learning: How Demonstration Structure Shapes LLM Performance. In Proceedings of the 15th Joint Conference on Lexical and Computational Semantics (*SEM 2026), pages 13–27, San Diego, California, United States. Association for Computational Linguistics.
Cite (Informal):
Syntactic Priming in Few-Shot Learning: How Demonstration Structure Shapes LLM Performance (Yadla, *SEM 2026)
Copy Citation:
PDF:
https://preview.aclanthology.org/ingest-acl-workshops/2026.starsem-conference.2.pdf