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 lightonai/modernbert-embed-large 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.0009 | 1 | 0.2413 | - |
| 0.0199 | 21 | - | 0.2305 |
| 0.0399 | 42 | - | 0.2295 |
| 0.0475 | 50 | 0.2435 | - |
| 0.0598 | 63 | - | 0.2264 |
| 0.0798 | 84 | - | 0.2227 |
| 0.0950 | 100 | 0.2276 | - |
| 0.0997 | 105 | - | 0.2176 |
| 0.1197 | 126 | - | 0.2140 |
| 0.1396 | 147 | - | 0.1812 |
| 0.1425 | 150 | 0.1998 | - |
| 0.1595 | 168 | - | 0.1641 |
| 0.1795 | 189 | - | 0.1439 |
| 0.1899 | 200 | 0.1251 | - |
| 0.1994 | 210 | - | 0.1415 |
| 0.2194 | 231 | - | 0.1435 |
| 0.2374 | 250 | 0.0777 | - |
| 0.2393 | 252 | - | 0.1424 |
| 0.2593 | 273 | - | 0.1336 |
| 0.2792 | 294 | - | 0.1408 |
| 0.2849 | 300 | 0.0563 | - |
| 0.2991 | 315 | - | 0.1362 |
| 0.3191 | 336 | - | 0.1243 |
| 0.3324 | 350 | 0.0249 | - |
| 0.3390 | 357 | - | 0.1268 |
| 0.3590 | 378 | - | 0.1432 |
| 0.3789 | 399 | - | 0.1332 |
| 0.3799 | 400 | 0.0109 | - |
| 0.3989 | 420 | - | 0.1175 |
| 0.4188 | 441 | - | 0.1198 |
| 0.4274 | 450 | 0.0157 | - |
| 0.4387 | 462 | - | 0.1197 |
| 0.4587 | 483 | - | 0.1175 |
| 0.4748 | 500 | 0.0068 | - |
| 0.4786 | 504 | - | 0.1241 |
| 0.4986 | 525 | - | 0.1385 |
| 0.5185 | 546 | - | 0.1349 |
| 0.5223 | 550 | 0.0018 | - |
| 0.5385 | 567 | - | 0.1335 |
| 0.5584 | 588 | - | 0.1317 |
@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
answerdotai/ModernBERT-large