Efficient Few-Shot Learning Without Prompts
Paper
• 2209.11055 • Published
• 4
This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2 as the Sentence Transformer embedding model. A LogisticRegression instance is used for classification.
The model has been trained using an efficient few-shot learning technique that involves:
| Label | Examples |
|---|---|
| neutral |
|
| ablehnend |
|
| befürwortend |
|
First install the SetFit library:
pip install setfit
Then you can load this model and run inference.
from setfit import SetFitModel
# Download from the 🤗 Hub
model = SetFitModel.from_pretrained("setfit_model_id")
# Run inference
preds = model("Die ePA ist ein komplexes Thema, bei dem ich noch nicht weiß, ob ich dafür oder dagegen bin.")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 11 | 16.9365 | 23 |
| Label | Training Sample Count |
|---|---|
| ablehnend | 21 |
| neutral | 21 |
| befürwortend | 21 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0011 | 1 | 0.151 | - |
| 0.0567 | 50 | 0.184 | - |
| 0.1134 | 100 | 0.1252 | - |
| 0.1701 | 150 | 0.0585 | - |
| 0.2268 | 200 | 0.0116 | - |
| 0.2834 | 250 | 0.0039 | - |
| 0.3401 | 300 | 0.002 | - |
| 0.3968 | 350 | 0.0013 | - |
| 0.4535 | 400 | 0.0007 | - |
| 0.5102 | 450 | 0.0008 | - |
| 0.5669 | 500 | 0.0005 | - |
| 0.6236 | 550 | 0.0005 | - |
| 0.6803 | 600 | 0.0004 | - |
| 0.7370 | 650 | 0.0004 | - |
| 0.7937 | 700 | 0.0003 | - |
| 0.8503 | 750 | 0.0003 | - |
| 0.9070 | 800 | 0.0003 | - |
| 0.9637 | 850 | 0.0002 | - |
| 1.0204 | 900 | 0.0002 | - |
| 1.0771 | 950 | 0.0001 | - |
| 1.1338 | 1000 | 0.0002 | - |
| 1.1905 | 1050 | 0.0001 | - |
| 1.2472 | 1100 | 0.0002 | - |
| 1.3039 | 1150 | 0.0002 | - |
| 1.3605 | 1200 | 0.0002 | - |
| 1.4172 | 1250 | 0.0001 | - |
| 1.4739 | 1300 | 0.0001 | - |
| 1.5306 | 1350 | 0.0001 | - |
| 1.5873 | 1400 | 0.0001 | - |
| 1.6440 | 1450 | 0.0001 | - |
| 1.7007 | 1500 | 0.0001 | - |
| 1.7574 | 1550 | 0.0001 | - |
| 1.8141 | 1600 | 0.0001 | - |
| 1.8707 | 1650 | 0.0001 | - |
| 1.9274 | 1700 | 0.0001 | - |
| 1.9841 | 1750 | 0.0001 | - |
@article{https://doi.org/10.48550/arxiv.2209.11055,
doi = {10.48550/ARXIV.2209.11055},
url = {https://arxiv.org/abs/2209.11055},
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
title = {Efficient Few-Shot Learning Without Prompts},
publisher = {arXiv},
year = {2022},
copyright = {Creative Commons Attribution 4.0 International}
}