TL;DR
Think about parallel parking: turning the steering wheel and hitting the gas don't commute—the order in which you execute those two simple actions unlocks sideways motion you could never achieve by doing either one alone. This paper shows that reusable "skills" in LLM agents behave the exact same way in representation space. Instead of being static prompts or fixed steering vectors, skills act like context-dependent vector fields whose ordered combinations leave measurable, direction-preserving footprints—allowing us to predict when execution order matters and unlock brand-new behaviors without running expensive multi-step rollouts.
What Problem Does This Paper Address?
When we equip frozen LLM agents with reusable skills—like binary search, fraction addition, or tool recovery—we usually implement them via prompts, continuous prefixes, or activation steering vectors. Most existing analyses treat a skill as a static, context-independent "direction" in the model's hidden state space.
That flat view breaks down in real agentic workflows for two reasons:
- Context dependence: What a skill actually does depends heavily on the history and state the agent is currently in.
- Order sensitivity: Applying Skill A then Skill B often produces a completely different trajectory than Skill B then Skill A. If skills were simple linear vectors being added together ($A + B = B + A$), order wouldn't matter at all.
The authors ask: What is the true mathematical geometry of an LLM skill, how do different implementations of the same skill differ, and how can we measure what happens when skills are composed in sequence?
Methods
The authors borrow tools from geometric control theory (specifically sub-Riemannian geometry, the math of under-actuated systems like parallel-parking cars) to map out frozen LLMs:
- Local Controllable Geometry: Instead of a single vector, a skill implementation (like prefix tuning or activation steering) lives in a parameter "residence space." Taking the local Jacobian ($J$) of the LLM's representation with respect to those parameters reveals the steerable subspace—the slice of directions the skill can actually push the model toward right now—along with a pullback metric ($g$) that measures the parameter "effort" (control cost) required to move in each direction.
- Implementation Distortion (H1): A novel two-part diagnostic that compares two mechanisms (e.g., activation steering vs. prefix tuning for the same skill) by measuring both how much their reachable subspaces overlap and whether they assign the same control cost to shared directions.
- Finite-Difference Skill Commutator (H2): In differential geometry, the Lie bracket $[X_A, X_B]$ measures how much two vector fields fail to commute. Because we don't have clean analytical equations for LLM skill fields, the authors introduce a novel estimator using paired forward rollouts: run $A \to B$, run $B \to A$, and take their scaled difference $(z^{A\to B} - z^{B\to A})/\eta^2$. This cancels out first-order additive effects and isolates the exact vector of order-dependent change.
Datasets
Rather than training on standard text corpora, the authors evaluate two frozen decoder-only checkpoints—general-purpose Qwen3.5-2B and math-specialized Qwen2.5-Math-1.5B—across a six-skill panel spanning three semantic axes (arithmetic, algorithmic, and equation/divisibility): binary_search, check_divisibility_rules, fraction_addition, greatest_common_divisor, multi_digit_multiplication, and solve_system_two_equations (evaluated over held-out pools of 100 agent histories per skill pair). They also use synthetic bracketed systems with analytically known Lie brackets to calibrate and validate their finite-difference estimator.
Key Insights and Ideas
- Matched skills aren't interchangeable controllers: Realizing the exact same skill via activation steering versus prefix tuning aligns their subspaces better than unrelated skills, but they assign noticeably different control costs to those directions. Matching a single steering vector misses this completely.
- Non-commutativity maps out skill semantics: When you measure the commutator across all 15 skill pairs, within-category pairs (like
binary_search+gcd) nearly commute, whereas cross-category pairs (mixing arithmetic and algorithms) clash strongly. The geometry naturally discovers how skills are related! - Order creates new directions (the parallel-parking effect): Iterating non-commuting skills expands the reachable representation space into directions that neither skill can reach on its own at first order—confirmed by comparing ordered bracket rollouts against simple vector transport, which fails to explain the gain.
- Domain specialization reshapes the Lie algebra: Compared to the general-purpose model, the math-specialized LLM has a ~2x flatter objective landscape (lower sensitivity/Lipschitz constants), yet exhibits a 36% larger overall commutator norm. Specialization makes individual steps smoother while sharpening the structural interactions between distinct skills.
Key Results
- Predicting Implementation Gaps (H1): The proposed subspace-plus-metric distortion predictor beats scale-free CCA baselines by $\Delta\rho_S \ge +0.33$ and single-direction cosine baselines by $\Delta\rho_S \ge +0.65$ across all tested step sizes.
- One-Shot Order Sensitivity Screening (H2): A single-step commutator norm strongly predicts full rollout-level order sensitivity, achieving Spearman correlations of $\rho_S = 0.918$ (
Qwen3.5-2B) and $\rho_S = 0.889$ (Qwen2.5-Math-1.5B). Clustering the commutator matrix recovers the ground-truth semantic skill categories with an Adjusted Rand Index of $0.444$. - Reachability Expansion (H3): Over 16-step rollouts, bracket-activated skill sequences probe directions outside the initial Jacobian image with horizontality residuals $10^7\text{--}10^8\times$ larger than in-distribution protocols, yielding strictly positive spectral-entropy gains on 14/14 multi-seed cells (cross-seed CV $\le 3.7\%$).
Limitations and Future Work
- Local scope: All geometric measurements are local to a specific readout layer, pre-action token position, and observed context; differences on unobserved rollout branches aren't captured, and accessibility is used strictly as a local lens rather than a claim of global LLM controllability.
- Single-site interventions & architectures: Experiments focus on single-layer readouts in two Qwen-family models (1.5B–2B). Future work includes extending the math to multi-layer interventions, testing diverse model architectures, and linking representation-space reachability directly to end-to-end task accuracy benchmarks.
Summary updated