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/paraphrase-multilingual-MiniLM-L12-v2 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 |
|---|---|
| Groceries |
|
| Alcohol and stimulants |
|
| Household and chemistry |
|
| Cosmetics |
|
| Entertainment |
|
| Taxes and fees |
|
| Transport |
|
| Other |
|
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("Johnyyy123/smart-receipt-categorizer-v1")
# Run inference
preds = model("Kebab w bułce")
| Training set | Min | Median | Max |
|---|---|---|---|
| Word count | 1 | 2.6271 | 4 |
| Label | Training Sample Count |
|---|---|
| Alcohol and stimulants | 23 |
| Cosmetics | 20 |
| Entertainment | 17 |
| Groceries | 33 |
| Household and chemistry | 23 |
| Other | 29 |
| Taxes and fees | 14 |
| Transport | 18 |
| Epoch | Step | Training Loss | Validation Loss |
|---|---|---|---|
| 0.0011 | 1 | 0.4056 | - |
| 0.0565 | 50 | 0.2709 | - |
| 0.1130 | 100 | 0.2476 | - |
| 0.1695 | 150 | 0.2203 | - |
| 0.2260 | 200 | 0.1902 | - |
| 0.2825 | 250 | 0.1536 | - |
| 0.3390 | 300 | 0.1149 | - |
| 0.3955 | 350 | 0.0803 | - |
| 0.4520 | 400 | 0.0546 | - |
| 0.5085 | 450 | 0.0329 | - |
| 0.5650 | 500 | 0.0186 | - |
| 0.6215 | 550 | 0.008 | - |
| 0.6780 | 600 | 0.0032 | - |
| 0.7345 | 650 | 0.0025 | - |
| 0.7910 | 700 | 0.002 | - |
| 0.8475 | 750 | 0.0012 | - |
| 0.9040 | 800 | 0.0013 | - |
| 0.9605 | 850 | 0.0011 | - |
| 1.0169 | 900 | 0.001 | - |
| 1.0734 | 950 | 0.0009 | - |
| 1.1299 | 1000 | 0.0008 | - |
| 1.1864 | 1050 | 0.0007 | - |
| 1.2429 | 1100 | 0.0007 | - |
| 1.2994 | 1150 | 0.0007 | - |
| 1.3559 | 1200 | 0.0006 | - |
| 1.4124 | 1250 | 0.0005 | - |
| 1.4689 | 1300 | 0.0005 | - |
| 1.5254 | 1350 | 0.0006 | - |
| 1.5819 | 1400 | 0.0005 | - |
| 1.6384 | 1450 | 0.0005 | - |
| 1.6949 | 1500 | 0.0005 | - |
| 1.7514 | 1550 | 0.0005 | - |
| 1.8079 | 1600 | 0.0005 | - |
| 1.8644 | 1650 | 0.0005 | - |
| 1.9209 | 1700 | 0.0004 | - |
| 1.9774 | 1750 | 0.0004 | - |
@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}
}