ftc-ensemble-eval
Ensembling Finetuned Language Models for Text Classification — Pineda Arango et al. (2024) (arXiv:2410.19889, 2024)
What this evaluates
Evaluates whether post-hoc ensembling strategies (e.g., greedy selection, top-N, model averaging) improve classification accuracy and uncertainty calibration over single fine-tuned language models. It probes the robustness of combining multiple finetuned classifiers across varying training data sizes (10% vs 100%).
Datasets
- DBpedia — total ?; splits: train (-1), val (-1), test (-1)
- News — total ?; splits: train (-1), val (-1), test (-1)
- SetFit — total ?; splits: train (-1), val (-1), test (-1)
- SST-2 — total ?; splits: train (-1), val (-1), test (-1)
- Tweet — total ?; splits: train (-1), val (-1), test (-1)
- IMDB — total ?; splits: train (-1), val (-1), test (-1)
Metrics
classification error (primary) — range: [0, 1]
- 1 minus accuracy; the fraction of test instances where the ensemble's predicted class does not match the ground truth label.
negative log-likelihood (NLL) — range: other
- Mean negative log probability of the true class across the test set: -1/N * sum(log(p(y_i|x_i))). Used to assess uncertainty calibration and robustness.
Input / output format
Input: Text classification instances (input text and ground truth label) from six benchmark datasets, evaluated under two training data regimes (10% and 100% of the available training split).
Output: A final predicted class label and associated class probabilities for each test instance, derived by combining predictions from five fine-tuned language models using a specified ensemble strategy (e.g., greedy selection, top-N, model averaging).
Scoring recipe
def compute_metrics(ensemble_probs, gold_labels):
preds = np.argmax(ensemble_probs, axis=1)
error = 1.0 - np.mean(preds == gold_labels)
nll = -np.mean(np.log(ensemble_probs[np.arange(len(gold_labels)), gold_labels] + 1e-12))
return error, nll
Common pitfalls
- The ensemble selection/weighting is optimized on the validation split, but all reported metrics must be computed strictly on the held-out test split.
- Larger ensembles (N=50) do not consistently outperform smaller ones (N=5); performance gains are mixed for Top-50 and Random-50 strategies.
- Models are finetuned on either 10% or 100% of the training data, which drastically changes the base performance and ensemble dynamics.
Evidence (verbatim from paper)
We measure the negative log-likelihood (NLL) and the classification error on the test data, while we use the validation split for training the ensemble.
Citation
@misc{pinedaarango2024ensembling,
title={Ensembling Finetuned Language Models for Text Classification},
author={Pineda Arango et al. (2024)},
year={2024},
note={arXiv:2410.19889}
}
1---2name: ftc-ensemble-eval3description: Evaluates whether post-hoc ensembling strategies (e.g., greedy selection, top-N, model averaging) improve classification accuracy and uncertainty calibration over single fine-tuned language models. It probes the robustness of combining multiple finetuned classifiers across varying training data sizes (10% vs 100%). Use when the user wants to benchmark on DBpedia, News, SetFit, SST-2, Tweet, IMDB, or asks about evaluating this task. Reports classification error.4metadata:5 source: https://skillmd.com/skills/qhjqhj00/ftc-ensemble-eval6 skill_kind: dataset_eval7 source_arxiv: 2410.198898 bibtex_key: pinedaarango2024ensembling9 confidence: high10---1112# ftc-ensemble-eval1314> Ensembling Finetuned Language Models for Text Classification — Pineda Arango et al. (2024) (arXiv:2410.19889, 2024)1516## What this evaluates1718Evaluates whether post-hoc ensembling strategies (e.g., greedy selection, top-N, model averaging) improve classification accuracy and uncertainty calibration over single fine-tuned language models. It probes the robustness of combining multiple finetuned classifiers across varying training data sizes (10% vs 100%).1920## Datasets2122- **DBpedia** — total ?; splits: train (-1), val (-1), test (-1)23- **News** — total ?; splits: train (-1), val (-1), test (-1)24- **SetFit** — total ?; splits: train (-1), val (-1), test (-1)25- **SST-2** — total ?; splits: train (-1), val (-1), test (-1)26- **Tweet** — total ?; splits: train (-1), val (-1), test (-1)27- **IMDB** — total ?; splits: train (-1), val (-1), test (-1)2829## Metrics3031- `classification error` **(primary)** — range: [0, 1]32 - 1 minus accuracy; the fraction of test instances where the ensemble's predicted class does not match the ground truth label.33- `negative log-likelihood (NLL)` — range: other34 - Mean negative log probability of the true class across the test set: -1/N * sum(log(p(y_i|x_i))). Used to assess uncertainty calibration and robustness.3536## Input / output format3738**Input**: Text classification instances (input text and ground truth label) from six benchmark datasets, evaluated under two training data regimes (10% and 100% of the available training split).3940**Output**: A final predicted class label and associated class probabilities for each test instance, derived by combining predictions from five fine-tuned language models using a specified ensemble strategy (e.g., greedy selection, top-N, model averaging).4142## Scoring recipe4344```python45def compute_metrics(ensemble_probs, gold_labels):46 preds = np.argmax(ensemble_probs, axis=1)47 error = 1.0 - np.mean(preds == gold_labels)48 nll = -np.mean(np.log(ensemble_probs[np.arange(len(gold_labels)), gold_labels] + 1e-12))49 return error, nll50```5152## Common pitfalls5354- The ensemble selection/weighting is optimized on the validation split, but all reported metrics must be computed strictly on the held-out test split.55- Larger ensembles (N=50) do not consistently outperform smaller ones (N=5); performance gains are mixed for Top-50 and Random-50 strategies.56- Models are finetuned on either 10% or 100% of the training data, which drastically changes the base performance and ensemble dynamics.5758## Evidence (verbatim from paper)5960> We measure the negative log-likelihood (NLL) and the classification error on the test data, while we use the validation split for training the ensemble.6162## Citation6364```bibtex65@misc{pinedaarango2024ensembling,66 title={Ensembling Finetuned Language Models for Text Classification},67 author={Pineda Arango et al. (2024)},68 year={2024},69 note={arXiv:2410.19889}70}71```7273- arXiv: 2410.19889