Legal Aligner: Transforming Generic LLMs into Domain Experts for Enhanced Accuracy

Read full text Summarise with VIRAT
Authors: Pengcheng Wen, Guoying LU, Sirui Han, Yike Guo
Cited by: 0
References: 29

Summary

No summary yet. VIRAT can read this paper and write a plain-language summary of its aim, methods, key findings and limitations.

Summarise with VIRAT Free to try with your Science Catalogs account.

Abstract

Abstract Large Language Models (LLMs) demonstrate strong general-purpose capabilities but often underperform in specialized domains such as law, where jurisdiction-specific and long-tail knowledge is critical. Existing domain adaptation methods, particularly supervised fine-tuning, are computationally expensive, vulnerable to catastrophic forgetting, and infeasible for proprietary black-box models. We propose \textbf{Legal Aligner}, a lightweight, parameter-agnostic post-hoc refinement framework that enhances legal factuality without modifying upstream model weights. Acting as a plug-and-play correction layer, Legal Aligner identifies and rectifies unsupported doctrinal claims, jurisdictional inconsistencies, and citation errors in generated legal responses. We evaluate Legal Aligner on a curated Hong Kong legal consultation dataset across eight upstream LLMs, including both open-source and proprietary models. Results show consistent improvements in factual reliability, with gains of up to 14.9 percentage points in Factuality Coverage Score and a 58.9 Our findings demonstrate that output-level alignment offers a scalable and maintainable alternative to parameter-level adaptation for high-stakes legal AI systems, particularly in jurisdictions underrepresented in large-scale pretraining corpora.

Fields of Study & Subjects

Artificial Intelligence in Law Topic Modeling Domain Adaptation and Few-Shot Learning

Publication details

Journal / source
Research Square
Publication date
16 March 2026
Language
EN
Document type
Preprint