Skip to content

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

CLLMFS

DOI

Accepted by 27TH EUROPEAN CONFERENCE ON ARTIFICIAL INTELLIGENCE

PyTorch implementation for CLLMFS [paper]

Overview

Few-shot Named Entity Recognition (NER), the task of identifying named entities with only a limited amount of labeled data, has gained increasing significance in natural language processing. While existing methodologies have shown some effectiveness, such as enriching label semantics through various prompting modes or employing metric learning techniques, their performance exhibits limited robustness across diverse domains due to the lack of rich knowledge in their pre-trained models. To address this issue, we propose CLLMFS, a Contrastive Learning enhanced Large Language Model (LLM) Framework for Few-Shot Named Entity Recognition, achieving promising results with limited training data. Considering the impact of LLM's internal representations on downstream tasks, CLLMFS integrates Low-Rank Adaptation (LoRA) and contrastive learning mechanisms specifically tailored for few-shot NER. By enhancing the model's internal representations, CLLMFS effectively improves both entity boundary awareness ability and entity recognition accuracy.

Environment Requirement

Code

Our code will be released in the near future.

Citation

Please cite our paper if you use this code in your own work:

@inbook{inbook,
author = {Zhang, Yafeng and Yu, Zilan and Huang, Yuang and Tang, Jing},
year = {2024},
month = {10},
pages = {},
title = {CLLMFS: A Contrastive Learning Enhanced Large Language Model Framework for Few-Shot Named Entity Recognition},
isbn = {9781643685489},
doi = {10.3233/FAIA240714}
}

About

CLLMFS leverages LLMs to effectively tackle few-shot NER task by integrating Low-Rank Adaptation (LoRA) and contrastive learning mechanisms.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors