Manuscript Offprint

arXiv:2610.09237

Trajectory Abstraction for the Science of Language Agent Behavior

Tianqiang Yan

Abstract

Scientific studies of language agents need behavioral variables that support hypotheses across tasks and models. We formulate this research problem as learning and testing a hierarchy of trajectory abstractions. A concrete recursive procedure first measures role- and phase-indexed events, proposes temporally constrained relations, and tests their stability across conditions. It then constructs episode-level motif variables from selected relations and repeats the analysis on those variables. Explicit measurement functions connect every abstraction level to the original trajectories. Observations and randomized protocol experiments assess the resulting hypotheses, while comparisons between intervention realizations determine whether an abstraction should be retained, refined, or restricted. We derive a finite-depth bound for accepted reductions, identify protocol effects on fixed abstractions, and characterize realization disagreement and composition of abstraction error. A finite-sample test makes projected intervention consistency operational, and constructed examples illustrate motif construction and abstraction refinement. The formulation distinguishes this experimental approach from semantic taxonomies, qualitative theory induction, and behavior-model recovery. It specifies a proposed research procedure for discovering generalizable behavioral hypotheses, with literature-relative novelty assessed separately from model-relative surprise.

1 Introduction

Language agents communicate, invoke tools, reflect on feedback, and coordinate actions. Scientific studies of these behaviors seek explanations that remain useful across tasks and models (Rahwan et al., 2019; Chen et al., 2026). Their observations are trajectories, while their conclusions concern patterns such as checking evidence before action or completing a repair after detecting an error. The scientific problem is to construct the variables in which these patterns can be stated and tested.

A useful abstraction must preserve the distinctions relevant to the question. Consider two messages: one identifies a retrieved result and the intended action; another says “Okay.” Both can be counted as acknowledgments, yet the shared label can conceal differences relevant to the next action. Testing those differences determines whether to retain the count, distinguish message types, or restrict the hypothesis to one protocol. This is an abstraction-construction problem within the scientific study of behavior.

Recent work already provides behavioral vocabularies, inductive analysis, and formal trace abstraction. Actonomy develops an action taxonomy; AutoTraceGT revises grounded codes and relations; ATLAS learns automata from abstract traces (Gao et al., 2026; Lu et al., 2026b; Lopez-Miguel et al., 2026). ReBeCA and CAMO connect measured factors to structural analysis and experiments (Yan et al., 2026; Yu et al., 2026). These developments motivate a concrete formulation of how trajectory variables, relational hypotheses, and executable tests interact during discovery.

Our position is that higher-level behavioral explanations should be constructed through explicit trajectory functions and tested against the contrasts they claim to preserve. We operationalize this position with a recursive procedure: measure events, learn relation candidates, test cross-condition stability, construct motif variables, and evaluate their intervention responses. An accepted reduction becomes the input to the next level. The output is a hierarchy of measurements and tested hypotheses, including unresolved and rejected proposals.

The paper contributes a critical review, a computational formulation of this procedure, and analytical results supporting its design. Randomized assignments identify protocol effects on fixed ab-

∗^{*}Corresponding author.

accepted reduction: analyze the next level

Figure

Figure 1: Recursive trajectory abstraction as a scientific research procedure. Episode measurements produce a table at each level. Relations nominate temporal motifs, whose explicit measurement functions define the next table. Independent experiments test these abstractions and their hypotheses across scenes and language-model backbones.

stractions even when the proposed graph is incorrect. Disagreement between realizations gives a criterion for rejecting a common-response claim. A finite-sample comparison implements that criterion, while compression and consistency bounds constrain recursion. The procedure is specified here; empirical implementation and evaluation remain future work.

References (23)