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 |
|---|---|
| 3.0 |
|
| 4.0 |
|
| 0.0 |
|
| 2.0 |
|
| 1.0 |
|
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_fi2")
# Run inference
preds = model("템퍼 컴포트 에어 베개 소프트 NEW 가구/인테리어>베개>메모리폼베개")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 3 | 8.7293 | 17 |
| Label | Training Sample Count |
|---|---|
| 0.0 | 37 |
| 1.0 | 22 |
| 2.0 | 23 |
| 3.0 | 34 |
| 4.0 | 17 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0385 | 1 | 0.4798 | - |
| 1.9231 | 50 | 0.2701 | - |
| 3.8462 | 100 | 0.0001 | - |
| 5.7692 | 150 | 0.0001 | - |
| 7.6923 | 200 | 0.0 | - |
| 9.6154 | 250 | 0.0 | - |
| 11.5385 | 300 | 0.0 | - |
| 13.4615 | 350 | 0.0 | - |
| 15.3846 | 400 | 0.0 | - |
| 17.3077 | 450 | 0.0 | - |
| 19.2308 | 500 | 0.0 | - |
| 21.1538 | 550 | 0.0 | - |
| 23.0769 | 600 | 0.0 | - |
| 25.0 | 650 | 0.0 | - |
| 26.9231 | 700 | 0.0 | - |
| 28.8462 | 750 | 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}
}