Efficient Few-Shot Learning Without Prompts
Paper • 2209.11055 • Published • 5
This is a SetFit model that can be used for Text Classification. This SetFit model uses sentence-transformers/paraphrase-multilingual-MiniLM-L12-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 |
|---|---|
| 0 |
|
| 1 |
|
| 2 |
|
| Label | Accuracy |
|---|---|
| all | 0.79 |
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("ehsanhallo/setfit-paraphrase-multilingual-MiniLM-L12-v2-ig-fa")
# Run inference
preds = model(" where`d you go!")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 1 | 6.4184 | 75 |
| Label | Training Sample Count |
|---|---|
| 0 | 69 |
| 1 | 238 |
| 2 | 551 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0001 | 1 | 0.1767 | - |
| 0.0216 | 250 | 0.1513 | - |
| 0.0431 | 500 | 0.0629 | 0.2389 |
| 0.0647 | 750 | 0.0351 | - |
| 0.0862 | 1000 | 0.0015 | 0.1886 |
| 0.1078 | 1250 | 0.0003 | - |
| 0.1293 | 1500 | 0.0004 | 0.1813 |
| 0.1509 | 1750 | 0.0002 | - |
| 0.1724 | 2000 | 0.0002 | 0.1807 |
| 0.1940 | 2250 | 0.0001 | - |
| 0.2155 | 2500 | 0.0001 | 0.187 |
| 0.2371 | 2750 | 0.0001 | - |
| 0.2586 | 3000 | 0.0001 | 0.1903 |
| 0.2802 | 3250 | 0.0001 | - |
| 0.3018 | 3500 | 0.0 | 0.1864 |
| 0.3233 | 3750 | 0.0 | - |
| 0.3449 | 4000 | 0.0 | 0.193 |
| 0.3664 | 4250 | 0.0 | - |
| 0.3880 | 4500 | 0.0 | 0.1879 |
| 0.4095 | 4750 | 0.0 | - |
| 0.4311 | 5000 | 0.0 | 0.1887 |
| 0.4526 | 5250 | 0.0 | - |
| 0.4742 | 5500 | 0.0 | 0.187 |
| 0.4957 | 5750 | 0.0 | - |
| 0.5173 | 6000 | 0.0001 | 0.205 |
| 0.5388 | 6250 | 0.0 | - |
| 0.5604 | 6500 | 0.0 | 0.205 |
| 0.5819 | 6750 | 0.0 | - |
| 0.6035 | 7000 | 0.0 | 0.2018 |
| 0.6251 | 7250 | 0.0 | - |
| 0.6466 | 7500 | 0.0 | 0.2022 |
| 0.6682 | 7750 | 0.0 | - |
| 0.6897 | 8000 | 0.0 | 0.2063 |
| 0.7113 | 8250 | 0.0 | - |
| 0.7328 | 8500 | 0.0 | 0.2143 |
| 0.7544 | 8750 | 0.0 | - |
| 0.7759 | 9000 | 0.0 | 0.2206 |
| 0.7975 | 9250 | 0.0 | - |
| 0.8190 | 9500 | 0.0 | 0.2167 |
| 0.8406 | 9750 | 0.0 | - |
| 0.8621 | 10000 | 0.0 | 0.2176 |
| 0.8837 | 10250 | 0.0 | - |
| 0.9053 | 10500 | 0.0 | 0.217 |
| 0.9268 | 10750 | 0.0 | - |
| 0.9484 | 11000 | 0.0 | 0.2153 |
| 0.9699 | 11250 | 0.0 | - |
| 0.9915 | 11500 | 0.0 | 0.2137 |
@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}
}