Retrieval-Augmented Detection of Potentially Abusive Clauses in Chilean Terms of Service

Christoffer Loeffler, Tomás Rey Pizarro, Daniel Ignacio Miranda Vásquez, Andrea Martínez Freile
5/25/2026
cs.LGcs.AIcs.CL
rag

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

Online Terms of Service often function as contracts of adhesion, creating asymmetries that may expose consumers to potentially abusive clauses. In Chile, assessing such clauses is legally challenging because some provisions clearly violate mandatory consumer law, whereas others depend on broader standards such as good faith and contractual imbalance.

Show full abstract

We present a retrieval-augmented generation framework for the automated detection and classification of potentially abusive clauses in Chilean Terms of Service. Designed for local execution, it combines efficient clause detection, hybrid dense--sparse retrieval, reranking, and prompt augmentation to support medium-sized open-weight language models. We also introduce the Chilean Abusive Terms of Service Extended corpus, comprising 100 contracts and 10,029 annotated clauses in 24 legally grounded categories spanning illegal, dark, and gray clauses. Experiments comparing commercial and open-weight language models, fine-tuned encoders, and traditional baselines show that retrieval-augmented prompting substantially improves performance and enables local models to approach larger cloud-based systems at lower computational and token cost. The study also contributes a refined legal annotation scheme and a practical design for AI-assisted consumer contract review.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{loeffler2026retrievalaugmented,
  title  = {Retrieval-Augmented Detection of Potentially Abusive Clauses in Chilean Terms of Service},
  author = {Christoffer Loeffler and Tomás Rey Pizarro and Daniel Ignacio Miranda Vásquez and Andrea Martínez Freile},
  year   = {2026},
  eprint = {2605.26019},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.26019v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.26019.svg)](https://codeofpaper.com/paper/2605.26019)

Discussion