Efficient Few-Shot Learning Without Prompts
Recent few-shot methods, such as parameter-efficient fine-tuning (PEFT) and pattern exploiting training (PET), have achieved impressive results in label-scarce settings. However, they are difficult to employ since they are subject to high variability from manually crafted prompts, and typically require billion-parameter language models to achieve high accuracy. To address these shortcomings, we propose SetFit (Sentence Transformer Fine-tuning), an efficient and prompt-free framework for few-shot fine-tuning of Sentence Transformers (ST). SetFit works by first fine-tuning a pretrained ST on a small number of text pairs, in a contrastive Siamese manner. The resulting model is then used to generate rich text embeddings, which are used to train a classification head. This simple framework requires no prompts or verbalizers, and achieves high accuracy with orders of magnitude less parameters than existing techniques. Our experiments show that SetFit obtains comparable results with PEFT and PET techniques, while being an order of magnitude faster to train. We also show that SetFit can be applied in multilingual settings by simply switching the ST body. Our code is available at https://github.com/huggingface/setfit and our datasets at https://huggingface.co/setfit .
Code (1)
Tasks
Few-Shot LearningFew-Shot Text Classificationparameter-efficient fine-tuningSentenceMethods 이 논문이 사용한 방법론
Similar Papers 제목 키워드 기반
The Impact of Prompts on Zero-Shot Detection of AI-Generated Text
In recent years, there have been significant advancements in the development of Large Language Models (LLMs). While their practical applications are now widespread, their potential for misuse, such as generating fake new…
Text GenerationTV-SAM: Increasing Zero-Shot Segmentation Performance on Multimodal Medical Images Using GPT-4 Generated Descriptive Prompts Without Human Annotation
This study presents a novel multimodal medical image zero-shot segmentation algorithm named the text-visual-prompt segment anything model (TV-SAM) without any manual annotations. The TV-SAM incorporates and integrates th…
DescriptiveLanguage ModelingLanguage ModellingLarge Language Model+2From Images to Textual Prompts: Zero-Shot Visual Question Answering With Frozen Large Language Models
Large language models (LLMs) have demonstrated excellent zero-shot generalization to new language tasks. However, effective utilization of LLMs for zero-shot visual question-answering (VQA) remains challenging, prima…
Question AnsweringVisual Question AnsweringVisual Question Answering (VQA)Zero-shot GeneralizationFrom Images to Textual Prompts: Zero-shot VQA with Frozen Large Language Models
Large language models (LLMs) have demonstrated excellent zero-shot generalization to new language tasks. However, effective utilization of LLMs for zero-shot visual question-answering (VQA) remains challenging, primarily…
Question AnsweringVisual Question AnsweringVisual Question Answering (VQA)Zero-shot GeneralizationVisual Prompting for Generalized Few-shot Segmentation: A Multi-scale Approach
The emergence of attention-based transformer models has led to their extensive use in various tasks, due to their superior generalization and transfer properties. Recent research has demonstrated that such models, when p…
DecoderGeneralized Few-Shot Semantic SegmentationSemantic SegmentationVisual Prompting