Unfair clause detection is an extremely useful AI application for consumer protection. Artificial intelligence has recently been successful in building systems capable to automatically detect unfair clauses in Terms of Service, and also to identify their unfairness categories. Since Large Language Models (LLMs) are nowadays bringing a revolution to the field of artificial intelligence, and in particular to natural language processing and understanding, in this paper we compare several different prompt strategies for LLMs with more traditional BERT-based fine-tuned models. Our extensive experimental evaluation aims to investigate whether it is worth using LLMs also for this challenging domain-specific task.

Panarelli, M., Galassi, A., Lagioia, F., Liepina, R., Lippi, M., Pałka, P., et al. (2026). Is It Worth Using LLMs for Unfair Clause Detection in Terms of Service?. New York : ACM- Association for Computing Machinery [10.1145/3769126.3769218].

Is It Worth Using LLMs for Unfair Clause Detection in Terms of Service?

Andrea Galassi
;
Francesca Lagioia
;
Ruta Liepina;Marco Lippi;Giovanni Sartor
2026

Abstract

Unfair clause detection is an extremely useful AI application for consumer protection. Artificial intelligence has recently been successful in building systems capable to automatically detect unfair clauses in Terms of Service, and also to identify their unfairness categories. Since Large Language Models (LLMs) are nowadays bringing a revolution to the field of artificial intelligence, and in particular to natural language processing and understanding, in this paper we compare several different prompt strategies for LLMs with more traditional BERT-based fine-tuned models. Our extensive experimental evaluation aims to investigate whether it is worth using LLMs also for this challenging domain-specific task.
2026
ICAIL '25: Proceedings of the Twentieth International Conference on Artificial Intelligence and Law
139
149
Panarelli, M., Galassi, A., Lagioia, F., Liepina, R., Lippi, M., Pałka, P., et al. (2026). Is It Worth Using LLMs for Unfair Clause Detection in Terms of Service?. New York : ACM- Association for Computing Machinery [10.1145/3769126.3769218].
Panarelli, Marco; Galassi, Andrea; Lagioia, Francesca; Liepina, Ruta; Lippi, Marco; Pałka, Przemysław; Sartor, Giovanni
File in questo prodotto:
File Dimensione Formato  
3769126.3769218.pdf

accesso aperto

Tipo: Versione (PDF) editoriale / Version Of Record
Licenza: Licenza per Accesso Aperto. Creative Commons Attribuzione (CCBY)
Dimensione 638.1 kB
Formato Adobe PDF
638.1 kB Adobe PDF Visualizza/Apri

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11585/1033342
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 1
  • ???jsp.display-item.citation.isi??? ND
social impact