Challenges for Information Extraction from Dialogue in Criminal Law

Jenny Hong, Catalin Voss, Christopher D Manning

TL;DR

Researchers from Stanford University explore the challenges of using NLP to extract factual "case factors" from tens of thousands of long-form California parole hearing transcripts. They find that while modern models show promise, the sheer length of legal dialogues and the nuance of "equitable justice" make high-accuracy information extraction a significant remaining hurdle for the field.

What Problem Does This Paper Address?

Most machine learning applications in criminal law focus on codified justice: using tabular data to predict outcomes or calculate risk scores (like recidivism predictors). The authors argue this ignores equitable justice, which requires human discretion and a deep understanding of an individual's unique circumstances.

The "facts" of these unique situations are often buried in parole hearing transcripts—documents that can be 50 pages long (~20,000 words). Because these transcripts are too long for manual review at scale, critical information remains "locked away in a filing cabinet." This paper investigates whether NLP can automate the extraction of these facts to enable post-hoc analysis—helping stakeholders identify outliers or systemic biases without stripping away the human decision-maker's autonomy.

Methods

The authors evaluated three families of NLP models to extract 11 specific case factors (e.g., education level, participation in gang programming, or the year of the most recent disciplinary write-up):

  1. Weakly Supervised Models: They used Snorkel (an unsupervised approach) and WSLF (Weakly Supervised Labeling Functions). Instead of labeling thousands of examples by hand, experts write "labeling functions"—programmatic rules (like keyword searches or regex) that provide noisy labels. The model then learns to weight these rules to produce a final estimate.
  2. Pre-trained Question Answering (QA): They tested DistilBERT (QA1) and Longformer (QA2). Unlike standard BERT, Longformer can handle much longer context windows (up to 4,096 tokens), which is crucial for legal transcripts.
  3. Task-Specific Fine-Tuning (Task-FT): They fine-tuned a base BERT model on the parole text and then trained a classifier layer on the labels generated by the weak supervision process.

Datasets

The study utilized a massive, nearly complete dataset of 35,105 parole hearing transcripts from the State of California (2007–2019).

  • Manual Labels: To create a gold standard for evaluation, a team of 11 research assistants manually labeled 827 transcripts across 118 features, eventually narrowing it down to 11 key factors for this study.
  • External Data: They supplemented the transcripts with metadata from the California Department of Corrections and Rehabilitation (CDCR) to provide ground-truth labels for factors like "controlling offense."

Key Insights and Ideas

  • The "Long Context" Wall: Even with models like Longformer, the average hearing length (~18,500 words) far exceeds the context window. Facts are often mentioned once and then buried under thousands of words of "tangents" or detailed personal histories.
  • Boolean Questions are Hard: Surprisingly, neural QA models struggled with simple "Yes/No" questions (e.g., "Did the DA attend?"). The authors suggest that while these models are good at finding spans of text, they aren't yet robust at binary logic over long, complex dialogues.
  • The Difficulty of "Risk Scores": All models performed poorly on extracting the psychological risk assessment score. Why? Because the score (low, moderate, high) is often buried within a multi-thousand-word discussion of the sub-factors that led to that score, making it a "needle in a haystack" problem.
  • Expertise vs. Manual Labor: While manual labeling is expensive (one hour per transcript), designing labeling functions for weak supervision also requires significant expert time. However, once designed, these functions scale infinitely across the entire dataset.

Key Results

The performance was measured using F1 scores, with a target of 0.80–0.85 for "meaningful downstream research." * General Performance: Most models fell below the 0.85 F1 threshold. * WSLF vs. Neural Models: Weakly supervised models (WSLF) performed best on classification tasks where keywords were clear (e.g., "participation in gang programming" at 0.87 F1). * QA and Dates: The Longformer (QA2) was strongest at extracting dates, such as the year of the most recent disciplinary write-up (0.42 F1—low, but better than other methods). * Numerical Accuracy: The models were most successful at extracting the TABE score (an educational metric), with the Task-FT model reaching an impressive 0.94 F1.

Limitations and Future Work

The authors acknowledge that current NLP is not yet a "plug-and-play" solution for legal dialogue.

  • Context Windows: There is a dire need for models that can process entire 20,000-word documents without losing the ability to find specific, localized facts.
  • Hierarchical Modeling: Future work should explore hierarchical models that can first identify relevant "sub-topics" (like mental health or behavior) before attempting to extract a final score or factor.
  • Ethical "Dual-Use": The authors warn of the "dual-use" risk: while they intend these tools for post-hoc review to ensure fairness, the same technology could be misused to create the very "predictive justice" systems they are trying to provide an alternative for.

Summary updated

BibTeX
@inproceedings{hong2024challenges,
  author = {Jenny Hong and Catalin Voss and Christopher D Manning},
  title = {{Challenges for Information Extraction from Dialogue in Criminal Law}},
  booktitle = {Proceedings of the 1st Workshop on NLP for Positive Impact},
  year = {2024},
  url = {https://openreview.net/forum?id=AVeiX7PuKM},
}
Figure