Llama-3-8B tuned on 10% of the data beat GPT-4o at reading voice-assistant commands
Made by Maia Aguirre and four co-authors
The result
The story
Little labelled data, and a server of your own
Researchers at Vicomtech, a non-profit applied-research foundation in the Basque Research and Technology Alliance, and at the University of the Basque Country started from a problem common to small and medium-sized companies building dialogue systems: they rarely have much labelled data, and many prefer a model they can run on their own server, to keep data in-house and avoid high long-term costs.

Every request to a voice assistant needs two answers at once: what the user wants, one of 60 intents such as alarm_set or takeaway_order, and which words carry the details, from 55 slot types such as date, time or place_name. The team tested this on the English and Spanish parts of MASSIVE, a public dataset of voice-assistant commands across 18 domains.
Data
MASSIVE (English and Spanish)
11,514 training, 2,033 validation and 2,974 test sentences (the paper’s split counts); the 10% training slice has 1,122 sentences (Table 5)
Public dataset (FitzGerald et al., 2023), on Hugging Face as AmazonScience/massive under CC BY 4.0
302 duplicate training sentences removed (11,212 left); the 5% to 100% slices keep each intent’s share.
An 8B model with a small adapter
Small model
Llama-3-8B-Instruct
8B (8.03B per Hugging Face) · Meta
LoRA fine-tune by the authors on 10% of the English training set (and on larger slices), base loaded in 8-bit
- Base
- Meta-Llama-3-8B-Instruct
They fine-tuned Meta’s Llama-3-8B-Instruct with LoRA, which trains small adapter matrices instead of the whole model, on growing slices of the training data, one run per language and slice. Each training example holds an instruction, the sentence and the answer in a fixed form: the intent, then a list of ‘slot: value’ pairs. The largest runs took under eight hours on one 48 GB NVIDIA L40. As the classic baseline they also trained JointBERT on XLM-R.
Training
- Method
- LoRA (r=16, alpha=16, dropout 0.05, on all attention and MLP projections and lm_head) on an 8-bit base; Adam 8-bit, learning rate 3e-4, up to 50 epochs, checkpoint with the lowest validation loss
- Time
- Under 8 hours for the largest data slices
Not reported: cost.
Against GPT-4o, with no examples
Large model
GPT-4o
Size not disclosed · OpenAI
Used as released, zero-shot: the prompt lists all 60 intents, all 55 slot names and the answer format
- Base
- General model; snapshot not stated
Evaluation
2,974 test sentences
- Test set
- MASSIVE English test set; the same comparison was run on the Spanish test set
- Metric
- Exact match: the intent and every slot right (intent accuracy and slot F1 also reported)
- How it was compared
- Same test sentences and metrics for both. GPT-4o got the full intent and slot lists in a zero-shot prompt with no examples; its snapshot and temperature aren’t stated (the fine-tuned Llama generated at temperature 0.1).
With 10% of the English training data, 1,122 sentences, the fine-tuned 8B model got the intent and every slot right on 53.83% of test sentences, against 44.59% for GPT-4o. Intent accuracy was 85.27% against 79.93%, and slot F1 63.14% against 56.68%. With all the training data it reached 68.56% exact match; without fine-tuning, the same Llama managed 11.50%.
Spanish tells the same story: 49.26% against 37.12% exact match at 10%. With only 5% of the English data the fine-tune still beat GPT-4o on intents, but not on slots or exact match. The team also trained in one language and tested in the other: the English-trained model at 10% reached 41.53% exact match on the Spanish test, still above GPT-4o’s 37.12%.
A break-even, not a bill
Neither model was timed. For cost, the paper sketches a break-even: the 8B model needs about 16 GB of GPU memory to fine-tune and 8 GB to run in 8-bit, which fits a dedicated server costing about US$5,000 upfront, spread over five years. It prices GPT-4o at US$5 per million input tokens and US$15 per million output tokens, the launch price; a newer GPT-4o snapshot released in August 2024 cost US$2.50 and US$10. At about 600 input and 20 output tokens per request, the authors put the break-even at roughly 850 requests a day; above that, the server is cheaper. At the newer prices, the same arithmetic puts it nearer 1,600 (our estimate).
All the numbers
Show all numbersHide all numbersEvery model · Cost, latency and energy · 5 more results
Every model on the headline test
Cost, latency and energy, as reported
- Cost · break-even of about 850 queries per day
- Llama-3 8B, 10% of dataabout US$5,000 upfront for a dedicated on-premise server, depreciated over 5 years
- GPT-4oUS$5 per 1M input tokens and US$15 per 1M output tokens (GPT-4o pricing quoted in the paper)
- Llama-3-8B-Instruct: about 16 GB of VRAM for LoRA fine-tuning (done on 1x
NVIDIA L40 48 GB) and 8 GB for 8-bit inference on a dedicated server. GPT-4o: OpenAI API, hardware not disclosed.
- Paper’s back-of-envelope estimate (Section 4): each query assumed to use about 600 input tokens (zero-shot prompt plus sentence) and 20 output tokens; the server’s upfront cost is spread over a 5-year depreciation period. Electricity, staff and hosting costs are not itemised.
- Latency
- Not reported
- Energy
- Not reported
More from the source
English, all three metrics: Llama fine-tuned on 10% / on 100% of training data vs GPT-4o zero-shot
Intent accuracy 0.8527 / 0.8981 vs 0.7993 Slot F1 0.6314 / 0.7646 vs 0.5668 Exact match 0.5383 / 0.6856 vs 0.4459 Table 1, Table 4
Spanish, same comparison
Intent accuracy 0.8309 / 0.8796 vs 0.7905 Slot F1 0.5757 / 0.6944 vs 0.4992 Exact match 0.4926 / 0.6187 vs 0.3712 Table 1, Table 4
Where GPT-4o is still ahead: with only 5% of English training data, Llama wins on intent accuracy (0.8127 vs 0.7993) but trails on slot F1 (0.5111 vs 0.5668) and exact match (0.3679 vs 0.4459)
Table 1, Table 4
Without fine-tuning, Llama-3-8B-Instruct zero-shot (English): intent accuracy 0.5901, slot F1 0.1827, exact match 0.1150
Table 4
Classic baseline JointBERT (XLM-R) trained on 100% of English data: intent accuracy 0.8376, slot F1 0.6141, exact match 0.5656
Table 1
Worth knowing
- GPT-4o was only tested zero-shot (no examples, no fine-tuning); few-shot GPT-4o is not reported.
- One number per setting: the paper reports no seeds, variance or confidence intervals.
- Public benchmark (MASSIVE), not company data; voice-assistant commands, not a specific business workflow.
- The cost figure is a back-of-envelope break-even, not a measured bill.
1 more caveat
- Absolute exact-match scores are modest (0.54 with 10% of data, 0.69 with all of it): many sentences still have at least one slot wrong.
Weights on Hugging Face
Base model (gated), the checkpoint linked in the paper’s footnote 1; verified 03 Oct 2026. The paper does not link the fine-tuned adapters.
- meta-llama/Meta-Llama-3-8B-InstructLlama-3-8B-Instruct (LoRA fine-tuned)
Sources
- Aguirre, Mendez, del Pozo, Torres and Torralbo, “Fine-Tuning Medium-Scale LLMs for Joint Intent Classification and Slot Filling: A Data-Efficient and Cost-Effective Solution for SMEs”, COLING 2025 Industry Track
- Paper PDF (ACL Anthology)
- MASSIVE dataset (Hugging Face, AmazonScience/massive)
- Proceedings of COLING 2025, Industry Track (Abu Dhabi, 19-24 January 2025), pages 251-262. The exact day of publication within the conference is not stated.
