AgentLens: Visual Analysis for Agent Behaviors in LLM-based Autonomous Systems
Jiaying Lu, Bo Pan, Jieyi Chen, Yingchaojie Feng, Jingyuan Hu, Yuchen Peng, Wei Chen
TL;DR
AgentLens addresses the challenge of analyzing the evolving dynamics of LLM-based autonomous systems by introducing a general pipeline that builds a hierarchical behavior structure from raw events, applies a behavior summarization process to yield semantically rich segments, and employs a cause-trace mechanism to reveal relationships among behaviors. The system comprises three coordinated views—Outline, Agent, and Monitor—that enable interactive exploration, detail inspection, and cause verification, validated by usage scenarios and a user study with 14 participants. Key contributions include the first visual analytics system for LLMAS behavior exploration, a robust summarization and causes framework, and demonstrated improvements in task accuracy and efficiency over a baseline. The work has practical impact for developers and researchers by providing actionable insight into agent behaviors, enabling debugging, pattern discovery, and evaluation of social dynamics in simulated human-like ecosystems. It also lays groundwork for extending to multimodal LLMAS and broader applications like multi-agent communities and open-world game analytics.
Abstract
Recently, Large Language Model based Autonomous system(LLMAS) has gained great popularity for its potential to simulate complicated behaviors of human societies. One of its main challenges is to present and analyze the dynamic events evolution of LLMAS. In this work, we present a visualization approach to explore detailed statuses and agents' behavior within LLMAS. We propose a general pipeline that establishes a behavior structure from raw LLMAS execution events, leverages a behavior summarization algorithm to construct a hierarchical summary of the entire structure in terms of time sequence, and a cause trace method to mine the causal relationship between agent behaviors. We then develop AgentLens, a visual analysis system that leverages a hierarchical temporal visualization for illustrating the evolution of LLMAS, and supports users to interactively investigate details and causes of agents' behaviors. Two usage scenarios and a user study demonstrate the effectiveness and usability of our AgentLens.
