An energy-based comparative analysis of common approaches to text classification in the Legal domain
arXiv:2311.01256 · doi:10.5121/csit.2024.140203
Abstract
Most Machine Learning research evaluates the best solutions in terms of performance. However, in the race for the best performing model, many important aspects are often overlooked when, on the contrary, they should be carefully considered. In fact, sometimes the gaps in performance between different approaches are neglectable, whereas factors such as production costs, energy consumption, and carbon footprint must take into consideration. Large Language Models (LLMs) are extensively adopted to address NLP problems in academia and industry. In this work, we present a detailed quantitative comparison of LLM and traditional approaches (e.g. SVM) on the LexGLUE benchmark, which takes into account both performance (standard indices) and alternative metrics such as timing, power consumption and cost, in a word: the carbon-footprint. In our analysis, we considered the prototyping phase (model selection by training-validation-test iterations) and in-production phases separately, since they follow different implementation procedures and also require different resources. The results indicate that very often, the simplest algorithms achieve performance very close to that of large LLMs but with very low power consumption and lower resource demands. The results obtained could suggest companies to include additional evaluations in the choice of Machine Learning (ML) solutions.
Presented at The 4th International Conference on NLP & Text Mining (NLTM 2024), January 27-28 2024, Copenhagen, Denmark - 12 pages, 1 figure, 7 tables
References in corpus (7)
- Machine Learning in Automated Text Categorization
- Deep Learning with Limited Numerical Precision
- To prune, or not to prune: exploring the efficacy of pruning for model compression
- CLAUDETTE: an Automated Detector of Potentially Unfair Clauses in Online Terms of Service
- Quantifying the Carbon Emissions of Machine Learning
- Energy Usage Reports: Environmental awareness as part of algorithmic accountability
- Fast Vocabulary Transfer for Language Model Compression