Compression Through a Context Lens: Evaluating Adaptation, Quantization, and Distillation in Arabic Legal LLMs
Md. Rafiul Biswas, George Mikros, Wajdi Zaghouani
Abstract
Model compression can facilitate the deployment of large language models in resource-constrained legal settings, but its effects on domain-specific performance may depend on the evaluation protocol. We investigate this issue using ArabLegalEval, a Saudi Arabic legal benchmark, under both with-context and no-context evaluation. The former provides supporting legal passages, while the latter assesses performance without external context. Removing the context produces accuracy gaps of up to 27 percentage points for the base model. We examine three stages: domain adaptation, quantization, and knowledge distillation across FANAR-9B, JAIS-8B, and Qwen2.5-7B. Four-bit quantization reduces model memory by 64-71%, with changes in no-context MCQ accuracy ranging from -3.2 to +1.6 percentage points. Distillation produces more variable results, with accuracy generally declining as student size decreases. A Qwen2.5-7B student distilled from FANAR achieves 76.6% no-context accuracy, compared with 77.2% for its teacher. Our findings suggest that no-context evaluation provides a useful complement to context-supported testing when assessing the effects of adaptation and compression on Arabic legal language models.
Create a lesson
Related papers
Automatic keyphrase extraction and annotation: modern theoretical approaches and practical solutions for text and speech
Daria Guseva, Olga Mitrofanova
Beyond the Keyword: A Human-Annotated Benchmark for Arabic Anxiety-Related Discourse
Shimaa Ibrahim, Mabrouka Bessghaier, Md. Rafiul Biswas et al.
CardioLM: A multilingual suite of small language models for the cardiology domain
Manuela-Daniela Danu, Miguel Rodríguez-Ortega, Alberto Becerra-Tome et al.
AraEngage: Interpretable Linguistic Correlates of Engagement in Arabic Facebook News
Shimaa Ibrahim, Nour Elhouda Dalloua, Md. Rafiul Biswas et al.
Do Recommenders Need to Think in Words? Latent Reasoning for Efficient LLM-Based Recommendation
Hongyang Su, Beibei Kong, Lei Cheng et al.
CORE: Coarse-to-Fine Search with Context Management for Deep Research
Hoang Tran Vuong, Ngoc Quan Pham, Hung Bui et al.