lora-dropout-eval
LoRA Meets Dropout under a Unified Framework — Wang et al. (2024) (arXiv:2403.00812, 2024)
What this evaluates
Evaluates the effectiveness of transformer-specific dropout methods (e.g., HiddenKey, DropKey, HiddenCut) when combined with LoRA for parameter-efficient fine-tuning. It probes the model's ability to mitigate overfitting in LoRA settings across diverse natural language understanding and generation tasks.
Datasets
- GLUE — total ?; splits: train (-1), val (-1), test (-1)
- E2E — total ?; splits: train (-1), test (-1)
- WebNLG — total ?; splits: train (-1), test (-1)
Metrics
Accuracy (primary) — range: percent
- Percentage of correctly predicted class labels.
Pearson correlation — range: [-1, 1]
- Pearson correlation coefficient between predicted and reference scores.
BLEU (primary) — range: percent
- n-gram based precision metric for machine translation and text generation.
NIST — range: percent
- Information-content-weighted variant of BLEU.
METEOR — range: percent
- Metric that aligns machine translation with reference translations using synonymy and stemming.
ROUGE_L — range: percent
- Recall-Oriented Understudy for Gisting Evaluation based on longest common subsequence.
CIDEr — range: percent
- Consensus-based Image Description Evaluation metric using TF-IDF weighting.
TER — range: percent
- Translation Edit Rate measuring the number of edits needed to change hypothesis to reference.
Matthews correlation — range: [-1, 1]
- Correlation coefficient between predicted and actual binary classifications.
Input / output format
Input: Text sequences for NLU tasks; source sentences for NLG tasks.
Output: Class labels or scores for NLU; generated text sequences for NLG.
Scoring recipe
def score(predictions, golds, metric, task):
if task == 'NLU':
if metric == 'Accuracy':
return sum(p == g for p, g in zip(predictions, golds)) / len(golds)
elif metric == 'Matthews_corr':
return matthews_corrcoef(golds, predictions)
elif metric == 'Pearson_corr':
return pearsonr(golds, predictions)[0]
elif task == 'NLG':
if metric == 'BLEU':
return compute_bleu(golds, predictions)
elif metric == 'ROUGE_L':
return compute_rouge_l(golds, predictions)
# ... other NLG metrics similarly
Common pitfalls
- LoRA baseline uses rank 8 and scalar 16, differing from the original LoRA paper's default rank 4.
- DropAttention's gradient stopping mechanism (NoGrad()) causes instability and poor performance at higher dropout rates.
- KL divergence regularization improves performance, while JS divergence shows no apparent impact in LoRA settings.
Evidence (verbatim from paper)
For NLU tasks, we utilize six datasets from GLUE benchmark*(Wang et al., [2018])*: SST-2 (Socher et al., [2013])... Pearson correlation is reported for STS-B, while accuracy is utilized for others.
Citation
@misc{wang2024lora,
title={LoRA Meets Dropout under a Unified Framework},
author={Wang et al. (2024)},
year={2024},
note={arXiv:2403.00812}
}
1---2name: lora-dropout-eval3description: Evaluates the effectiveness of transformer-specific dropout methods (e.g., HiddenKey, DropKey, HiddenCut) when combined with LoRA for parameter-efficient fine-tuning. It probes the model's ability to mitigate overfitting in LoRA settings across diverse natural language understanding and generation tasks. Use when the user wants to benchmark on GLUE, E2E, WebNLG, or asks about evaluating this task. Reports Accuracy, BLEU.4---56# lora-dropout-eval78> LoRA Meets Dropout under a Unified Framework — Wang et al. (2024) (arXiv:2403.00812, 2024)910## What this evaluates1112Evaluates the effectiveness of transformer-specific dropout methods (e.g., HiddenKey, DropKey, HiddenCut) when combined with LoRA for parameter-efficient fine-tuning. It probes the model's ability to mitigate overfitting in LoRA settings across diverse natural language understanding and generation tasks.1314## Datasets1516- **GLUE** — total ?; splits: train (-1), val (-1), test (-1)17- **E2E** — total ?; splits: train (-1), test (-1)18- **WebNLG** — total ?; splits: train (-1), test (-1)1920## Metrics2122- `Accuracy` **(primary)** — range: percent23 - Percentage of correctly predicted class labels.24- `Pearson correlation` — range: [-1, 1]25 - Pearson correlation coefficient between predicted and reference scores.26- `BLEU` **(primary)** — range: percent27 - n-gram based precision metric for machine translation and text generation.28- `NIST` — range: percent29 - Information-content-weighted variant of BLEU.30- `METEOR` — range: percent31 - Metric that aligns machine translation with reference translations using synonymy and stemming.32- `ROUGE_L` — range: percent33 - Recall-Oriented Understudy for Gisting Evaluation based on longest common subsequence.34- `CIDEr` — range: percent35 - Consensus-based Image Description Evaluation metric using TF-IDF weighting.36- `TER` — range: percent37 - Translation Edit Rate measuring the number of edits needed to change hypothesis to reference.38- `Matthews correlation` — range: [-1, 1]39 - Correlation coefficient between predicted and actual binary classifications.4041## Input / output format4243**Input**: Text sequences for NLU tasks; source sentences for NLG tasks.4445**Output**: Class labels or scores for NLU; generated text sequences for NLG.4647## Scoring recipe4849```python50def score(predictions, golds, metric, task):51 if task == 'NLU':52 if metric == 'Accuracy':53 return sum(p == g for p, g in zip(predictions, golds)) / len(golds)54 elif metric == 'Matthews_corr':55 return matthews_corrcoef(golds, predictions)56 elif metric == 'Pearson_corr':57 return pearsonr(golds, predictions)[0]58 elif task == 'NLG':59 if metric == 'BLEU':60 return compute_bleu(golds, predictions)61 elif metric == 'ROUGE_L':62 return compute_rouge_l(golds, predictions)63 # ... other NLG metrics similarly64```6566## Common pitfalls6768- LoRA baseline uses rank 8 and scalar 16, differing from the original LoRA paper's default rank 4.69- DropAttention's gradient stopping mechanism (NoGrad()) causes instability and poor performance at higher dropout rates.70- KL divergence regularization improves performance, while JS divergence shows no apparent impact in LoRA settings.7172## Evidence (verbatim from paper)7374> For NLU tasks, we utilize six datasets from GLUE benchmark*(Wang et al., [2018])*: SST-2 *(Socher et al., [2013])*... Pearson correlation is reported for STS-B, while accuracy is utilized for others.7576## Citation7778```bibtex79@misc{wang2024lora,80 title={LoRA Meets Dropout under a Unified Framework},81 author={Wang et al. (2024)},82 year={2024},83 note={arXiv:2403.00812}84}85```8687- arXiv: 2403.00812