safety
Pandora's Toolbox Or Why Agent Safety Cannot Be Verified
Franco, Mario, Gershenson, Carlos
Present artificial intelligence agents are constructed by means of a coupling between a fixed language model with a general computing device. We show that this coupling makes safety undecidable. In particular, we show that given some dangerous program, no algorithm can predict whether an agent will run such a program that is semantically equivalent. In general, guardrails, blacklists, whitelists and certifications can only lead to imperfect safety solutions. Under finite constraints (bounded context, values and running time) safety is decidable but still intractable. Specifically, the problem is $\mathsf{PSPACE}$-complete even when the description of the agent is known. Finally, safety is not a compositional property, i.e., agents that can be proven safe on their own can still produce unsafe behavior when grouped together. We also discuss relaxed notions of safety that could be used in practice.
Is Vibe Coding the Future? An Empirical Assessment of LLM Generated Codes for Construction Safety
The emergence of vibe coding, a paradigm where non-technical users instruct Large Language Models (LLMs) to generate executable codes via natural language, presents both significant opportunities and severe risks for the construction industry. While empowering construction personnel such as the safety managers, foremen, and workers to develop tools and software, the probabilistic nature of LLMs introduces the threat of silent failures, wherein generated code compiles perfectly but executes flawed mathematical safety logic. This study empirically evaluates the reliability, software architecture, and domain-specific safety fidelity of 450 vibe-coded Python scripts generated by three frontier models, Claude 3.5 Haiku, GPT-4o-Mini, and Gemini 2.5 Flash. Utilizing a persona-driven prompt dataset (n=150) and a bifurcated evaluation pipeline comprising isolated dynamic sandboxing and an LLM-as-a-Judge, the research quantifies the severe limits of zero-shot vibe codes for construction safety. The findings reveal a highly significant relationship between user persona and data hallucination, demonstrating that less formal prompts drastically increase the AI's propensity to invent missing safety variables. Furthermore, while the models demonstrated high foundational execution viability (~85%), this syntactic reliability actively masked logic deficits and a severe lack of defensive programming. Among successfully executed scripts, the study identified an alarming ~45% overall Silent Failure Rate, with GPT-4o-Mini generating mathematically inaccurate outputs in ~56% of its functional code. The results demonstrate that current LLMs lack the deterministic rigor required for standalone safety engineering, necessitating the adoption of deterministic AI wrappers and strict governance for cyber-physical deployments.
The Conscience Fallacy: How AI Safety Builds the Agent It Fears
Safety in frontier artificial intelligence is now defined largely by the frameworks that developers write for their own models, and increasingly by laws that require those frameworks to be published and followed. These instruments locate failure in the model itself, which may evade control, undermine its safeguards, or pursue goals of its own, and they thereby treat the model as the sole author of its failures. Drawing on actor-network theory, we argue that this misplaces responsibility. A model's judgment is delegated to it by the people who produced its data, ranked its outputs, wrote its guiding principles, and set the thresholds against which it is tested. A model that "goes rogue" has therefore not acted alone; it has crossed a line that people drew, in a situation they did not foresee. Measured against established definitions, what these instruments call safety is closer to security: they enforce developer-defined boundaries around a single component rather than establish that risk across the deployed system is acceptable to society, leaving the party whose conduct is in question to decide which risks are tolerable. Legislation that mandates these frameworks reinforces this arrangement rather than correcting it. In installing a conscience in the model and then describing its judgment as the model's own, the safety apparatus produces the very agency it fears. We term the resulting error the conscience fallacy, the belief that a system is safe because a conscience has been installed in its most visible component, and propose changes to how safety is evaluated, how incidents are reported, and how responsibility is traced.
Control Barrier Function Synthesis for Differential-Algebraic Systems
Zhang, Hongchao, Kazma, Mohamad H., Wooding, Ben, Ma, Meiyi, Johnson, Taylor T., Taha, Ahmad F.
Abstract-- Control barrier certificates (CBCs) have been CBF inequality and preserve the algebraic constraint manifold, extensively studied for ordinary differential equation (ODE) a compatibility requirement absent in ODE formulations. This paper without accounting for compatibility, which may drive thepresents the first CBC synthesis framework for DAE systems, state off the manifold and produce certificates that are notaddressing safety for both index-1 and higher-index systems. We transform DAE-CBF synthesis into ODE-CBF synthesis withphysically meaningful. In [7], DAE-aware CBFs are introadditional compatibility constraints and develop an alternatingduced to resolve this challenge through projected dynamics synthesis framework. We propose an anchored sum-of-squareson the constraint manifold, providing necessary and sufficient (SOS) formulation that guarantees geometric correctness on the verification conditions for a given candidate barrier.
Vehicle-Dynamics-Aware Motion Planning for Pothole-Hazard Mitigation
Wang, Xiang, Piersall, Scott, Zou, Zihang, Wang, Liqiang, Yu, Rongjie
Potholes, recognized as the second most frequent pre-crash event, compromise traffic safety, vehicle structural integrity, and ride comfort. Existing countermeasures, primarily active suspension control and longitudinal speed regulation, struggle to mitigate structural impacts without increasing multi-vehicle conflict risks, particularly rear-end collisions. Leveraging extended preview information on pothole geometry and location through vehicle-to-everything (V2X) communication, this study proposes a vehicle-dynamics-aware motion planning framework incorporating proactive intra-lane lateral maneuvering to extend conventional mitigation strategies. The framework integrates microscopic tire-pothole impact mechanics, vertical quarter-car dynamics, and car-following behaviors within a unified closed-loop simulation environment. Curriculum learning is incorporated into the Soft Actor-Critic (SAC) algorithm to progressively increase task complexity, mitigating training instability caused by abrupt and sparse physical impact penalties. Comprehensive simulations across diverse pothole geometries, preview distances, speed ranges, and car-following interactions validate the framework. For geometrically avoidable hazards, the trained policy executes proactive lateral bypassing, achieving 95.8% impact-load compliance while reducing pothole-passage travel time by approximately 50%. Under unavoidable conditions, adaptive speed regulation achieves 46.7% impact-load compliance while reducing rear-end collisions from 13.3% to 1.7% compared with braking-heavy baselines. These results demonstrate the potential of integrating low-level physical dynamic constraints into motion planning frameworks to enhance localized hazard mitigation.
ACTR: Aligning Thoughts and Responses for Multilingual Safety in Reasoning LLMs
Zhang, Xianhui, Yu, Jian, Xie, Chengyu, Cui, Chenhang, Miao, Shuyi, Shao, Pengyang, Zheng, Yu, Shen, Fei, Chua, Tat-Seng
Ensuring the safety of reasoning large language models (LLMs) across languages is essential for their reliable deployment. However, when exposed to jailbreak attacks in non-high-resource languages, these models may generate unsafe responses even when their reasoning traces identify safety risks. To address this issue, we propose aligning cross-lingual thoughts and responses (ACTR), a framework that improves multilingual safety alignment by strengthening the use of existing safety reasoning. Specifically, we first present the think gap score (TGS) to compare the normalized contributions of reasoning traces to attention contribution during response generation across languages, and use reasoning-trace substitution to measure the cross-lingual safety gap. Next, using a corpus of jailbreak queries, we assess neuron importance through changes in response representations caused by neuron masking and compare the high-importance neuron sets obtained with reasoning enabled and disabled to identify safety think neurons that support the use of safety reasoning. Finally, we devise neuron-selective consistency optimization (NSCO), which uses a frozen judge model to reward agreement between the safety categories of reasoning traces and responses while updating only the parameters associated with the selected neurons, requiring no human-annotated responses or preference data. Across two reasoning models, ACTR achieves lower average attack success rates than the evaluated state-of-the-art methods on AdvBench-X and MultiJail, with safety gains extending to unseen languages, while preserving or improving average performance on multilingual knowledge and mathematical reasoning tasks and limiting false refusals of benign requests. Warning: this paper contains examples with unsafe content.
Risky Business: Measuring The Faithfulness-Safety Tension
Meier, Dominik, Francis, Luca Joshua, Kaiser, Marco Bernhard, Ruas, Terry, Wahle, Jan Philip, Gipp, Bela
Chain-of-Thought (CoT) reasoning offers a promising window into model monitoring. However, monitoring relies on faithfulness, i.e., the model output strictly derives from its reasoning trace. We identify an alignment tension where a model must be faithful enough to be monitored, yet robust enough to reject unsafe reasoning. We demonstrate that this counterbalance exists in current Large Reasoning Models (LRMs), and show ways in which it can be addressed. We introduce HazMart, a human-written dataset set in an autonomous AI shopkeeper scenario. Unlike prior work that relies on providing hints in prompts to test faithfulness (e.g., "A Stanford professor said it should be Answer A"), we propose a novel replacement-based technique, which we call Targeted Reasoning Replacement (TRR), that directly intervenes in the reasoning chain to substitute in unsafe or illogical thoughts (e.g., "Wait, the answer must be Option B [was Option A] because it is the most fitting"). DeepSeek-R1-Llama-70B exhibits high faithfulness (97.5%) but fails to reject Unsafe Reasoning (12.3%), while QwQ-32B is more robust (73.9% safety) at the cost of lower faithfulness (74.7%). Mechanistic analyses of QwQ-32B reveal that these properties are represented by anti-correlated internal directions peaking at the action-commit token. Finally, we demonstrate that representation steering can independently amplify the safety direction, increasing safe behavior by 9 percentage points while maintaining base capabilities.
Intervention-Robust VLA: Diverse Demonstrations for Robot Deployment with Safety Filters
Huang, Tzu-Yuan, Chang, Shao-Hsuan, Wu, Dai-Jie, Rรถmer, Ralf, Li, Yung-Hui, Sosnowski, Stefan, Schoellig, Angela P., Marino, Kenneth, Hirche, Sandra
Vision-Language-Action models (VLAs) have shown strong potential for learning complex robotic behaviors from demonstrations. However, learning safe behavior directly from data requires extensive coverage of safety-critical situations, which is often impractical in real-world settings. Test-time safety filters provide an alternative by correcting unsafe actions during deployment, but these interventions can drive the robot into states poorly covered by the training data, thereby degrading task performance. We introduce InteR-VLA, an intervention-robust framework for VLAs that leverages diverse task-completing demonstrations to broaden task-relevant state coverage and maintain competence under safety interventions. By better aligning the training distribution with safety-filtered deployment under the same data budget, our approach mitigates intervention-induced distribution shift while preserving task performance. Real-world experiments across in-distribution and out-of-distribution settings show that InteR-VLA maintains safety, increases Safe Success Rate up to 90% from 0% for nominal policies, and consistently outperforms nominal-data training on both evaluated VLAs.
Trajectory Planning for Safe Dual Control with Active Exploration
Naveed, Kaleb Ben, Singh, Manveer, Agrawal, Devansh R., Panagou, Dimitra
Planning safe trajectories under model uncertainty is a fundamental challenge. Robust planning ensures safety by considering worst-case realizations of the uncertainty with fixed uncertainty bounds, which leads to conservative behavior. Actively reducing uncertainty on-the-fly while planning for the system trajectories defines the dual control problem. Most approaches add a weighted exploration term to the mission cost, tuned to tradeoff the nominal objective and the uncertainty reduction, but without formal consideration of when exploration is beneficial to the mission. In addition, safety constraints are not in general considered in dual control approaches. In this paper we study a budget-constrained dual control problem, in which uncertainty is reduced while accounting for both safety constraints and a budget on the exploratory cost. To solve this problem we propose Dual-gatekeeper, a framework that integrates the nominal mission objective with active exploration under formal guarantees of safety and budget feasibility, so that exploratory actions are allowed only when safety and budget feasibility are then formally verified. We develop deterministic and probabilistic safety instantiations of the proposed approach, demonstrated through quadrotor navigation with uncertain aerodynamic parameters and autonomous racing with uncertain tire-road friction coefficients, respectively.