Legal Knowledge Representation Learning

Chaojun Xiao, Zhiyuan Liu, Yankai Lin, Maosong SunOpenalex Unknown 2023 · OpenAlex

Abstract

The law guarantees the regular functioning of the nation and society. In recent years, legal artificial intelligence (legal AI), which aims to apply artificial intelligence techniques to perform legal tasks, has received significant attention. Legal AI can provide a handy reference and convenient legal services for legal professionals and non-specialists, thus benefiting real-world legal practice. Different from general open-domain tasks, legal tasks have a high demand for understanding and applying expert knowledge. Therefore, enhancing models with various legal knowledge is a key issue of legal AI. In this chapter, we summarize the existing knowledge-intensive legal AI approaches regarding knowledge representation, acquisition, and application. Besides, future directions and ethical considerations are also discussed to promote the development of legal AI.

Introduction

Legal AI represents a high-stakes domain where general-purpose Natural Language Processing (NLP) models often fall short. Unlike identifying sentiment in a movie review, analyzing a legal case requires a deep understanding of abstract concepts, navigating a "long-tail" of rare crimes, and adhering to strict logical dependencies. This survey explores the landscape of Legal Knowledge Representation Learning, focusing on how human-readable laws and case files are transformed into machine-friendly "modeledge" to solve complex tasks like judgment prediction and legal reasoning.

The field is driven by two primary real-world pressures: high caseloads for judicial staff and the scarcity of affordable legal services for the public. To be effective, AI must bridge the gap between concrete facts (the events of a case) and abstract law (the legal categorization of those events).

Researchers categorize legal knowledge into two forms: Textual (unstructured laws and cases) and Structured (relational triples, event timelines, and logical rules). Integrating this knowledge into neural networks typically involves four main strategies:

  1. Input Augmentation: Directly feeding legal knowledge into the model by concatenating law text to the query or adding knowledge embeddings (e.g., event type tags) to the input layer.
  2. Architecture Reformulation: Designing model structures that mimic human judicial logic. For example, the TopJudge model uses a topological graph to ensure the model predicts the relevant law before attempting to predict the charge or prison term.
  3. Objective Regularization: Using multi-task learning to force the model to learn intermediate legal concepts. A model might be trained to identify specific "legal elements" (like the use of violence) to help it distinguish between confusingly similar charges.
  4. Parameter Transfer: Pre-training models on massive legal corpora. Notable examples include Legal-BERT and Lawformer, the latter of which utilizes sparse attention mechanisms to process long legal documents.
Figure 2: Mapping case facts to specific legal charges and prison terms based on statutory definitions.

Benchmarks and Datasets

The paper highlights several critical benchmarks that drive research in this field:

  • CAIL (Challenge of AI in Law): A massive collection of Chinese criminal cases for judgment prediction.
  • LEVEN: A large-scale legal event detection dataset containing over 150,000 annotated event mentions.
  • COLIEE & AILA: International challenges focusing on legal retrieval and entailment in Japanese, Canadian, and Indian law.
  • CUAD: A specialized dataset for legal contract review, emphasizing the high cost of expert annotation.

Key Insights: From Rules to "Modeledge"

A central argument of the survey is the shift from human-friendly symbolic rules to "modeledge"—implicit, distributed representations that allow neural networks to "understand" legal logic without being hard-coded. By constraining models to follow judicial logic (e.g., Law → Charge → Penalty), researchers can significantly improve performance and interpretability.

Furthermore, using structured knowledge to identify specific legal attributes helps models handle "confusing charges"—crimes that appear identical except for subtle legal elements. This provides a layer of transparency, allowing practitioners to see the specific attributes that led to a model's suggestion.

Figure 5: The process of legal reasoning involving knowledge retrieval and logical deduction for complex legal questions.

Future Directions and Ethical Considerations

Despite significant progress, several frontiers remain open:

  • The Reasoning Gap: Current models still struggle with numerical analysis (calculating sentences) and multi-hop reasoning across disparate evidence.
  • Data Scarcity: Legal data is expensive to label. Future work must focus on few-shot learning to reduce reliance on massive, expert-annotated datasets.
  • Ethical Risks: The "black-box" nature of neural networks can obscure biases. The authors advocate for a "Human-in-the-Loop" approach, where AI assists rather than replaces legal professionals.
  • Tool Manipulation: Teaching models to use external tools, such as legal search engines or calculators, is a promising path toward completing complex reasoning tasks.

Summary updated

Abstract

Abstract The law guarantees the regular functioning of the nation and society. In recent years, legal artificial intelligence (legal AI), which aims to apply artificial intelligence techniques to perform legal tasks, has received significant attention. Legal AI can provide a handy reference and convenient legal services for legal professionals and non-specialists, thus benefiting real-world legal practice. Different from general open-domain tasks, legal tasks have a high demand for understanding and applying expert knowledge. Therefore, enhancing models with various legal knowledge is a key issue of legal AI. In this chapter, we summarize the existing knowledge-intensive legal AI approaches regarding knowledge representation, acquisition, and application. Besides, future directions and ethical considerations are also discussed to promote the development of legal AI.
BibTeX
@inproceedings{xiao2023legal,
  author = {Chaojun Xiao and Zhiyuan Liu and Yankai Lin and Maosong Sun},
  title = {{Legal Knowledge Representation Learning}},
  booktitle = {Openalex Unknown},
  year = {2023},
  doi = {10.1007/978-981-99-1600-9\_11},
}
Figure