Inconsistent Few-Shot Relation Classification via Cross-Attentional Prototype Networks with Contrastive Learning

Standard few-shot relation classification (RC) is designed to learn a robust classifier with only few labeled data for each class. However, previous works rarely investigate the effects of a different number of classes (i.e., $N$-way) and number of labeled data per class (i.e., $K$-shot) during trai...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wang, Hongru, Jin, Zhijing, Cao, Jiarun, Fung, Gabriel Pui Cheong, Wong, Kam-Fai
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title
container_volume
creator Wang, Hongru
Jin, Zhijing
Cao, Jiarun
Fung, Gabriel Pui Cheong
Wong, Kam-Fai
description Standard few-shot relation classification (RC) is designed to learn a robust classifier with only few labeled data for each class. However, previous works rarely investigate the effects of a different number of classes (i.e., $N$-way) and number of labeled data per class (i.e., $K$-shot) during training vs. testing. In this work, we define a new task, \textit{inconsistent few-shot RC}, where the model needs to handle the inconsistency of $N$ and $K$ between training and testing. To address this new task, we propose Prototype Network-based cross-attention contrastive learning (ProtoCACL) to capture the rich mutual interactions between the support set and query set. Experimental results demonstrate that our ProtoCACL can outperform the state-of-the-art baseline model under both inconsistent $K$ and inconsistent $N$ settings, owing to its more robust and discriminate representations. Moreover, we identify that in the inconsistent few-shot learning setting, models can achieve better performance with \textit{less data} than the standard few-shot setting with carefully-selected $N$ and $K$. In the end of the paper, we provide further analyses and suggestions to systematically guide the selection of $N$ and $K$ under different scenarios.
doi_str_mv 10.48550/arxiv.2110.08254
format Article
fullrecord <record><control><sourceid>arxiv_GOX</sourceid><recordid>TN_cdi_arxiv_primary_2110_08254</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>2110_08254</sourcerecordid><originalsourceid>FETCH-LOGICAL-a674-99a1fc484582098a913682c506c735d6c9ba555a0a1001dbc2e67edbb5bdc853</originalsourceid><addsrcrecordid>eNotj8tOwzAURL1hgQofwAr_QIqd5CbOsoooVKooouyjG8ehFsGO7KuE_j19sBrNkWakw9iDFMtcAYgnDL92WqbyBIRKIb9l48Zp76KNZBzxtZmT_cET_zADkvWO1wPGaHurr3WyyOvgY0xWdF6cGA78PXjydBwNfzM0-_Ad-WzpwGvvKGAkOxm-NRicdV937KbHIZr7_1yw_fr5s35NtruXTb3aJliUeVJVKHudqxxUKiqFlcwKlWoQhS4z6ApdtQgAKFAKIbtWp6YoTde20HZaQbZgj9fXi3EzBvuD4diczZuLefYHXidWQQ</addsrcrecordid><sourcetype>Open Access Repository</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype></control><display><type>article</type><title>Inconsistent Few-Shot Relation Classification via Cross-Attentional Prototype Networks with Contrastive Learning</title><source>arXiv.org</source><creator>Wang, Hongru ; Jin, Zhijing ; Cao, Jiarun ; Fung, Gabriel Pui Cheong ; Wong, Kam-Fai</creator><creatorcontrib>Wang, Hongru ; Jin, Zhijing ; Cao, Jiarun ; Fung, Gabriel Pui Cheong ; Wong, Kam-Fai</creatorcontrib><description>Standard few-shot relation classification (RC) is designed to learn a robust classifier with only few labeled data for each class. However, previous works rarely investigate the effects of a different number of classes (i.e., $N$-way) and number of labeled data per class (i.e., $K$-shot) during training vs. testing. In this work, we define a new task, \textit{inconsistent few-shot RC}, where the model needs to handle the inconsistency of $N$ and $K$ between training and testing. To address this new task, we propose Prototype Network-based cross-attention contrastive learning (ProtoCACL) to capture the rich mutual interactions between the support set and query set. Experimental results demonstrate that our ProtoCACL can outperform the state-of-the-art baseline model under both inconsistent $K$ and inconsistent $N$ settings, owing to its more robust and discriminate representations. Moreover, we identify that in the inconsistent few-shot learning setting, models can achieve better performance with \textit{less data} than the standard few-shot setting with carefully-selected $N$ and $K$. In the end of the paper, we provide further analyses and suggestions to systematically guide the selection of $N$ and $K$ under different scenarios.</description><identifier>DOI: 10.48550/arxiv.2110.08254</identifier><language>eng</language><subject>Computer Science - Computation and Language ; Computer Science - Learning</subject><creationdate>2021-10</creationdate><rights>http://creativecommons.org/licenses/by-nc-nd/4.0</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>228,230,776,881</link.rule.ids><linktorsrc>$$Uhttps://arxiv.org/abs/2110.08254$$EView_record_in_Cornell_University$$FView_record_in_$$GCornell_University$$Hfree_for_read</linktorsrc><backlink>$$Uhttps://doi.org/10.48550/arXiv.2110.08254$$DView paper in arXiv$$Hfree_for_read</backlink></links><search><creatorcontrib>Wang, Hongru</creatorcontrib><creatorcontrib>Jin, Zhijing</creatorcontrib><creatorcontrib>Cao, Jiarun</creatorcontrib><creatorcontrib>Fung, Gabriel Pui Cheong</creatorcontrib><creatorcontrib>Wong, Kam-Fai</creatorcontrib><title>Inconsistent Few-Shot Relation Classification via Cross-Attentional Prototype Networks with Contrastive Learning</title><description>Standard few-shot relation classification (RC) is designed to learn a robust classifier with only few labeled data for each class. However, previous works rarely investigate the effects of a different number of classes (i.e., $N$-way) and number of labeled data per class (i.e., $K$-shot) during training vs. testing. In this work, we define a new task, \textit{inconsistent few-shot RC}, where the model needs to handle the inconsistency of $N$ and $K$ between training and testing. To address this new task, we propose Prototype Network-based cross-attention contrastive learning (ProtoCACL) to capture the rich mutual interactions between the support set and query set. Experimental results demonstrate that our ProtoCACL can outperform the state-of-the-art baseline model under both inconsistent $K$ and inconsistent $N$ settings, owing to its more robust and discriminate representations. Moreover, we identify that in the inconsistent few-shot learning setting, models can achieve better performance with \textit{less data} than the standard few-shot setting with carefully-selected $N$ and $K$. In the end of the paper, we provide further analyses and suggestions to systematically guide the selection of $N$ and $K$ under different scenarios.</description><subject>Computer Science - Computation and Language</subject><subject>Computer Science - Learning</subject><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2021</creationdate><recordtype>article</recordtype><sourceid>GOX</sourceid><recordid>eNotj8tOwzAURL1hgQofwAr_QIqd5CbOsoooVKooouyjG8ehFsGO7KuE_j19sBrNkWakw9iDFMtcAYgnDL92WqbyBIRKIb9l48Zp76KNZBzxtZmT_cET_zADkvWO1wPGaHurr3WyyOvgY0xWdF6cGA78PXjydBwNfzM0-_Ad-WzpwGvvKGAkOxm-NRicdV937KbHIZr7_1yw_fr5s35NtruXTb3aJliUeVJVKHudqxxUKiqFlcwKlWoQhS4z6ApdtQgAKFAKIbtWp6YoTde20HZaQbZgj9fXi3EzBvuD4diczZuLefYHXidWQQ</recordid><startdate>20211013</startdate><enddate>20211013</enddate><creator>Wang, Hongru</creator><creator>Jin, Zhijing</creator><creator>Cao, Jiarun</creator><creator>Fung, Gabriel Pui Cheong</creator><creator>Wong, Kam-Fai</creator><scope>AKY</scope><scope>GOX</scope></search><sort><creationdate>20211013</creationdate><title>Inconsistent Few-Shot Relation Classification via Cross-Attentional Prototype Networks with Contrastive Learning</title><author>Wang, Hongru ; Jin, Zhijing ; Cao, Jiarun ; Fung, Gabriel Pui Cheong ; Wong, Kam-Fai</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-LOGICAL-a674-99a1fc484582098a913682c506c735d6c9ba555a0a1001dbc2e67edbb5bdc853</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2021</creationdate><topic>Computer Science - Computation and Language</topic><topic>Computer Science - Learning</topic><toplevel>online_resources</toplevel><creatorcontrib>Wang, Hongru</creatorcontrib><creatorcontrib>Jin, Zhijing</creatorcontrib><creatorcontrib>Cao, Jiarun</creatorcontrib><creatorcontrib>Fung, Gabriel Pui Cheong</creatorcontrib><creatorcontrib>Wong, Kam-Fai</creatorcontrib><collection>arXiv Computer Science</collection><collection>arXiv.org</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext_linktorsrc</fulltext></delivery><addata><au>Wang, Hongru</au><au>Jin, Zhijing</au><au>Cao, Jiarun</au><au>Fung, Gabriel Pui Cheong</au><au>Wong, Kam-Fai</au><format>journal</format><genre>article</genre><ristype>JOUR</ristype><atitle>Inconsistent Few-Shot Relation Classification via Cross-Attentional Prototype Networks with Contrastive Learning</atitle><date>2021-10-13</date><risdate>2021</risdate><abstract>Standard few-shot relation classification (RC) is designed to learn a robust classifier with only few labeled data for each class. However, previous works rarely investigate the effects of a different number of classes (i.e., $N$-way) and number of labeled data per class (i.e., $K$-shot) during training vs. testing. In this work, we define a new task, \textit{inconsistent few-shot RC}, where the model needs to handle the inconsistency of $N$ and $K$ between training and testing. To address this new task, we propose Prototype Network-based cross-attention contrastive learning (ProtoCACL) to capture the rich mutual interactions between the support set and query set. Experimental results demonstrate that our ProtoCACL can outperform the state-of-the-art baseline model under both inconsistent $K$ and inconsistent $N$ settings, owing to its more robust and discriminate representations. Moreover, we identify that in the inconsistent few-shot learning setting, models can achieve better performance with \textit{less data} than the standard few-shot setting with carefully-selected $N$ and $K$. In the end of the paper, we provide further analyses and suggestions to systematically guide the selection of $N$ and $K$ under different scenarios.</abstract><doi>10.48550/arxiv.2110.08254</doi><oa>free_for_read</oa></addata></record>
fulltext fulltext_linktorsrc
identifier DOI: 10.48550/arxiv.2110.08254
ispartof
issn
language eng
recordid cdi_arxiv_primary_2110_08254
source arXiv.org
subjects Computer Science - Computation and Language
Computer Science - Learning
title Inconsistent Few-Shot Relation Classification via Cross-Attentional Prototype Networks with Contrastive Learning
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-22T07%3A53%3A42IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-arxiv_GOX&rft_val_fmt=info:ofi/fmt:kev:mtx:journal&rft.genre=article&rft.atitle=Inconsistent%20Few-Shot%20Relation%20Classification%20via%20Cross-Attentional%20Prototype%20Networks%20with%20Contrastive%20Learning&rft.au=Wang,%20Hongru&rft.date=2021-10-13&rft_id=info:doi/10.48550/arxiv.2110.08254&rft_dat=%3Carxiv_GOX%3E2110_08254%3C/arxiv_GOX%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_id=info:pmid/&rfr_iscdi=true