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 |
|---|---|
| 4 |
|
| 3 |
|
| 5 |
|
| 0 |
|
| 2 |
|
| 1 |
|
| Label | Accuracy |
|---|---|
| all | 0.8577 |
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("Kevinger/setfit-newsapi")
# Run inference
preds = model("GIANT 130-foot asteroid rushing towards Earth TODAY at 42404 kmph, NASA warns - HT Tech")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 4 | 9.1771 | 22 |
| Label | Training Sample Count |
|---|---|
| 0 | 16 |
| 1 | 16 |
| 2 | 16 |
| 3 | 16 |
| 4 | 16 |
| 5 | 16 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0021 | 1 | 0.2926 | - |
| 0.1042 | 50 | 0.0446 | - |
| 0.2083 | 100 | 0.0023 | - |
| 0.3125 | 150 | 0.0011 | - |
| 0.4167 | 200 | 0.001 | - |
| 0.5208 | 250 | 0.0007 | - |
| 0.625 | 300 | 0.0007 | - |
| 0.7292 | 350 | 0.0009 | - |
| 0.8333 | 400 | 0.0075 | - |
| 0.9375 | 450 | 0.0006 | - |
@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}
}