adamerging-eval
AdaMerging: Adaptive Model Merging for Multi-Task Learning — Yang et al. (2023) (arXiv:2310.02575, 2023)
What this evaluates
Evaluates multi-task model merging methods on image classification tasks by measuring average accuracy across multiple datasets, generalization to unseen tasks, and robustness to image corruptions.
Datasets
- Image Classification Bench (SUN397, Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, DTD) — total ?; splits: test (-1)
Metrics
Avg Acc (primary) — range: percent
- Average accuracy across all evaluated tasks: (1/N) * sum(accuracy_i) for i in tasks.
Input / output format
Input: Pre-trained ViT models fine-tuned on individual tasks (task vectors) and unlabeled test images for coefficient optimization; labeled test images for final evaluation.
Output: Merged model parameters (task vectors weighted by learned coefficients); class predictions for each test image.
Scoring recipe
def compute_avg_acc(predictions, gold_labels, tasks):
accs = []
for task in tasks:
correct = sum(1 for p, g in zip(predictions[task], gold_labels[task]) if p == g)
accs.append(correct / len(gold_labels[task]))
return sum(accs) / len(accs)
Common pitfalls
- The method learns merging coefficients unsupervised on unlabeled test data, so the test set is used during the merging/optimization phase, not just for final evaluation.
- Generalization is tested on completely unseen tasks (e.g., MNIST/EuroSAT or RESISC45/SVHN) that were not included in the merging set.
- Robustness evaluation uses 7 specific image corruptions (Motion Blur, Impulse Noise, etc.) following the ImageNet-C protocol.
Evidence (verbatim from paper)
We report the average accuracy (i.e., Avg Acc) of MTL model on the test set of all tasks as an evaluation metric. ... Following Hendrycks & Dietterich (2019), we created 7 corruption test data, and examples of corrupted images are shown Fig.[6] in Appendix[B]. The results on ViT-B/32 are shown in Tab.[4].
Citation
@misc{yang2023adamerging,
title={AdaMerging: Adaptive Model Merging for Multi-Task Learning},
author={Yang et al. (2023)},
year={2023},
note={arXiv:2310.02575}
}
1---2name: adamerging-eval3description: Evaluates multi-task model merging methods on image classification tasks by measuring average accuracy across multiple datasets, generalization to unseen tasks, and robustness to image corruptions. Use when the user wants to benchmark on Image Classification Bench (SUN397, Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, DTD), or asks about evaluating this task. Reports Avg Acc.4---56# adamerging-eval78> AdaMerging: Adaptive Model Merging for Multi-Task Learning — Yang et al. (2023) (arXiv:2310.02575, 2023)910## What this evaluates1112Evaluates multi-task model merging methods on image classification tasks by measuring average accuracy across multiple datasets, generalization to unseen tasks, and robustness to image corruptions.1314## Datasets1516- **Image Classification Bench (SUN397, Cars, RESISC45, EuroSAT, SVHN, GTSRB, MNIST, DTD)** — total ?; splits: test (-1)1718## Metrics1920- `Avg Acc` **(primary)** — range: percent21 - Average accuracy across all evaluated tasks: (1/N) * sum(accuracy_i) for i in tasks.2223## Input / output format2425**Input**: Pre-trained ViT models fine-tuned on individual tasks (task vectors) and unlabeled test images for coefficient optimization; labeled test images for final evaluation.2627**Output**: Merged model parameters (task vectors weighted by learned coefficients); class predictions for each test image.2829## Scoring recipe3031```python32def compute_avg_acc(predictions, gold_labels, tasks):33 accs = []34 for task in tasks:35 correct = sum(1 for p, g in zip(predictions[task], gold_labels[task]) if p == g)36 accs.append(correct / len(gold_labels[task]))37 return sum(accs) / len(accs)38```3940## Common pitfalls4142- The method learns merging coefficients unsupervised on unlabeled test data, so the test set is used during the merging/optimization phase, not just for final evaluation.43- Generalization is tested on completely unseen tasks (e.g., MNIST/EuroSAT or RESISC45/SVHN) that were not included in the merging set.44- Robustness evaluation uses 7 specific image corruptions (Motion Blur, Impulse Noise, etc.) following the ImageNet-C protocol.4546## Evidence (verbatim from paper)4748> We report the average accuracy (i.e., Avg Acc) of MTL model on the test set of all tasks as an evaluation metric. ... Following Hendrycks & Dietterich (2019), we created 7 corruption test data, and examples of corrupted images are shown Fig.[6] in Appendix[B]. The results on ViT-B/32 are shown in Tab.[4].4950## Citation5152```bibtex53@misc{yang2023adamerging,54 title={AdaMerging: Adaptive Model Merging for Multi-Task Learning},55 author={Yang et al. (2023)},56 year={2023},57 note={arXiv:2310.02575}58}59```6061- arXiv: 2310.02575