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 mini1013/master_domain 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 |
|---|---|
| 7.0 |
|
| 0.0 |
|
| 1.0 |
|
| 3.0 |
|
| 6.0 |
|
| 8.0 |
|
| 10.0 |
|
| 4.0 |
|
| 2.0 |
|
| 5.0 |
|
| 9.0 |
|
| Label | Metric |
|---|---|
| all | 0.9630 |
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("mini1013/master_cate_fd0")
# Run inference
preds = model("CJ제일제당 백설 강력밀가루 2.5kg 둘레푸드")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 4 | 8.9308 | 24 |
| Label | Training Sample Count |
|---|---|
| 0.0 | 50 |
| 1.0 | 22 |
| 2.0 | 50 |
| 3.0 | 50 |
| 4.0 | 50 |
| 5.0 | 32 |
| 6.0 | 18 |
| 7.0 | 50 |
| 8.0 | 26 |
| 9.0 | 50 |
| 10.0 | 50 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0143 | 1 | 0.4619 | - |
| 0.7143 | 50 | 0.2999 | - |
| 1.4286 | 100 | 0.1066 | - |
| 2.1429 | 150 | 0.0721 | - |
| 2.8571 | 200 | 0.0457 | - |
| 3.5714 | 250 | 0.03 | - |
| 4.2857 | 300 | 0.0045 | - |
| 5.0 | 350 | 0.002 | - |
| 5.7143 | 400 | 0.004 | - |
| 6.4286 | 450 | 0.002 | - |
| 7.1429 | 500 | 0.0077 | - |
| 7.8571 | 550 | 0.002 | - |
| 8.5714 | 600 | 0.006 | - |
| 9.2857 | 650 | 0.0019 | - |
| 10.0 | 700 | 0.0001 | - |
| 10.7143 | 750 | 0.0001 | - |
| 11.4286 | 800 | 0.0001 | - |
| 12.1429 | 850 | 0.0 | - |
| 12.8571 | 900 | 0.0 | - |
| 13.5714 | 950 | 0.0 | - |
| 14.2857 | 1000 | 0.0 | - |
| 15.0 | 1050 | 0.0 | - |
| 15.7143 | 1100 | 0.0 | - |
| 16.4286 | 1150 | 0.0 | - |
| 17.1429 | 1200 | 0.0 | - |
| 17.8571 | 1250 | 0.0 | - |
| 18.5714 | 1300 | 0.0 | - |
| 19.2857 | 1350 | 0.0 | - |
| 20.0 | 1400 | 0.0 | - |
@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}
}