An energy-based comparative analysis of common approaches to text classification in the Legal domain

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Gultekin, Sinan, Globo, Achille, Zugarini, Andrea, Ernandes, Marco, Rigutini, Leonardo
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914665672474624
author Gultekin, Sinan
Globo, Achille
Zugarini, Andrea
Ernandes, Marco
Rigutini, Leonardo
author_facet Gultekin, Sinan
Globo, Achille
Zugarini, Andrea
Ernandes, Marco
Rigutini, Leonardo
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2311_01256
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle An energy-based comparative analysis of common approaches to text classification in the Legal domain
Gultekin, Sinan
Globo, Achille
Zugarini, Andrea
Ernandes, Marco
Rigutini, Leonardo
Computation and Language
Artificial Intelligence
Machine Learning
Performance
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.
title An energy-based comparative analysis of common approaches to text classification in the Legal domain
topic Computation and Language
Artificial Intelligence
Machine Learning
Performance
url https://arxiv.org/abs/2311.01256