Back to projects

LLM post-training · Experiment · 2025

GRPO Indonesian Legal Reasoning

LLM post-training for Indonesian legal reasoning

A post-training experiment for Indonesian legal reasoning using Qwen2.5-14B-Instruct, LoRA, and Group Relative Policy Optimization.

Written by Mohamad Maulana Firdaus Ramadhan

Explore the system flow

A conceptual diagram based on the project documentation. Open each stage to read its context.

  1. Documents and reasoning data

    This experiment studies how rewards can guide model answers on IndoLaw documents. It examines reasoning completeness and references in Indonesian outputs.

  2. LoRA and GRPO rewards

    The training notebook adapts Qwen2.5-14B-Instruct with LoRA. GRPO uses a reward function to score multiple answers generated for the same question. Output analysis complements text-similarity metrics with checks for hallucinations and reasoning completeness.

  3. Metrics and error analysis

    BLEU, ROUGE-L, METEOR, and BERTScore measure aspects of output similarity. The paper also documents hallucinations, incorrect article references, and incomplete reasoning that require direct content inspection.

Problem and purpose

This experiment studies how rewards can guide model answers on IndoLaw documents. It examines reasoning completeness and references in Indonesian outputs.

Technical decisions

LoRA adapts part of Qwen2.5-14B-Instruct’s parameters. GRPO compares rewards across outputs for the same input, making reward design central to the training objective.

Role & contribution

Prepared the GRPO training notebook, reward function, dataset splits, and reasoning-data generation script.

Technical workflow

The training notebook adapts Qwen2.5-14B-Instruct with LoRA. GRPO uses a reward function to score multiple answers generated for the same question. Output analysis complements text-similarity metrics with checks for hallucinations and reasoning completeness.

Results & context

Evaluates model outputs with BLEU, ROUGE-L, METEOR, and BERTScore, and analyzes hallucinations and reasoning completeness on IndoLaw documents.

Evaluation limits and lessons

BLEU, ROUGE-L, METEOR, and BERTScore measure aspects of output similarity. The paper also documents hallucinations, incorrect article references, and incomplete reasoning that require direct content inspection.