Structured Semantic Information Helps Retrieve Better Examples for In-Context Learning Applied to Few-Shot Relation Extraction
Abstract
This paper presents several strategies to automatically obtain additional examples for in-context learning, effectively transforming relation extraction from a 1-shot to a few-shot setting. Specifically, we introduce a novel strategy for example selection, in which new examples are selected based on the similarity of their underlying syntactic-semantic structure to the provided 1-shot example. We show that our strategy results in complementary word choices and sentence structures compared to LLM-generated examples. When both strategies are combined, the resulting hybrid system achieves a more holistic picture of the relations of interest than either method alone. Our framework transfers well across datasets (FS-TACRED and FS-FewRel) and LLM families (Qwen and Gemma). Overall, our hybrid system consistently outperforms alternative strategies achieving state-of-the-art performance on FS-TACRED and strong gains on a customized FewRel subset.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
Lineage
Builds on18
- CodeT5+: Open Code Large Language Models for Code Understanding and GenerationYue Wang, Hung Le, Akhilesh Gotmare, Nghi D. Q. Bui et al.EMNLP 2023 · 339 citations
- GPT-RE: In-context Learning for Relation Extraction using Large Language ModelsZhen Wan, Fei Cheng, Zhuoyuan Mao, Qianying Liu et al.EMNLP 2023 · 132 citations
- Revisiting Large Language Models as Zero-shot Relation ExtractorsGuozheng Li, Peng Wang, Wenjun KeEMNLP Findings 2023 · 61 citations
- Finding Support Examples for In-Context LearningXiaonan Li, Xipeng QiuEMNLP Findings 2023 · 30 citations
- C-ICL: Contrastive In-context Learning for Information ExtractionYing Mo, Jiahao Liu, Jian Yang, Qifan Wang et al.EMNLP Findings 2024 · 28 citations
Related papers
- Label Verbalization and Entailment for Effective Zero and Few-Shot Relation ExtractionOscar Sainz, Oier Lopez de Lacalle, Gorka Labaka, Ander Barrena et al.EMNLP 2021 · 94 citations
- A Simple yet Effective Relation Information Guided Approach for Few-Shot Relation ExtractionYang Liu, Jinpeng Hu, Xiang Wan, Tsung-Hui ChangACL Findings 2022 · 47 citations
- Chain of Thought with Explicit Evidence Reasoning for Few-shot Relation ExtractionXilai Ma, Jing Li, Min ZhangEMNLP Findings 2023 · 28 citations
- Generating Diverse Training Samples for Relation Extraction with Large Language ModelsZexuan Li, Hongliang Dai, Piji LiACL 2025
- SEER : A Knapsack approach to Exemplar Selection for In-Context HybridQAJonathan Tonglet, Manon Reusens, Philipp Borchert, Bart BaesensEMNLP 2023 · 4 citations
