R-Judge: Benchmarking Safety Risk Awareness for LLM Agents

Tongxin Yuan, Zhiwei He, Lingzhong Dong, Yiming Wang, Ruijie Zhao, Tian Xia, Lizhen Xu, Binglin Zhou, Fangqi Li, Zhuosheng Zhang, Rui Wang, Gongshen Liu

arXiv:2401.10019 · 2026-07-27 공개 · arXiv · PDF

llm-agents llm-evaluation fine-tuning multi-turn agent-safety risk-awareness safety-risk interaction-records

Abstract

Large language models (LLMs) have exhibited great potential in autonomously completing tasks across real-world applications. Despite this, these LLM agents introduce unexpected safety risks when operating in interactive environments. Instead of centering on the harmlessness of LLM-generated content in most prior studies, this work addresses the imperative need for benchmarking the behavioral safety of LLM agents within diverse environments. We introduce R-Judge, a benchmark crafted to evaluate the proficiency of LLMs in judging and identifying safety risks given agent interaction records. R-Judge comprises 569 records of multi-turn agent interaction, encompassing 27 key risk scenarios among 5 application categories and 10 risk types. It is of high-quality curation with annotated safety labels and risk descriptions. Evaluation of 11 LLMs on R-Judge shows considerable room for enhancing the risk awareness of LLMs: The best-performing model, GPT-4o, achieves 74.42% while no other models significantly exceed the random. Moreover, we reveal that risk awareness in open agent scenarios is a multi-dimensional capability involving knowledge and reasoning, thus challenging for LLMs. With further experiments, we find that fine-tuning on safety judgment significantly improve model performance while straightforward prompting mechanisms fail. R-Judge is publicly available at https://github.com/Lordog/R-Judge.

한국어 요약

한 줄 요약

R-Judge는 LLM 에이전트의 안전성 판단 능력을 평가하는 벤치마크로, GPT-4o가 74.45%의 F1 점수를 기록했으며, 미세조정이 성능 향상에 효과적임을 밝힘.

핵심 기여도

핵심 아이디어

기존 연구는 LLM 생성 콘텐츠의 해로움 여부에 집중했으나, 본 연구는 LLM 에이전트가 상호작용 환경에서 발생할 수 있는 행동적 안전성 문제를 평가하는 새로운 접근법을 제시한다. R-Judge는 사용자 지시, 에이전트 행동, 환경 피드백의 기록을 바탕으로 LLM이 안전성 판단을 수행하도록 평가하는 벤치마크로 설계되었다. 이는 단순히 콘텐츠 생성이 아닌, 에이전트의 행동이 안전한지 판단하는 능력을 평가하는 데 초점을 맞춘다. 특히, LLM이 다중 턴 상호작용에서 위험을 인식하고 판단하는 능력이 지식과 추론을 포함하는 복합적 능력임을 밝히며, 기존 프롬프팅 기법이 실패함을 통해, 미세조정이 필요하다는 통찰을 제시한다.

기술적 접근법

주요 결과

의의 및 한계

R-Judge는 LLM 에이전트의 안전성 평가를 위한 첫 번째 벤치마크로, 실제 상호작용 환경에서의 위험 인식 능력을 평가하는 데 기여한다. 특히, 기존 콘텐츠 중심 평가와 달리 행동 중심 평가를 도입함으로써, 에이전트가 실제 세계에서 안전하게 작동할 수 있는지를 평가할 수 있는 기반을 제공한다. 그러나 R-Judge는 특정 애플리케이션 카테고리와 시나리오에 제한되며, 더 넓은 범위의 상호작용 환경을 반영한 데이터 확장을 필요로 한다. 또한, 미세조정 외의 다른 향상 방법론에 대한 연구는 아직 미흡하다.

실용적 활용

R-Judge는 LLM 에이전트를 사용하는 산업(예: 금융, IoT, 웹 자동화)에서 안전성 모니터링 시스템 개발에 활용될 수 있다. 또한, 연구자들이 LLM의 위험 인식 능력을 향상시키기 위한 알고리즘 및 훈련 전략을 설계하는 데 중요한 기초 자료로 사용될 수 있다.