nash-pruning-eval
NASH: A Simple Unified Framework of Structured Pruning for Accelerating Encoder-Decoder Language Models — Ko et al. (2023) (arXiv:2310.10054, 2023)
What this evaluates
Evaluates the generation quality and inference efficiency of structuredly pruned encoder-decoder language models across abstractive QA, summarization, classification, and instruction-following tasks.
Datasets
- TweetQA — total ?; splits: (unstated)
- XSum — total ?; splits: (unstated)
- SAMSum — total ?; splits: (unstated)
- CNN/DailyMail — total ?; splits: (unstated)
- GLUE/SuperGLUE (RTE, BoolQ, CB) — total ?; splits: (unstated)
- Databricks-dolly-15k — total 15000; splits: train (14000), eval (1000)
- Self-Instruct — total ?; splits: (unstated)
- Vicuna Evaluation — total ?; splits: (unstated)
Metrics
METEOR — range: [0, 1]
- Standard METEOR score measuring alignment between generated and reference text using synonyms, stems, and exact matches. Used for abstractive QA.
ROUGE-L (primary) — range: [0, 1]
- Recall-Oriented Understudy for Gisting Evaluation based on the longest common subsequence. Used for summarization and instruction-following tasks.
Accuracy — range: [0, 1]
- Exact match ratio between predicted and gold class labels for classification tasks (RTE, BoolQ, CB).
Speedup — range: other
- Ratio of baseline model inference latency to pruned model inference latency, measured in wall-clock time on GPU.
Input / output format
Input: Source text, question, or instruction prompt passed to the encoder.
Output: Generated target text or classification label produced by the decoder.
Scoring recipe
def compute_metrics(predictions, golds, base_latency, pruned_latency):
meteor = sum(meteor_score(g, p) for g, p in zip(golds, predictions)) / len(golds)
rouge_l = sum(rouge_l_score(g, p) for g, p in zip(golds, predictions)) / len(golds)
acc = sum(1.0 if g == p else 0.0 for g, p in zip(golds, predictions)) / len(golds)
speedup = base_latency / pruned_latency
return {'METEOR': meteor, 'ROUGE-L': rouge_l, 'Accuracy': acc, 'Speedup': speedup}
Common pitfalls
- The paper reports results on validation sets rather than held-out test sets for all datasets.
- Sparsity is calculated excluding embedding parameters, which differs from standard parameter-counting conventions.
- Speedup is measured as wall-clock latency ratio against the unpruned T5-Base baseline, not theoretical FLOPs reduction.
Evidence (verbatim from paper)
We evaluate the output quality using METEOR (Banerjee and Lavie, 2005) for abstractive question answering and ROUGE (Lin, 2004) for the summarization tasks. The reported results are based on the validation sets of all datasets.
Citation
@misc{ko2023nash,
title={NASH: A Simple Unified Framework of Structured Pruning for Accelerating Encoder-Decoder Language Models},
author={Ko et al. (2023)},
year={2023},
note={arXiv:2310.10054}
}
1---2name: nash-pruning-eval3description: Evaluates the generation quality and inference efficiency of structuredly pruned encoder-decoder language models across abstractive QA, summarization, classification, and instruction-following tasks. Use when the user wants to benchmark on TweetQA, XSum, SAMSum, CNN/DailyMail, GLUE/SuperGLUE (RTE, BoolQ, CB), Databricks-dolly-15k, Self-Instruct, Vicuna Evaluation, or asks about evaluating this task. Reports ROUGE-L.4---56# nash-pruning-eval78> NASH: A Simple Unified Framework of Structured Pruning for Accelerating Encoder-Decoder Language Models — Ko et al. (2023) (arXiv:2310.10054, 2023)910## What this evaluates1112Evaluates the generation quality and inference efficiency of structuredly pruned encoder-decoder language models across abstractive QA, summarization, classification, and instruction-following tasks.1314## Datasets1516- **TweetQA** — total ?; splits: (unstated)17- **XSum** — total ?; splits: (unstated)18- **SAMSum** — total ?; splits: (unstated)19- **CNN/DailyMail** — total ?; splits: (unstated)20- **GLUE/SuperGLUE (RTE, BoolQ, CB)** — total ?; splits: (unstated)21- **Databricks-dolly-15k** — total 15000; splits: train (14000), eval (1000)22- **Self-Instruct** — total ?; splits: (unstated)23- **Vicuna Evaluation** — total ?; splits: (unstated)2425## Metrics2627- `METEOR` — range: [0, 1]28 - Standard METEOR score measuring alignment between generated and reference text using synonyms, stems, and exact matches. Used for abstractive QA.29- `ROUGE-L` **(primary)** — range: [0, 1]30 - Recall-Oriented Understudy for Gisting Evaluation based on the longest common subsequence. Used for summarization and instruction-following tasks.31- `Accuracy` — range: [0, 1]32 - Exact match ratio between predicted and gold class labels for classification tasks (RTE, BoolQ, CB).33- `Speedup` — range: other34 - Ratio of baseline model inference latency to pruned model inference latency, measured in wall-clock time on GPU.3536## Input / output format3738**Input**: Source text, question, or instruction prompt passed to the encoder.3940**Output**: Generated target text or classification label produced by the decoder.4142## Scoring recipe4344```python45def compute_metrics(predictions, golds, base_latency, pruned_latency):46 meteor = sum(meteor_score(g, p) for g, p in zip(golds, predictions)) / len(golds)47 rouge_l = sum(rouge_l_score(g, p) for g, p in zip(golds, predictions)) / len(golds)48 acc = sum(1.0 if g == p else 0.0 for g, p in zip(golds, predictions)) / len(golds)49 speedup = base_latency / pruned_latency50 return {'METEOR': meteor, 'ROUGE-L': rouge_l, 'Accuracy': acc, 'Speedup': speedup}51```5253## Common pitfalls5455- The paper reports results on validation sets rather than held-out test sets for all datasets.56- Sparsity is calculated excluding embedding parameters, which differs from standard parameter-counting conventions.57- Speedup is measured as wall-clock latency ratio against the unpruned T5-Base baseline, not theoretical FLOPs reduction.5859## Evidence (verbatim from paper)6061> We evaluate the output quality using METEOR (Banerjee and Lavie, 2005) for abstractive question answering and ROUGE (Lin, 2004) for the summarization tasks. The reported results are based on the validation sets of all datasets.6263## Citation6465```bibtex66@misc{ko2023nash,67 title={NASH: A Simple Unified Framework of Structured Pruning for Accelerating Encoder-Decoder Language Models},68 author={Ko et al. (2023)},69 year={2023},70 note={arXiv:2310.10054}71}72```7374- arXiv: 2310.10054