Abstract
Information extraction and question answering have the potential to introduce a new paradigm for how machine learning is applied to criminal law. Existing approaches generally use tabular data for predictive metrics. An alternative approach is needed for matters of equitable justice, where individuals are judged on a case-by-case basis, in a process involving verbal or written discussion and interpretation of case factors. Such discussions are individualized, but they nonetheless rely on underlying facts. Information extraction can play an important role in surfacing these facts, which are still important to understand. We analyze unsupervised, weakly supervised, and pre-trained models' ability to extract such factual information from the free-form dialogue of California parole hearings. With a few exceptions, most F1 scores are below 0.85. We use this opportunity to highlight some opportunities for further research for information extraction and question answering. We encourage new developments in NLP to enable analysis and review of legal cases to be done in a post-hoc, not predictive, manner.
Introduction
Machine learning applications in the criminal justice system have historically focused on "codified justice"—the use of tabular data to predict recidivism or calculate risk scores. However, researchers from Stanford University argue this approach often overlooks "equitable justice," which relies on human discretion and a nuanced understanding of an individual's unique circumstances. In California, parole hearings provide a rich source of such individualized data, yet the facts are often buried within transcripts that can exceed 50 pages (~20,000 words).
Because these documents are too long for manual review at scale, critical information remains inaccessible for systemic analysis. This research investigates whether Natural Language Processing (NLP) can automate the extraction of these "case factors" to enable post-hoc analysis, allowing stakeholders to identify biases or outliers without compromising the autonomy of human decision-makers.
Methodology
The study evaluates three distinct families of NLP models to extract 11 specific case factors, ranging from education levels to participation in rehabilitative programming:
- Weakly Supervised Models: Utilizing Snorkel and WSLF (Weakly Supervised Labeling Functions), researchers employed programmatic rules (e.g., regex or keyword searches) to generate noisy labels, which the models then weighted to produce final estimates.
- Pre-trained Question Answering (QA): The researchers tested DistilBERT (QA1) and Longformer (QA2). The Longformer was specifically chosen for its ability to handle context windows up to 4,096 tokens, addressing the extreme length of legal transcripts.
- Task-Specific Fine-Tuning (Task-FT): A base BERT model was fine-tuned on parole text, followed by training a classifier layer on labels generated via weak supervision.
Dataset and Data Labeling
The study utilized a comprehensive dataset of 35,105 parole hearing transcripts from California (2007–2019). To establish a ground truth, a team of 11 research assistants manually labeled 827 transcripts. This manual process was intensive, requiring approximately one hour per transcript. The final study focused on 11 key factors where human inter-rater reliability was sufficiently high.
Results and Analysis
Performance was evaluated using F1 scores, with a target threshold of 0.80–0.85 considered necessary for meaningful downstream research. As shown in the results table, most models struggled to meet this benchmark across the diverse set of features.
The "Long Context" Wall
A primary challenge identified was document length. Many features require searching through documents averaging over 12,000 words. Even with Longformer's expanded window, facts are often "needles in a haystack," mentioned briefly and then buried under thousands of words of personal history or procedural tangents.
Model Strengths and Weaknesses
- Weak Supervision: WSLF performed best on classification tasks with clear linguistic markers, such as "participation in gang programming" (0.87 F1).
- Neural QA: Longformer (QA2) showed relative strength in extracting dates and numerical data, though it struggled with binary "Yes/No" logic over long dialogues.
- Numerical Accuracy: The most successful extraction was for the TABE score (an educational metric), where the Task-FT model achieved a high 0.94 F1.
Discussion and Future Directions
The results indicate that current NLP technologies are not yet a "plug-and-play" solution for legal dialogue extraction. The study highlights several critical areas for future research:
- Context Windows: There is a pressing need for models capable of processing 20,000+ words without losing local factual density.
- Hierarchical Modeling: Future approaches might benefit from first identifying relevant sub-sections (e.g., mental health discussions) before attempting specific factor extraction.
- Ethical Considerations: The authors emphasize the "dual-use" risk. While intended for post-hoc fairness reviews, these tools could potentially be repurposed for the very "predictive justice" systems they aim to provide an alternative to.
By focusing on information extraction rather than outcome prediction, this work advocates for a technological shift that supports human-centric, equitable justice.
Summary updated