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/all-mpnet-base-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 |
|---|---|
| 1 |
|
| 0 |
|
| 2 |
|
| 3 |
|
| 5 |
|
| 4 |
|
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("tmp/best_model")
# Run inference
preds = model("lets fix the issues")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 1 | 12.3350 | 125 |
| Label | Training Sample Count |
|---|---|
| 0 | 43 |
| 1 | 80 |
| 2 | 88 |
| 3 | 56 |
| 4 | 61 |
| 5 | 84 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0004 | 1 | 0.5108 | - |
| 0.0040 | 10 | - | 0.3669 |
| 0.0081 | 20 | - | 0.3571 |
| 0.0121 | 30 | - | 0.3346 |
| 0.0162 | 40 | - | 0.2993 |
| 0.0202 | 50 | 0.3376 | 0.2637 |
| 0.0243 | 60 | - | 0.2393 |
| 0.0283 | 70 | - | 0.2337 |
| 0.0324 | 80 | - | 0.2334 |
| 0.0364 | 90 | - | 0.2300 |
| 0.0405 | 100 | 0.2475 | 0.2319 |
| 0.0445 | 110 | - | 0.2254 |
| 0.0485 | 120 | - | 0.2203 |
| 0.0526 | 130 | - | 0.2157 |
| 0.0566 | 140 | - | 0.2324 |
| 0.0607 | 150 | 0.2205 | 0.2153 |
| 0.0647 | 160 | - | 0.2061 |
| 0.0688 | 170 | - | 0.1946 |
| 0.0728 | 180 | - | 0.2024 |
| 0.0769 | 190 | - | 0.1932 |
| 0.0809 | 200 | 0.1882 | 0.2088 |
| 0.0850 | 210 | - | 0.1758 |
| 0.0890 | 220 | - | 0.1694 |
| 0.0930 | 230 | - | 0.1885 |
| 0.0971 | 240 | - | 0.2039 |
| 0.1011 | 250 | 0.1434 | 0.1648 |
| 0.1052 | 260 | - | 0.1499 |
| 0.1092 | 270 | - | 0.1722 |
| 0.1133 | 280 | - | 0.1763 |
| 0.1173 | 290 | - | 0.1768 |
| 0.1214 | 300 | 0.0993 | 0.1632 |
| 0.1254 | 310 | - | 0.1650 |
@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}
}
Base model
sentence-transformers/all-mpnet-base-v2