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/distiluse-base-multilingual-cased-v1 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 |
|
| Label | Accuracy |
|---|---|
| all | 0.5414 |
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("fede-m/FGSDI_final_setfit_fold_4")
# Run inference
preds = model("Tags Argomenti zona 2 milano Protagonisti: Adriano Manesco")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 2 | 37.3937 | 139 |
| Label | Training Sample Count |
|---|---|
| 0 | 45 |
| 1 | 242 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0028 | 1 | 0.5866 | - |
| 0.1393 | 50 | 0.2196 | - |
| 0.2786 | 100 | 0.0584 | - |
| 0.4178 | 150 | 0.011 | - |
| 0.5571 | 200 | 0.003 | - |
| 0.6964 | 250 | 0.0017 | - |
| 0.8357 | 300 | 0.001 | - |
| 0.9749 | 350 | 0.0005 | - |
@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}
}