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-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 |
|---|---|
| product faq |
|
| order tracking |
|
| product policy |
|
| general faq |
|
| product discoverability |
|
| Label | Accuracy |
|---|---|
| all | 0.8533 |
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("Shankhdhar/classifier_woog_firstbud")
# Run inference
preds = model("Variety of cookie boxes")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 4 | 12.1961 | 28 |
| Label | Training Sample Count |
|---|---|
| general faq | 24 |
| order tracking | 32 |
| product discoverability | 50 |
| product faq | 50 |
| product policy | 48 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0005 | 1 | 0.2265 | - |
| 0.0244 | 50 | 0.1831 | - |
| 0.0489 | 100 | 0.1876 | - |
| 0.0733 | 150 | 0.1221 | - |
| 0.0978 | 200 | 0.0228 | - |
| 0.1222 | 250 | 0.0072 | - |
| 0.1467 | 300 | 0.0282 | - |
| 0.1711 | 350 | 0.0015 | - |
| 0.1956 | 400 | 0.0005 | - |
| 0.2200 | 450 | 0.0008 | - |
| 0.2445 | 500 | 0.0004 | - |
| 0.2689 | 550 | 0.0003 | - |
| 0.2934 | 600 | 0.0003 | - |
| 0.3178 | 650 | 0.0002 | - |
| 0.3423 | 700 | 0.0002 | - |
| 0.3667 | 750 | 0.0002 | - |
| 0.3912 | 800 | 0.0003 | - |
| 0.4156 | 850 | 0.0002 | - |
| 0.4401 | 900 | 0.0002 | - |
| 0.4645 | 950 | 0.0001 | - |
| 0.4890 | 1000 | 0.0001 | - |
| 0.5134 | 1050 | 0.0001 | - |
| 0.5379 | 1100 | 0.0001 | - |
| 0.5623 | 1150 | 0.0002 | - |
| 0.5868 | 1200 | 0.0002 | - |
| 0.6112 | 1250 | 0.0001 | - |
| 0.6357 | 1300 | 0.0001 | - |
| 0.6601 | 1350 | 0.0001 | - |
| 0.6846 | 1400 | 0.0001 | - |
| 0.7090 | 1450 | 0.0001 | - |
| 0.7335 | 1500 | 0.0001 | - |
| 0.7579 | 1550 | 0.0001 | - |
| 0.7824 | 1600 | 0.0001 | - |
| 0.8068 | 1650 | 0.0001 | - |
| 0.8313 | 1700 | 0.0001 | - |
| 0.8557 | 1750 | 0.0011 | - |
| 0.8802 | 1800 | 0.0002 | - |
| 0.9046 | 1850 | 0.0001 | - |
| 0.9291 | 1900 | 0.0001 | - |
| 0.9535 | 1950 | 0.0002 | - |
| 0.9780 | 2000 | 0.0001 | - |
| 1.0024 | 2050 | 0.0001 | - |
| 1.0269 | 2100 | 0.0002 | - |
| 1.0513 | 2150 | 0.0001 | - |
| 1.0758 | 2200 | 0.0001 | - |
| 1.1002 | 2250 | 0.0001 | - |
| 1.1247 | 2300 | 0.0001 | - |
| 1.1491 | 2350 | 0.0001 | - |
| 1.1736 | 2400 | 0.0001 | - |
| 1.1980 | 2450 | 0.0001 | - |
| 1.2225 | 2500 | 0.0001 | - |
| 1.2469 | 2550 | 0.0001 | - |
| 1.2714 | 2600 | 0.0001 | - |
| 1.2958 | 2650 | 0.0001 | - |
| 1.3203 | 2700 | 0.0001 | - |
| 1.3447 | 2750 | 0.0001 | - |
| 1.3692 | 2800 | 0.0001 | - |
| 1.3936 | 2850 | 0.0001 | - |
| 1.4181 | 2900 | 0.0001 | - |
| 1.4425 | 2950 | 0.0001 | - |
| 1.4670 | 3000 | 0.0001 | - |
| 1.4914 | 3050 | 0.0001 | - |
| 1.5159 | 3100 | 0.0001 | - |
| 1.5403 | 3150 | 0.0001 | - |
| 1.5648 | 3200 | 0.0001 | - |
| 1.5892 | 3250 | 0.0001 | - |
| 1.6137 | 3300 | 0.0001 | - |
| 1.6381 | 3350 | 0.0001 | - |
| 1.6626 | 3400 | 0.0001 | - |
| 1.6870 | 3450 | 0.0001 | - |
| 1.7115 | 3500 | 0.0001 | - |
| 1.7359 | 3550 | 0.0 | - |
| 1.7604 | 3600 | 0.0001 | - |
| 1.7848 | 3650 | 0.0001 | - |
| 1.8093 | 3700 | 0.0001 | - |
| 1.8337 | 3750 | 0.0 | - |
| 1.8582 | 3800 | 0.0001 | - |
| 1.8826 | 3850 | 0.0001 | - |
| 1.9071 | 3900 | 0.0001 | - |
| 1.9315 | 3950 | 0.0 | - |
| 1.9560 | 4000 | 0.0 | - |
| 1.9804 | 4050 | 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}
}