lora-land-eval
LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Report — Justin Zhao et al. (2024) (arXiv:2405.00732, 2024)
What this evaluates
This evaluation probes the effectiveness of LoRA fine-tuning across 31 diverse NLP tasks by comparing base LLMs against their fine-tuned counterparts and proprietary models like GPT-4. It measures how much performance lift fine-tuning provides and whether smaller open-weight models can surpass larger closed-source models after adaptation.
Datasets
- magicoder — total ?; splits: test (-1)
- mmlu — total ?; splits: test (-1)
- glue_wnli — total ?; splits: test (-1)
- arc_combined — total ?; splits: test (-1)
- wikisql — total ?; splits: test (-1)
- boolq — total ?; splits: test (-1)
- customer_support — total ?; splits: test (-1)
- glue_cola — total ?; splits: test (-1)
- winogrande — total ?; splits: test (-1)
- glue_sst2 — total ?; splits: test (-1)
- dbpedia — total ?; splits: test (-1)
- hellaswag — total ?; splits: test (-1)
- glue_qnli — total ?; splits: test (-1)
- e2e_nlg — total ?; splits: test (-1)
- glue_qqp — total ?; splits: test (-1)
- bc5cdr — total ?; splits: test (-1)
- glue_mnli — total ?; splits: test (-1)
- webnlg — total ?; splits: test (-1)
- tldr_content_gen — total ?; splits: test (-1)
- glue_mrpc — total ?; splits: test (-1)
- jigsaw — total ?; splits: test (-1)
- hellaswag_processed — total ?; splits: test (-1)
- viggo — total ?; splits: test (-1)
- glue_stsb — total ?; splits: test (-1)
- gsm8k — total ?; splits: test (-1)
- conllpp — total ?; splits: test (-1)
- tldr_headline_gen — total ?; splits: test (-1)
- drop — total ?; splits: test (-1)
- legal — total ?; splits: test (-1)
- reuters — total ?; splits: test (-1)
Metrics
accuracy (primary) — range: [0, 1]
- Proportion of correct predictions out of total instances. Calculated as (number of correct predictions) / (total number of predictions).
rouge — range: [0, 1]
- ROUGE-N metric (typically ROUGE-L or ROUGE-1/2) measuring overlap between generated text and reference text using recall/precision/F1 of n-grams or longest common subsequence.
mae — range: [0, inf)
- Mean Absolute Error measuring the average absolute difference between predicted and actual continuous values.
Input / output format
Input: Task-specific prompts or instructions corresponding to each of the 31 NLP benchmarks (e.g., multiple-choice questions, text generation prompts, classification instructions).
Output: Task-specific model outputs (e.g., selected option, generated text, regression value) evaluated against ground-truth references using the task-appropriate metric.
Scoring recipe
def compute_metric(predictions, golds, metric_type):
if metric_type == 'accuracy':
return sum(1 for p, g in zip(predictions, golds) if p == g) / len(golds)
elif metric_type == 'rouge':
return rouge_score(golds, predictions, rouge_types=['rouge1', 'rouge2', 'rougeL'])
elif metric_type == 'mae':
return mean_absolute_error(golds, predictions)
Common pitfalls
- Confusing base model scores with fine-tuned model scores when calculating performance lift.
- Assuming a single evaluation metric applies across all 31 tasks; the benchmark uses accuracy, ROUGE, and MAE depending on the task type.
- Overlooking reported implementation bugs in specific model families (e.g., Gemma) that caused fine-tuning to underperform base models, skewing average lift calculations.
Evidence (verbatim from paper)
mmlu | accuracy | 0.506 | 0.589 | 0.774 | 0.083 | -0.185
glue_wnli | accuracy | 0.437 | 0.873 | 0.93 | 0.436 | -0.057
arc_combined | accuracy | 0.673 | 0.915 | 0.947 | 0.242 | -0.032
wikisql | rouge | 0.301 | 0.898 | 0.909 | 0.597 | -0.011
Citation
@misc{zhao2024loraland,
title={LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Report},
author={Justin Zhao et al. (2024)},
year={2024},
note={arXiv:2405.00732}
}
1---2name: lora-land-eval3description: This evaluation probes the effectiveness of LoRA fine-tuning across 31 diverse NLP tasks by comparing base LLMs against their fine-tuned counterparts and proprietary models like GPT-4. It measures how much performance lift fine-tuning provides and whether smaller open-weight models can surpass larger closed-source models after adaptation. Use when the user wants to benchmark on magicoder, mmlu, glue_wnli, arc_combined, wikisql, boolq, customer_support, glue_cola, winogrande, glue_sst2, dbpedia, hellaswag, glue_qnli, e2e_nlg, glue_qqp, bc5cdr, glue_mnli, webnlg, tldr_content_gen, glue_mrpc, jigsaw, hellaswag_processed, viggo, glue_stsb, gsm8k, conllpp, tldr_headline_gen, drop, legal, reuters, or asks about evaluating this task. Reports accuracy.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/lora-land-eval6 skill_kind: dataset_eval7 source_arxiv: 2405.007328 bibtex_key: zhao2024loraland9 confidence: high10---1112# lora-land-eval1314> LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Report — Justin Zhao et al. (2024) (arXiv:2405.00732, 2024)1516## What this evaluates1718This evaluation probes the effectiveness of LoRA fine-tuning across 31 diverse NLP tasks by comparing base LLMs against their fine-tuned counterparts and proprietary models like GPT-4. It measures how much performance lift fine-tuning provides and whether smaller open-weight models can surpass larger closed-source models after adaptation.1920## Datasets2122- **magicoder** — total ?; splits: test (-1)23- **mmlu** — total ?; splits: test (-1)24- **glue_wnli** — total ?; splits: test (-1)25- **arc_combined** — total ?; splits: test (-1)26- **wikisql** — total ?; splits: test (-1)27- **boolq** — total ?; splits: test (-1)28- **customer_support** — total ?; splits: test (-1)29- **glue_cola** — total ?; splits: test (-1)30- **winogrande** — total ?; splits: test (-1)31- **glue_sst2** — total ?; splits: test (-1)32- **dbpedia** — total ?; splits: test (-1)33- **hellaswag** — total ?; splits: test (-1)34- **glue_qnli** — total ?; splits: test (-1)35- **e2e_nlg** — total ?; splits: test (-1)36- **glue_qqp** — total ?; splits: test (-1)37- **bc5cdr** — total ?; splits: test (-1)38- **glue_mnli** — total ?; splits: test (-1)39- **webnlg** — total ?; splits: test (-1)40- **tldr_content_gen** — total ?; splits: test (-1)41- **glue_mrpc** — total ?; splits: test (-1)42- **jigsaw** — total ?; splits: test (-1)43- **hellaswag_processed** — total ?; splits: test (-1)44- **viggo** — total ?; splits: test (-1)45- **glue_stsb** — total ?; splits: test (-1)46- **gsm8k** — total ?; splits: test (-1)47- **conllpp** — total ?; splits: test (-1)48- **tldr_headline_gen** — total ?; splits: test (-1)49- **drop** — total ?; splits: test (-1)50- **legal** — total ?; splits: test (-1)51- **reuters** — total ?; splits: test (-1)5253## Metrics5455- `accuracy` **(primary)** — range: [0, 1]56 - Proportion of correct predictions out of total instances. Calculated as (number of correct predictions) / (total number of predictions).57- `rouge` — range: [0, 1]58 - ROUGE-N metric (typically ROUGE-L or ROUGE-1/2) measuring overlap between generated text and reference text using recall/precision/F1 of n-grams or longest common subsequence.59- `mae` — range: [0, inf)60 - Mean Absolute Error measuring the average absolute difference between predicted and actual continuous values.6162## Input / output format6364**Input**: Task-specific prompts or instructions corresponding to each of the 31 NLP benchmarks (e.g., multiple-choice questions, text generation prompts, classification instructions).6566**Output**: Task-specific model outputs (e.g., selected option, generated text, regression value) evaluated against ground-truth references using the task-appropriate metric.6768## Scoring recipe6970```python71def compute_metric(predictions, golds, metric_type):72 if metric_type == 'accuracy':73 return sum(1 for p, g in zip(predictions, golds) if p == g) / len(golds)74 elif metric_type == 'rouge':75 return rouge_score(golds, predictions, rouge_types=['rouge1', 'rouge2', 'rougeL'])76 elif metric_type == 'mae':77 return mean_absolute_error(golds, predictions)78```7980## Common pitfalls8182- Confusing base model scores with fine-tuned model scores when calculating performance lift.83- Assuming a single evaluation metric applies across all 31 tasks; the benchmark uses accuracy, ROUGE, and MAE depending on the task type.84- Overlooking reported implementation bugs in specific model families (e.g., Gemma) that caused fine-tuning to underperform base models, skewing average lift calculations.8586## Evidence (verbatim from paper)8788> mmlu | accuracy | 0.506 | 0.589 | 0.774 | 0.083 | -0.18589glue_wnli | accuracy | 0.437 | 0.873 | 0.93 | 0.436 | -0.05790arc_combined | accuracy | 0.673 | 0.915 | 0.947 | 0.242 | -0.03291wikisql | rouge | 0.301 | 0.898 | 0.909 | 0.597 | -0.0119293## Citation9495```bibtex96@misc{zhao2024loraland,97 title={LoRA Land: 310 Fine-tuned LLMs that Rival GPT-4, A Technical Report},98 author={Justin Zhao et al. (2024)},99 year={2024},100 note={arXiv:2405.00732}101}102```103104- arXiv: 2405.00732