POS-Signature Demonstration Retrieval for In-Context Dependency Parsing

Muhammad Azam Afridi, Rajab Ali, Marco Passarotti
10/22/2026
cs.CL

No confident code implementation found for this paper.

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{afridi2026possignature,
  title  = {POS-Signature Demonstration Retrieval for In-Context Dependency Parsing},
  author = {Muhammad Azam Afridi and Rajab Ali and Marco Passarotti},
  year   = {2026},
  eprint = {2610.31966},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.31966v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2610.31966.svg)](https://codeofpaper.com/paper/2610.31966)

Discussion