Queen's University at Kingston
Exploring Language Models for Legal Applications with Domain Expertise: Interpretability, Evaluation, and Alignment
Abstract
dc:description.abstractThe legal system is a fundamental component of society. As advancements in Natural Language Processing (NLP), especially Large Language Models (LLMs), reach unprecedented levels of adoption, it is critical to explore their opportunities and challenges in the legal system. The legal domain is a well-established industry with centuries of history, and it is unclear how language models can effectively operate within its conventions. We explore alignment to different facets of human expertise such as domain-specific concepts or thought processes. We first identify four key challenges towards this alignment in the legal domain. First is the challenge of creating meaningful task definitions that are well-aligned to human concepts, such that this grounding is an aspect of the task design. We establish three new tasks and datasets: legal citation prediction, legal hate speech detection, and Misinformation with Legal Consequences (MisLC). Next is the challenge of data annotation; there are significant requirements for data in machine learning (ML) and artificial intelligence (AI) settings, and it is often expensive to obtain a sufficient number of expert annotations. We propose a two-step pipeline combining general semantic annotations with specialized legal expert annotations, and explore model-generated silver labels for self-training. Another challenge is enhancing the interpretability of models, such that experts in other domains can verify the model's grounding. We propose a prototype-based architecture grounded in a lawyer's thought process, which creates a more interpretable latent space without sacrificing performance. Finally, the models should be able to incorporate expert feedback in an efficient manner to close the human-AI feedback loop and reduce requirements for data annotation. We explore inference-time methods such as few-shot prompting, retrieval-augmented generation, and steering with sparse autoencoder (SAE) representations to direct model behaviour without further training. This dissertation examines the capability of language models in the context of legal applications, as a case study of how the current state-of-the-art can be applied to well-established industries, and aims to evaluate the gaps between current areas of study and adoption in domain-specific applications.
Degree
thesis:*- Department dc:contributor.department
- Electrical and Computer Engineering
- Grantor
- Queen's University at Kingston
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Luo, Chu Fei
- Advisors dc:contributor.supervisor
-
- Zhu, Xiaodan
- Dahan, Samuel
Subjects
dc:subject × 5Rights
dc:rights- Statement dc:rights
-
- Attribution-NonCommercial 4.0 International
- Licence dc:rights.uri
- Language dc:language.iso
- eng
Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/1974/38559