Domain-Adaptation through Synthetic Data: Fine-Tuning Large Language Models for German Law

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Bashir, Ali Hamza, Khalid, Muhammad Rehan, Cvejoski, Kostadin, Birr, Jana, Berghaus, Jule, Berger, Armin, Halscheidt, Sandra, Temath, Christian, Sifa, Rafet, Berghaus, David
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908776568717312
author Bashir, Ali Hamza
Khalid, Muhammad Rehan
Cvejoski, Kostadin
Birr, Jana
Berghaus, Jule
Berger, Armin
Halscheidt, Sandra
Temath, Christian
Sifa, Rafet
Berghaus, David
author_facet Bashir, Ali Hamza
Khalid, Muhammad Rehan
Cvejoski, Kostadin
Birr, Jana
Berghaus, Jule
Berger, Armin
Halscheidt, Sandra
Temath, Christian
Sifa, Rafet
Berghaus, David
contents Large language models (LLMs) often struggle in specialized domains such as legal reasoning due to limited expert knowledge, resulting in factually incorrect outputs or hallucinations. This paper presents an effective method for adapting advanced LLMs to German legal question answering through a novel synthetic data generation approach. In contrast to costly human-annotated resources or unreliable synthetic alternatives, our approach systematically produces high-quality, diverse, and legally accurate question-answer pairs directly from authoritative German statutes. Using rigorous automated filtering methods and parameter-efficient fine-tuning techniques, we demonstrate that LLMs adapted with our synthetic dataset significantly outperform their baseline counterparts on German legal question answering tasks. Our results highlight the feasibility of using carefully designed synthetic data as a robust alternative to manual annotation in high-stakes, knowledge-intensive domains.
format Preprint
id arxiv_https___arxiv_org_abs_2601_14160
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Domain-Adaptation through Synthetic Data: Fine-Tuning Large Language Models for German Law
Bashir, Ali Hamza
Khalid, Muhammad Rehan
Cvejoski, Kostadin
Birr, Jana
Berghaus, Jule
Berger, Armin
Halscheidt, Sandra
Temath, Christian
Sifa, Rafet
Berghaus, David
Computation and Language
Artificial Intelligence
Large language models (LLMs) often struggle in specialized domains such as legal reasoning due to limited expert knowledge, resulting in factually incorrect outputs or hallucinations. This paper presents an effective method for adapting advanced LLMs to German legal question answering through a novel synthetic data generation approach. In contrast to costly human-annotated resources or unreliable synthetic alternatives, our approach systematically produces high-quality, diverse, and legally accurate question-answer pairs directly from authoritative German statutes. Using rigorous automated filtering methods and parameter-efficient fine-tuning techniques, we demonstrate that LLMs adapted with our synthetic dataset significantly outperform their baseline counterparts on German legal question answering tasks. Our results highlight the feasibility of using carefully designed synthetic data as a robust alternative to manual annotation in high-stakes, knowledge-intensive domains.
title Domain-Adaptation through Synthetic Data: Fine-Tuning Large Language Models for German Law
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2601.14160