Verb-ICL: Rethinking In-Context Learning for Structured Prediction
Organizations: Johns Hopkins University · Optum
Abstract
Structured prediction tasks pose unique challenges for in-context learning (ICL): their compositional outputs require modeling fine-grained, token-level patterns that sentence-level approaches fail to capture, and their task-specific annotation conventions are human-defined artifacts that cannot be acquired through pretraining alone. We propose Verb-ICL, a selective annotation framework for ICL-based structured prediction that addresses both challenges. Verb-ICL first selects representative examples using a token-level coverage strategy that captures local semantic patterns critical for structured prediction, then generates actionable error feedback that codifies task-specific annotation guidelines and incorporates this feedback into ICL demonstrations. We evaluate Verb-ICL on six structured prediction datasets spanning information extraction and semantic parsing. Experiments with recent LLMs show that Verb-ICL consistently outperforms strong selective annotation baselines under low-resource settings and continues to provide gains as the annotation budget increases. Extended analyses demonstrate that the generated feedback is predominantly useful across a four-category quality taxonomy, generalizes as task-level guidance beyond instance-specific corrections, and improves performance regardless of the underlying selection strategy.
Figures & tables
| Method | NCBI | TwNER7 | PHEE | GeoQ | ATIS | MTOP | Avg. | |
| 16 | Random | 61.2 4.4 | 52.3 1.4 | 56.6 2.7 | 23.0 3.8 | 27.3 0.8 | 11.9 2.1 | 38.7 |
| K-means | 63.8 0.6 | 54.1 1.0 | 58.5 1.5 | 28.0 3.6 | 30.7 2.0 | 17.2 0.8 | 42.1 | |
| IDDS ( 2022 ) | 65.0 0.3 | 55.4 0.3 | 57.7 0.0 | 27.7 0.2 | 35.6 0.3 | 15.3 0.2 | 42.8 | |
| Vote- ( 2023 ) | 58.0 2.8 | 51.9 2.2 | 52.8 2.6 | 25.6 0.9 | 27.0 3.2 | 11.8 0.6 | 37.9 | |
| + SET-BSR | 59.4 3.0 | 52.9 1.6 | 54.6 1.9 | 29.3 2.6 | 27.7 4.1 | 14.7 2.0 | 39.8 | |
| LDCAL ( 2024 ) | 56.3 0.3 | 51.9 0.1 | 51.9 0.1 | 16.3 0.2 | 16.0 0.0 | 9.1 0.1 | 33.6 |
| Feedback Design | Accuracy | |||||
| Method | Source | Grounding | Notes | Position | NCBI | ATIS |
| (a) Verb-ICL w/o EF | – | – | – | – | 69.6 0.1 | 48.7 0.5 |
| (b1) LEAP-style | zero-shot | gold | all | global | 68.0 0.9 | 50.4 0.8 |
| (b2) – | LOO | gold | all | global | 69.9 0.2 | 49.5 1.5 |
| (c) – | LOO | gold | retrieved | global | 67.7 0.4 | 52.1 0.5 |
| (d) Verb-ICL | LOO | gold | retrieved | inline | 71.3 0.7 | 52.9 1.4 |
| Dataset | Concrete | General | Misdiag. | Over-gen./Vague | |
| NCBI | 38 | 5 (13%) | 28 (74%) | 4 (11%) | 1 (3%) |
| TweetNER7 | 179 | 20 (11%) | 151 (84%) | 0 | 8 (4%) |
| PHEE | 240 | 1 (0%) | 225 (94%) | 14 (6%) | 0 |
| ATIS | 63 | 19 (30%) | 43 (68%) | – | 1 (2%) |
| GeoQuery | 66 | 48 (73%) | 14 (21%) | – | 4 (6%) |
| MTOP | 81 | 65 (80%) | 16 (20%) | – | 0 |
| ATIS | MTOP | |||||
| Method | Total | Struct. | Value | Total | Struct. | Value |
| Random | 608 | 491 | 117 | 737 | 633 | 104 |
| K-Means | 547 | 427 (–13.0%) | 120 | 700 | 577 (–8.8%) | 123 |
| Verb-ICL w/o EF | 520 | 424 (–13.6%) | 96 | 661 | 521 (–17.7%) | 140 |
| Verb-ICL | 487 | 400 (–18.5%) | 87 | 643 | 492 (–22.3%) | 151 |
| Error Feedback | ||||
| 4o-mini | 4o | 4.1 | ||
| Dataset | Cov. Sel. | (10/01/23) | (10/01/23) | (06/01/24) |
| NCBI | 69.4 0.0 | 71.1 0.3 | 71.3 0.6 | 71.3 0.6 |
| ATIS | 48.7 0.5 | 49.7 0.4 | 51.2 0.1 | 53.0 1.1 |
| PHEE | 61.1 0.1 | 61.3 0.3 | 62.0 0.3 | 62.1 0.1 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| # Instances | ||
| Task Type | Dataset | (train / dev / test) |
| Info. Extraction | NCBI ( 2014 ) | 5.4k / 0.9k / 0.9k |
| TweetNER7 ( 2022 ) | 7.1k / 0.8k / 0.6k | |
| PHEE ( 2024 ) | 2.9k / 1.0k / 1.0k | |
| Semantic Parsing | GeoQuery ( 1996 ) | 0.7k / - / 0.2k |
| ATIS ( 1990 ) | 4.0k / - / 1.0k |
| Method | NCBI | TwNER7 | PHEE | GeoQ | ATIS | MTOP | Avg. | |
| 16 | Random | 50.9 6.2 | 42.7 0.3 | 56.8 2.5 | 19.3 1.1 | 28.6 1.2 | 9.5 2.1 | 34.6 |
| K-means | 52.0 1.8 | 44.0 2.7 | 57.9 0.7 | 26.5 0.7 | 31.3 2.5 | 14.4 0.7 | 37.7 | |
| IDDS ( 2022 ) | 45.0 0.0 | 42.2 0.3 | 58.1 0.0 | 24.5 0.2 | 38.9 0.0 | 12.4 0.0 | 36.9 | |
| Vote- ( 2023 ) | 29.0 0.0 | 35.6 0.0 | 56.2 0.0 | 19.3 0.0 | 29.9 0.0 | 11.3 0.0 | 30.2 | |
| LDCAL ( 2024 ) | 34.2 0.2 | 40.3 0.0 | 55.8 0.0 | 15.0 0.0 | 17.1 0.0 | 9.2 0.2 | 28.6 | |
| CoverICL ( 2024 ) | 48.8 3.7 | 38.3 2.1 | 58.0 0.5 | 28.2 0.5 | 27.1 2.7 | 10.8 1.0 | 35.2 |
| Information Extraction | Semantic Parsing | |||||||
| LLM | Method | NCBI | TwNER7 | PHEE | GeoQ | ATIS | MTOP | Avg. |
| Qwen2.5-7B | Sen. Emb. | 66.7 | 45.0 | 61.7 | 63.2 | 67.7 | 61.1 | 60.9 |
| BSR | 68.7 | 47.2 | 62.7 | 66.4 | 72.7 | 64.3 | 63.6 | |
| SET-BSR | 69.2 | 48.1 | 63.6 | 68.2 | 75.8 | 64.7 | 65.0 | |
| gpt-4o-mini | Sen. Emb. | 71.5 | 57.9 | 63.0 | 70.7 | 68.2 | 67.8 | 66.5 |
| BSR | 73.9 | 60.6 | 64.2 | 73.2 | 74.4 | 72.0 | 69.8 | |
| gpt-4o-mini | Qwen2.5-7B | ||||||
| Task | Dataset | Full | Full | ||||
| Information Extraction | NCBI ( 2014 ) | 61.2 4.4 | 77.7 | +16.5 | 50.9 6.2 | 69.2 | +18.3 |
| TweetNER7 ( 2022 ) | 52.3 1.4 | 60.8 | +8.5 | 42.7 0.3 | 48.1 | +5.4 | |
| PHEE ( 2024 ) | 56.6 2.7 | 64.7 | +8.1 | 56.8 2.5 | 63.6 | +6.8 | |
| Semantic Parsing | GeoQ ( 1996 ) | 23.0 3.8 | 75.0 | +52.0 | 19.3 1.1 | 68.2 | +48.9 |
| ATIS ( 1990 ) | 27.3 0.8 | 75.5 | +48.2 | 28.6 1.2 | 75.8 | +47.2 | |
| Dataset | # token/sent. | Results |
| NCBI | 5 | 68.9 0.5 |
| 10 | 70.7 0.2 | |
| 15 | 68.6 0.2 | |
| full | 69.6 0.1 | |
| GeoQuery | 5 | 51.6 0.5 |
| 10 | 55.1 0.5 |
| Method | 16-shot | 64-shot | 256-shot |
| Label Reweight | 2.5 | 8.3 | 47.8 |
| Verb-ICL | 30.3 | 44.4 | 52.1 |
| Model | NCBI | PHEE | GeoQ | Average | |
| 16 | DeBERTa-Large-MNLI | 66.2 0.2 | 59.1 0.1 | 35.5 0.4 | 53.6 |
| DeBERTa-Base-MNLI | 65.4 0.2 | 57.4 0.2 | 34.9 0.6 | 52.6 | |
| BERT-base-uncased | 64.3 0.2 | 56.7 0.2 | 39.2 0.4 | 53.4 | |
| all-mpnet-base-v2 | 63.2 0.2 | 57.3 0.2 | 34.0 0.2 | 51.5 | |
| 64 | DeBERTa-Large-MNLI | 69.7 0.1 | 61.1 0.1 | 53.1 0.3 | 61.3 |
| DeBERTa-Base-MNLI | 67.8 0.2 | 61.1 0.2 | 54.3 0.3 | 61.1 |
| NCBI | ATIS | GeoQuery | TweetNER7 | PHEE | MTOP | |||||||
| 16 | 64 | 16 | 64 | 16 | 64 | 16 | 64 | 16 | 64 | 16 | 64 | |
| #Total feedback | 8 | 26 | 15 | 44 | 12 | 43 | 16 | 60 | 14 | 60 | 14 | 53 |
| #Verified feedback | 4 | 14 | 2 | 17 | 4 | 15 | 7 | 15 | 0 | 4 | 2 | 16 |
| ICL w/ verified only | 67.4 | 70.6 | 36.0 | 50.8 | 37.5 | 54.3 | 55.4 | 55.0 | 58.9 | 61.4 | 21.7 | 35.2 |
| ICL w/ all feedback | 68.6 | 71.1 | 39.1 | 51.7 | 35.4 | 56.1 | 53.6 | 55.6 | 59.6 | 61.8 | 22.7 | 35.7 |
| NCBI | ATIS | |||
| Method | 16-shot | 64-shot | 16-shot | 64-shot |
| Random | 67.1 | 68.6 | 28.5 | 39.7 |
| + EF | 67.6 +0.5 | 69.3 +0.7 | 29.4 +0.9 | 42.9 +3.2 |
| K-Means | 63.4 | 69.3 | 28.2 | 45.7 |
| + EF | 65.7 +2.3 | 71.4 +2.1 | 28.4 +0.2 | 48.8 +3.1 |
| vote- k | 64.1 | 66.7 | 29.6 | 42.5 |
| Accuracy | Avg. length | |||
| Method | NCBI | ATIS | NCBI | ATIS |
| Random | 67.7 0.3 | 42.5 2.7 | 23.8 | 10.9 |
| BoW-coverage | 68.6 0.2 | 41.0 0.1 | 64.7 | 19.3 |
| Longest- | 65.5 0.3 | 37.6 0.1 | 75.5 | 27.4 |
| Verb-ICL w/o EF | 69.6 0.1 | 48.7 0.5 | 42.0 | 13.1 |
| NCBI | ATIS | |||
| Method | 16 | 64 | 16 | 64 |
| Random | 68.6 2.9 | 73.5 1.2 | 33.2 0.8 | 50.8 3.3 |
| K-Means | 70.7 0.7 | 74.5 1.0 | 36.3 1.9 | 52.0 2.7 |
| IDDS | 72.8 0.9 | 72.9 0.3 | 41.2 0.8 | 53.1 0.4 |
| Verb-ICL w/o EF | 73.2 0.4 | 75.7 0.4 | 45.9 0.3 | 58.7 0.5 |
| Verb-ICL | 74.7 0.1 | 76.9 0.3 | 46.0 1.2 | 59.7 0.7 |
| Method | Error source | Grounding | Selection | Position |
| LEAP | zero-shot | gold | all | global |
| Self-Refine | test-time output | label-free | – | – |
| Verb-ICL | leave-one-out | gold | retrieved | inline |
| Dataset | Task | Error feedback |
| NCBI | IE | Only include the core disease term in the entity span, and exclude preceding descriptive adjectives unless they are part of the canonical disease name. |
| TweetNER7 | IE | Government bodies and administrations should be classified as “corporation”, not “group”. |
| PHEE | IE | Only extract subject_disorder when the text explicitly states that the patient has the condition, not when it is described as an outcome or a risk. |
| GeoQuery | SP | Use state abbreviations (e.g., “wa”) in cityid predicates, not full state names. |
| ATIS | SP | Add the predicates needed to represent the target entity type (“city”) and the relationship (“to”) that links flights to cities. |
| MTOP | SP | When the sentence instructs the system to send a message or ask someone something, use SEND_MESSAGE as the intent rather than ASK . |
In-Context Learning
In-context learning studies how models adapt to new tasks from examples or instructions supplied at inference time, without changing their weights.
See all 404 papers