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.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/embbert-q-eval6 skill_kind: dataset_eval7 source_arxiv: 2502.100018 bibtex_key: bravin2025embbertq9 confidence: high10---1112# embbert-q-eval1314> EmbBERT-Q: Breaking Memory Barriers in Embedded NLP — Bravin et al. (2025) (arXiv:2502.10001, 2025)1516## What this evaluates1718Evaluates 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.1920## Datasets2122- **TinyNLP** — total ?; splits: train (-1), val (-1), test (-1)23- **GLUE** — total ?; splits: train (-1), val (-1)2425## Metrics2627- `Accuracy` **(primary)** — range: [0, 1]28 - Proportion of correctly predicted class labels out of the total number of instances.29- `GLUE Average Score` **(primary)** — range: [0, 1]30 - 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.3132## Input / output format3334**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).3536**Output**: Discrete class labels for classification tasks, or continuous floating-point scores for regression tasks.3738## Scoring recipe3940```python41def compute_metrics(predictions, gold_labels, task):42 if task == 'STSB':43 return spearman_corr(gold_labels, predictions)44 elif task == 'CoLA':45 return matthews_corrcoef(gold_labels, predictions)46 elif task in ('QQP', 'MRPC'):47 return f1_score(gold_labels, predictions, average='macro')48 else:49 return accuracy(gold_labels, predictions)50```5152## Common pitfalls5354- 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.55- Memory footprint calculations explicitly exclude task-specific output layers, meaning reported sizes (e.g., 781 KB) are lower bounds for actual deployment.56- 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.5758## Evidence (verbatim from paper)5960> 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.6162## Citation6364```bibtex65@misc{bravin2025embbertq,66 title={EmbBERT-Q: Breaking Memory Barriers in Embedded NLP},67 author={Bravin et al. (2025)},68 year={2025},69 note={arXiv:2502.10001}70}71```7273- arXiv: 2502.10001