Alkafi-llama3: fine-tuning LLMs for precise legal understanding in Palestine

Large Language Models (LLMs) have demonstrated remarkable potential in diverse domains, yet their application in the legal sector, particularly in low-resource contexts, remains limited. This study addresses the challenges of adapting LLMs to the Palestinian legal domain, where political instability, fragmented legal frameworks, and limited AI resources hinder effective machine-learning applications. We present a fine-tuned model based on a quantized version of Llama-3.2-1B-Instruct, trained on a synthetic data set derived from Palestinian legal texts. Using smaller-scale models and strategically generated question-answer pairs, we achieve a cost-effective, locally sustainable solution that provides accurate and contextually relevant legal guidance. Our experiments demonstrate promising performance on various query types, ranging from yes / no questions and narrative explanations to complex legal differentiations, while highlighting areas for improvement, such as handling calculation-based inquiries and structured list formatting. This work provides a pathway for the deployment of AI-driven legal assistance tools tailored to the needs of resource-constrained environments.

Authors

Institutions

Publication Details

Journal
Discover Artificial Intelligence
Published
2025-06-17
DOI
https://doi.org/10.1007/s44163-025-00313-w
Citations
2
Primary Topic
Artificial Intelligence in Law
Type
article
Field-Weighted Citation Impact
17.04
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Alkafi-llama3: fine-tuning LLMs for precise legal understanding in Palestine

Banan Tantour, Mohannad Hendi, Rabee Al-Qaesm
2 citations
Discover Artificial Intelligence
Artificial Intelligence in Law
17.04
article

Alkafi-llama3: fine-tuning LLMs for precise legal understanding in Palestine

Banan Tantour, Mohannad Hendi, Rabee Al-Qaesm
article en
2 citations

Abstract

Large Language Models (LLMs) have demonstrated remarkable potential in diverse domains, yet their application in the legal sector, particularly in low-resource contexts, remains limited. This study addresses the challenges of adapting LLMs to the Palestinian legal domain, where political instability, fragmented legal frameworks, and limited AI resources hinder effective machine-learning applications. We present a fine-tuned model based on a quantized version of Llama-3.2-1B-Instruct, trained on a synthetic data set derived from Palestinian legal texts. Using smaller-scale models and strategically generated question-answer pairs, we achieve a cost-effective, locally sustainable solution that provides accurate and contextually relevant legal guidance. Our experiments demonstrate promising performance on various query types, ranging from yes / no questions and narrative explanations to complex legal differentiations, while highlighting areas for improvement, such as handling calculation-based inquiries and structured list formatting. This work provides a pathway for the deployment of AI-driven legal assistance tools tailored to the needs of resource-constrained environments.

Discover Artificial IntelligenceVol. 5(1)
Palestinian Hydrology Group (PS), Accreditation and Quality Assurance Commission (PS)
Peace, Justice and strong institutions
Openalex Percentile: Top 1%
Artificial Intelligence in Law
17.04
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Alkafi-llama3: fine-tuning LLMs for precise legal understanding in Palestine — Banan Tantour, Mohannad Hendi, et al. · Discover Artificial Intelligence (2025) | TGRS Research Map | TGRS