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
Purdue University · Stevens Institute of Technology · Cornell University · University of Texas at El Paso · Johns Hopkins University
Published August 31, 2026 · on the feed September 4, 2026 · ▲ 10 · arXiv 2608.30391
The 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.
The Brief
2:08A short podcast summary of the paper. Written and voiced by AI.
Transcript
Using Grounded Theory for Agent Behavior Analysis at Scale. By Zhuoran Lu and seven others, from Purdue University, Stevens Institute of Technology, and three other institutions. Published on the thirty-first of August. Its code repository is public and real: seventeen source files.
Understanding what an agent actually does means reading its trajectories, and there are thousands of them, in long and often unfamiliar tasks. Pre-built classifiers do not help here, because they can only find the behaviours someone already thought to name. The behaviours you most want to discover are the ones nobody has a label for yet.
The proposal is to borrow a method rather than invent one. Grounded theory is a qualitative analysis technique from the social sciences, six decades old, built for exactly this situation: deriving categories from data instead of imposing them on it. Two properties make it more than an analogy. It has a principled saturation criterion, so there is a defined point at which you stop looking for new categories. And it produces an auditable trail from the raw data to the resulting theory, so a claim about agent behaviour can be traced back to the trajectories that produced it.
AutoTraceGT is the first multi-agent pipeline to automate grounded theory on agent trajectories. It performs the method's three coding stages iteratively, open, then axial, then theoretical, and keeps going until saturation. What comes out is a behavioural taxonomy built for the specific task at hand rather than a generic one applied to it.
Across six trajectory corpora, the codebooks recover between seventy-three and ninety-one percent of the failure modes present in human-annotated taxonomies, and surface additional patterns those taxonomies miss. The emergent narrative aligns with prior expert accounts, which is the check that the automation has not drifted somewhere unrecognisable. And used as a deductive feature space, the codebook beats zero-shot and few-shot baselines on downstream failure prediction, so the categories are load-bearing rather than decorative.
The framing here is that studying agent behaviour is a qualitative research problem that happens to be about software. Fields that have spent decades developing methods for reading unfamiliar behaviour at scale already exist, and this is a claim that their tools transfer.
The deep dive
5:37A longer episode, written from the whole paper. Written and voiced by AI.
Transcript
Using Grounded Theory for Agent Behavior Analysis at Scale. By Zhuoran Lu and seven others, from Purdue University, Stevens Institute of Technology, and three other institutions. Published on the thirty-first of August. This is the long version: the whole paper rather than the abstract.
Here is the situation this paper is answering. Your agent failed a task after forty-seven actions. You have a table telling you it made eight bash calls, twelve file edits, three retries, used some tokens, and exited failed. Why did it fail? You cannot tell from the table. The metadata scales beautifully and explains nothing about the process that produced it.
Stronger task-solving ability has not eliminated brittleness. Agents still fail after long sequences of locally reasonable decisions, which is exactly the kind of failure that metadata cannot see, because every individual step looks fine. Existing analyses fall into two constrained regimes. Lightweight quantitative metadata scales easily and explains little. Human analysis is interpretable and expensive, especially for trajectories with hundreds of steps. There is a hybrid that builds behavioural classifiers from pre-defined, usually expert-derived patterns, and it is too rigid to generalise to novel tasks and emergent behaviours. The deeper gap the authors identify is that machine learning lacks a methodology for studying behaviour that is both scalable and generalisable.
The system is the first multi-agent pipeline to automate grounded theory on agent trajectories. It runs the method's three coding stages iteratively, open coding then axial then theoretical, continuing until saturation, and what emerges is a behavioural taxonomy built for the specific task rather than a generic one applied to it. The worked example in the paper shows what that buys over the metadata table. For a failed web-navigation trajectory, the emergent description is that the agent keeps acting without diagnostic checks: it seeks an appropriate tool, attempts direct input, then retries without testing, and only much later probes what the interface element actually affords. That is a named behaviour with a mechanism, and it is exactly what the action counts could not express.
Across six trajectory corpora, the codebooks recover between seventy-three and ninety-one percent of the failure modes present in human-annotated taxonomies, which is the headline comparison and also the one that needs reading carefully, and surface additional patterns those taxonomies miss. The emergent theoretical narrative aligns with prior expert accounts, which is the check that automation has not drifted somewhere unrecognisable. And used as a deductive feature space, the codebook outperforms zero-shot and few-shot baselines on downstream failure prediction, so the categories are load-bearing rather than decorative. That last result is the strongest of the three, because a codebook could recover a human taxonomy and align with expert narratives while still being a restatement. Being usable as features that beat a language model asked the same question directly means the categories carry information the model does not otherwise apply.
Neither codebook is a superset of the other, and the paper reports mutual coverage in both directions rather than only the flattering one. The numbers vary substantially by corpus, and the recall, precision and match figures are not uniform across the three datasets tabulated, so the method's agreement with human annotation depends on the domain. More broadly, the evaluation compares against human-annotated taxonomies, which makes those taxonomies the reference standard even though the paper's own argument is that they are incomplete. That is unavoidable and it does mean the reported recovery rate measures agreement rather than correctness.
The framing to take away is that studying agent behaviour is a qualitative research problem which happens to be about software. Fields that have spent sixty years developing methods for reading unfamiliar behaviour at scale already exist, their methods come with saturation criteria and audit trails, and the claim here is that those transfer. Which is a more useful contribution than another failure taxonomy would have been, because a taxonomy ages as agents change and a method does not.
Paper Quest · 7 chapters · about 40 min
Play this paper
Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.
Chapter 1 🧩 · The problem
Thousands of trajectories, and no idea what to look for. Where would you even begin?
You have thousands of agent trajectories, each one long, from tasks you barely know. You want to know what the agents actually do while they work, and why they fail.
The road ahead
- 1 · The problem ~7 min You have thousands of long agent trajectories and no cheap, flexible way to learn what the agents actually do or why they fail.
- 2 · What came before ~3 min
- 3 · The key idea ~8 min Automate grounded theory: LLM agents code trajectories in stages and rounds, letting categories emerge from the data, until new rounds add nothing new.
- 4 · Choose your own research ~3 min
- 5 · Build the method ~8 min Open-code each trajectory, group codes into categories per round, repeat until saturation, integrate into a theory, then reuse the codebook as features.
- 6 · The experiment ~6 min You’ll guess: Compared with human-annotated failure taxonomies, how many of their failure modes did the automatically derived codebooks recover?
- 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Free, with Google or an email address. Your stars and progress are kept.