Abstract
Large Language Models (LLMs) are powerful but also raise significant security concerns, particularly regarding the harm they can cause, such as generating fake news that manipulates public opinion on social media and providing responses to unethical activities. Traditional red teaming approaches for identifying AI vulnerabilities rely on manual prompt construction and expertise. This paper introduces AdversaFlow, a novel visual analytics system designed to enhance LLM security against adversarial attacks through human-AI collaboration. AdversaFlow involves adversarial training between a target model and a red model, featuring unique multi-level adversarial flow and fluctuation path visualizations. These features provide insights into adversarial dynamics and LLM robustness, enabling experts to identify and mitigate vulnerabilities effectively. We present quantitative evaluations and case studies validating our system's utility and offering insights for future AI security solutions. Our method can enhance LLM security, supporting downstream scenarios like social media regulation by enabling more effective detection, monitoring, and mitigation of harmful content and behaviors.
Funding Information
  • National Key Research and Development Program of China (2023YFB3107100)
  • Key “Pioneer” R&D Projects of Zhejiang Province (2023C01120)
  • National Natural Science Foundation of China (U22A2032)
  • National Natural Science Foundation of China (62072400)
  • Collaborative Innovation Center of Artificial Intelligence by MOE and Zhejiang Provincial Government

This publication has 50 references indexed in Scilit: