CitySpec with Shield:一个用于需求形式化的安全智能助手
CitySpec with Shield: A Secure Intelligent Assistant for Requirement Formalization
AI总结:
本文提出首个智慧城市需求形式化智能助手CitySpec,通过构建城市词汇数据集、增强翻译模型及开发带屏蔽验证的在线学习框架,显著提升了需求规范的准确率、跨领域适应性及对对抗性输入的鲁棒性。
摘要:
智慧城市中开发了越来越多的监控系统,以确保城市的实时运行满足安全和性能要求。然而,许多现有的城市需求是用英文编写的,存在信息缺失、不准确或模糊的问题。非常需要协助城市政策制定者将人类指定的需求转换为监控系统可理解的机器形式化规范。为了解决这一局限性,我们构建了CitySpec,这是首个用于智慧城市需求规范的智能助手系统。为了创建CitySpec,我们首先从100多个城市收集了不同领域(例如交通和能源)的1,500多个真实城市需求,并提取城市特定知识以生成包含3,061个单词的城市词汇数据集。我们还构建了翻译模型,并通过需求合成对其进行增强,开发了一个带有屏蔽验证的新型在线学习框架。在真实城市需求上的评估结果显示,CitySpec将需求规范的句子级准确率从59.02%提高到86.64%,并且对新城市和新领域具有很强的适应性(例如,通过在线学习,西雅图需求的F1分数从77.6%提高到93.75%)。在经过屏蔽功能的增强后,CitySpec现在对大多数已知的文本对抗性输入免疫(例如,DeepWordBug在屏蔽功能后的攻击成功率从82.73%降至0%)。我们用来自不同领域的18名参与者测试了CitySpec。CitySpec展示了其强大的可用性和对不同领域的适应性,以及对恶意输入的鲁棒性。
英文摘要:
An increasing number of monitoring systems have been developed in smart cities to ensure that the real-time operations of a city satisfy safety and performance requirements. However, many existing city requirements are written in English with missing, inaccurate, or ambiguous information. There is a high demand for assisting city policymakers in converting human-specified requirements to machine-understandable formal specifications for monitoring systems. To tackle this limitation, we build CitySpec, the first intelligent assistant system for requirement specification in smart cities. To create CitySpec, we first collect over 1,500 real-world city requirements across different domains (e.g., transportation and energy) from over 100 cities and extract city-specific knowledge to generate a dataset of city vocabulary with 3,061 words. We also build a translation model and enhance it through requirement synthesis and develop a novel online learning framework with shielded validation. The evaluation results on real-world city requirements show that CitySpec increases the sentence-level accuracy of requirement specification from 59.02% to 86.64%, and has strong adaptability to a new city and a new domain (e.g., the F1 score for requirements in Seattle increases from 77.6% to 93.75% with online learning). After the enhancement from the shield function, CitySpec is now immune to most known textual adversarial inputs (e.g., the attack success rate of DeepWordBug after the shield function is reduced to 0% from 82.73%). We test the CitySpec with 18 participants from different domains. CitySpec shows its strong usability and adaptability to different domains, and also its robustness to malicious inputs.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。