从阿拉伯语到行动:通过数据驱动的微调实现可靠的结构化工具调用
From Language to Action in Arabic: Reliable Structured Tool Calling via Data-Centric Fine-Tuning
AI总结:
本文提出AISA-AR-FunctionCall框架,通过数据审计、模式修复和提示重构等方法,显著提升阿拉伯语函数调用模型的稳定性与准确性,减少解析失败率并提高功能名称识别精度。
摘要:
函数调用语言模型对于将自然语言转换为可执行结构化动作的代理AI系统至关重要,但现有模型在阿拉伯语上表现出严重的结构性不稳定。我们提出了AISA-AR-FunctionCall框架,基于270M参数的FunctionGemma模型,通过系统性的数据集审核、模式修复、工具感知提示重构和全参数监督微调进行训练。在保留的测试集上,微调将解析失败率从87%降低到低于1%,功能名称准确性提高超过八倍,并显著提升了跨方言和领域的参数对齐。错误分析表明,从结构性崩溃到语义偏差的转变,表明序列稳定性与决策层推理是可分离的挑战。我们进一步探索了引入显式中间推理的LoRA变体,以在工具调用前引入显式推理。所有数据集和模型均在AISA框架下公开发布。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。