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 |
|---|---|
| 1.0 |
|
| 6.0 |
|
| 5.0 |
|
| 4.0 |
|
| 7.0 |
|
| 2.0 |
|
| 3.0 |
|
| 0.0 |
|
| Label | Accuracy |
|---|---|
| all | 0.6112 |
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_bt2_test")
# Run inference
preds = model("히든올가 히아루론산 마스크 400g 옵션없음 판타시아")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 3 | 9.7453 | 23 |
| Label | Training Sample Count |
|---|---|
| 0.0 | 16 |
| 1.0 | 10 |
| 2.0 | 42 |
| 3.0 | 21 |
| 4.0 | 20 |
| 5.0 | 19 |
| 6.0 | 15 |
| 7.0 | 18 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0526 | 1 | 0.4875 | - |
| 2.6316 | 50 | 0.3322 | - |
| 5.2632 | 100 | 0.0442 | - |
| 7.8947 | 150 | 0.0025 | - |
| 10.5263 | 200 | 0.0002 | - |
| 13.1579 | 250 | 0.0001 | - |
| 15.7895 | 300 | 0.0001 | - |
| 18.4211 | 350 | 0.0001 | - |
| 21.0526 | 400 | 0.0001 | - |
| 23.6842 | 450 | 0.0001 | - |
| 26.3158 | 500 | 0.0001 | - |
| 28.9474 | 550 | 0.0001 | - |
| 31.5789 | 600 | 0.0001 | - |
| 34.2105 | 650 | 0.0001 | - |
| 36.8421 | 700 | 0.0001 | - |
| 39.4737 | 750 | 0.0001 | - |
| 42.1053 | 800 | 0.0001 | - |
| 44.7368 | 850 | 0.0001 | - |
| 47.3684 | 900 | 0.0001 | - |
| 50.0 | 950 | 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}
}