paper-with-me

홈 › Papers

Processing Long Legal Documents with Pre-trained Transformers: Modding LegalBERT and Longformer

2022-11-02 · Dimitris Mamakas, Petros Tsotsi, Ion Androutsopoulos, Ilias Chalkidis

Pre-trained Transformers currently dominate most NLP tasks. They impose, however, limits on the maximum input length (512 sub-words in BERT), which are too restrictive in the legal domain. Even sparse-attention models, such as Longformer and BigBird, which increase the maximum input length to 4,096 sub-words, severely truncate texts in three of the six datasets of LexGLUE. Simpler linear classifiers with TF-IDF features can handle texts of any length, require far less resources to train and deploy, but are usually outperformed by pre-trained Transformers. We explore two directions to cope with long legal texts: (i) modifying a Longformer warm-started from LegalBERT to handle even longer texts (up to 8,192 sub-words), and (ii) modifying LegalBERT to use TF-IDF representations. The first approach is the best in terms of performance, surpassing a hierarchical version of LegalBERT, which was the previous state of the art in LexGLUE. The second approach leads to computationally more efficient models at the expense of lower performance, but the resulting models still outperform overall a linear SVM with TF-IDF features in long legal document classification.

📄 PDF Abstract BibTeX arXiv:2211.00974

Code (0)

등록된 구현이 없습니다.

Tasks

Document Classification

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
How do I make a claim with Expedia?*Make FastClaimService How do I make a claim with Expedia? To make a claim with Expedia, contact their support team at +1(888) (829) (0881) OR +1(805) (330) (4056), or use the Help Center to submit…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
How do I complain to Expedia?*ComplainByAgent How do I complain to Expedia? To make a claim on Expedia, call +1(888) (829) (0881) OR +1(805) (330) (4056), or use their Help Center to submit your issue with full booking…
Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention Dropout Attention Dropout is a type of dropout used in attention-based architectures, where elements are randomly dropped out of the…

Similar Papers 제목 키워드 기반

Classifying long legal documents using short random chunks

2025-12-31 · Luis Adrián Cabrera-Diego arxiv

Classifying legal documents is a challenge, besides their specialized vocabulary, sometimes they can be very long. This means that feeding full documents to a Transformers-based models for classification might be impossi…

Lawformer: A Pre-trained Language Model for Chinese Legal Long Documents

2021-05-09 · Chaojun Xiao, Xueyu Hu, Zhiyuan Liu, Cunchao Tu 외

Legal artificial intelligence (LegalAI) aims to benefit legal systems with the technology of artificial intelligence, especially natural language processing (NLP). Recently, inspired by the success of pre-trained languag…

Language ModelingLanguage ModellingQuestion AnsweringReading Comprehension+1

Analysing similarities between legal court documents using natural language processing approaches based on Transformers

2022-04-14 · Raphael Souza de Oliveira, Erick Giovani Sperandio Nascimento

Recent advances in Artificial Intelligence (AI) have leveraged promising results in solving complex problems in the area of Natural Language Processing (NLP), being an important tool to help in the expeditious resolution…

Effectively Leveraging BERT for Legal Document Classification

2021-11-01 · EMNLP (NLLP) 2021 11 · Nut Limsopatham

Bidirectional Encoder Representations from Transformers (BERT) has achieved state-of-the-art performances on several text classification tasks, such as GLUE and sentiment analysis. Recent work in the legal domain started…

Binary ClassificationClassificationDocument ClassificationSentiment Analysis+2

LegalRelectra: Mixed-domain Language Modeling for Long-range Legal Text Comprehension

2022-12-16 · Wenyue Hua, Yuchen Zhang, Zhe Chen, Josie Li 외

The application of Natural Language Processing (NLP) to specialized domains, such as the law, has recently received a surge of interest. As many legal services rely on processing and analyzing large collections of docume…

Language ModelingLanguage ModellingReading Comprehension