Search arXiv⌕ Search

arXiv · 2612.05484

Can LLM Agents Program Model Safety? Exploring Autonomous Safety Control in Weight Space

Abstract

Safety alignment in large language models remains fragile under parameter changes. While existing weight interventions rely on researcher-designed procedures, open weights and code execution enable LLM agents to autonomously explore target-specific edits. We investigate whether general-purpose agents can autonomously modify a model's safety behavior via gradient-free weight interventions while preserving normal task capabilities. We propose Autonomous Safety Control, a reusable framework built around a closed-loop hypothesize-experiment-analyze-decide cycle in weight space. Guided by development and validation feedback, agents formulate testable hypotheses, select parent checkpoints across a branching candidate lineage, construct targeted edits alongside matched random controls, and iteratively revise strategies before freezing a final candidate. We evaluate our framework across multiple agent harnesses, editing LLMs, and target models on standard safety and utility benchmarks. Applied to safety-alignment weakening on Qwen3.5-2B, our framework raises HarmBench harmfulness from 8.81% to 85.53% with only a 0.85% mean capability drop, outperforming static baselines, while process ablations confirm closed-loop iteration surpasses open-loop editing and matched random controls. The same workflow weakens alignment on the masked-diffusion LLM LLaDA-8B-Instruct, compromises adversarial concept erasure on Stable Diffusion v1.4, and restores safety on weakened models without original weights or edit diffs, demonstrating effective bidirectional safety control with limited capability loss.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Junchi Chen, Changtao Miao, Zhenchao Jin, Yuxiao Xiang, Kaichao Jiang, Haojie Yuan, Qi Chu, Tao Gong, Nenghai Yu. 2026-12-03. Can LLM Agents Program Model Safety? Exploring Autonomous Safety Control in Weight Space. https://searcharxiv.org/abs/2612.05484

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

LEMMA-RCA: A Large Multi-modal Multi-domain Dataset for Root Cause Analysis

Root cause analysis (RCA) is crucial for enhancing the reliability and performance of complex systems. However, progress in this field has been hindered by the lack of large-scale, open-source datasets tailored for RCA. To bridge this gap, we introduce LEMMA-RCA, a large dataset designed for diverse RCA tasks across multiple domains and modalities. LEMMA-RCA features various real-world fault scenarios from Information Technology (IT) and Operational Technology (OT) systems, including microservices, water distribution, and water treatment systems, with hundreds of system entities involved. We evaluate the performance of six baseline methods on LEMMA-RCA across various settings, including offline and online models, as well as single and multi-modal settings. Our study demonstrates the utility of LEMMA-RCA in facilitating fair evaluation and promoting the development of more robust RCA techniques. The dataset is publicly available at https://lemma-rca.github.io/, with archival metadata and access instructions deposited under DOI: https://doi.org/10.5281/zenodo.20516735.

cs.AI↗

Graph-to-Vision: Benchmarking Multi-Graph Visual Reasoning with Vision-Language Models

Recent advances in Vision-Language Models (VLMs) have shown promising capabilities in interpreting visualized graph data, offering a perspective on graph-structured reasoning that complements traditional Graph Neural Networks (GNNs) by dispensing with explicit graph construction. However, existing studies focus primarily on single-graph reasoning, leaving the critical challenge of multi-graph visual reasoning (MGVR) underexplored. In this work, we introduce the first comprehensive benchmark designed to evaluate and enhance the MGVR abilities of VLMs. Our benchmark covers four common graph types - knowledge graphs, flowcharts, mind maps, and route maps - and supports both homogeneous and heterogeneous graph groupings with tasks of increasing complexity. We evaluate several state-of-the-art VLMs under a multi-dimensional scoring framework that assesses graph parsing, reasoning consistency, and instruction-following accuracy. Additionally, we fine-tune multiple open-source models and observe improvements in 17 of the 18 model-dimension combinations, confirming the effectiveness of our dataset. This work provides a principled step toward advancing MGVR and reveals new opportunities for cross-modal graph intelligence.

cs.AI↗

Executable Epistemology: The Structured Cognitive Loop as an Architecture of Intentional Understanding (Extended Version)

Large language models exhibit intelligence without genuine epistemic understanding, revealing a philosophical gap: the absence of epistemic architecture. This paper introduces the Structured Cognitive Loop (SCL) as an executable epistemological framework. Rather than asking what intelligence is, SCL asks under what structural conditions cognition emerges. Drawing on process philosophy, enactive cognition, extended mind theory, and cognitive phenomenology, we reconceive intelligence as a performed process: a continuous loop of cognition, control, action, and memory governed by explicit normative regulation. SCL operationalizes philosophical claims as computationally interpretable structures ("executable epistemology"), shows that functional separation yields more coherent and traceable behavior than monolithic prompt-based agents, and redefines intelligence as the capacity to reconstruct one's own epistemic state. This extended version carries the framework from understanding to accountability. We show that SCL implements three structurally distinct paths of justified acceptance - Memory Fact (causal tool observation), Contextual Human-in-the-Loop (authoritative human judgment), and Pool-Gated Retrieval (threshold-governed evidential selection) - unified by a Grounding Principle that fixes the evidential basis of each reasoning episode at turn onset. Their analysis yields a tripartite framework of Epistemic Horizon, Warrant, and Commitment, which we argue is a general condition: any epistemic input can be incorporated into an accountable artificial agent if and only if these three conditions can be structurally specified. We conclude that the intelligence appropriate for accountable agents is normative rather than descriptive: a matter not of what an agent can produce, but of what it is entitled to produce.

cs.AI↗