cs.CLOct 9, 2026

Enhancing Legal Reasoning in Pre-trained Language Models via Knowledge Graph-Guided Multi-Task Pre-training

Authors: Ibrahim Siddig, Munir Georges

Organizations: AImotion Bavaria, Technische Hochschule Ingolstadt

Abstract

Legal language understanding requires reasoning over semi-structured regulatory documents, yet standard pre-training objectives do not explicitly target this structural capability. Because current legal language models rely solely on masked language modeling, they treat statutory text as flat token sequences and ignore the underlying hierarchical constraints. To bridge this gap, we present a multi-task pre-training approach for German traffic law (StVO). Our approach combines three complementary objectives: Next Sentence Prediction (NSP), Knowledge Graph (KG) Guided Clustering (CLU), and Knowledge Graph (KG) Aware Paragraph Classification (CLS). This approach explicitly encodes structured legal knowledge directly into the model weights. This encoding enables zero-shot legal reasoning at inference time and removes the need for discrete graph traversal. We evaluate our approach across nine Transformer-based encoders and 324 experimental runs. On synthetic StVO question answering, our models demonstrate consistent relative improvements between 10.3% and 155.0% over baselines. Furthermore, relative to the established LexGLUE baselines (Chalkidis et al., 2022), our models improve over prior results on four of seven legal benchmarks. It also achieves consistent zero-shot transfer gains between 3.4% and 15.8% on Austrian driving regulations. These experimental results indicate that our training approach generalizes successfully beyond the initial training legal domain.

Figures & tables

Appendix figures & tables6 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. LegalDrill: Diagnosis-Driven Synthesis for Legal Reasoning in Small Language Models

    Apr 26, 2026Tianchun Li, Haochen Liu, Vishwa Pardeshi +5Synthetic Data GenerationSmall Language Models

  2. WisdomInterrogatory (LuWen): An Open-Source Legal Large Language Model Technical Report

    Apr 8, 2026Yiquan Wu, Yuhang Liu, Yifei Liu +4Legal NLPLegal Judgment Prediction

  3. Reasoning Before Translation: Enhancing Legal Machine Translation with Structured Reasoning

    Jul 21, 2026Aixiu An, Michael Jungo, Eloi Eynard +4RL for Language ModelsLegal NLP