Efficient Few-Shot Learning Without Prompts
Paper
• 2209.11055 • Published
• 4
This is a SetFit model trained on the tmp-org/kaufland-0-0 dataset that can be used for Text Classification. This SetFit model uses Alibaba-NLP/gte-multilingual-base 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 |
|---|---|
| Home_Home |
|
| Coupons_Filiale |
|
| Angebote_Kaufland Card Angebote |
|
| Angebote_Angebote |
|
| Other_Prospekt |
|
| Other_Digitale Kassenbons |
|
| Other_Kaufland Card |
|
| Online-Marktplatz_Online-Marktplatz |
|
| Coupons_Partner |
|
| Coupons_Marktplatz |
|
| Profil_Profil |
|
| Other_Coupon details |
|
| Other_Other |
|
| Other_Einkaufsliste |
|
| Other_Rezepte |
|
| Other_Angebot details |
|
| Other_Loading |
|
| Other_Treuepunkte |
|
| Online-Marktplatz_Loading |
|
| Angebote_Loading |
|
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("tmp-org/kaufland_v1")
# Run inference
preds = model("Zahnzusatzversicherung () [WebView|WebView]")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 3 | 134.6818 | 3133 |
| Label | Training Sample Count |
|---|---|
| Angebote_Angebote | 16 |
| Angebote_Kaufland Card Angebote | 16 |
| Angebote_Loading | 2 |
| Coupons_Filiale | 16 |
| Coupons_Marktplatz | 16 |
| Coupons_Partner | 16 |
| Home_Home | 16 |
| Online-Marktplatz_Loading | 3 |
| Online-Marktplatz_Online-Marktplatz | 15 |
| Other_Angebot details | 11 |
| Other_Coupon details | 5 |
| Other_Digitale Kassenbons | 12 |
| Other_Einkaufsliste | 3 |
| Other_Kaufland Card | 11 |
| Other_Loading | 4 |
| Other_Other | 13 |
| Other_Prospekt | 16 |
| Other_Rezepte | 12 |
| Other_Treuepunkte | 4 |
| Profil_Profil | 13 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0013 | 1 | 0.2528 | - |
| 0.0628 | 50 | 0.1965 | - |
| 0.1256 | 100 | 0.143 | - |
| 0.1884 | 150 | 0.1238 | - |
| 0.2513 | 200 | 0.1006 | - |
| 0.3141 | 250 | 0.0849 | - |
| 0.3769 | 300 | 0.1106 | - |
| 0.4397 | 350 | 0.0844 | - |
| 0.5025 | 400 | 0.0738 | - |
| 0.5653 | 450 | 0.0642 | - |
| 0.6281 | 500 | 0.0654 | - |
| 0.6910 | 550 | 0.0566 | - |
| 0.7538 | 600 | 0.0702 | - |
| 0.8166 | 650 | 0.0524 | - |
| 0.8794 | 700 | 0.0557 | - |
| 0.9422 | 750 | 0.0519 | - |
@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}
}
Base model
Alibaba-NLP/gte-multilingual-base