msbayindir

Pilot research · Generative language model

Gemma 4 Fine-tuning for Turkish Law

A research pilot fine-tuning Gemma 4 E4B for source-grounded question answering, citation, and information extraction over Turkish legislation and court decisions.

In development
  • Gemma 4 E4B
  • LoRA
  • Fine-tuning
  • Python
Gemma 4 E4B
Base model: google/gemma-4-E4B-it
LoRA
Parameter-efficient fine-tuning experiments
Research pilot
Grounding and citation evaluation

Data flow

  1. SourceLegislation or court decision passage
  2. TaskQuestion, citation, or extraction
  3. TrainingGemma 4 and LoRA
  4. EvaluationEvidence and citation checks

Technical walkthrough

Research question

Can a language model select the relevant provision from several legal passages and support its answer with the right evidence? The pilot tests whether the answer can be traced back to the text.

Training tasks

The work focuses on source-grounded question answering, finding a relevant provision, and extracting structured information from legal decisions. Examples with insufficient context help evaluate how the model handles uncertainty.

Evaluation design

When comparing the base model and the LoRA adapter, I evaluate citation accuracy, whether the supplied passage supports the answer, and field-level extraction accuracy separately. This page describes the research aim and evaluation design.

Turkish legal NLP: BERT embeddings and Gemma 4 fine-tuning