Back to Case Studies

Fine-Tuned Small Language Model for Arabic, English and Arabizi Complaint Triage

·
A telecom operator in the UAE

Executive Summary

Customers in the UAE write to their telecom provider the way they text friends: Gulf Arabic, English, and Arabizi (Arabic typed in Latin letters and numbers), often in the same message. General-purpose AI models handle formal Arabic and English well but misread this everyday mix, so complaints land in the wrong queue and urgent issues wait. GenAI Protos fine-tuned an Arabic-capable small language model on the operator's own de-identified messages to classify complaint type, detect urgency and spot customers likely to escalate. The model runs on private infrastructure and sends unclear messages to an agent instead of guessing.

01Problem Statement

The operator's care team received complaints through WhatsApp, app chat, email and social media. Routing relied on keyword rules and manual sorting, which broke down on mixed-language messages. The operator needed a model that could:

  • Understand Gulf Arabic, English and Arabizi, including switching between them mid-sentence
  • Assign each message to the right complaint category, such as billing, network, roaming, device or contract
  • Detect urgency and signs that a customer may escalate to a formal complaint
  • Keep customer data, including phone numbers and Emirates ID details, inside the operator's environment
  • Handle peak volumes within agreed latency and running cost
  • Send uncertain messages to a human instead of forcing a label

02Our Approach

We began by testing whether fine-tuning was needed. A prompted larger model and the existing keyword rules were run on real messages. Both did reasonably on formal Arabic and English, but struggled with Arabizi and dialect, which confirmed the gap.

Next, bilingual care agents and quality leads agreed on category and urgency definitions, using real messages where agents had routed the same case differently. Customer details were removed with Microsoft Presidio, using custom recognisers for UAE phone formats and Emirates ID numbers. The held-back test set was built around the hardest cases: pure Arabizi, mixed scripts, sarcasm and very short messages.

An Arabic-capable open-weight model was fine-tuned with LoRA adapters. It was compared with the keyword rules and the prompted larger model on accuracy by language type, missed urgent cases, wrong routing, response time and cost. Results were reported separately for Arabic, English, Arabizi and mixed messages, so weaknesses in one language could not hide inside an overall average.

System Architecture & Flowclick to zoom
Private Arabic and Arabizi complaint triage architecture using de-identification, a fine-tuned small language model, agent review, and continuous learning.
Private Arabic and Arabizi complaint triage architecture using de-identification, a fine-tuned small language model, agent review, and continuous learning.

03Outcome

  • A fine-tuned model adapter with a private inference setup
  • A comparison against keyword rules and a prompted larger model, broken down by language type
  • De-identified datasets, a held-back test set and a bilingual labelling guide
  • A review workflow that routes unclear messages to agents
  • Findings on routing accuracy, missed urgent cases, agent review volume, latency and running cost

04Tech Stack & Ecosystem

Key models, frameworks, and core infrastructure powering this solution.

Model Selection

Keyword rules, a prompted larger open-weight model and a fine-tuned small model compared on the same test set.

Small Language Model

Arabic-capable open-weight model in the 3B to 8B range (Qwen / Jais class).

Fine-Tuning

LoRA adapters via Hugging Face PEFT and TRL.

Inference

vLLM on private infrastructure.

Data Privacy

Microsoft Presidio with custom recognisers for UAE phone numbers and Emirates ID.

Human Review

Label Studio for bilingual agent labelling and corrections.

Release Control

MLflow for versioning, per-language regression tests and rollback.

Orchestration

Python pipelines, with no agent framework.

05Client Testimonials

“Our care agents were sorting complaints that mixed Arabic, English and Arabizi, sometimes in a single message. The difficult part was getting urgent cases to the right queue without forcing a label on messages the model did not understand. GenAI Protos tested the small model against our existing rules and a larger model using our de-identified messages. Seeing the results separately for each language helped us identify where agent review was still needed.”
TO
Customer Care Operations Manager
Telecom Operator, UAE

Route the customer complaints your current tools miss.

Test a private small language model on your Arabic, English and Arabizi messages.

Frequently asked questions

Train and test on real mixed-language messages, including Gulf dialect and script switching. In this POC, the model assigned complaints to queues such as billing, network and roaming.

Agree on urgency criteria with care agents and measure missed urgent cases separately from routing accuracy. Send low-confidence messages to an agent.

Yes. This POC removed customer identifiers before training and ran model inference on the operator’s private infrastructure.

Compare both against a larger model on the same labelled messages. Check errors by language, missed urgent cases, response time and running cost before choosing an approach.

Review agent corrections and test each new version separately on Arabic, English, Arabizi and mixed messages. GenAI Protos included regression checks and a rollback option in the POC.