Using Grounded Theory for Agent Behavior Analysis at Scale

Zhuoran Lu, Yangyang Yu, Zhuoyan Li, Yibo Meng, Nan Jiang, Chengxi Zang, Jie Gao, Ziang Xiao

arXiv:2608.30391 · 2026-09-06 공개 · arXiv · PDF

multi-agent trajectory-analysis failure-prediction grounded-theory agent-behavior auto-tracegt codebook-generation behavioral-taxonomy

Abstract

Understanding agent behavior requires methods that scale to thousands of trajectories and surface new patterns in long, often unfamiliar tasks where pre-built classifiers fall short. We propose to bring grounded theory into agent trajectory analysis: a six-decade-old qualitative method from the social sciences, with a principled saturation criterion and an auditable trail from data to theory. We propose AutoTraceGT (Automated Trace analysis through Grounded Theory), the first multi-agent pipeline that automates grounded theory on agent trajectories. It iteratively performs open, axial, and theoretical coding until saturation, producing a behavioral taxonomy tailored to each task. Across six trajectory corpora, AutoTraceGT produces codebooks that recover 73-91 percent of the failure modes in human-annotated taxonomies and surface additional patterns that those taxonomies miss. The emergent theoretical narrative aligns with prior expert accounts. Used as a deductive feature space, the codebook outperforms zero-shot and few-shot LLM baselines on downstream failure prediction. These results suggest Grounded Theory offers a scalable analytic tool for ML researchers and agent developers studying what agents actually do.

한국어 요약

한 줄 요약

AutoTraceGT는 대규모 에이전트 트레이잭토리 분석을 위한 첫 번째 자동화된 Grounded Theory 파이프라인으로, 7,500개 이상의 데이터에서 73-91%의 실패 원인을 복구한다.

핵심 기여도

핵심 아이디어

기존 에이전트 분석 방법은 양적 메타데이터나 고정된 분류기만 사용하여 새로운 패턴을 포착하지 못한다. 본 연구는 사회과학에서 유래한 Grounded Theory를 도입하여, 데이터에서 이론을 유도하는 인덕티브 접근법을 제안한다. AutoTraceGT는 OpenCode, AxialCode, TheoreticalCode 세 단계를 반복하며 이론적 포화에 도달할 때까지 코드북을 생성한다. 이는 기존 분류기와 달리 새로운 실패 패턴을 발견할 수 있는 유연한 프레임워크를 제공한다.

Grounded Theory는 이론적 포화 개념을 통해 데이터 기반으로 분석을 종료하며, 이는 기존의 임의적 종료 기준과 구별된다. AutoTraceGT는 이러한 이론적 포화 기준을 기계적으로 추적하고, 각 단계의 결과를 기록하여 추적 가능성을 확보한다.

기술적 접근법

주요 결과

의의 및 한계

AutoTraceGT는 대규모 에이전트 트레이잭토리 분석을 위한 체계적이고 재현 가능한 프레임워크를 제공하며, 기존 분류기의 제한성을 극복한다. 특히, Grounded Theory의 이론적 포화 기준을 기계화함으로써 분석의 신뢰성을 높인다. 그러나, 코드북 생성 과정에서 사용되는 LLM의 편향이 결과에 영향을 줄 수 있으며, 모든 실패 원인을 포착하지 못하는 경우도 존재한다. 또한, 이론적 포화에 도달하는 데 필요한 반복 횟수는 데이터셋에 따라 변동이 크다.

실용적 활용

AutoTraceGT는 소프트웨어 개발, 웹 브라우징, 딥 레서치 등 복잡한 에이전트 시스템의 행동 분석에 활용 가능하다. 특히, 실패 원인을 시스템적으로 파악하고 예측하는 데 유용하며, 에이전트 평가와 디버깅 과정에서 실용적 도구로 사용될 수 있다.