inducer-tuning-eval
Inducer-tuning: Connecting Prefix-tuning and Adapter-tuning — Chen et al. (2022) (arXiv:2210.14469, 2022)
What this evaluates
Evaluates parameter-efficient fine-tuning methods on natural language understanding and generation tasks, measuring how well they approximate full fine-tuning performance while using significantly fewer trainable parameters.
Datasets
- MNLI — total ?; splits: test (-1)
- SST2 — total ?; splits: test (-1)
- WebNLG-challenge — total ?; splits: train (-1), test (-1)
- CoQA — total ?; splits: test (-1)
Metrics
Accuracy (primary) — range: [0, 1]
- Proportion of correctly predicted class labels out of total instances.
BLEU — range: [0, 1]
- N-gram overlap between generated and reference text, typically with a brevity penalty.
MET — range: [0, 1]
- METEOR metric measuring alignment-based precision, recall, and penalty for fragmentation.
TER — range: [0, 1]
- Translation Error Rate; ratio of edits (insertions, deletions, substitutions) to reference length. Lower is better.
EM — range: [0, 1]
- Exact match; 1 if generated answer exactly matches reference, 0 otherwise.
F1 — range: [0, 1]
- Harmonic mean of precision and recall for answer extraction.
Input / output format
Input: NLU: single sentence or premise-hypothesis pair. NLG: structured triples (WebNLG) or conversational context plus question (CoQA).
Output: NLU: discrete class label (e.g., entailment/contradiction/neither or positive/negative). NLG: generated text string or short answer.
Scoring recipe
def compute_metrics(predictions, references):
acc = sum(p == r for p, r in zip(predictions, references)) / len(references)
bleu = corpus_bleu([references], [predictions])
ter = sum(edit_distance(p, r) for p, r in zip(predictions, references)) / len(references)
em = sum(p == r for p, r in zip(predictions, references)) / len(references)
prec = sum(1 for p, r in zip(predictions, references) if p in r) / len(predictions)
rec = sum(1 for p, r in zip(predictions, references) if p in r) / len(references)
f1 = 2 * prec * rec / (prec + rec) if (prec + rec) > 0 else 0
return {'Accuracy': acc, 'BLEU': bleu, 'TER': ter, 'EM': em, 'F1': f1}
Common pitfalls
- WebNLG uses a SEEN/UNSEEN/ALL split where training only uses SEEN categories, but test performance is reported across all splits.
- TER metric is lower-is-better, unlike BLEU/EM/F1 which are higher-is-better.
- Prefix-tuning parameter counts differ between training and inference due to a re-parametrization trick, requiring careful accounting when comparing to adapters.
Evidence (verbatim from paper)
We test the performance of our methods on both NLU and NLG tasks. For NLU tasks, we follow (He et al., 2021a) to use RoBERTaBASE (Liu et al., 2019) on MNLI (Williams et al., 2018) and SST2 (Socher et al., 2013) from the GLUE benchmark (Wang et al., 2019); in SST2, the models predict the two-way sentiment (positive/negative) of a given sentence, and the MNLI task is to decide, given a premise and a hypothesis, whether there is entailment, contradiction, or neither. We use GPT-2SMALL (Radford et al., 2019) for NLG tasks: WebNLG-challenge (Gardent et al., 2017) focuses on table-to-text tasks... CoQA (Reddy et al., 2019) provides the data for conversational question answering... Table 2: Accuracy (%) on MNLI and SST2.
Citation
@misc{chen2022inducertuning,
title={Inducer-tuning: Connecting Prefix-tuning and Adapter-tuning},
author={Chen et al. (2022)},
year={2022},
note={arXiv:2210.14469}
}
1---2name: inducer-tuning-eval3description: Evaluates parameter-efficient fine-tuning methods on natural language understanding and generation tasks, measuring how well they approximate full fine-tuning performance while using significantly fewer trainable parameters. Use when the user wants to benchmark on MNLI, SST2, WebNLG-challenge, CoQA, or asks about evaluating this task. Reports Accuracy.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/inducer-tuning-eval6 skill_kind: dataset_eval7 source_arxiv: 2210.144698 bibtex_key: chen2022inducertuning9 confidence: high10---1112# inducer-tuning-eval1314> Inducer-tuning: Connecting Prefix-tuning and Adapter-tuning — Chen et al. (2022) (arXiv:2210.14469, 2022)1516## What this evaluates1718Evaluates parameter-efficient fine-tuning methods on natural language understanding and generation tasks, measuring how well they approximate full fine-tuning performance while using significantly fewer trainable parameters.1920## Datasets2122- **MNLI** — total ?; splits: test (-1)23- **SST2** — total ?; splits: test (-1)24- **WebNLG-challenge** — total ?; splits: train (-1), test (-1)25- **CoQA** — total ?; splits: test (-1)2627## Metrics2829- `Accuracy` **(primary)** — range: [0, 1]30 - Proportion of correctly predicted class labels out of total instances.31- `BLEU` — range: [0, 1]32 - N-gram overlap between generated and reference text, typically with a brevity penalty.33- `MET` — range: [0, 1]34 - METEOR metric measuring alignment-based precision, recall, and penalty for fragmentation.35- `TER` — range: [0, 1]36 - Translation Error Rate; ratio of edits (insertions, deletions, substitutions) to reference length. Lower is better.37- `EM` — range: [0, 1]38 - Exact match; 1 if generated answer exactly matches reference, 0 otherwise.39- `F1` — range: [0, 1]40 - Harmonic mean of precision and recall for answer extraction.4142## Input / output format4344**Input**: NLU: single sentence or premise-hypothesis pair. NLG: structured triples (WebNLG) or conversational context plus question (CoQA).4546**Output**: NLU: discrete class label (e.g., entailment/contradiction/neither or positive/negative). NLG: generated text string or short answer.4748## Scoring recipe4950```python51def compute_metrics(predictions, references):52 acc = sum(p == r for p, r in zip(predictions, references)) / len(references)53 bleu = corpus_bleu([references], [predictions])54 ter = sum(edit_distance(p, r) for p, r in zip(predictions, references)) / len(references)55 em = sum(p == r for p, r in zip(predictions, references)) / len(references)56 prec = sum(1 for p, r in zip(predictions, references) if p in r) / len(predictions)57 rec = sum(1 for p, r in zip(predictions, references) if p in r) / len(references)58 f1 = 2 * prec * rec / (prec + rec) if (prec + rec) > 0 else 059 return {'Accuracy': acc, 'BLEU': bleu, 'TER': ter, 'EM': em, 'F1': f1}60```6162## Common pitfalls6364- WebNLG uses a SEEN/UNSEEN/ALL split where training only uses SEEN categories, but test performance is reported across all splits.65- TER metric is lower-is-better, unlike BLEU/EM/F1 which are higher-is-better.66- Prefix-tuning parameter counts differ between training and inference due to a re-parametrization trick, requiring careful accounting when comparing to adapters.6768## Evidence (verbatim from paper)6970> We test the performance of our methods on both NLU and NLG tasks. For NLU tasks, we follow (He et al., 2021a) to use RoBERTaBASE (Liu et al., 2019) on MNLI (Williams et al., 2018) and SST2 (Socher et al., 2013) from the GLUE benchmark (Wang et al., 2019); in SST2, the models predict the two-way sentiment (positive/negative) of a given sentence, and the MNLI task is to decide, given a premise and a hypothesis, whether there is entailment, contradiction, or neither. We use GPT-2SMALL (Radford et al., 2019) for NLG tasks: WebNLG-challenge (Gardent et al., 2017) focuses on table-to-text tasks... CoQA (Reddy et al., 2019) provides the data for conversational question answering... Table 2: Accuracy (%) on MNLI and SST2.7172## Citation7374```bibtex75@misc{chen2022inducertuning,76 title={Inducer-tuning: Connecting Prefix-tuning and Adapter-tuning},77 author={Chen et al. (2022)},78 year={2022},79 note={arXiv:2210.14469}80}81```8283- arXiv: 2210.14469