制造风险:在大型语言模型中基准测试和降低食品安全风险
Cooking Up Risks: Benchmarking and Reducing Food Safety Risks in Large Language Models
AI总结:
本文提出FoodGuardBench基准,用于评估大型语言模型在食品安全领域的安全性和鲁棒性,发现现有模型存在对食品相关领域安全对齐不足、生成有害指令及防护措施失效等问题,并提出FoodGuard-4B作为改进方案。
摘要:
大型语言模型(LLMs)越来越多地用于日常任务,包括食品准备和健康指导。然而,食品安全是一个高风险领域,不准确或误导性信息可能导致严重现实危害。尽管存在这些风险,当前LLMs和安全防护措施缺乏针对特定食品危害的严格对齐。为填补这一空白,我们引入FoodGuardBench,第一个包含3339个基于FDA指南问题的综合基准,用于评估LLMs的安全性和鲁棒性。通过构建食品安全原则的分类学并运用代表性的劫持攻击(如AutoDAN和PAP),我们系统评估现有LLMs和防护措施。评估结果揭示了三个关键漏洞:首先,当前LLMs在食品相关领域存在安全对齐稀疏的问题,容易受到少数经典劫持策略的影响。其次,当被劫持时,LLMs经常生成具有操作性但有害的指令,无意中赋予恶意行为者能力并带来实际风险。第三,现有基于LLM的防护措施系统性地忽略了这些领域特定威胁,未能检测到大量恶意输入。为缓解这些漏洞,我们引入FoodGuard-4B,一个在我们数据集上微调的专用防护模型,以保护LLMs在食品相关领域。
英文摘要:
Food safety directly affects human health in daily life, as unsafe preparation or storage can lead to contamination and foodborne illness. PwC's 2025 consumer survey reports that 47% of respondents are comfortable using generative AI for meal planning, highlighting the need for safe food-related assistance. Yet the safety of large language models (LLMs) against malicious food-related requests remains underexplored. We introduce FoodGuardBench, an FDA-grounded benchmark with 2,124 seed malicious questions, 16,992 variants from eight jailbreak strategies, and 1,000 benign questions across five food-safety risk categories. Across twelve LLMs, the mean overall ASR is 25.51%, whereas the average per-model maximum across eight attacks is 60.59%, revealing that testing only one attack can substantially underestimate the full extent of food safety risk. For several models, nearly half or more of unsafe answers are rated as ready-to-use guides for harmful actions. Existing general-purpose guardrails average 96.25% benign utility but only 55.80% detection accuracy against these eight jailbreak attacks. Using FoodGuardBench, we fine-tune FoodGuard-4B, a food-safety-specific guardrail that achieves 97.64% out-of-distribution (OOD) accuracy while maintaining high benign utility. This demonstrates the value of FoodGuardBench for identifying and mitigating food safety risks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。