plm-structural-pruning-eval
Structural Pruning of Pre-trained Language Models via Neural Architecture Search — Klein et al. (2024) (arXiv:2405.02267, 2024)
What this evaluates
Evaluates structural pruning methods for pre-trained language models (BERT-base, RoBERTa-base) across eight text classification tasks. It measures the trade-off between model size (parameter count) and task performance (validation error) to identify Pareto-optimal sub-networks.
Datasets
- eight text classification tasks — total ?; splits: train (-1), val (-1), test (-1)
Metrics
Hypervolume (primary) — range: [0, 4]
- HV(P_f|r) = λ(∪_{y∈P_f}[y, r]), where λ is the M-th dimensional Lebesgue measure. Objectives are first normalized via Quantile normalization to [0,1].
Input / output format
Input: Text classification instances (input text and label) from eight tasks.
Output: Pruned sub-network architectures (binary masks for attention heads, feed-forward units, or layers) with fine-tuned weights, evaluated on validation/test sets.
Scoring recipe
def compute_hypervolume(pareto_set, reference_point=(2,2)):
# 1. Quantile-normalize parameter count and error across all methods/repetitions to [0,1]
# 2. Define reference point r = (2, 2)
# 3. Compute Lebesgue measure of union of hyper-rectangles [y, r] for y in pareto_set
# 4. Return HV value
pass
Common pitfalls
- Hypervolume must be computed on objectives normalized via Quantile normalization, not raw values.
- The reference point is fixed at (2, 2) after normalization, yielding a maximum possible HV of 4, not the standard (1, 1).
- Results are aggregated by averaging ranks across datasets and time steps, not just by final HV values.
Evidence (verbatim from paper)
To quantify the performance of a Pareto set $P_{f}$ , we compute for each Pareto set the Hypervolume (Zitzler et al., 2003) and report the regret, i.e. the difference to the best possible Hypervolume averaged across all repetitions. Given a reference point $\mathbf{r} \in \mathbb{R}^{M}$ , the Hypervolume $HV(P_{f}|\mathbf{r}) = \lambda (\cup_{\mathbf{y} \in P_{f}}[\mathbf{y},\mathbf{r}])$ is defined as the $M$ -th dimensional Lebesgue measure $\lambda$ between the Pareto set $P_{f}$ and the reference point $\mathbf{r}$ (see Figure 4 for an example). To compute the Hypervolume, we first normalize each objective based on all observed values across all methods and repetitions via Quantile normalization. This results in a uniform distribution between $[0,1]$ , and we use $r = (2,2)$ as reference point, which means the highest possible Hypervolume would be 4.
Citation
@misc{klein2024structuralpruning,
title={Structural Pruning of Pre-trained Language Models via Neural Architecture Search},
author={Klein et al. (2024)},
year={2024},
note={arXiv:2405.02267}
}
1---2name: plm-structural-pruning-eval3description: Evaluates structural pruning methods for pre-trained language models (BERT-base, RoBERTa-base) across eight text classification tasks. It measures the trade-off between model size (parameter count) and task performance (validation error) to identify Pareto-optimal sub-networks. Use when the user wants to benchmark on eight text classification tasks, or asks about evaluating this task. Reports Hypervolume.4---56# plm-structural-pruning-eval78> Structural Pruning of Pre-trained Language Models via Neural Architecture Search — Klein et al. (2024) (arXiv:2405.02267, 2024)910## What this evaluates1112Evaluates structural pruning methods for pre-trained language models (BERT-base, RoBERTa-base) across eight text classification tasks. It measures the trade-off between model size (parameter count) and task performance (validation error) to identify Pareto-optimal sub-networks.1314## Datasets1516- **eight text classification tasks** — total ?; splits: train (-1), val (-1), test (-1)1718## Metrics1920- `Hypervolume` **(primary)** — range: [0, 4]21 - HV(P_f|r) = λ(∪_{y∈P_f}[y, r]), where λ is the M-th dimensional Lebesgue measure. Objectives are first normalized via Quantile normalization to [0,1].2223## Input / output format2425**Input**: Text classification instances (input text and label) from eight tasks.2627**Output**: Pruned sub-network architectures (binary masks for attention heads, feed-forward units, or layers) with fine-tuned weights, evaluated on validation/test sets.2829## Scoring recipe3031```python32def compute_hypervolume(pareto_set, reference_point=(2,2)):33 # 1. Quantile-normalize parameter count and error across all methods/repetitions to [0,1]34 # 2. Define reference point r = (2, 2)35 # 3. Compute Lebesgue measure of union of hyper-rectangles [y, r] for y in pareto_set36 # 4. Return HV value37 pass38```3940## Common pitfalls4142- Hypervolume must be computed on objectives normalized via Quantile normalization, not raw values.43- The reference point is fixed at (2, 2) after normalization, yielding a maximum possible HV of 4, not the standard (1, 1).44- Results are aggregated by averaging ranks across datasets and time steps, not just by final HV values.4546## Evidence (verbatim from paper)4748> To quantify the performance of a Pareto set $P_{f}$ , we compute for each Pareto set the Hypervolume (Zitzler et al., 2003) and report the regret, i.e. the difference to the best possible Hypervolume averaged across all repetitions. Given a reference point $\mathbf{r} \in \mathbb{R}^{M}$ , the Hypervolume $HV(P_{f}|\mathbf{r}) = \lambda (\cup_{\mathbf{y} \in P_{f}}[\mathbf{y},\mathbf{r}])$ is defined as the $M$ -th dimensional Lebesgue measure $\lambda$ between the Pareto set $P_{f}$ and the reference point $\mathbf{r}$ (see Figure 4 for an example). To compute the Hypervolume, we first normalize each objective based on all observed values across all methods and repetitions via Quantile normalization. This results in a uniform distribution between $[0,1]$ , and we use $r = (2,2)$ as reference point, which means the highest possible Hypervolume would be 4.4950## Citation5152```bibtex53@misc{klein2024structuralpruning,54 title={Structural Pruning of Pre-trained Language Models via Neural Architecture Search},55 author={Klein et al. (2024)},56 year={2024},57 note={arXiv:2405.02267}58}59```6061- arXiv: 2405.02267