The Geometry of Agent Skills: Non-Commutative Composition in Representation Space
Junda Wu, Yifan Wang, Zihan Huang, Xunyi Jiang, Sheldon Yu, Rohan Surana, Lina Yao, Julian McAuley, Tong Yu
NeurIPS page · OpenReview · Open on the map
Category: LLM Reasoning, Memory & RAG › Hallucination Detection Methods · Type: new method · Keywords: skill composition, non-commutative geometry, LLM agents, vector fields, finite-difference commutator
Summary
The paper introduces a geometric framework that models skills as context-dependent vector fields in representation space and quantifies non-commutative composition via a finite-difference commutator, validated on frozen LLM agents with activation-based and prefix-based realizations.
Explained to a 5-year-old
Imagine a robot that can do little tricks, like picking up blocks or drawing shapes. Each trick is a skill, but how well it works can change depending on what the robot already knows. When you do two tricks one after another, sometimes the order matters-like putting on socks before shoes versus shoes before socks. The researchers built a way to measure how much the order matters by looking at the robot’s actions. This helps make robots more predictable when they do many steps together.
Explained to a 5-year-old, longer
Robots can learn many small tasks, like stacking cups or drawing a sun. Each task is called a skill, and it can work differently depending on what the robot already knows. Sometimes doing skill A then skill B gives a different result than doing B then A. The scientists created a method to measure how much the order changes the result by watching the robot’s actions many times. They used two ways to see the robot’s thoughts: looking at its internal numbers and looking at the words it says. They found that skills that are similar work better together, but skills that are very different can cause bigger changes. The measurement they built helps predict whether the order will matter before actually trying it. This makes robot plans more reliable and safer. It also helps researchers understand how skills behave in complex situations. The idea can be used in many kinds of robot systems, not just the ones in the study. By understanding order effects, we can design better step-by-step plans for robots.
For a technical reader
The paper treats each reusable skill of an LLM agent as a locally varying vector field in the model’s representation space, capturing how the skill’s effect changes with context. By defining skill objectives as vector fields, the authors derive the Lie bracket to quantify the order-dependent component of composition. They then estimate this bracket using a finite-difference commutator computed from paired ordered rollouts, preserving the direction of the order-dependent change. The framework is instantiated on frozen LLM agents with activation-based and prefix-based skill realizations, and empirical results show strong correlation between the measured commutator and actual ordered-composition gaps.
Problem
Existing skill representations treat skills as fixed directions, ignoring how their behavior changes with context and how the order of applying skills influences outcomes, which limits predictability in multi-step agent reasoning.
Method
The approach models a skill as a local map from intervention coordinates to a readout representation, defines context-dependent vector fields from skill objectives, and estimates the non-commutative component of skill composition using a finite-difference commutator computed from paired ordered rollouts. It is instantiated on frozen LLM agents with activation-based and prefix-based skill realizations.
Results
The measured two-skill interaction predicts ordered-composition gaps with Spearman correlations of 0.918 and 0.889, activation and prefix Jacobians are more aligned than cross-skill pairings (Cohen’s d = -0.76/-0.26), and high-commutator skill pairs show non-saturating reachability with positive spectral-entropy gains and principal-angle novelty.
Contributions
A geometric formulation of skills as context-dependent vector fields, a finite-difference estimator for the non-commutative component of skill composition, and empirical validation on frozen LLM agents showing strong predictive power of the commutator for ordered rollouts.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction