Research
Screw Attention: Rigid-Body Algebra Inside a Transformer
Learned manipulation policies have to rediscover from data the spatial relations that rigid-body mechanics already provides in closed form, which makes them fragile when objects are moved or the…

- arXiv
- 2610.00904 · Preprint · not peer-reviewed
- Published
- 2026-10-01 · revised · 2026-10-10
- Authors
- Aly Magassouba
In plain words
Learned manipulation policies have to rediscover from data the spatial relations that rigid-body mechanics already provides in closed form, which makes them fragile when objects are moved or the robot's configuration changes.
AI summary
Overview
Research area: Robot learning and manipulation policy architectures, combining rigid-body (screw/spatial) algebra with transformer attention and equivariant network design. Technical level: Advanced — the paper assumes familiarity with transformer attention, coordinate frames, twists/wrenches, and equivariance; the motivating problem, however, is stated in accessible terms. Scope: The paper introduces Screw Attention, a transformer layer in which each pair of tokens is related by a physical spatial transform (plus a joint screw for robot links) rather than a learned graph edge, and evaluates it on simulated manipulation tasks and the LIBERO-Spatial benchmark.
What This Paper Is About
Learned manipulation policies have to rediscover from data the spatial relations that rigid-body mechanics already provides in closed form, which makes them fragile when objects are moved or the robot's configuration changes. The paper asks whether that geometry can be built directly into the attention mechanism instead of being learned, so the policy spends its capacity on what mechanics omits (contact, friction, deformation) rather than on kinematics. The goal is a single layer that is frame-independent by construction, can express classical velocity recursion exactly, and can be used alone or as a learned residual on top of an analytic controller.
Key Contributions
- An embodiment-aware attention layer grounded in rigid-body mechanics. Tokens represent robot links and scene objects; every ordered pair carries the relative pose (and, for robot joints, the joint screw) taken from the kinematic model or perception and never learned. Messages are transported into the receiver's frame, and attention scores see the relation only through frame-invariant quantities.
- A demonstration that classical mechanics is expressible, not approximated. With an added gate, a single layer can reproduce the velocity recursion of the recursive Newton–Euler algorithm exactly; body-token updates mirror the outward (velocity) and inward (wrench) sweeps.
- An extensive empirical study across three simulated manipulation tasks and LIBERO-Spatial, against mechanism-matched graph, transformer and flat baselines, plus ablations that isolate where the structure matters.
- A stated hypothesis for when structure is decisive: the geometry helps when a task requires reasoning over relations between coordinate frames that an analytic controller does not otherwise supply; otherwise the correctness of the relations makes no measurable difference.
Main Findings
- Strong result with a tiny policy: On LIBERO-Spatial, a policy of 16k parameters trained from object poses alone reaches 97.3% success, outperforming graph, transformer and flat networks of the same size, and also beating a flat network with 27 times more parameters.
- The gain comes from transporting the right relations: Ablations indicate the benefit is attributable to transporting correct relations between bodies rather than to extra parameters or attention bias alone.
- Structure pays off selectively: The structure helps most on tasks that require relations between frames that nothing else in the pipeline supplies; where that condition is absent, correct versus incorrect relations make no measurable difference.
- Robustness to frame conventions: Under changes to the per-link frame convention, Screw Attention is the only learned network on LIBERO-Spatial whose success is unchanged, while all learned baselines collapse to 0.0–2.3%. The layer is equivariant to an independent change of frame at every token, a larger symmetry group than the single global frame change handled by prior equivariant architectures.
- Comparable noise tolerance to an analytic controller: The policy tolerates pose noise and calibration errors at least as well as an analytic controller.
- Useful as a residual: Used as a gated residual on an analytic controller in a contact-rich insertion task, it raises the success rate by 17.3 points. Closing the residual gate recovers the analytic controller exactly.
- No per-joint parameters in the readout: Because the readout applies the same weights to every joint, the network can be applied unchanged to arms with different numbers of degrees of freedom.
Methodology in Plain English
Each body of the robot and each object in the scene becomes a token. Every token carries two lanes: a scalar lane (joint angle and velocity, mass, number of joints to the base, gripper state, task scalars) and a geometric lane of six-dimensional twists (joint motion, gravity direction, goal direction). One set of attention weights serves both lanes.
The key ingredient is the pair term: for every ordered pair of tokens, the network is given the relative pose between the two bodies, and, when the sender is a robot link, the screw describing its joint axis and type. These come from the robot's kinematic model or from perception and are not learned — the network is not asked to infer kinematics from data.
Scoring a pair uses only quantities that do not change when coordinate frames are redefined: two bilinear forms on twists, the Killing form and the Klein form (the reciprocal product of screw theory), plus a 14-dimensional vector of given pair features describing relative placement, joint-axis relations and kinematic-tree structure. The ordinary dot product is deliberately not used, because it changes when the origin of a frame moves.
Attention messages are then transformed into the receiving body's frame before being combined, which is the operation a standard transformer cannot perform on its own. Learned matrices act only on the channel index; the given spatial transform acts on the six components. A gate computed from the scalar features undoes the softmax normalisation (which would otherwise divide each term by the number of ancestors), letting one layer reproduce the velocity recursion. Attention heads are split into outward and inward groups mirroring the two sweeps of Newton–Euler, and robot tokens additionally attend to scene tokens.
Finally, a readout produces the command: a motion readout that contracts geometric channels with each joint's screw (a Jacobian-transpose-like form), a force readout that contracts wrench channels with the joint screw, or a twist readout at the end-effector. The network can be run alone or as a gated residual on an analytic controller that enters with weight one, so the controller is part of the architecture during training, not just an initialisation. Hyperparameters such as scalar width, number of channels and layer count are not specified in the provided excerpt; the figure caption indicates the steps repeat over two layers.
Why This Matters
Impact on research. The paper reframes embodiment-aware policy design: instead of encoding the robot as an abstract graph or as end-effector pose plus learned transforms, it puts the actual spatial algebra of rigid bodies inside attention. It argues that frame-convention invariance — a modelling choice with no physical meaning — should be a property of the network rather than something recovered through data augmentation. The paper cites XMoP reporting a 68.1% loss of success on unseen embodiments without frame-randomising augmentation as the cost of not having this property. The work also connects learned policies to residual policy learning, since the analytic controller can be retained at run time and the network only needs to learn what the model omits.
Real-world applications.
- Deploying the same policy on robots that are physically identical but distributed with different frame conventions or description formats.
- Contact-rich assembly and insertion tasks, where an analytic controller handles geometry and the learned residual handles contact.
- Manipulation with uncertain poses from perception, since the policy tolerates pose noise and calibration error.
- Transferring policies across arms with different numbers of degrees of freedom, given the joint-agnostic readout.
Industry relevance. Small, structured policies (16k parameters in the reported LIBERO-Spatial result) that degrade gracefully under calibration drift and description changes are attractive where retraining large models per robot is impractical, and where interpretability of the analytic term matters for safety and certification.
Future Directions
- From simulation to hardware: The reported evaluation is on three simulated manipulation tasks and LIBERO-Spatial; physical-robot validation is not reported in the provided content and is the natural next step.
- Coupling to perception: Object poses are treated as available inputs. How well the layer performs when poses come from a noisy, learned perception system, rather than being supplied, remains open.
- Cross-embodiment transfer: The joint-agnostic readout suggests application to arms with different degrees of freedom; testing this beyond the reported setup is an open question.
- Wider contact-rich and non-rigid regimes: The paper's premise is that mechanics supplies geometry but not contact, friction, deformation or uncertain payload properties — extending the residual formulation to these cases, and testing the stated hypothesis about when structure is decisive beyond the tasks studied, is a further direction.
Target Audience
Robotics and robot-learning researchers working on manipulation policy architectures, geometric and equivariant deep learning, and the interface between model-based control and learning. It will also interest engineers who need policies that survive changes in robot description or calibration, and readers with a background in screw theory or spatial algebra who want to see that formalism used as an architectural primitive inside a transformer. The paper is not entry-level: comfort with twists, wrenches and coordinate transforms is assumed for the method section.
Authors’ abstract
Learned manipulation policies rediscover from data the spatial relations that rigid-body mechanics supplies in closed form, which leaves them fragile to geometric change. We present Screw Attention, a transformer layer in which the relation between two bodies is a spatial transform rather than a graph edge. Each pair of tokens carries the relative pose and, for robot joints, the joint screw. Messages are transported along this relation into the receiver's frame, while the…
The full abstract on arXivRelated papers
- Adapting Rigid-Body Dynamics Derivatives for Constraint Embedding Closed-Chain Models 2026-09-17 · cs.RO · Key terms of the title in common