The Law of Large Documents: Understanding the Structure of Legal Contracts Using Visual Cues
Not on the map. Why?
Abstract (arXiv)
Large, pre-trained transformer models like BERT have achieved state-of-the-art results on document understanding tasks, but most implementations can only consider 512 tokens at a time. For many real-world applications, documents can be much longer, and the segmentation strategies typically used on longer documents miss out on document structure and contextual information, hurting their results on downstream tasks. In our work on legal agreements, we find that visual cues such as layout, style, and placement of text in a document are strong features that are crucial to achieving an acceptable level of accuracy on long documents. We measure the impact of incorporating such visual cues, obtained via computer vision methods, on the accuracy of document understanding tasks including document segmentation, entity extraction, and attribute classification. Our method of segmenting documents based on structural metadata out-performs existing methods on four long-document understanding tasks as measured on the Contract Understanding Atticus Dataset.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 12 of its 20 references that are in the map. First posted on arXiv 16 Jul 2021.
Builds on
12 of 20 references.
References · 12
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2018Neural Network Acceptability Judgmentscited by 952
- 2019Predicting the Type and Target of Offensive Posts in Social Mediacited by 268
- 2021CUAD: An Expert-Annotated NLP Dataset for Legal Contract Reviewcited by 232
- 2019Large-Scale Multi-Label Text Classification on EU Legislationcited by 104
- 2018Chargrid: Towards Understanding 2D Documentscited by 100
- 2015A Neural Network Approach to Context-Sensitive Generation of Conversational Responsescited by 98
- 2020Recurrent Chunking Mechanisms for Long-Text Machine Reading Comprehensioncited by 29
- 2016Hierarchical Question Answering for Long Documentscited by 21
- 2019BERT Goes to Law School: Quantifying the Competitive Advantage of Access to Large Legal Corpora in Contract Understandingcited by 16
- 2019Long-length Legal Document Classificationcited by 10
- 2020OCR Graph Features for Manipulation Detection in Documentscited by 2
Built on by
Citing papers per year: 2022: 3; 2023: 0; 2024: 0; 2025: 1.
4 papers.
- 2022Pile of Law: Learning Responsible Data Filtering from the Law and a 256GB Open-Source Legal Datasetcited by 113
- 2022ConReader: Exploring Implicit Relations in Contracts for Contract Clause Extractioncited by 5
- 2025The Hidden Structure -- Improving Legal Document Understanding Through Explicit Text Formattingcited by 5
- 2022DeeperDive: The Unreasonable Effectiveness of Weak Supervision in Document Understanding A Case Study in Collaboration with UiPath Inccited by 2
- 2025The Hidden Structure -- Improving Legal Document Understanding Through Explicit Text Formatting19 May 2025
- 2022ConReader: Exploring Implicit Relations in Contracts for Contract Clause Extraction17 Oct 2022
- 2022DeeperDive: The Unreasonable Effectiveness of Weak Supervision in Document Understanding A Case Study in Collaboration with UiPath Inc17 Aug 2022
- 2022Pile of Law: Learning Responsible Data Filtering from the Law and a 256GB Open-Source Legal Dataset1 Jul 2022