All benchmarks

  Peer-reviewed conference paper

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

COLING 2025 Industry Track

The result

  • Quality

    Exact match on the English MASSIVE test set: intent and every slot right (2,974 sentences). Small model: Llama-3-8B-Instruct, LoRA on 10% of the English training data. Large model: GPT-4o, zero-shot with the full intent and slot lists.

    53.83%vs 44.59%

    Ahead by 9.24 points

    Llama-3 8B, 10% of data53.83%
    GPT-4o44.59%

    Exact match, MASSIVE (English) · higher is better

  • Cost per call

    Estimate from the paper’s own inputs (Section 4): about 600 input tokens (zero-shot prompt plus sentence) and 20 output tokens per request, at the GPT-4o prices the paper quotes (US$5 per 1M input and US$15 per 1M output tokens; no price date given): 600 x 5/1M + 20 x 15/1M = US$0.0033. Those are the launch prices of gpt-4o-2024-05-13; OpenAI’s gpt-4o-2024-08-06 (6 Aug 2024) costs US$2.50 / US$10, which gives about US$0.0017 by the same arithmetic, and the paper doesn’t say which snapshot ran. The fine-tuned model’s cost is a fixed server (about US$5,000 upfront over 5 years, about US$2.74 a day by this arithmetic), so its cost per call depends on volume; electricity, hosting and staff aren’t counted. As reported: No cost per call. The paper compares a dedicated server of about US$5,000 upfront, depreciated over 5 years, with GPT-4o at US$5 / US$15 per 1M input / output tokens, and puts the break-even at about 850 queries a day

    No comparison

    Only the large model’s cost is reported.

    Llama-3 8B, 10% of dataNot reported
    GPT-4oUS$0.0033via OpenAI, at its per-token prices

    US$ per call · lower is better

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
meta-llama/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

1x NVIDIA L40 (48 GB)
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 accuracy0.8527 / 0.8981 vs 0.7993
    Slot F10.6314 / 0.7646 vs 0.5668
    Exact match0.5383 / 0.6856 vs 0.4459

    Table 1, Table 4

  • Spanish, same comparison

    Intent accuracy0.8309 / 0.8796 vs 0.7905
    Slot F10.5757 / 0.6944 vs 0.4992
    Exact match0.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 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.

Sources

  1. 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
  2. Paper PDF (ACL Anthology)
  3. MASSIVE dataset (Hugging Face, AmazonScience/massive)
  4. 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.
3 more sources behind this page
  1. github.com/monologg/JointBERT
  2. openai.com/index/introducing-structured-outputs-in-the-api (archived)
  3. vicomtech.org/en/vicomtech/our-dna
Share this benchmark

Drawing the image…

Post text