paper-with-me

홈 › Papers

Efficient Few-Shot Learning Without Prompts

2022-09-22 · Lewis Tunstall, Nils Reimers, Unso Eun Seo Jo, Luke Bates, Daniel Korat, Moshe Wasserblat, Oren Pereg

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 .

📄 PDF Abstract BibTeX arXiv:2209.11055

Code (1)

huggingface/setfit 공식 구현 pytorch

Tasks

Few-Shot LearningFew-Shot Text Classificationparameter-efficient fine-tuningSentence

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Adam 설명 없음
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

The Impact of Prompts on Zero-Shot Detection of AI-Generated Text

2024-03-29 · Kaito Taguchi, Yujie Gu, Kouichi Sakurai

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 Generation

TV-SAM: Increasing Zero-Shot Segmentation Performance on Multimodal Medical Images Using GPT-4 Generated Descriptive Prompts Without Human Annotation

2024-02-24 · Zekun Jiang, Dongjie Cheng, Ziyuan Qin, Jun Gao 외

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+2

From Images to Textual Prompts: Zero-Shot Visual Question Answering With Frozen Large Language Models

2023-01-01 · CVPR 2023 1 · Jiaxian Guo, Junnan Li, Dongxu Li, Anthony Meng Huat Tiong 외

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 Generalization

From Images to Textual Prompts: Zero-shot VQA with Frozen Large Language Models

2022-12-21 · Jiaxian Guo, Junnan Li, Dongxu Li, Anthony Meng Huat Tiong 외

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 Generalization

Visual Prompting for Generalized Few-shot Segmentation: A Multi-scale Approach

2024-04-17 · CVPR 2024 6 · Mir Rayat Imtiaz Hossain, Mennatullah Siam, Leonid Sigal, James J. Little

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