POS-Signature Demonstration Retrieval for In-Context Dependency Parsing
Abstract
Demonstrations for in-context learning are often retrieved by semantic similarity, which may be a poor proxy for relevance in structured prediction. We study demonstration selection for Universal Dependencies parsing with a POS-signature policy that represents sentences with weighted part-of-speech statistics and retrieves three length-compatible, gold-parsed examples from the labeled training split. We evaluate two open-weight language models without fine-tuning on all 2,077 sentences of the UD English Web Treebank test set, comparing the policy with shot- and format-matched fixed and semantic three-shot baselines, as well as zero-shot, chain-of-thought, and critique-refinement systems. POS-signature retrieval yields the highest labeled attachment score among the tested prompting systems for both models (72.4 and 73.2), outperforming semantic retrieval by 1.9 and 2.7 points; paired-bootstrap 95% confidence intervals exclude zero for both contrasts. Chain-of-thought and refinement comparisons vary across models. These exploratory results favor the tested POS-signature retrieval approach on English-EWT. We release the prompts, archived outputs, and evaluation code.
Create a lesson
Metadata
- Comments
- 14 pages, 1 figure, 8 tables. Code and research artifacts: https://github.com/azamafridi23/pos-signature-parsing
Related papers
From Noisy Retrieval to Decision Evidence: Silver Evidence Demonstrations for In-Context Learning
Shared title terminologycs.CLMasoud Monajatipoor, Fazlolah Mohaghegh, Hamid Reza Hassanzadeh et al.
Definition-Guided In-Context Learning for Zero-Shot Spoken Language Understanding
Shared title terminologycs.CLNeeraj Agrawala, Sriram Ganapathy
Rethinking Retrieval in the Long-Context Era: Training-Free Semantic Trees for Adaptive Context Construction
Shared title terminologycs.CLZhe Xu, Tianhao Liao, Zhenqing Ling et al.
How Depth Growth and Looping Shape In-Context Learning in Language Models
Shared title terminologycs.CLFerdinand Kapl, Kaitlin Maile, Stefan Bauer et al.
LimeTree: Linear-Memory Graph Neural Networks over Tree-Graphs for Resource-Efficient Language Modeling and Context Extrapolation
Shared title terminologycs.CLElisabeth Fink
Task-Dependent Linguistic Measures in Aphasia Discourse: A Comparative Analysis of Narrative, Descriptive, and Procedural Speech
Shared title terminologycs.CLEmma Al Kubaisi