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.4018 | 125 |
| Label | Training Sample Count |
|---|---|
| 0 | 43 |
| 1 | 80 |
| 2 | 96 |
| 3 | 58 |
| 4 | 66 |
| 5 | 90 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0031 | 1 | 0.4617 | - |
| 0.0154 | 5 | - | 0.2592 |
| 0.0308 | 10 | - | 0.2548 |
| 0.0462 | 15 | - | 0.2269 |
| 0.0615 | 20 | - | 0.2173 |
| 0.0769 | 25 | - | 0.2084 |
| 0.0923 | 30 | - | 0.2038 |
| 0.1077 | 35 | - | 0.1962 |
| 0.1231 | 40 | - | 0.2001 |
| 0.1385 | 45 | - | 0.1954 |
| 0.1538 | 50 | 0.205 | 0.1855 |
| 0.1692 | 55 | - | 0.1817 |
| 0.1846 | 60 | - | 0.1735 |
| 0.2 | 65 | - | 0.1546 |
| 0.2154 | 70 | - | 0.1548 |
| 0.2308 | 75 | - | 0.1571 |
| 0.2462 | 80 | - | 0.1558 |
| 0.2615 | 85 | - | 0.1465 |
| 0.2769 | 90 | - | 0.1488 |
| 0.2923 | 95 | - | 0.1529 |
| 0.3077 | 100 | 0.0667 | 0.1499 |
| 0.3231 | 105 | - | 0.1400 |
| 0.3385 | 110 | - | 0.1489 |
| 0.3538 | 115 | - | 0.1544 |
| 0.3692 | 120 | - | 0.1497 |
| 0.3846 | 125 | - | 0.1458 |
| 0.4 | 130 | - | 0.1479 |
@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