TL;DR
This paper introduces an AI-powered tool that automatically links sections of UK Supreme Court judgments to the corresponding moments in their lengthy hearing videos. By combining a custom-tuned Automatic Speech Recognition (ASR) system with advanced language models, the tool significantly improves access to crucial legal information, making complex judicial decisions easier to navigate for legal professionals and the public.
What Problem Does This Paper Address?
Accessing and understanding the nuances of UK Supreme Court (SC) hearings is a significant challenge. These hearings, which are pivotal in shaping landmark legal decisions, can span many hours and are not easily navigable. While human transcription exists, it's costly and slow. Generic Automatic Speech Recognition (ASR) systems struggle with the specialized vocabulary and discourse patterns of legal proceedings, leading to inaccurate transcripts. Furthermore, there's a lack of automated methods to connect specific points in these lengthy transcripts to the final written judgments, creating a barrier to efficient legal analysis, training, and public understanding. This paper aims to bridge this gap by creating a system that not only transcribes SC hearings more accurately but also semantically links the transcribed text to the relevant parts of the judgment.
Methods
The paper presents a two-stage approach:
- Customized ASR System for Legal Domain:
- Domain Adaptation: They fine-tuned a base ASR system (AWS Transcribe) using a custom language model (CLM).
- Training Data: The CLM was trained on legal documents (SC judgments) and approximately 139 hours of manually edited SC hearing transcripts.
- Phrase Extraction: A phrase extraction model was used to identify and incorporate domain-specific legal phrases and named entities into a custom vocabulary list. This list was infused into the ASR system during transcription.
- Evaluation: The customized ASR system was compared against generic ASR baselines (AWS Transcribe and OpenAI Whisper) using Word Error Rate (WER).
- Semantic Linking Between Judgement Text and Hearing Video (Information Retrieval System):
- Data Processing: Judgement texts were segmented into paragraphs (windows of three paragraphs), and hearing transcripts were segmented into timespans.
- Zero-Shot Information Retrieval: Due to the difficulty of creating a large annotated dataset, they employed a zero-shot approach. Various IR models (BM25, GloVe, Entailment, Legal BERT, Asymmetric Semantic Search, and GPT Question-Answer linking) were used to find the top 20 transcript timespans for each judgement segment.
- GPT Embeddings Customization: The best-performing model, GPT embeddings, was further customized. This involved training a linear transformation matrix to better adapt the embeddings to the legal domain, aiming to maximize the separation between relevant and non-relevant judgement-transcript pairs.
- Classification Models: Several classifiers (logistic regression, cross-encoder, and contrastive learning with in-batch negative sampling) were trained on both original and augmented datasets to determine the link between judgement paragraphs and transcript timespans.
Datasets
- Legal Documents: 43 UK Supreme Court written judgments (over 3.26 million tokens) scraped from the official SC website.
- Hearing Transcripts: Approximately 139 hours of 10 SC hearing sessions downloaded from the British National Archives. These were initially transcribed by Amazon Transcribe and then post-edited by legal professionals.
- Gold-Standard Dataset: A dataset of 3620 judgement-to-transcript documents annotated with gold-standard linking labels was compiled for evaluation.
- Augmented Dataset: The gold-standard dataset was augmented using GPT-3.5 to generate more relevant judgement-transcript segment pairs, resulting in 7248 pairs.
Key Insights and Ideas
- Domain-Specific ASR is Crucial: Generic ASR systems perform poorly on legal jargon, specific pronunciations (e.g., "my lady"), and legal entities. Fine-tuning with domain-specific data significantly improves accuracy.
- The Power of Custom Embeddings: Adapting general-purpose language model embeddings (like GPT) to the legal domain through customization significantly boosts performance in semantic linking tasks. This suggests that even powerful pre-trained models benefit from domain-specific fine-tuning.
- Zero-Shot IR as a Practical Solution: For tasks with limited annotated data, zero-shot IR methods, particularly those leveraging advanced embeddings, can provide a strong baseline and enable efficient initial retrieval.
- AI for Enhanced Legal Access: The research demonstrates a tangible application of AI to improve access to justice by making complex legal proceedings more digestible and searchable.
- User Interface is Key: The developed UI, which synchronizes text and video with bookmarking, is highlighted as a critical component for practical utility, allowing legal professionals to navigate lengthy hearings efficiently.
Key Results
- ASR Improvement: The customized ASR system achieved a 9% improvement in average Word Error Rate (WER) compared to generic ASR baselines (AWS Transcribe and Whisper). For specific legal entities like "Judge" and "Provision," the CLM model with a legal vocabulary list showed significantly higher accuracy (e.g., 0.84 for Judge vs. 0.66 for AWS base).
- Semantic Linking Performance: The GPT embedding model, especially when customized and combined with cosine similarity scores, achieved the best performance in classifying relevant links between judgement text and hearing transcript segments, with an F1 score of 0.85.
- User Study Impact: A preliminary study showed that a legal expert could validate 220 links in 3 hours using the UI, compared to 15 hours without any tool.
- Error Analysis: The most frequent misclassification errors were related to transcript length discrepancies (50%), followed by alphanumeric mismatches (30%), lexical repetition (20%), and named entity sparsity (10%).
Limitations and Future Work
- Dataset Size: The compiled gold-standard dataset for training classifiers was relatively small.
- Annotation Subjectivity: While annotator agreement was moderate (Cohen's kappa of 0.43), the task of determining legal relevance inherently involves some subjectivity.
- Error Categories: Future work should focus on more nuanced handling of legal references, term weighting, entity salience, and span alignment to address identified error categories.
- Broader Applications: The methodology is adaptable to other specialized domains requiring audio-text linking, such as education, healthcare, and policy analysis.
- Patent Application: The developed UI is currently undergoing a patent application process, indicating its innovative nature and potential commercial value.
Summary updated