Introduction
While large language models (LLMs) excel at simple classification tasks, they often struggle with "expert-level" work requiring abstract reasoning and specialized domain knowledge. This research investigates whether LLMs can handle tasks that are difficult even for highly trained humans, specifically focusing on the categorization of legal reasoning styles in judicial opinions.
Legal historians typically categorize judicial opinions into distinct "modes":
- Formalism: Treating the law as a closed, mechanical system of rules, screening off political or social choices.
- Grand Style: Viewing the law as an evolving enterprise that considers social, political, and economic consequences to reach decisions that make sense on their face.
Distinguishing between these styles requires understanding the underlying philosophy of an argument rather than just identifying keywords. This paper tests the limits of LLMs at the "edge of human agreement" in this complex domain.
Methods
The researchers evaluated two primary approaches across various model architectures:
- In-Context Learning (Prompting): Models like GPT-4, FLAN-T5, and Llama-2 were tested using descriptions (definitions), few-shot examples, and Chain-of-Thought (CoT) strategies based on human decision charts.
- Fine-tuning: Smaller, specialized models (BERT, DistilBERT, LEGAL-BERT) and sequence-to-sequence models (T5) were trained directly on a labeled dataset.
- Classification Strategies: The study compared multi-class classification against nested binary classification (identifying the presence of legal reasoning before determining the type).
Datasets
The study utilized a novel dataset derived from 15,860 U.S. Supreme Court opinions (1870–2014) from the Harvard Caselaw Access Project. A team of upper-year law students annotated 2,748 paragraphs. The inherent difficulty of the task was reflected in the human inter-rater reliability (Krippendorff’s alpha), which reached only 0.63, marking the "edge of agreement."
Key Insights and Ideas
- Prompting is not a Panacea: Even when provided with the exact logic used by law students, GPT-4 performed significantly worse than fine-tuned models, often failing to grasp abstract latent reasoning.
- In-Domain Pre-training Wins: LEGAL-BERT, pre-trained on legal corpora, consistently outperformed general-purpose models. This suggests that domain-specific linguistic knowledge is a prerequisite for complex reasoning.
- Historical Validation: By applying the best-performing model to 140 years of SCOTUS history, the authors quantitatively recovered famous shifts in judicial philosophy, such as the rise of formalism in the late 19th century and the 1937 "judicial revolution."
- Human Expertise as a Bottleneck: For high-value specialized tasks, LLMs serve better as "amplifiers" of expert labels via fine-tuning rather than replacements for experts via prompting.
Key Results
Fine-tuned models significantly outperformed in-context learning approaches. Specifically, LEGAL-BERT achieved a Macro F1 of 0.70, nearly matching human agreement levels. In contrast, GPT-4’s performance was much lower, with Macro F1 scores ranging from 0.22 to 0.45 depending on the prompting strategy.
Models struggled most with the "Formal" class, which was the rarest in the dataset (11%). However, the model's longitudinal predictions aligned well with qualitative historical accounts, showing a sharp rise in formalism during the 1980s.
Limitations and Future Work
The "ground truth" in legal reasoning is inherently subjective and interpretive. The models are essentially learning a specific school of historical thought rather than objective facts. While the authors used human codebooks for prompting, future work could explore LLM-optimized prompts or larger context windows to see if full-opinion context improves the discernment of overarching judicial philosophies.
Summary updated