对话式农业建议的微调与评估
Fine-Tuning and Evaluating Conversational AI for Agricultural Advisory
AI总结:
本文提出了一种混合LLM架构,通过微调和拼接层提升农业建议的准确性与安全性,释放了farmerchat-prompts库以促进领域特定农业AI的发展。
摘要:
大型语言模型在农业建议领域展现出潜力,但基础模型存在不支持的建议、通用建议缺乏具体可操作细节以及沟通风格与小农户需求不匹配的问题。在高风险的农业情境中,推荐的准确性直接影响农民的成果,这些限制对负责任的部署构成了挑战。我们提出了一种混合LLM架构,将事实检索与对话交付分离:使用LoRA进行监督微调的专家整理的GOLDEN FACTS(农业知识的原子、验证单元)优化事实回忆,而一个单独的拼接层将检索到的事实转化为文化合适、安全意识强的回应。我们的评估框架DG-EVAL通过与专家整理的地面真实数据对比,而不是维基百科或检索文档,进行原子事实验证(测量召回率、精确率和矛盾检测)。在印度比哈尔州的多个模型配置和作物及查询上进行的实验表明,对整理数据的微调显著提高了事实回忆和F1值,同时保持了高相关性。使用微调后的较小模型在成本上仅为前沿模型的几分之一,却能实现可比或更好的事实质量。拼接层进一步提高了安全子分数,同时保持了高质量的对话表现。我们发布了farmerchat-prompts库,以促进可重复的领域特定农业AI开发。
英文摘要:
Large Language Models show promise for agricultural advisory, yet vanilla models exhibit unsupported recommendations, generic advice lacking specific, actionable detail, and communication styles misaligned with smallholder farmer needs. In high stakes agricultural contexts, where recommendation accuracy has direct consequences for farmer outcomes, these limitations pose challenges for responsible deployment. We present a hybrid LLM architecture that decouples factual retrieval from conversational delivery: supervised fine-tuning with LoRA on expert-curated GOLDEN FACTS (atomic, verified units of agricultural knowledge) optimizes fact recall, while a separate stitching layer transforms retrieved facts into culturally appropriate, safety-aware responses. Our evaluation framework, DG-EVAL, performs atomic fact verification (measuring recall, precision, and contradiction detection) against expert-curated ground truth rather than Wikipedia or retrieved documents. Experiments across multiple model configurations on crops and queries from Bihar, India show that fine-tuning on curated data substantially improves fact recall and F1, while maintaining high relevance. Using a fine-tuned smaller model achieves comparable or better factual quality at a fraction of the cost of frontier models. A stitching layer further improves safety subscores while maintaining high conversational quality. We release the farmerchat-prompts library to enable reproducible development of domain-specific agricultural AI.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。