When a language model is asked to drive "aggressively" or "cautiously", does it hold an internal setting that controls when it acts? Such a setting would decide how close it lets the car ahead get, or how long it hesitates before a lane change. Or does it only produce text that sounds risky? Today we cannot say. Probing work shows that models store quantities like number magnitude along straight-line directions in their hidden activations. Style-alignment work shows that a prompted model can be pushed toward "Risky" or "Cautious" driving. Nobody has checked whether an internal style direction acts as a timing parameter on behavior, and nobody has expressed what such a direction does in a form a verifier can check.
We propose to answer that question with a specific measuring instrument: the timed automaton, a state machine with real-valued stopwatches ("clocks") and conditions on them ("guards") such as "a lane change may start only after at least 1.8 s of headway." The method has four steps. We find a style direction inside an open-weight model, push the model's activations along that direction by varying amounts, and let the steered model drive in a mixed-traffic simulator. From the timestamped event logs we learn a timed automaton. The interpretability claim then becomes a concrete, falsifiable statement: moving along the direction shifts specific clock guards in a monotone way and leaves the structure of the automaton unchanged. Because the explanation is a timed automaton, we can go one step further. We can compute the range of steering strengths over which the explanation satisfies a safety property, and then test that range on held-out episodes.
Core Claim
The behavioral effect of an internal representation in a language-model agent can be read out as a parametric timed automaton. Its guards are functions $g_e(\alpha)$ of the intervention strength $\alpha$, where $e$ indexes transitions such as "lane keeping → preparing to change." Under the intervention $h_\ell \leftarrow h_\ell + \alpha v$, where $h_\ell$ is the hidden state at layer $\ell$ and $v$ is a unit style direction, a direction that genuinely encodes driving style should satisfy three conditions. First, $g_e(\alpha)$ should be monotone in $\alpha$ for timing-related transitions. Second, the set of states and transitions should stay fixed. Third, random directions of equal norm should produce no such trend.
This differs from existing work in what counts as an explanation. Linear-intervention studies such as Language Models Encode the Value of Numbers Linearly show that steering changes a single output value. They reach intervention success rates up to 0.73, but they never characterize temporal behavior. The temporal causal model in LLM Interpretability with Identifiable Temporal-Instantaneous Representation recovers token-to-token dependency matrices on text corpora. It produces a statistical structural model, not a machine with clocks that can be checked against a property.
Research Program
The testbed is the behavior-rich highway simulator from B-GAP. It mixes IDM/MOBIL drivers whose aggressiveness is tuned by a graph-centrality score, with aggressiveness ratios from 0% to 100% and densities up to 40 vehicles. B-GAP motivates the setting: it reports that learned policies degrade in exactly this kind of mixed traffic.
The ego vehicle is driven by an open-weight 7B model from the families that prior probing work used (LLaMA-2, Mistral). The model receives a text description of the scene at a fixed decision rate and chooses among discrete actions: change left, change right, faster, slower, idle. The simulation clock is paused during inference, following Driving Style Alignment for LLM-powered Driver Agent. Latency is irrelevant here because we are studying the model, not deploying it.
The program has four stages.
Find candidate directions. We obtain candidate style directions from contrastive "risky vs. cautious" prompts, in the style of the Risky/Cautious split in the alignment paper. As a sanity check, we fit linear probes for time headway (THW) and time-to-collision (TTC) from the prompt state. These are the kinematic signatures that Human-Like Decision Making for Autonomous Driving used to cluster NGSIM drivers into Aggressive, Normal and Conservative.
Choose the layer. We pick intervention layers using the layerwise intrinsic-dimension profile from Geometry of Decision Making in Language Models. That paper finds the model commits to its answer at the peak of a "hunchback" curve. This gives a pre-registered prediction: steering before the peak should move guards, and steering well after it should not. It also tests whether that geometric finding, so far validated only on multiple-choice answer tokens, carries over to sequential control.
Learn automata from logs. Each episode is converted into a timestamped log of mode events, using the three-mode hybrid view of lane changing from Identifying Modes of Intent from Driver Behaviors: keep, prepare, execute. We add events for car-following entry and exit. From these logs we learn deterministic real-time automata with TAG. TAG supplies the learning method. Its interval-splitting step turns timing differences directly into guard intervals, and it has a single parameter $k$, so changes in guards across $\alpha$ are not artifacts of hyperparameter tuning. We fit one automaton per $\alpha$ on a grid. We align the automata by state correspondence and regress each guard bound on $\alpha$ to obtain $g_e(\alpha)$.
Verify the explanation. We treat the learned guards as symbolic parameters, in the spirit of parametric timed automata (André et al.). We synthesize the interval of $\alpha$ for which a property holds in UPPAAL (Bengtsson et al.), for example "no lane change starts with THW below 1 s." Where the learned model is stochastic, we use statistical model checking in the line of Larsen.
We are explicit about one limit. The guarantee applies to the learned automaton, not to the network. The empirical question is whether held-out episodes inside the certified $\alpha$ range actually avoid violations, and whether episodes outside it do not.
A second use of the same instrument compares model heterogeneity with human heterogeneity. We learn automata from NGSIM I-80/US-101 trajectories within each human style cluster and ask whether steering the model sweeps its guards through the same region that separates human Aggressive from Conservative drivers. That would tell us whether the model's notion of "aggressive" has human-like timing or is a caricature.
Baselines
Do nothing. The naive reference is the unsteered model at $\alpha=0$ together with random unit directions at matched norm, injected at the same layer. Any trend in $g_e(\alpha)$ must clearly exceed the spread produced by random directions. Concretely, the 95th percentile of random-direction guard slopes is the bar to beat.
Prompt conditioning. The strongest existing way to control style is prompt-level conditioning with few-shot demonstrations and coach feedback, as in Driving Style Alignment for LLM-powered Driver Agent. We reimplement it with the same open-weight model, so that the only difference is where style enters. We make it continuous by graded instructions ("aggressiveness 1–10") and by mixing risky and cautious demonstrations in varying ratios. Both arms get the same episode budget per grid point and the same TAG settings. Its own paper reports collision behavior only qualitatively: cautious agents had the lowest collision rates, and risky agents had higher speed and throttle. For the guard-monotonicity question, Lacuna has no reported result for prompt-based style control. Steering beats it if it yields higher rank correlation between knob and guard bounds with fewer structural changes to the automaton. A comparable correlation obtained at lower collision cost also counts.
Learned driving policy. For the driving outcome itself, the strongest reported number is from B-GAP: 3.00% collisions in sparse traffic ($n=5$, 600 episodes), against 11.40% for PS-DDPG. We report collision rates on the same configuration for context. We do not claim to beat B-GAP's policy, since the goal is explanation rather than driving performance.
Ablations. Two ablations isolate the key ingredient. The first replaces TAG with Timed k-Tail and RTI+, which reach 0.58 and 0.44 precision against TAG's 0.92 on TAG's synthetic benchmark. This tests whether guard trends survive a weaker learner. The second replaces the automaton readout with summary kinematic statistics, as discussed below.
Why not just…?
Why not just measure mean headway and TTC as a function of $\alpha$? Summary statistics will probably move with steering too, and that is a real threat. They pool all modes together, however. They cannot distinguish a direction that shortens the hesitation in "preparing" from one that tightens car-following, and they support no property checking. We test this directly. Both readouts, the per-$\alpha$ automaton and a per-$\alpha$ regression on summary statistics, are scored on predicting which held-out episodes violate the headway property. If summary statistics predict equally well, the automaton is just an elaborate description, and we will report it that way.
Why not just prompt for a style level and skip activations? Prompting is the baseline above, and it may give a usable knob. What it cannot tell us is whether the model holds an internal variable that drives timing. The test is the random-direction control together with the layer-dependence prediction from intrinsic dimension. A prompt changes the input, so it cannot localize anything. Probing the Probing Paradigm is a constraint on this design: a high-accuracy style probe need not be causally used. For that reason the readout is defined by intervention, not by probe accuracy.
Why not just put a timed shield around the language-model driver? Shield synthesis as in It's Time to Play Safe, or the stopwatch-automaton shields of Dole et al., would enforce safety but explain nothing about the model. That is the obvious idea at this intersection, and it amounts to applying existing machinery to a new controller. Our verified $\alpha$ range is complementary. It says which internal settings keep the learned behavior safe, and that range could later size a shield.
Proposed Experiments
Learner validation. We first confirm that TAG recovers guard trends and not just structure. On synthetic families of automata whose guards scale linearly with a hidden parameter, generated like TAG's 200-model benchmark, we measure the error of recovered slopes.
Main sweep. The main experiment sweeps $\alpha$ over a symmetric grid at three layers: before, at, and after the intrinsic-dimension peak. It runs at aggressiveness ratios of 0%, 50% and 100% and densities $n=5$ and $n=40$ in highway-env, with several hundred episodes per cell. The decisive checks are four. Spearman correlation between $\alpha$ and the prepare-dwell and THW guards should be high and should exceed both the random-direction and prompt baselines. The automaton's states and transitions should stay fixed across $\alpha$. The layer effect should follow the intrinsic-dimension prediction. Episodes inside the certified $\alpha$ interval should show near-zero headway violations, with violations appearing just outside it.
Human comparison. We measure the distance between guard vectors of steered-model automata and of NGSIM cluster automata, and ask whether some $\alpha$ places the model near each human cluster.
Capability check. We run STSBench (dataset) at each $\alpha$ to confirm that steering is not simply degrading scene reasoning. GPT-4o's reported 57.08% is a ceiling reference. Lacuna has no reported result for the open-weight 7B models we would use.
Failure modes. A negative result is informative either way. If guards do not move monotonically, or the automaton's structure changes chaotically with $\alpha$, then "style" in these models is not a timing variable, and prompt-induced style is surface mimicry.
References
- Language Models Encode the Value of Numbers Linearly
- LLM Interpretability with Identifiable Temporal-Instantaneous Representation
- B-GAP: Behavior-Rich Simulation and Navigation for Autonomous Driving
- Driving Style Alignment for LLM-powered Driver Agent
- Human-Like Decision Making for Autonomous Driving: A Noncooperative Game Theoretic Approach
- Geometry of Decision Making in Language Models
- Identifying Modes of Intent from Driver Behaviors in Dynamic Environments
- TAG: Learning Timed Automata from Logs
- Automated synthesis of local time requirement for service composition
- UPPAAL—a Tool Suite for Automatic Verification of Real–Time Systems
- Probing the Probing Paradigm: Does Probing Accuracy Entail Task Relevance?
- It's Time to Play Safe: Shield Synthesis for Timed Systems
- Correct-by-Construction Reinforcement Learning of Cardiac Pacemakers from Duration Calculus Requirements