Manuscript Offprint
arXiv:2610.31966POS-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.
1 Introduction
Retrieval-based in-context learning commonly selects demonstrations whose text is semantically similar to the query (Liu et al., 2022). Demonstration selection can be viewed as a form of context engineering: selecting and organizing the information supplied to an LLM at inference time (Mei et al., 2025). Semantic proximity is useful for topic-sensitive tasks, but it may be a poor proxy for relevance when outputs depend on structure: sentences about different topics can share a POS pattern, while topically similar sentences can require different structural analyses.
Dependency parsing makes this distinction concrete. Given a tokenized sentence, a parser assigns every token a syntactic head and dependency relation, producing a rooted tree under an annotation scheme such as Universal Dependencies (UD; Nivre et al., 2016). Large language models can emit dependency and constituency structures, but their accuracy depends strongly on prompt design, demonstrations, and task decomposition (Tian et al., 2024; Ezquerro et al., 2025; Matsuda et al., 2025; Ginn and Palmer, 2025). We ask whether a POS-signature retrieval policy produces more accurate parses than general semantic retrieval under the same prompt scaffold and three-example budget.
Our policy uses a supervised Stanza tagger to predict the query’s POS sequence and represents it through weighted features of sentence length, POS composition, and adjacent POS transitions. It first restricts the labeled English-EWT training pool by length compatibility, then retrieves the three signatures with highest cosine similarity and inserts their gold parses as demonstrations. Predicted query tags control retrieval only and are not shown to the language model. Because the semantic baseline searches the full training pool, our central comparison evaluates complete retrieval policies rather than isolating the representation itself.
We compare six prompting conditions on all 2,077 English-EWT test sentences using OpenAI's gpt-oss-120b and Qwen's Qwen2.5-72B-Instruct, without fine-tuning. Fixed selection uses the same three training examples for every query, whereas POS-signature and semantic retrieval select query-specific examples using POS-pattern similarity with length filtering and sentence-embedding similarity, respectively. Fixed, POS-signature, and semantic few-shot conditions are shot- and format-matched; zero-shot, chain-of-thought (CoT), and critique-refinement provide broader system comparisons. The primary metric is token-weighted labeled attachment score (LAS) over 21,998 non-punctuation tokens, with paired sentence-bootstrap inference for designated contrasts.
POS-signature retrieval achieves the highest LAS among the tested prompting systems for both models; all four primary retrieval contrasts remain significant after Holm correction. CoT instead improves over zero-shot for gpt-oss but reduces accuracy for Qwen, showing a model-dependent difference between these bundled systems.
This paper makes three contributions:
-
POS-signature demonstration retrieval: an interpretable policy that selects three gold-parsed examples using explicit POS statistics and length compatibility.
-
Cross-model policy comparison: six conditions over the full English-EWT test split, including three shot- and format-matched demonstration policies.
-
Evidence and diagnostics: exploratory retrieval-policy results across two models, alongside analyses of relation-level accuracy and changes introduced by refinement. We release all prompts, archived outputs, evaluation code, and reproduction instructions.
The reported LLM results can be reproduced from the archived outputs without additional model API calls. The findings are scoped to two hosted models, one English treebank, gold tokenization, and labeled in-domain demonstrations.
Demonstration selection typically favors semantic similarity (Liu et al., 2022), but task-specific structure has guided selection for semantic parsing and machine translation. Gupta et al. (2023) evaluate dependency-subtree coverage among several coverage-based selectors for semantic parsing, and Tang et al. (2024) combine syntactic and lexical coverage for translation. Our setting differs in prediction target and representation: we use sentence-level POS statistics to retrieve examples for dependency-tree prediction and compare the resulting policy with fixed selection and Sentence-BERT retrieval (Reimers and Gurevych, 2019), built on MPNet (Song et al., 2020), while holding demonstration count and serialization constant.
CoT and iterative refinement provide alternative prompting interventions. CoT is effective for some reasoning tasks but less consistent elsewhere (Wei et al., 2022; Sprague et al., 2025); self-refinement can likewise repair or introduce errors without external feedback (Madaan et al., 2023; Huang et al., 2024). We therefore evaluate CoT and critique-refinement as broader prompting systems, not factor-matched retrieval baselines.
3 Method
3.1 Task and Resource Setting
Let a tokenized sentence be . For each token , the model predicts a head , where 0 denotes the root, and a UD relation . Although the prompt also requests a universal POS tag, evaluation scores heads and relations. All first-pass queries provide gold-tokenized (id, form) pairs but withhold the query's gold POS tags, lemmas, morphological features, heads, and dependency relations.
The five first-pass conditions share an instruction defining the task, UD inventories, root convention, and JSON schema, followed by condition-specific demonstrations or reasoning instructions. Critique-Refine separately reviews a CoT parse. Model parameters remain frozen, but demonstrations contain complete gold parses from the labeled EWT training split; the setting is therefore supervised in-context parsing, not zero-resource parsing.
https://github.com/azamafridi23/pos-signature-parsing; archived version 0.1.0: https://doi.org/10.5281/zenodo.22924472.
3.2 Prompting Conditions
We evaluate six prompting conditions (Table 1). Fixed, POS-Signature, and Semantic Few-Shot share the task instruction, three-example budget , and demonstration format, enabling direct comparison of their selection policies. CoT and Critique-Refine also change the example count, response format, or number of calls and are therefore system-level comparisons.
Zero-Shot uses the shared instruction alone. Fixed Few-Shot uses the same three manually selected EWT training examples for every query. POS-Signature and Semantic Few-Shot instead retrieve three query-specific examples using the policies in Sections 3.3 and 3.4. CoT provides one worked EWT example and permits free-text reasoning before the JSON parse. Critique-Refine makes a dependent second call that reviews the extracted CoT parse without its rationale or any gold annotation; if extraction fails, the second call is omitted and the sentence receives zero credit under the common failure policy. Appendix A presents the prompt templates; complete instructions and demonstrations are available in the repository.
3.3 POS-Signature Demonstration Retrieval
POS-Signature retrieval selects demonstrations using POS composition and local POS order (Figure 1). Its retrieval features require POS tags but no dependency arcs, lemmas, or morphological features; gold dependency parses supply the demonstration outputs.
Sentence representation. For sentence s, let be its UPOS sequence, including punctuation. Let and count tag a and adjacent tag pair , respectively. The EWT training pool fixes vocabularies of 17 tags and of 280 observed bigrams. We form four feature blocks using scaled length and normalized frequencies:
Here encodes length and coarse composition, tag frequencies, local POS order, and selected category ratios derived from the same counts as . The concatenation has dimensions.
Weighting and normalization. We multiply the blocks in (1) by fixed coefficients, concatenate them, and apply one global normalization:
(2)
The blocks are not separately -normalized. The multipliers are hand specified, not learned or optimized, and do not represent fixed shares of cosine similarity: each block's contribution also depends on its feature values and norm. Global normalization makes the dot product between signatures equal cosine similarity.
Candidate filtering and selection. We first retain a training sentence t when
Thus the allowable length difference is at least three tokens and grows with the query; lengths are those of the UPOS sequences used by the retriever. If this candidate pool is empty, we use the full training pool. Candidate similarity is
Candidates are ranked by decreasing similarity, skipping exact query-text matches and duplicate selected texts. The first remaining candidates are inserted with their gold token records (POS tags, heads, and relations); every archived test prompt received three demonstrations.
Tagging provenance. Training signatures use the gold UPOS sequences of the 12,544 EWT training sentences. Query signatures use the UPOS sequence predicted from sentence text by Stanza's tokenize, pos pipeline (Qi et al., 2020). Gold test UPOS is never used for retrieval, and predicted query tags guide selection only: they are not placed in the prompt or otherwise exposed to the LLM.
3.4 Semantic Retrieval Baseline
Semantic Few-Shot encodes each raw sentence with the frozen all-mpnet-base-v2 SentenceTransformer (Sentence Transformers, 2025), using its configured mean pooling to produce a 768-dimensional vector. We precompute vectors for all 12,544 training sentences and -normalize training
| Condition | Demonstrations | Selection | Free-text reasoning | Passes |
|---|---|---|---|---|
| Zero-Shot | 0 | — | No | 1 |
| Fixed Few-Shot | 3 | fixed, manually selected | No | 1 |
| POS-Signature Few-Shot | 3 | POS signature + length window | No | 1 |
| Semantic Few-Shot | 3 | full-pool sentence embeddings | No | 1 |
| Chain-of-Thought | 1 | fixed worked example | Yes | 1 |
| Critique-Refine | — | revises CoT output | Internal review | 2 |
Table 1: Prompting conditions. The three few-shot policies are shot- and format-matched; comparisons involving CoT or Critique-Refine are system-level.
and query embeddings, making their dot product cosine similarity. The repository documents the encoder revision, sorting behavior, and environment metadata for both retrievers.
An exhaustive full-pool search ranks candidates by decreasing similarity, applies the same exact-text exclusion and deduplication, and selects three demonstrations in the shared format. Unlike POS-Signature retrieval, this policy has no length filter. The comparison therefore varies both representation and candidate pool (Appendix B).
4 Experimental Setup
4.1 Data
We use UD English Web Treebank v2.17 (Universal Dependencies, 2025b; Silveira et al., 2014). Its training, development, and test splits contain 12,544, 2,001, and 2,077 sentences; training supplies the in-domain demonstration pool, development is unused, and all test sentences are evaluated. We retain integer-ID CoNLL-U word rows, including punctuation, but exclude multiword-token ranges and empty nodes, with no other corpus preprocessing. Of 25,094 test tokens, 3,096 gold PUNCT tokens are excluded, leaving a fixed scoring denominator of 21,998.
Models receive gold-tokenized (id, form) pairs, isolating dependency parsing from segmentation and making the task narrower than end-to-end parsing. POS-Signature retrieval additionally uses Stanza-predicted query UPOS, which is never shown to the LLM; gold test UPOS, heads, and relations are used only for evaluation.
4.2 Models and Inference Configuration
We evaluate two open-weight models without fine-tuning: OpenAI's reasoning model gpt-oss-120b (OpenAI, 2025) and Qwen's dense instruction-tuned Qwen2.5-72B-Instruct (Qwen, 2024). Both models are served via DeepInfra's OpenAI-compatible chat API (DeepInfra, 2026a). We use the provider's documented gpt-oss and Qwen endpoints (DeepInfra, 2026b,c). The systems differ in developer and post-training regime but do not represent the broader LLM landscape.
All conditions use temperature 0, top-p = 1, seed 42, and a 6,000-token completion limit; every first-pass condition except CoT requests a JSON-object response. These settings reduce sampling variation but do not make hosted inference deterministic. gpt-oss uses reasoning effort none; Qwen omits the reasoning-effort field. The repository documents retry behavior and archived endpoint metadata.
4.3 Metrics and Statistical Analysis
Responses are decoded against the requested JSON schema (from the first { for CoT) and aligned to gold tokens by identifier. Extraction failures and missing identifiers receive zero credit; predictions need not form a well-formed tree. Decoding rejects trailing non-whitespace text. Appendix C.6 describes the separate structural checks.
We report standard unlabeled and labeled attachment scores (UAS/LAS; Zeman et al., 2018) over a fixed denominator of non-punctuation gold tokens, with LAS primary and UAS secondary. Gold UPOS identifies PUNCT; full relation strings, including subtypes, are compared case-insensitively. Failed or missing predictions and absent Critique-Refine records remain in with zero correct arcs, while structurally ill-formed outputs remain token-level scorable. Because this fixed-denominator, soft-validation protocol also uses gold tokenization and retains relation subtypes, it differs from official CoNLL 2018 scoring (Universal Dependencies, 2018); scores are directly comparable only under matching choices. Appendix C.1 gives the exact formulas.
For each contrast, we pair the same 2,077 sentences and draw 10,000 sentence-bootstrap replicates, applying identical resampled indices to both conditions and recomputing token-weighted LAS

Figure 1: POS-Signature retrieval. Predicted query UPOS selects three length-compatible, gold-parsed demonstrations but is not shown to the LLM; sentences are illustrative.
(Koehn, 2004). We report the observed percentage-point difference, percentile 95% confidence interval, and approximate two-sided bootstrap p-value; Appendix C.1 defines the calculation.
We apply Holm correction at jointly to four focal comparisons: POS-Signature versus Semantic and versus Fixed for each model (Holm, 1979). Other comparisons are exploratory; Appendix C reports all 15 pairwise comparisons per model.
4.4 Supervised Reference
For context, we evaluate Stanza 1.11.1, a supervised biaffine parser (Qi et al., 2020; Dozat and Manning, 2017), on the same gold-tokenized test set with the same evaluator, punctuation exclusion, and 21,998-token denominator. It scores 90.7 UAS and 88.0 LAS. Because it is task-supervised, Stanza is a contextual reference rather than a resource-matched prompting baseline.
5 Results
5.1 Overall Performance and Primary Contrasts
POS-Signature Few-Shot leads all prompting conditions for both models (Table 2), reaching 80.4 UAS/72.4 LAS on gpt-oss and 82.1 UAS/73.2 LAS on Qwen. Semantic Few-Shot reaches 70.5 LAS on both. The supervised Stanza reference remains substantially higher at 88.0 LAS, gaps of 15.6 and 14.8 points from the strongest prompted systems.
The paired-bootstrap analysis supports the retrieval advantage (Table 3). Relative to Semantic Few-Shot, POS-Signature improves LAS by 1.87 points on gpt-oss (95% CI [1.06, 2.69]) and 2.68 on Qwen (95% CI [1.97, 3.41]); gains over Fixed Few-Shot are 5.09 and 7.86 points. The corresponding UAS gains over Semantic Few-Shot are smaller, at 0.8 and 1.3 points, suggesting that improved relation labeling contributes substantially to the LAS advantage. All four Holm-adjusted p-values are .0008. These estimates compare complete policies because representation and candidate filtering both differ.
5.2 CoT and Refinement System Comparisons
CoT reverses direction across models: relative to Zero-Shot, it gains 5.30 LAS points on gpt-oss (95% CI [4.41, 6.19]) but loses 1.18 on Qwen (95% CI [-2.22, -0.21]). It therefore approaches the stronger few-shot conditions on gpt-oss but ranks last on Qwen.
Critique-Refine gains 0.44 points over CoT on gpt-oss (95% CI [-0.02, 0.91]) and 1.90 on Qwen (95% CI [1.53, 2.28]). For Qwen Critique-Refine minus Zero-Shot, the difference is +0.72 points (95% CI [-0.28, +1.64], p = .1484; Table 4); the interval includes zero, so no statistically clear difference was detected. These system comparisons depend on the available first-pass parses; three Qwen second-pass records are absent because their CoT outputs contain no scorable JSON.
5.3 Output Compliance
Schema-valid output rates are 99.7–100%. All evaluated gpt-oss responses are schema-valid; Qwen failures comprise six Zero-Shot, one Fixed, one POS-Signature, and three truncated CoT responses. The CoT failures also prevent their Critique-Refine calls, while Semantic Few-Shot has none. Appendix C.6 gives full counts.
Root warnings occur in at most 14 responses per condition and remain token-level scorable. Output
| Condition | gpt-oss | Qwen | ||
|---|---|---|---|---|
| UAS (%) | LAS (%) | UAS (%) | LAS (%) | |
| Zero-Shot | 75.1 | 64.7 | 75.7 | 62.9 |
| Fixed Few-Shot | 76.5 | 67.3 | 76.3 | 65.3 |
| POS-Signature Few-Shot | 80.4 | 72.4 | 82.1 | 73.2 |
| Semantic Few-Shot | 79.6 | 70.5 | 80.8 | 70.5 |
| Chain-of-Thought | 78.6 | 70.0 | 72.4 | 61.7 |
| Critique-Refine | 79.1 | 70.4 | 74.6 | 63.6 |
| Stanza supervised reference | 90.7 | 88.0 | 90.7 | 88.0 |
Table 2: Corpus UAS/LAS (%) on 2,077 EWT test sentences and 21,998 non-punctuation tokens; unscorable outputs receive zero. Bold and underline mark the best and second-best LLM results, not significance. The duplicated Stanza values represent one reference run.
compliance and attachment accuracy are distinct measures. Appendix C.6 reports a stricter, non-scoring tree audit.
5.4 Post-Hoc Diagnostic Analyses
These post-hoc diagnostics localize aggregate differences by relation, sentence length, and refinement behavior; they do not establish causal mechanisms.
5.4.1 Relation-Level Localization
POS-Signature exceeds Semantic retrieval under both models for nmod:poss, cop, and nmod:unmarked. The largest gap is for nmod:poss: 13.9 LAS points on gpt-oss and 23.0 on Qwen, although other example-based conditions also improve this relation. Only the retrieval policies obtain nonzero LAS on nmod:unmarked, whose 111-token support warrants caution. Appendix C.3 reports all six diagnostic relations. These patterns do not identify whether structural match, relation coverage, or lexical overlap causes the gains.
5.4.2 Sentence Length and Refinement Behavior
Critique-Refine is numerically above POS-Signature for gpt-oss in the 21–30 and 31–50 token bins, whereas POS-Signature leads every Qwen bin (Appendix C.4). Refinement changes similar token shares (10.3% and 9.6%) but yields net gains of 97 LAS-correct tokens for gpt-oss and 418 for Qwen; Appendix C.5 separates fixes from regressions.
6 Discussion
6.1 Interpreting the Retrieval-Policy Advantage
The retrieval-policy advantage can be interpreted from two complementary perspectives: linguistic structure and how demonstrations guide the LLM's predictions.
From a linguistic perspective, POS composition, adjacent POS transitions, and sentence length capture surface patterns that may help identify relevant constructions. Such patterns may be particularly useful in English, where constituent order and function-word placement constrain dependency relations. Previous work supports the relevance of POS-sequence statistics and word-order properties to dependency parsing (Wang and Eisner, 2018; Gulordava and Merlo, 2016). However, POS signatures summarize tag composition and adjacent transitions but omit head attachments and dependency labels; similar signatures can therefore correspond to different dependency structures.
From an in-context learning perspective, relevant demonstrations may help the model apply UD head and relation-label conventions to similar constructions. The larger LAS than UAS advantage is consistent with this explanation. For example, improvements in nmod:poss and cop may reflect guidance on possessive constructions and UD's predicate-headed copular analysis (de Marneffe et al., 2021). Nevertheless, nmod:unmarked remains difficult, and Semantic Few-Shot performs better for Qwen on obl:unmarked, suggesting a potential complementary role for lexical-semantic information.
These interpretations remain hypotheses. The comparison evaluates the complete retrieval policy and does not isolate POS features from length filtering, predicted-POS errors, or incidental lexical overlap. The observed advantage is therefore specific to the tested models and data.
| Comparison (first – second) | Status | gpt-oss | Qwen | ||
|---|---|---|---|---|---|
| ΔLAS pp [95% CI] | p | ΔLAS pp [95% CI] | p | ||
| POS-Signature – Semantic | Primary | +1.87 [1.06, 2.69] | .0008 | +2.68 [1.97, 3.41] | .0008 |
| POS-Signature – Fixed | Primary | +5.09 [4.21, 5.98] | .0008 | +7.86 [7.05, 8.71] | .0008 |
| CoT – Zero-Shot | Exploratory | +5.30 [4.41, 6.19] | .0002 | -1.18 [-2.22, -0.21] | .0158 |
| Critique-Refine – CoT | Exploratory | +0.44 [-0.02, 0.91] | .0634 | +1.90 [1.53, 2.28] | .0002 |
Table 3: Paired-bootstrap LAS differences (pp) with percentile 95% CIs from 10,000 paired sentence resamples. † Primary p-values are Holm-adjusted across four tests; exploratory values are unadjusted. All tests are two-sided; Appendix C.2 reports the remaining comparisons.
6.2 Interpreting CoT and Refinement Comparisons
The CoT sign reversal concerns a bundled prompting system, not an isolated “reason step by step” instruction. gpt-oss and Qwen differ in architecture, scale, training, tokenization, serving, and reasoning controls, and their CoT outputs differ in length and failure behavior. With one model per family, the experiment cannot identify which factor explains the reversal.
Refinement can repair errors or overwrite correct arcs. Its gain over CoT is uncertain for gpt-oss; for Qwen, it offsets CoT's loss, but the contrast with Zero-Shot is also uncertain (Section 5.2). These comparisons do not establish that critique or first-pass weakness causes improvement. No interaction test was specified for the length crossover, and the longest bin contains only 11 scored sentences.
6.3 Implications for Evaluating LLM Parsers
Schema compliance is not parsing success. Although 99.7–100% of outputs are schema-valid, the post-hoc audit finds tree-conforming rates of 96.5–98.4% for gpt-oss and 96.9–99.1% for Qwen, while the best LAS is only 72–73% (Appendix C.6). Moreover, gpt-oss POS-Signature Few-Shot has the highest LAS but the lowest tree-conforming count, showing that better attachment and labeling need not enforce global well-formedness. Evaluations should therefore report serialization reliability, structural validity, and parsing accuracy separately.
7 Conclusion
This study examines how demonstration-retrieval policies affect dependency parsing by frozen LLMs. Among six prompting systems, POS-Signature retrieval achieves the highest LAS for both models on English-EWT, exceeding full-pool semantic retrieval by 1.9 and 2.7 points. CoT reverses direction across models, and refinement produces both repairs and regressions.
These exploratory results favor the tested POS-signature retrieval approach, which requires a supervised tagger and labeled demonstration pool. They do not isolate POS features from length filtering or establish an alternative to supervised parsing; matched ablations remain needed. Future work could investigate development-set tuning of feature weights, alternative measures of structural similarity for demonstration selection, and the effects of the sentence-length window and number of retrieved examples.
Limitations
The retrieval comparison evaluates complete policies: POS-Signature combines POS features with length filtering, whereas Semantic retrieval searches the full training pool. It therefore does not isolate representation from candidate filtering, and the retrieval components and hyperparameters were not ablated. Although the LLMs are frozen, the approach relies on a supervised tagger and gold-annotated demonstrations from the evaluation treebank's training split, limiting claims about low-resource use. Its scores remain below the supervised Stanza reference. CoT and refinement also change the example count, response format, or number of calls, so these comparisons do not isolate the effects of reasoning or critique.
The findings cover only two models and English-EWT with gold sentence boundaries and tokens. Differences in model training and serving prevent attributing their contrasting CoT results to a single factor. English's dominant constituent order and limited inflectional morphology may make local POS patterns informative in ways that do not transfer to languages with freer word order or richer case morphology (Dehouck and Denis, 2018). Generalization to other languages and domains, and to end-to-end parsing with segmentation and tokenization errors, remains untested.
Prompts, retrieval weights, and fixed examples were finalized before evaluation; test outputs were inspected afterward to interpret the results. Relation- and length-based diagnostics are therefore post-hoc and should be interpreted as exploratory. Unknown pretraining exposure to the public EWT data and UD guidelines cannot be excluded. Finally, token-level attachment scores do not guarantee well-formed dependency trees or establish downstream utility; structural validity is assessed separately.
Ethical Considerations
This study uses the public UD English-EWT dataset. Its source text may contain identifying information; inputs and demonstrations were processed through DeepInfra and included in the released archives without additional de-identification. The artifact retains the dataset’s license and source notices (Universal Dependencies, 2025a). Generated parses are model predictions and should not be treated as verified annotations.
Acknowledgments
ChatGPT (OpenAI) was used for language editing and improving the readability of the manuscript. The authors reviewed and take full responsibility for the final content.
References
Mohamed Adel, Bashar Alhafni, and Nizar Habash. 2026. Arabic morphosyntactic tagging and dependency parsing with large language models. arXiv preprint arXiv:2603.16718.
Marie-Catherine de Marneffe, Christopher D. Manning, Joakim Nivre, and Daniel Zeman. 2021. Universal Dependencies. Computational Linguistics, 47(2):255–308.
DeepInfra. 2026a. Chat completions documentation. Accessed 29 July 2026.
DeepInfra. 2026b. openai/gpt-oss-120b model endpoint. Accessed 29 July 2026.
DeepInfra. 2026c. Qwen/Qwen2.5-72B-Instruct model endpoint. Accessed 29 July 2026.
Mathieu Dehouck and Pascal Denis. 2018. A framework for understanding the role of morphology in Universal dependency parsing. In Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing, pages 2864–2870, Brussels, Belgium. Association for Computational Linguistics.
Timothy Dozat and Christopher D. Manning. 2017. Deep biaffine attention for neural dependency parsing. In International Conference on Learning Representations.
Ana Ezquerro, Carlos Gómez-Rodríguez, and David Vilares. 2025. Better benchmarking LLMs for zero-shot dependency parsing. In Proceedings of the Joint 25th Nordic Conference on Computational Linguistics and 11th Baltic Conference on Human Language Technologies, pages 121–135, Tallinn, Estonia. University of Tartu Library.
Michael Ginn and Alexis Palmer. 2025. LLM dependency parsing with symbolic rules. In Proceedings of the 1st Joint Workshop on Large Language Models and Structure Modeling, pages 186–196, Vienna, Austria. Association for Computational Linguistics.
Kristina Gulordava and Paola Merlo. 2016. Multilingual dependency parsing evaluation: A large-scale analysis of word order properties using artificial data. Transactions of the Association for Computational Linguistics, 4:343–356.
Shivanshu Gupta, Matt Gardner, and Sameer Singh. 2023. Coverage-based example selection for in-context learning. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 13924–13950, Singapore. Association for Computational Linguistics.
Sture Holm. 1979. A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics, 6(2):65–70.
Jie Huang, Xinyun Chen, Swaroop Mishra, Huaixiu Steven Zheng, Adams Wei Yu, Xinying Song, and Denny Zhou. 2024. Large language models cannot self-correct reasoning yet. In International Conference on Learning Representations.
Philipp Koehn. 2004. Statistical significance tests for machine translation evaluation. In Proceedings of the 2004 Conference on Empirical Methods in Natural Language Processing, pages 388–395, Barcelona, Spain. Association for Computational Linguistics.
Jiachang Liu, Dinghan Shen, Yizhe Zhang, Bill Dolan, Lawrence Carin, and Weizhu Chen. 2022. What makes good in-context examples for GPT-3? In Proceedings of Deep Learning Inside Out (DeeLIO 2022), pages 100–114, Dublin, Ireland and Online. Association for Computational Linguistics.
Aman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan, Luyu Gao, Sarah Wiegreffe, Uri Alon, Nouha Dziri, Shrimai Prabhumoye, Yiming Yang, Shashank Gupta, Bodhisattwa Prasad Majumder, Katherine Hermann, Sean Welleck, Amir Yazdanbakhsh, and Peter Clark. 2023. Self-refine: Iterative refinement with self-feedback. In Advances in Neural Information Processing Systems, volume 36, pages 46534–46594.
Hiroshi Matsuda, Chunpeng Ma, and Masayuki Asahara. 2025. Step-by-step instructions and a simple tabular output format improve the dependency parsing accuracy of LLMs. In Proceedings of the 18th International Conference on Parsing Technologies (IWPT, SyntaxFest 2025), pages 11–19, Ljubljana, Slovenia. Association for Computational Linguistics.
Lingrui Mei, Jiayu Yao, Yuyao Ge, Yiwei Wang, Baolong Bi, Yujun Cai, Jiazhi Liu, Mingyu Li, Zhong-Zhi Li, Duzhen Zhang, Chenlin Zhou, Jiayi Mao, Tianze Xia, Jiafeng Guo, and Shenghua Liu. 2025. A survey of context engineering for large language models. arXiv preprint arXiv:2507.13334. Version 2, 21 July 2025.
Joakim Nivre, Marie-Catherine de Marneffe, Filip Ginter, Yoav Goldberg, Jan Hajič, Christopher D. Manning, Ryan McDonald, Slav Petrov, Sampo Pyysalo, Natalia Silveira, Reut Tsarfaty, and Daniel Zeman. 2016. Universal Dependencies v1: A multilingual treebank collection. In Proceedings of the Tenth International Conference on Language Resources and Evaluation, pages 1659–1666, Portorož, Slovenia. European Language Resources Association.
OpenAI. 2025. gpt-oss-120b & gpt-oss-20b model card. arXiv preprint arXiv:2508.10925.
Peng Qi, Yuhao Zhang, Yuhui Zhang, Jason Bolton, and Christopher D. Manning. 2020. Stanza: A Python natural language processing toolkit for many human languages. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics: System Demonstrations, pages 101–108, Online. Association for Computational Linguistics.
Qwen. 2024. Qwen2.5 technical report. arXiv preprint arXiv:2412.15115.
Nils Reimers and Iryna Gurevych. 2019. Sentence-BERT: Sentence embeddings using Siamese BERT-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing and the 9th International Joint Conference on Natural Language Processing, pages 3982–3992, Hong Kong, China. Association for Computational Linguistics.
Sentence Transformers. 2025. all-mpnet-base-v2 model artifact. Revision e8c3b32edf5434bc2275fc9bab85f82640a19130. Accessed 29 July 2026.
Natalia Silveira, Timothy Dozat, Marie-Catherine de Marneffe, Samuel R. Bowman, Miriam Connor, John Bauer, and Chris Manning. 2014. A gold standard dependency corpus for English. In Proceedings of the Ninth International Conference on Language Resources and Evaluation, pages 2897–2904, Reykjavik, Iceland. European Language Resources Association.
Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, and Tie-Yan Liu. 2020. MPNet: Masked and permuted pre-training for language understanding. In Advances in
Neural Information Processing Systems, volume 33, pages 16857–16867.
Zayne Rea Sprague, Fangcong Yin, Juan Diego Rodriguez, Dongwei Jiang, Manya Wadhwa, Prasann Singhal, Xinyu Zhao, Xi Ye, Kyle Mahowald, and Greg Durrett. 2025. To CoT or not to CoT? chain-of-thought helps mainly on math and symbolic reasoning. In International Conference on Learning Representations.
Chenming Tang, Zhixiang Wang, and Yunfang Wu. 2024. SCOI: Syntax-augmented coverage-based in-context example selection for machine translation. In Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, pages 9956–9971, Miami, Florida, USA. Association for Computational Linguistics.
Yuanhe Tian, Fei Xia, and Yan Song. 2024. Large language models are no longer shallow parsers. In Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 7131–7142, Bangkok, Thailand. Association for Computational Linguistics.
Universal Dependencies. 2018. CoNLL 2018 UD evaluation script. Official evaluation specification and scorer; accessed 29 July 2026.
Universal Dependencies. 2025a. UD english EWT: Documentation and license. UD release 2.17 treebank repository. Accessed 29 July 2026.
Universal Dependencies. 2025b. Universal Dependencies 2.17. LINDAT/CLARIAH-CZ handle 11234/1-6036. Released 15 November 2025.
Dingquan Wang and Jason Eisner. 2018. Surface statistics of an unknown language indicate how to parse it. Transactions of the Association for Computational Linguistics, 6:667–685.
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Brian Ichter, Fei Xia, Ed H. Chi, Quoc V. Le, and Denny Zhou. 2022. Chain-of-thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, volume 35, pages 24824–24837.
Daniel Zeman, Jan Hajič, Martin Popel, Martin Potthast, Milan Straka, Filip Ginter, Joakim Nivre, and Slav Petrov. 2018. CoNLL 2018 shared task: Multilingual parsing from raw text to Universal Dependencies. In Proceedings of the CoNLL 2018 Shared Task: Multilingual Parsing from Raw Text to Universal Dependencies, pages 1–21, Brussels, Belgium. Association for Computational Linguistics.
A Prompt Templates
This appendix presents the prompt templates used in the experiments. Complete instructions, fixed demonstrations, and archived messages are available in the accompanying repository. POS-Signature and Semantic retrieval share the same base instruction and demonstration format; only their selected examples differ.
A.1 Shared Task Instruction
The following is the exact Zero-Shot system message. It also provides the common task definition for the other first-pass conditions. Box titles are presentation labels; line wrapping is for readability.
System message: Zero-Shot
You are a Universal Dependencies (UD) syntactic parser for English. You will be given an English sentence and a numbered list of its tokens (id and word form).
Your task is to produce a UD parse in JSON with this exact structure: { "tokens": [ { "id": <integer, matches the input token id>, "form": "<copy the word form exactly from input>", "upos": "<Universal POS tag>", "head": <integer, id of syntactic head; 0 means this token is root>, "deprel": "<UD dependency relation label>" }, ... ] }
Rules:
- Output ONLY the raw JSON object. No markdown, no explanation.
- Exactly one token must have head=0 AND deprel="root". No other token may use head=0 or deprel="root".
- Use UD v2 UPOS tags: ADJ, ADP, ADV, AUX, CCONJ, DET, INTJ, NOUN, NUM, PART, PRON, PROPN, PUNCT, SCONJ, SYM, VERB, X
- Use standard UD v2 deprel labels: acl, advcl, advmod, amod, appos, aux, case, cc, ccomp, compound, conj, cop, csubj, dep, det, discourse, dislocated, expl, fixed, flat, goeswith, iobj, list, mark, nmod, nsubj, nummod, obj, obl, orphan, parataxis, punct, reparandum, root, vocative, xcomp
- Subtypes are allowed using colon notation (e.g. nsubj:pass, aux:pass, acl:relcl, obl:agent). Use them where appropriate.
- Copy id and form exactly as given; do not add or remove tokens.
Fixed Few-Shot adds three fixed gold-parsed examples. Both retrieval conditions use a slightly extended instruction and three selected examples. CoT provides one worked example and allows reasoning before the final JSON. Complete versions are preserved in docs/prompt_source_snapshot.md.
A.2 Query and Demonstration Templates
All five first-pass conditions use this query format:
User message: first pass
text = {sentence_text}
{token_id_1}\t{token_form_1} ... {token_id_n}\t{token_form_n}
Both retrieval conditions append three demonstrations in the following format:
Retrieved demonstration template
Input:
text = {retrieved_training_sentence}
{token_id_1}\t{token_form_1} ... {token_id_n}\t{token_form_n}
Output: { "tokens": [ { "id": {integer}, "form": {"exact_form"}, "upos": {"gold_upos"}, "head": {gold_head}, "deprel": {"gold_deprel"} } ] }
Braced placeholders are filled with the selected training data. Both retrieval conditions use the same formatting.
A.3 Critique-Refine Messages
Critique-Refine reviews the extracted CoT parse. Its full system instruction is preserved in the repository; the standard user-message template is shown below.
User message: Critique-Refine
Sentence: {sentence_text}
Tokens: {token_id_1}\t{token_form_1} ... {token_id_n}\t{token_form_n}
Existing parse: { "tokens": {extracted_CoT_token_array_serialized_with-indent_2} }
B Retrieval-Policy Comparison
POS-Signature represents sentences using weighted POS statistics and filters candidates by length; Semantic retrieval uses sentence embeddings and searches the full training pool. Both rank candidates by cosine similarity, exclude exact query-text matches and duplicate selections, and supply three gold-parsed examples in the same format under matched inference settings. Their comparison therefore evaluates complete retrieval policies, not POS representation alone. Sections 3.3–3.4 describe the policies.
C Additional Results
All corpus-level comparisons use the same 2,077 sentences and 21,998 non-punctuation gold tokens. Missing or unscorable predictions receive zero credit without reducing the denominator. Exceptions for the refinement-transition analysis are stated below.
C.1 Scoring and Statistical Tests
Let , with predicted heads and labels , and gold values , . UAS requires the correct head; LAS requires both the correct head and the full relation label, including any subtype. Label comparison is case-insensitive.
For each comparison , we use paired sentence-bootstrap samples with seed 42. Each sample draws 2,077 sentences with replacement, uses the same sentence indices for both systems, and recomputes token-weighted LAS using the number of scored tokens in that sample as its denominator. We report pointwise 95% confidence intervals from the 2.5th and 97.5th percentiles of the sampled differences. We estimate an approximate two-sided percentile-bootstrap p-value as:
where is the LAS difference in bootstrap sample b. The estimates use add-one smoothing and count zero differences in both tails.
C.2 Pairwise Comparisons
Table 4 gives all 15 comparisons per model. Differences are LAS percentage points for the first condition minus the second. “Holm (15)” adjusts all 15 tests separately within each model; it differs from the joint four-test correction for the focal comparisons in Section 4.3. “Raw p” is the approximate bootstrap p-value defined in Appendix C.1. Confidence intervals are pointwise, not adjusted for multiple comparisons.
The focal rows compare POS-Signature with Fixed or Semantic retrieval. For Qwen, the three absent Critique-Refine outputs remain in the full test-set denominator with zero credit.
C.3 Results by Dependency Relation
Table 5 reports six diagnostic relations. Gold-token counts are shared across conditions; complete results for all 48 scored relation labels are available in results/per_relation.json. These comparisons are descriptive, without relation-level significance tests.
POS-Signature improves on Semantic retrieval for several relations, but not uniformly: Qwen performs better with Semantic retrieval on ob1:unmarked. The small counts for the two unmarked relations warrant caution.
C.4 Results by Sentence Length
Length is the number of non-punctuation gold tokens. Table 6 excludes 31 punctuation-only sentences; failed predictions retain zero credit within each bin. Results are descriptive: no interaction test or simultaneous confidence intervals were specified, and the longest bin contains only 11 sentences.
For gpt-oss, POS-Signature leads in the two shortest bins, while Critique-Refine is numeri-
(a) gpt-oss
| Comparison (first – second) | Status | ΔLAS (pp) | 95% CI | Raw p | Holm p (15) |
|---|---|---|---|---|---|
| Zero-Shot – Fixed Few-Shot | Exploratory | -2.65 | [-3.49, -1.81] | .0002 | .0030 |
| Zero-Shot – POS-Signature Few-Shot | Exploratory | -7.74 | [-8.62, -6.86] | .0002 | .0030 |
| Zero-Shot – Semantic Few-Shot | Exploratory | -5.87 | [-6.73, -4.99] | .0002 | .0030 |
| Zero-Shot – Chain-of-Thought | Exploratory | -5.30 | [-6.19, -4.41] | .0002 | .0030 |
| Zero-Shot – Critique-Refine | Exploratory | -5.74 | [-6.57, -4.87] | .0002 | .0030 |
| Fixed Few-Shot – POS-Signature Few-Shot | Focal | -5.09 | [-5.98, -4.21] | .0002 | .0030 |
| Fixed Few-Shot – Semantic Few-Shot | Exploratory | -3.22 | [-4.07, -2.37] | .0002 | .0030 |
| Fixed Few-Shot – Chain-of-Thought | Exploratory | -2.65 | [-3.43, -1.83] | .0002 | .0030 |
| Fixed Few-Shot – Critique-Refine | Exploratory | -3.09 | [-3.84, -2.32] | .0002 | .0030 |
| POS-Signature Few-Shot – Semantic Few-Shot | Focal | +1.87 | [+1.06, +2.69] | .0002 | .0030 |
| POS-Signature Few-Shot – Chain-of-Thought | Exploratory | +2.44 | [+1.54, +3.34] | .0002 | .0030 |
| POS-Signature Few-Shot – Critique-Refine | Exploratory | +2.00 | [+1.12, +2.89] | .0002 | .0030 |
| Semantic Few-Shot – Chain-of-Thought | Exploratory | +0.57 | [-0.33, +1.48] | .2060 | .4120 |
| Semantic Few-Shot – Critique-Refine | Exploratory | +0.13 | [-0.72, +0.99] | .7599 | .7599 |
| Chain-of-Thought – Critique-Refine | Exploratory | -0.44 | [-0.91, +0.02] | .0634 | .1902 |
(b) Qwen
| Comparison (first – second) | Status | ΔLAS (pp) | 95% CI | Raw p | Holm p (15) |
|---|---|---|---|---|---|
| Zero-Shot – Fixed Few-Shot | Exploratory | -2.45 | [-3.14, -1.75] | .0002 | .0030 |
| Zero-Shot – POS-Signature Few-Shot | Exploratory | -10.31 | [-11.13, -9.52] | .0002 | .0030 |
| Zero-Shot – Semantic Few-Shot | Exploratory | -7.63 | [-8.44, -6.85] | .0002 | .0030 |
| Zero-Shot – Chain-of-Thought | Exploratory | +1.18 | [+0.21, +2.22] | .0158 | .0316 |
| Zero-Shot – Critique-Refine | Exploratory | -0.72 | [-1.64, +0.28] | .1484 | .1484 |
| Fixed Few-Shot – POS-Signature Few-Shot | Focal | -7.86 | [-8.71, -7.05] | .0002 | .0030 |
| Fixed Few-Shot – Semantic Few-Shot | Exploratory | -5.18 | [-6.05, -4.35] | .0002 | .0030 |
| Fixed Few-Shot – Chain-of-Thought | Exploratory | +3.63 | [+2.63, +4.69] | .0002 | .0030 |
| Fixed Few-Shot – Critique-Refine | Exploratory | +1.73 | [+0.77, +2.79] | .0004 | .0030 |
| POS-Signature Few-Shot – Semantic Few-Shot | Focal | +2.68 | [+1.97, +3.41] | .0002 | .0030 |
| POS-Signature Few-Shot – Chain-of-Thought | Exploratory | +11.49 | [+10.45, +12.63] | .0002 | .0030 |
| POS-Signature Few-Shot – Critique-Refine | Exploratory | +9.59 | [+8.56, +10.71] | .0002 | .0030 |
| Semantic Few-Shot – Chain-of-Thought | Exploratory | +8.81 | [+7.78, +9.89] | .0002 | .0030 |
| Semantic Few-Shot – Critique-Refine | Exploratory | +6.91 | [+5.90, +7.97] | .0002 | .0030 |
| Chain-of-Thought – Critique-Refine | Exploratory | -1.90 | [-2.28, -1.53] | .0002 | .0030 |
Table 4: Paired LAS comparisons for both models, using all 2,077 sentences. The two rows marked Focal per model form the joint four-test family; the displayed Holm values instead adjust all 15 comparisons within each model.
| Relation | Gold support | gpt-oss LAS (%) | Qwen LAS (%) | ||
|---|---|---|---|---|---|
| POS-Signature | Semantic | POS-Signature | Semantic | ||
| nsubj | 1,950 | 78.4 | 76.4 | 79.8 | 77.4 |
| nmod:poss | 387 | 73.1 | 59.2 | 84.2 | 61.2 |
| cc | 750 | 73.7 | 68.1 | 84.5 | 82.4 |
| cop | 584 | 44.3 | 38.4 | 52.9 | 48.6 |
| nmod:unmarked | 111 | 34.2 | 28.8 | 43.2 | 36.9 |
| obl:unmarked | 113 | 1.8 | 0.0 | 2.7 | 6.2 |
Table 5: LAS (%) for six diagnostic dependency relations. Gold-token counts are shared across conditions.
cally higher in the 21–30 and 31–50 bins. POS-Signature leads all Qwen bins. These patterns do not establish a general advantage for reasoning on longer sentences. Exact counts are preserved in results/length_analysis.json.
C.5 Refinement Changes
An edit changes a token's predicted head, relation label, or both. A prediction is correct only when both fields match the gold annotation.
Qwen's transition counts cover the 2,074 sentences with schema-valid outputs at both stages: 21,801 non-punctuation tokens. Transition percentages and conditional gains use this denominator; full-corpus gains use 21,998 tokens. Both models change similar proportions of predictions, but Qwen introduces fewer new errors. These counts are descriptive; uncertainty for the full-corpus LAS contrast is reported in the main results.
(a) gpt-oss
| Bin | Sentences | Tokens | Zero | Fixed | POS-Sig | Semantic | CoT | Critique |
|---|---|---|---|---|---|---|---|---|
| 1–10 | 1,227 | 5,749 | 68.3 | 69.1 | 78.9 | 76.0 | 71.7 | 71.6 |
| 11–20 | 533 | 7,821 | 65.1 | 68.2 | 74.2 | 71.1 | 71.4 | 71.3 |
| 21–30 | 194 | 4,789 | 64.7 | 66.9 | 69.9 | 68.6 | 70.2 | 70.8 |
| 31–50 | 81 | 3,008 | 57.7 | 64.7 | 62.6 | 64.2 | 66.2 | 68.1 |
| 51+ | 11 | 631 | 58.3 | 55.5 | 57.1 | 58.2 | 51.3 | 55.9 |
(b) Qwen
| Bin | Sentences | Tokens | Zero | Fixed | POS-Sig | Semantic | CoT | Critique |
|---|---|---|---|---|---|---|---|---|
| 1–10 | 1,227 | 5,749 | 61.7 | 64.9 | 78.0 | 74.7 | 62.9 | 63.9 |
| 11–20 | 533 | 7,821 | 63.9 | 66.2 | 72.8 | 70.7 | 63.2 | 65.1 |
| 21–30 | 194 | 4,789 | 64.1 | 66.8 | 71.5 | 69.2 | 61.9 | 64.6 |
| 31–50 | 81 | 3,008 | 61.5 | 62.4 | 69.4 | 66.2 | 59.9 | 62.0 |
| 51+ | 11 | 631 | 57.7 | 61.2 | 64.5 | 61.0 | 39.1 | 42.2 |
Table 6: Token-weighted LAS (%) by non-punctuation sentence length. POS-Sig denotes POS-Signature Few-Shot; Critique denotes Critique-Refine.
| Critique outcome | gpt-oss | Qwen |
|---|---|---|
| Analyzed non-punctuation tokens | 21,998 | 21,801 |
| Token prediction changed | 2,260 (10.3%) | 2,084 (9.6%) |
| Wrong → correct | 703 | 756 |
| Correct → wrong | 606 | 338 |
| Wrong → different wrong | 951 | 990 |
| Net LAS-correct tokens | +97 | +418 |
| Conditional net change | +0.44 pp | +1.92 pp |
| Full-corpus LAS change | +0.44 pp | +1.90 pp |
Table 7: Changes from CoT to Critique-Refine. Qwen transition counts use 21,801 tokens with schema-valid parses at both stages; full-corpus gains use 21,998 tokens.
C.6 Output and Tree Validity
Valid JSON does not guarantee a valid dependency tree. Table 8 distinguishes schema-valid responses, root warnings, and fully tree-conforming outputs. A root warning indicates no token or multiple tokens with head=0 in a schema-valid response.
A tree-conforming output has exactly the gold token IDs, legal head IDs, one root, no self-loops, and a path from every token to the root. These checks include punctuation, are separate from UAS/LAS, and do not check projectivity, token-form fidelity, or tag/label inventory membership.
All gpt-oss responses are schema-valid. For Qwen, failures comprise six malformed Zero-Shot outputs, one malformed Fixed output, one malformed POS-Signature output, and three truncated CoT outputs. The latter prevent three Critique-Refine calls; these absent outputs remain in the denominator. Semantic retrieval has no schema failures. Intermediate token-ID and head-validity
counts are retained in the artifact.
| Model | Condition | Schema-valid | Root warnings | Tree-conforming |
|---|---|---|---|---|
| gpt-oss | Zero-Shot | 2,077 | 5 | 2,017 |
| gpt-oss | Fixed Few-Shot | 2,077 | 1 | 2,035 |
| gpt-oss | POS-Signature Few-Shot | 2,077 | 1 | 2,005 |
| gpt-oss | Semantic Few-Shot | 2,077 | 3 | 2,009 |
| gpt-oss | Chain-of-Thought | 2,077 | 2 | 2,044 |
| gpt-oss | Critique-Refine | 2,077 | 2 | 2,031 |
| Qwen | Zero-Shot | 2,071 | 12 | 2,017 |
| Qwen | Fixed Few-Shot | 2,076 | 14 | 2,044 |
| Qwen | POS-Signature Few-Shot | 2,076 | 6 | 2,054 |
| Qwen | Semantic Few-Shot | 2,077 | 4 | 2,058 |
| Qwen | Chain-of-Thought | 2,074 | 3 | 2,013 |
| Qwen | Critique-Refine | 2,074 | 5 | 2,028 |
Table 8: Output validity, out of 2,077 sentences per condition. Root warnings count schema-valid responses with no token or multiple tokens having head=0; tree checks impose the additional requirements described in the text.