arXiv

Structured Semantic Information Helps Retrieve Better Examples for In-Context Learning Applied to Few-Shot Relation Extraction

Title: Leveraging Structured Semantic Data to Enhance In-Context Learning for Few-Shot Relation Extraction

Abstract: This study explores methods for automatically generating supplementary examples for in-context learning, thereby shifting the paradigm of relation extraction from a 1-shot to a few-shot context. Central to our approach is a novel selection mechanism that prioritizes new instances based on the syntactic-semantic structural similarity to the initial 1-shot example. Our analysis reveals that this technique yields distinct word choices and sentence constructions when compared to examples generated by Large Language Models (LLMs). By integrating both approaches, the resulting hybrid system offers a more comprehensive understanding of the target relations than either method in isolation. The proposed framework demonstrates robust transferability across different datasets, specifically FS-TACRED and FS-FewRel, as well as across various LLM architectures, including Qwen and Gemma. Empirical results indicate that our hybrid model consistently surpasses alternative strategies, securing state-of-the-art performance on FS-TACRED and delivering significant improvements on a tailored subset of FewRel.


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...