glue-low-resource-eval
Generalizable and Stable Finetuning of Pretrained Language Models on Low-Resource Texts — Sai Ashish Somayajula et al. (2024) (arXiv:2403.12918, 2024)
What this evaluates
Evaluates the generalization and stability of finetuned pretrained language models on low-resource NLP tasks. It probes how well models adapt to sentiment classification, natural language inference, paraphrasing, similarity assessment, and linguistic acceptability when trained on severely limited data (300–1000 examples).
Datasets
- GLUE — total ?; splits: train (-1), dev (-1); HF
glue
Metrics
averaged evaluation metrics (primary) — range: percent
- Mean of task-specific metrics (accuracy or F1 for classification, Pearson correlation for STS-B) across the eight GLUE datasets (SST-2, RTE, QNLI, MNLI, MRPC, STS-B, QQP, CoLA). Reported as mean ± standard deviation over 10 random seeds.
Input / output format
Input: Text pairs or single sentences depending on the GLUE task (e.g., sentence pairs for NLI/paraphrasing, single sentences for sentiment/acceptability).
Output: Predicted class labels or regression scores for each instance.
Scoring recipe
metrics = []
for task in GLUE_TASKS:
preds = model.predict(task.dev_set)
gold = task.dev_labels
metrics.append(compute_task_metric(preds, gold)) # accuracy/F1/Pearson
glue_avg = sum(metrics) / len(metrics)
return glue_avg
# Repeat over 10 random seeds for low-resource splits (300/500/1000/1K)
# Report mean and std of glue_avg across seeds
Common pitfalls
- Low-resource splits are created by randomly downsampling the training set to 300, 500, 1000, or 1000 examples per seed, which can introduce high variance.
- Vanilla finetuning on BERT_LARGE often suffers from degenerate seeds on RTE due to vanishing gradients, inflating standard deviation.
- The BLO framework splits the training data into two disjoint subsets: one for optimizing task weights and another for optimizing attention parameters, which differs from standard single-split finetuning.
Evidence (verbatim from paper)
We finetune the models on the training set for each of the mentioned datasets and evaluated its performance on the original development set using the checkpoint obtained at the end of training... The averaged results over ten random seeds are reported in the paper. Table 1 summarizes our results. We compare our method with Vanilla, CHILD-TUNING_D, and DPS dense method using BERT_LARGE across 300, 500, and 1000 training data splits. Reported results are the averaged evaluation metrics over all eight GLUE datasets for each training data split.
Citation
@misc{somayajula2024generalizable,
title={Generalizable and Stable Finetuning of Pretrained Language Models on Low-Resource Texts},
author={Sai Ashish Somayajula et al. (2024)},
year={2024},
note={arXiv:2403.12918}
}
1---2name: glue-low-resource-eval3description: Evaluates the generalization and stability of finetuned pretrained language models on low-resource NLP tasks. It probes how well models adapt to sentiment classification, natural language inference, paraphrasing, similarity assessment, and linguistic acceptability when trained on severely limited data (300–1000 examples). Use when the user wants to benchmark on GLUE, or asks about evaluating this task. Reports averaged evaluation metrics.4---56# glue-low-resource-eval78> Generalizable and Stable Finetuning of Pretrained Language Models on Low-Resource Texts — Sai Ashish Somayajula et al. (2024) (arXiv:2403.12918, 2024)910## What this evaluates1112Evaluates the generalization and stability of finetuned pretrained language models on low-resource NLP tasks. It probes how well models adapt to sentiment classification, natural language inference, paraphrasing, similarity assessment, and linguistic acceptability when trained on severely limited data (300–1000 examples).1314## Datasets1516- **GLUE** — total ?; splits: train (-1), dev (-1); HF `glue`1718## Metrics1920- `averaged evaluation metrics` **(primary)** — range: percent21 - Mean of task-specific metrics (accuracy or F1 for classification, Pearson correlation for STS-B) across the eight GLUE datasets (SST-2, RTE, QNLI, MNLI, MRPC, STS-B, QQP, CoLA). Reported as mean ± standard deviation over 10 random seeds.2223## Input / output format2425**Input**: Text pairs or single sentences depending on the GLUE task (e.g., sentence pairs for NLI/paraphrasing, single sentences for sentiment/acceptability).2627**Output**: Predicted class labels or regression scores for each instance.2829## Scoring recipe3031```python32metrics = []33for task in GLUE_TASKS:34 preds = model.predict(task.dev_set)35 gold = task.dev_labels36 metrics.append(compute_task_metric(preds, gold)) # accuracy/F1/Pearson37glue_avg = sum(metrics) / len(metrics)38return glue_avg39# Repeat over 10 random seeds for low-resource splits (300/500/1000/1K)40# Report mean and std of glue_avg across seeds41```4243## Common pitfalls4445- Low-resource splits are created by randomly downsampling the training set to 300, 500, 1000, or 1000 examples per seed, which can introduce high variance.46- Vanilla finetuning on BERT_LARGE often suffers from degenerate seeds on RTE due to vanishing gradients, inflating standard deviation.47- The BLO framework splits the training data into two disjoint subsets: one for optimizing task weights and another for optimizing attention parameters, which differs from standard single-split finetuning.4849## Evidence (verbatim from paper)5051> We finetune the models on the training set for each of the mentioned datasets and evaluated its performance on the original development set using the checkpoint obtained at the end of training... The averaged results over ten random seeds are reported in the paper. Table 1 summarizes our results. We compare our method with Vanilla, CHILD-TUNING_D, and DPS dense method using BERT_LARGE across 300, 500, and 1000 training data splits. Reported results are the averaged evaluation metrics over all eight GLUE datasets for each training data split.5253## Citation5455```bibtex56@misc{somayajula2024generalizable,57 title={Generalizable and Stable Finetuning of Pretrained Language Models on Low-Resource Texts},58 author={Sai Ashish Somayajula et al. (2024)},59 year={2024},60 note={arXiv:2403.12918}61}62```6364- arXiv: 2403.12918