CitySpec with Shield: A Secure Intelligent Assistant for Requirement Formalization
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 25 of its 54 references that are in the map. First posted on arXiv 19 Feb 2023.
Builds on
25 of 54 references.
References · 25
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,293
- 2018Continual Lifelong Learning with Neural Networks: A Reviewcited by 1,313
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
- 2019EDA: Easy Data Augmentation Techniques for Boosting Performance on Text Classification Taskscited by 800
- 2019Introduction to Online Convex Optimizationcited by 793
- 2017Seq2SQL: Generating Structured Queries from Natural Language using Reinforcement Learningcited by 679
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 488
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
13 more
- 2020Pretrained Transformers Improve Out-of-Distribution Robustnesscited by 293
- 2018Contextual Augmentation: Data Augmentation by Words with Paradigmatic Relationscited by 201
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 162
- 2018Pathologies of Neural Models Make Interpretations Difficultcited by 140
- 2020Contextualized Perturbation for Textual Adversarial Attackcited by 136
- 2021Towards Improving Adversarial Training of NLP Modelscited by 79
- 2020TextAttack: A Framework for Adversarial Attacks, Data Augmentation, and Adversarial Training in NLPcited by 45
- 2021Phrase-BERT: Improved Phrase Embeddings from BERT with an Application to Corpus Explorationcited by 44
- 2021BERT-Defense: A Probabilistic Model Based on BERT to Combat Cognitively Inspired Orthographic Adversarial Attackscited by 17
- 2022CitySpec: An Intelligent Assistant System for Requirement Specification in Smart Citiescited by 9
- 2021A Novel Spatial-Temporal Specification-Based Monitoring System for Smart Citiescited by 6
- 2022An Intelligent Assistant for Converting City Requirements to Formal Specificationcited by 4
- 2022Don't sweat the small stuff, classify the rest: Sample Shielding to protect text classifiers against adversarial attackscited by 3
Built on by
Citing papers per year: 2023: 1; 2024: 1; 2025: 2; 2026: 3.
7 papers.
- 2024Sim911: Towards Effective and Equitable 9-1-1 Dispatcher Training with an LLM-Enabled Simulationcited by 6
- 2025LogiDebrief: A Signal-Temporal Logic based Automated Debriefing Approach with Large Language Models Integrationcited by 5
- 2023Auto311: A Confidence-guided Automated System for Non-emergency Callscited by 3
- 2025Learning with Preserving for Continual Multitask Learningcited by 1
- 2026Empowering 9-1-1 Calltaking Training with Generative AI: Experiences and Lessons Learnedcited by 1
- 2026Reason Popper-ly: Patching In-Context Reasoning with Inductive Logic Programmingcited by 0
- 2026LogiC-Diff: Embedding Security Properties Into AI-Enabled Cyber-Physical Systemscited by 0
- 2026LogiC-Diff: Embedding Security Properties Into AI-Enabled Cyber-Physical Systems29 Sep 2026
- 2026Reason Popper-ly: Patching In-Context Reasoning with Inductive Logic Programming25 Jul 2026
- 2026Empowering 9-1-1 Calltaking Training with Generative AI: Experiences and Lessons Learned30 Jan 2026
- 2025Learning with Preserving for Continual Multitask Learning11 Nov 2025
- 2025LogiDebrief: A Signal-Temporal Logic based Automated Debriefing Approach with Large Language Models Integration6 May 2025
- 2024Sim911: Towards Effective and Equitable 9-1-1 Dispatcher Training with an LLM-Enabled Simulation22 Dec 2024
- 2023Auto311: A Confidence-guided Automated System for Non-emergency Calls19 Dec 2023