embbert-q-eval
EmbBERT-Q: Breaking Memory Barriers in Embedded NLP — Bravin et al. (2025) (arXiv:2502.10001, 2025)
What this evaluates
Evaluates tiny language models and baselines on resource-constrained embedded devices by measuring performance across classification and regression tasks under strict memory limits (≤2 MB). It probes the trade-off between model compression, hardware compatibility, and NLP task accuracy.
Datasets
- TinyNLP — total ?; splits: train (-1), val (-1), test (-1)
- GLUE — total ?; splits: train (-1), val (-1)
Metrics
Accuracy (primary) — range: [0, 1]
- Proportion of correctly predicted class labels out of the total number of instances.
GLUE Average Score (primary) — range: [0, 1]
- Task-specific metrics averaged across all GLUE datasets following the standard protocol: SCC for STSB, MCC for CoLA, F1 for QQP/MRPC, and Accuracy for remaining tasks.
Input / output format
Input: Tokenized text sequences (single sentences or sentence pairs) using a custom BPE tokenizer, typically truncated or padded to a fixed maximum length (e.g., 256 or 512 tokens).
Output: Discrete class labels for classification tasks, or continuous floating-point scores for regression tasks.
Scoring recipe
def compute_metrics(predictions, gold_labels, task):
if task == 'STSB':
return spearman_corr(gold_labels, predictions)
elif task == 'CoLA':
return matthews_corrcoef(gold_labels, predictions)
elif task in ('QQP', 'MRPC'):
return f1_score(gold_labels, predictions, average='macro')
else:
return accuracy(gold_labels, predictions)
Common pitfalls
- GLUE official test labels are not publicly released; the paper uses the validation set as the test set, which may yield higher scores than official test evaluations.
- Memory footprint calculations explicitly exclude task-specific output layers, meaning reported sizes (e.g., 781 KB) are lower bounds for actual deployment.
- Datasets without official splits are randomly partitioned (90/10 train/test, then 10% of train for val), introducing variance that requires multiple random seeds (5 runs) to mitigate.
Evidence (verbatim from paper)
For the sake of simplicity, in the experimental results reported in Sec. 5, as evaluation metrics we focus on Accuracy for the TinyNLP benchmark, and on the metric used for computing the average Score in each dataset in the GLUE benchmark: SCC for STSB, MCC for CoLA, F1 score for QQP and MRPC, Accuracy for the remaining GLUE tasks.
Citation
@misc{bravin2025embbertq,
title={EmbBERT-Q: Breaking Memory Barriers in Embedded NLP},
author={Bravin et al. (2025)},
year={2025},
note={arXiv:2502.10001}
}
1---2name: embbert-q-eval3description: Evaluates tiny language models and baselines on resource-constrained embedded devices by measuring performance across classification and regression tasks under strict memory limits (≤2 MB). It probes the trade-off between model compression, hardware compatibility, and NLP task accuracy. Use when the user wants to benchmark on TinyNLP, GLUE, or asks about evaluating this task. Reports Accuracy, GLUE Average Score.4---56# embbert-q-eval78> EmbBERT-Q: Breaking Memory Barriers in Embedded NLP — Bravin et al. (2025) (arXiv:2502.10001, 2025)910## What this evaluates1112Evaluates tiny language models and baselines on resource-constrained embedded devices by measuring performance across classification and regression tasks under strict memory limits (≤2 MB). It probes the trade-off between model compression, hardware compatibility, and NLP task accuracy.1314## Datasets1516- **TinyNLP** — total ?; splits: train (-1), val (-1), test (-1)17- **GLUE** — total ?; splits: train (-1), val (-1)1819## Metrics2021- `Accuracy` **(primary)** — range: [0, 1]22 - Proportion of correctly predicted class labels out of the total number of instances.23- `GLUE Average Score` **(primary)** — range: [0, 1]24 - Task-specific metrics averaged across all GLUE datasets following the standard protocol: SCC for STSB, MCC for CoLA, F1 for QQP/MRPC, and Accuracy for remaining tasks.2526## Input / output format2728**Input**: Tokenized text sequences (single sentences or sentence pairs) using a custom BPE tokenizer, typically truncated or padded to a fixed maximum length (e.g., 256 or 512 tokens).2930**Output**: Discrete class labels for classification tasks, or continuous floating-point scores for regression tasks.3132## Scoring recipe3334```python35def compute_metrics(predictions, gold_labels, task):36 if task == 'STSB':37 return spearman_corr(gold_labels, predictions)38 elif task == 'CoLA':39 return matthews_corrcoef(gold_labels, predictions)40 elif task in ('QQP', 'MRPC'):41 return f1_score(gold_labels, predictions, average='macro')42 else:43 return accuracy(gold_labels, predictions)44```4546## Common pitfalls4748- GLUE official test labels are not publicly released; the paper uses the validation set as the test set, which may yield higher scores than official test evaluations.49- Memory footprint calculations explicitly exclude task-specific output layers, meaning reported sizes (e.g., 781 KB) are lower bounds for actual deployment.50- Datasets without official splits are randomly partitioned (90/10 train/test, then 10% of train for val), introducing variance that requires multiple random seeds (5 runs) to mitigate.5152## Evidence (verbatim from paper)5354> For the sake of simplicity, in the experimental results reported in Sec. 5, as evaluation metrics we focus on Accuracy for the TinyNLP benchmark, and on the metric used for computing the average Score in each dataset in the GLUE benchmark: SCC for STSB, MCC for CoLA, F1 score for QQP and MRPC, Accuracy for the remaining GLUE tasks.5556## Citation5758```bibtex59@misc{bravin2025embbertq,60 title={EmbBERT-Q: Breaking Memory Barriers in Embedded NLP},61 author={Bravin et al. (2025)},62 year={2025},63 note={arXiv:2502.10001}64}65```6667- arXiv: 2502.10001