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.1876 | 125 |
| Label | Training Sample Count |
|---|---|
| 0 | 43 |
| 1 | 80 |
| 2 | 92 |
| 3 | 56 |
| 4 | 64 |
| 5 | 86 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0032 | 1 | 0.3507 | - |
| 0.0158 | 5 | - | 0.2629 |
| 0.0316 | 10 | - | 0.2715 |
| 0.0475 | 15 | - | 0.2324 |
| 0.0633 | 20 | - | 0.2184 |
| 0.0791 | 25 | - | 0.2040 |
| 0.0949 | 30 | - | 0.1895 |
| 0.1108 | 35 | - | 0.1995 |
| 0.1266 | 40 | - | 0.1864 |
| 0.1424 | 45 | - | 0.1952 |
| 0.1582 | 50 | 0.2125 | 0.1834 |
| 0.1741 | 55 | - | 0.1835 |
| 0.1899 | 60 | - | 0.1832 |
| 0.2057 | 65 | - | 0.1768 |
| 0.2215 | 70 | - | 0.1717 |
| 0.2373 | 75 | - | 0.1681 |
| 0.2532 | 80 | - | 0.1857 |
| 0.2690 | 85 | - | 0.2061 |
| 0.2848 | 90 | - | 0.1909 |
| 0.3006 | 95 | - | 0.1771 |
| 0.3165 | 100 | 0.0691 | 0.1585 |
| 0.3323 | 105 | - | 0.1565 |
| 0.3481 | 110 | - | 0.1572 |
| 0.3639 | 115 | - | 0.1547 |
| 0.3797 | 120 | - | 0.1561 |
| 0.3956 | 125 | - | 0.1620 |
| 0.4114 | 130 | - | 0.1555 |
| 0.4272 | 135 | - | 0.1514 |
| 0.4430 | 140 | - | 0.1535 |
| 0.4589 | 145 | - | 0.1581 |
| 0.4747 | 150 | 0.0185 | 0.1461 |
| 0.4905 | 155 | - | 0.1371 |
| 0.5063 | 160 | - | 0.1341 |
| 0.5222 | 165 | - | 0.1364 |
| 0.5380 | 170 | - | 0.1408 |
| 0.5538 | 175 | - | 0.1470 |
| 0.5696 | 180 | - | 0.1511 |
| 0.5854 | 185 | - | 0.1512 |
@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