English

Enhancing LLM Agent Safety via Causal Influence Prompting

Artificial Intelligence 2025-07-02 v1 Computation and Language Machine Learning

Abstract

As autonomous agents powered by large language models (LLMs) continue to demonstrate potential across various assistive tasks, ensuring their safe and reliable behavior is crucial for preventing unintended consequences. In this work, we introduce CIP, a novel technique that leverages causal influence diagrams (CIDs) to identify and mitigate risks arising from agent decision-making. CIDs provide a structured representation of cause-and-effect relationships, enabling agents to anticipate harmful outcomes and make safer decisions. Our approach consists of three key steps: (1) initializing a CID based on task specifications to outline the decision-making process, (2) guiding agent interactions with the environment using the CID, and (3) iteratively refining the CID based on observed behaviors and outcomes. Experimental results demonstrate that our method effectively enhances safety in both code execution and mobile device control tasks.

Keywords

Cite

@article{arxiv.2507.00979,
  title  = {Enhancing LLM Agent Safety via Causal Influence Prompting},
  author = {Dongyoon Hahm and Woogyeol Jin and June Suk Choi and Sungsoo Ahn and Kimin Lee},
  journal= {arXiv preprint arXiv:2507.00979},
  year   = {2025}
}

Comments

Accepted at ACL 2025 Findings, Source code: https://github.com/HahmDY/causal_influence_prompting.git

R2 v1 2026-07-01T03:42:00.064Z