Fine-tuned RoBERTa-large (355M) beat zero-shot GPT-4 on news sentiment and 3 other tasks
Made by Martin Juan José Bucher and Marco Martini
The result
The story
Can a prompt replace labelled data?
Hand-coding texts is slow, and generative AI promises to skip the labelling and just ask. Martin Juan José Bucher (Stanford) and Marco Martini (University of Zurich) tested that on four human-coded datasets, starting with the most standard: New York Times paragraphs on the US economy, labelled positive or negative.

Data
NYT US-economy sentiment (Barberá et al.)
1,374 paragraphs (374 positive, 1,000 negative); 200 held out for testing
New York Times paragraphs on the US economy coded by undergraduates; only relevant paragraphs, labels merged by majority vote
The paper’s other three datasets (Kavanaugh tweets, anger in German political texts, nationalist parties’ EU positions) are separate tasks with separately fine-tuned models.
On one side, BERT-style models fine-tuned on the human labels with the authors’ public notebook, at its default settings. RoBERTa-large, with 355M parameters, trained on 1,174 paragraphs and was scored on 200 it never saw, three times with different seeds.
Small model
RoBERTa-large, fine-tuned
355M · Meta (FacebookAI)
All weights fine-tuned on 1,174 labelled paragraphs with the authors’ toolkit at its default settings
- Base
- Roberta-large
Training
Full fine-tune with AdamW and a class-weighted loss
10 epochs, learning rate 1e-5, batch 4 with 8-step gradient accumulation, 3 seeds (released notebook)
Not reported: hardware, time and cost.
On the other side, GPT-3.5, GPT-4 and Claude 3 Opus got a short zero-shot prompt with the two label names, at temperature 0.1, and labelled all 1,374 paragraphs.
Large model
GPT-4 (gpt-4-1106-preview)
Size not disclosed · OpenAI
Used as released through OpenAI’s API, zero-shot with the two label names, temperature 0.1; Claude 3 Opus was run the same way
- Base
- General model, snapshot gpt-4-1106-preview
What they found
RoBERTa-large reached a weighted F1 of 0.92 on its test paragraphs; GPT-4 and Claude 3 Opus reached 0.87 on the full set. On the harder datasets the gap widened, and on anger and EU positions the zero-shot models did no better than always guessing the most common label.
Evaluation
- Test set
- Fine-tuned models: 200 held-out paragraphs. LLMs: all 1,374 paragraphs
- Metric
- Weighted F1 (accuracy, weighted precision and recall, and macro F1 also reported)
- Items
- 200 vs 1,374
- How it was compared
- Same human labels and metric, but not the same paragraphs. GPT-4 got a generic sentiment instruction and the two label names, zero-shot, and was asked again until it returned a valid label.
The comparison has limits: the two sides were scored on different sets of paragraphs, and the prompts named only the labels. The authors say few-shot prompts did not help GPT-3.5 or GPT-4 in exploratory runs, but report no numbers.
All the numbers
Show all numbersHide all numbersEvery model · Cost, latency and energy · 4 more results
Every model on the headline test
Cost, latency and energy, as reported
- Cost
- Not reported
- Latency
- Not reported
- Energy
- Not reported
More from the source
Kavanaugh-nomination tweet stance, weighted F1: DeBERTa-v3 0.94, RoBERTa-large 0.92 vs GPT-4 0.51, Claude 3 Opus 0.57 (majority-class baseline 0.33)
Small model 0.92Large model 0.51
Table 2
Anger in German political texts, weighted F1: XLNet-large 0.89, RoBERTa-large 0.88 vs GPT-4 0.13, Claude 3 Opus 0.11 (majority baseline 0.59)
Small model 0.88Large model 0.13
Table 3
Nationalist parties’ EU positions (3 classes), weighted F1: DeBERTa-v3 0.91, RoBERTa-large 0.87 vs GPT-4 0.45, Claude 3 Opus 0.29 (majority baseline 0.75)
Small model 0.87Large model 0.45
Table 4
Training-set size: the paper puts the sweet spot at 200-500 labelled examples (performance levels off above 500); RoBERTa-large beats zero-shot BART on all datasets once training exceeds 200
Section 5.5, Figure 4
Worth knowing
- Different test sets: fine-tuned models on 200 held-out items, LLMs on the full dataset.
- Zero-shot only; no few-shot or prompt tuning for GPT-4 or Claude, and prompts are short. The Kavanaugh prompt’s labels don’t name the nominee.
- Preprint; GPT-4 snapshot from late 2023.
- No cost, latency or energy figures.
1 more caveat
- On anger and EU positions the LLMs do no better than a majority-class guess, which hints that task framing, not only model ability, drives these gaps.
Weights on Hugging Face
Base model the paper loads as ‘roberta-large’ (355.4M on the card). DeBERTa-v3-large (435M), which ties or wins on some tasks, is microsoft/deberta-v3-large. Both verified 03 Oct 2026.
- FacebookAI/roberta-largeRoBERTa-large (fine-tuned)
Sources
- Bucher & Martini, “Fine-Tuned ‘Small’ LLMs (Still) Significantly Outperform Zero-Shot Generative AI Models in Text Classification”, arXiv 2406.08660
- Authors’ toolkit and reproduction code (GitHub)
- arXiv v1 12 Jun 2024 (2406.08660); v2 16 Aug 2024 used here.
