CLLMFS: A Contrastive Learning Enhanced Large Language Model Framework for Few-Shot Named Entity Recognition
Open Access
- 16 October 2024
- book chapter
- Published by IOS Press
- p. 1985-1992
Abstract
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. Our method has achieved state-of-the-art performance improvements on F1-score ranging from 2.58% to 97.74% over existing best-performing methods across several recognized benchmarks. Furthermore, through cross-domain NER experiments conducted on multiple datasets, we have further validated the robust generalization capability of our method. Our code is available on github (https://github.com/yuzilan/CLLMFS).Keywords
All Related Versions
This publication has 13 references indexed in Scilit:
- RoFormer: Enhanced transformer with Rotary Position EmbeddingNeurocomputing, 2023
- Recent Advances in Natural Language Processing via Large Pre-trained Language Models: A SurveyACM Computing Surveys, 2023
- GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints2023
- GLM: General Language Model Pretraining with Autoregressive Blank Infilling2022
- CONTaiNER: Few-Shot Named Entity Recognition via Contrastive Learning2022
- A systematic review on overfitting control in shallow and deep neural networksArtificial Intelligence Review, 2021
- Simple and Effective Few-Shot Named Entity Recognition with Structured Nearest Neighbor Learning2020
- The GUM corpus: creating multilayer resources in the classroomLanguage Resources and Evaluation, 2016
- Annotating longitudinal clinical narratives for de-identification: The 2014 i2b2/UTHealth corpusJournal of Biomedical Informatics, 2015
- Identifying risk factors for heart disease over time: Overview of 2014 i2b2/UTHealth shared task Track 2Journal of Biomedical Informatics, 2015