Abstract
Traditional machine learning leaderboards often prioritize a single metric—usually accuracy—failing to account for real-world constraints like latency, cost, and robustness. This paper introduces the Ludwig Benchmarking Toolkit (LBT), an open-source framework designed for standardized, multi-objective benchmarking. By leveraging a declarative approach, LBT allows researchers to conduct fair "apples-to-apples" comparisons across diverse architectures and datasets. We demonstrate LBT's utility through a large-scale study of 1,260 models, uncovering critical insights into the trade-offs between model performance, convergence speed, and adversarial vulnerability.
Introduction
Standard machine learning leaderboards (e.g., GLUE, ImageNet) typically rank models based on average accuracy. However, this "one-size-fits-all" approach is often insufficient for industry engineers concerned with inference latency or researchers focused on model robustness. Furthermore, leaderboard results are frequently confounded by varying compute budgets and hyperparameter tuning strategies. It is often unclear if a model's success stems from its architecture or simply superior optimization. LBT addresses these issues by providing a standardized pipeline that allows users to define their own metrics and constraints to find the optimal model for specific use cases.
The Ludwig Benchmarking Toolkit
LBT is built upon the declarative deep learning framework, Ludwig. Instead of writing custom training loops, users configure experiments via YAML files that specify tasks, architectures, and hyperparameter search spaces.
Core Features
- Standardization: LBT enforces uniform training pipelines and data splitting. It utilizes Ray Tune and Scikit-Optimize to ensure all models operate under the same hyperparameter optimization budget.
- Multi-Objective Evaluation: The toolkit automatically tracks non-traditional metrics, including inference latency, training speed, fiscal cost, and carbon footprint.
- Deep Analysis Integrations: LBT integrates with TextAttack for adversarial robustness testing and Robustness Gym for fine-grained performance analysis on specific data slices (e.g., gender bias or text length).
Experimental Setup
To validate the toolkit, we conducted a comprehensive text classification study using nine diverse datasets: Hate Speech (HS), AGNews (AG), DBPedia (DBP), Yelp Review Polarity (YR), SST5, MD Gender Bias (MGB), Irony Classification (IR), GoEmotions (GE), and Social Bias Frames (SBF). We evaluated seven architectures, including RNNs, CNNs, BERT, RoBERTa, T5, ELECTRA, and DistilBERT, totaling 1,260 trained models.
Analysis and Key Insights
Our controlled benchmarking revealed several findings that challenge common machine learning assumptions:
- Latency vs. Size: Inference latency does not scale strictly with model size. BERT achieved higher performance than RoBERTa and T5-small while maintaining lower latency. DistilBERT emerged as the optimal balance for the speed-performance tradeoff.
- Robustness Paradox: Pretraining does not guarantee robustness. While BERT and RoBERTa are high performers, BERT models were highly susceptible to adversarial attacks. Conversely, simple RNNs trained from scratch often showed greater resilience to input perturbations.
- Convergence Variability: Pretrained models do not always converge faster. In our tests, T5 and DistilBERT were among the slowest to reach peak performance.
- Model Scaling: Larger, pretrained models consistently outperformed smaller models across all dataset sizes, contradicting the intuition that simpler models are preferable for small datasets to avoid overfitting.
Results and Conclusion
LBT successfully replicated standard leaderboard results under controlled conditions, confirming RoBERTa-base and BERT-base as top performers for accuracy. However, the multi-objective analysis provided a more nuanced view: BERT showed high vulnerability to DeepWordBug and PWWS attacks, while RoBERTa remained notably robust. We also observed that the highest variance in model performance occurs on midsize datasets, rather than the smallest ones.
While LBT currently focuses on supervised learning and requires some effort to add unsupported architectures, it represents a significant step toward personalized benchmarking. Future work will expand the toolkit to include generative tasks and improved dataset curation tools, further empowering users to evaluate models based on their unique values and constraints.
Summary updated