[Paper Review] From Language to Action in Arabic: Reliable Structured Tool Calling via Data-Centric Fine-Tuning
The paper presents AISA-AR-FunctionCall, an Arabic-focused, fully fine-tuned function-calling model (270M) trained with dataset auditing, schema repair, and tool-aware prompt restructuring to achieve reliable structured tool invocation across dialects. It shows dramatic reductions in parse failures and large gains in function-name accuracy, with analysis of remaining semantic errors and a reasoning-augmented variant.
Function-calling language models are essential for agentic AI systems that translate natural language into executable structured actions, yet existing models exhibit severe structural instability when applied to Arabic. We present AISA-AR-FunctionCall, a production-oriented Arabic function-calling framework built on a 270M-parameter FunctionGemma backbone and trained through systematic dataset auditing, schema repair, tool-aware prompt restructuring, and full-parameter supervised fine-tuning. On a held-out test set, fine-tuning reduces parse failures from 87\% to below 1\%, improves function name accuracy by more than eightfold, and substantially enhances argument alignment across dialects and domains. Error analysis reveals a transition from structural collapse to semantic misalignment, suggesting that serialization stability and decision-level reasoning are separable challenges. We further explore a reasoning-augmented LoRA variant that introduces explicit intermediate reasoning prior to tool invocation. All datasets and models are publicly released under the AISA framework.
Motivation & Objective
- Address the reliability gap of Arabic tool-calling in multilingual LLMs and Arabic NLP by building an Arabic-first function-calling dataset and a fully fine-tuned model.
- Improve structural stability, argument alignment, and tool-selection accuracy across dialects and domains.
- Propose an architectural and data-centric pipeline (AISA) to enable production-ready Arabic agentic systems.
- Explore a reasoning-augmented variant to assess intermediate reasoning before tool invocation.
Proposed method
- Start from FunctionGemma 270M as the base model and perform full-parameter supervised fine-tuning.
- Audit and repair the Arabic Function Calling dataset to ensure schema consistency and reduce noise.
- Apply enum normalization, tool pruning (36→27 tools), and a stochastic tool-sampling strategy to limit prompt length and augment supervision.
- Serialize training data into FunctionGemma format with completion-only masking to focus gradients on the assistant’s function-call tokens.
- Train on AISA-AR-FunctionCall with 41,104 training, 4,568 validation, and 5,079 test examples over two epochs using 8-bit AdamW and gradient checkpointing.
- Explore a reasoning-augmented LoRA variant (AISA-AR-FunctionCall-Think) with explicit <think> reasoning traces prior to tool calls.
Experimental results
Research questions
- RQ1Can Arabic function calling reach reliable structured execution with data-centric fine-tuning and schema-aware supervision?
- RQ2How does dataset auditing, enum normalization, and tool pruning affect stability, parse success, and argument alignment across dialects?
- RQ3What is the impact of a reasoning-augmented approach on tool selection and argument extraction in production-like settings?
- RQ4How robust is the Arabic function-calling system across domains and dialects under strict and deployment-like evaluation?
- RQ5Do architectural practices (AISA) and governance-aware pipelines improve reproducibility and safety in production Arabic agents?
Key findings
- Fine-tuning reduces parse failures from 87% (baseline) to below 1% (FT model).
- Function-name accuracy improves by more than eightfold after full fine-tuning.
- Argument alignment metrics improve across key-level and exact-value evaluations; negative abstention remains perfect (100% when requires_function is false).
- Dialectal accuracy after fine-tuning exceeds 68% across major dialects and over 76% in MSA, reducing prior cross-dialect gaps.
- Tool-name accuracy across eight domains shows strongest performance in structured domains (Utilities, Travel, Weather, Islamic Services) and more challenging Government Services due to procedural complexity.
- Error distribution shifts from parse failures (baseline) to semantic misalignment (FT model), with remaining errors including tool misrouting and argument mismatches.
- Reasoning-augmented variant (Think) achieves near-perfect tool invocation under deployment-like evaluation, though formal validators may flag the reasoning-token serialization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.