CRITERION 1Continuous representations
The encoding varies continuously with rotation. Turning a joint a little never makes its code jump.
Flow matching for joint-position actions
Flow Matching on Joint Circles
for Robot Manipulation
Revolute-joint angles are phases on a circle. AngularFM generates robot actions there: the network reads phases, predicts one angular velocity per joint, and every sampling step is a rotation that keeps the state on the circle.
Noise sampled around the current joint angles rotates into an action chunk. Every intermediate state stays on the joint circles.
RoboTwin 2.0
94.7%
average success over 50 bimanual tasks, clean and randomized scenes
LIBERO
98.2%
average success over four suites
Rotation-sensitive suite
74.6%
controlled comparison: sine–cosine 71.2%, raw scalar 64.1%
Real world
47/ 60
successful trials on a Franka FR3 and an AgileX Cobot Magic
00 Abstract
Many robot policies, including vision-language-action models and world action models, generate actions using diffusion or flow matching. For a fixed robot, generating joint-position targets avoids inverse kinematics. Revolute-joint angles can be represented on the unit circle \(\mathbb{S}^1\), motivating three design criteria: continuous representations, consistency with circular geometry, and manifold-preserving generation. The raw scalar representation cuts the circle open and maps it to an interval on the real line, introducing a discontinuity and distorting angular distances. The sine–cosine representation restores continuity, but unconstrained Euclidean flow matching can produce off-manifold predictions that decode to incorrect joint angles. We therefore propose AngularFM, a flow matching method that represents each joint angle as a phase on \(\mathbb{S}^1\) and learns an angular velocity field over flow time to generate joint-position targets. Starting from noise sampled around the current joint angles, AngularFM evolves each phase along its circle, satisfying all three design criteria by construction. We introduce a suite of rotation-sensitive manipulation tasks and show that AngularFM improves the overall success rate. It also achieves high success rates on LIBERO and RoboTwin 2.0 and outperforms baselines on six real-world tasks using Franka and AgileX robots.
01 Motivation
Diffusion and flow matching are increasingly used to generate robot actions, and for a fixed robot, generating joint-position targets directly avoids the inverse-kinematics step. For a revolute joint, angles that differ by \(2\pi\) share the same rotational phase, and these phases are naturally represented on the unit circle \(\mathbb{S}^1\). This circular structure should guide both how joint angles are encoded and how they are generated, which leads to three design criteria.
The encoding varies continuously with rotation. Turning a joint a little never makes its code jump.
Equivalent angles share one code, and phases that are close on the circle stay close in the representation.
While a sample evolves from noise into an action target, it stays on the circle at every step.
The raw scalar representation treats a joint angle as a number on the real line. Wrapping it into a fixed interval gives every phase a single label, at the price of a seam: where the interval closes, the label jumps by a full turn. Two phases on either side of the seam are close on the circle yet far apart numerically, so the distance between labels no longer reflects circular proximity.
Encoding the angle as \((\cos q, \sin q)\) removes the seam and respects circular distances. Euclidean flow matching, however, denoises in the whole plane. It starts from Gaussian noise \(\mathbf{x}_0 \sim \mathcal{N}(0, I_2)\) and follows straight lines \(\mathbf{x}_s = (1-s)\,\mathbf{x}_0 + s\,\mathbf{z}_1\) towards the target phase \(\mathbf{z}_1\).
Neither the source nor the paths are confined to the circle, and after finite-step sampling the generated endpoint can remain off it. Joint angles then have to be recovered with \(\operatorname{atan2}\), which can amplify the prediction error, the more so the closer the endpoint lies to the origin.
Generation in the plane 26 samples of one joint target
Decoding with atan2 drag the endpoint
atan2 returns the direction of the endpoint as seen from the origin and discards its distance. The closer the endpoint lies to the origin, the more a small shift changes the decoded angle.
Schematic illustrations. In “Generation in the plane”, every sample moves with its ideal straight-line velocity plus a fixed error of the chosen size. In “Decoding with atan2”, the endpoint of one sample is placed at different positions.
AngularFM keeps the sine–cosine phase as the network input but replaces the two unconstrained planar velocity components with one angular velocity per joint and future step. Noise is sampled around the current joint angle, training paths follow the shortest arc to the target, and sampling integrates the predicted angular velocities as rotations. Source, intermediate states and endpoint all lie on the circle, with no projection.
| Formulation | Continuous representations |
Consistency with circular geometry |
Manifold-preserving generation |
|---|---|---|---|
| Raw scalarangle as a number on the real line | |||
| Sine–cosinewith Euclidean flow matching in the plane | |||
| AngularFMphases in, angular velocities out |
02 Method
AngularFM places the source distribution, the training paths and the sampler on the joint circles, and restricts the learned velocity field to their tangent directions. Four pieces make this work.
01
Each joint angle enters the network as a phase \({\mathbf{z} = (\cos q, \sin q)}\). A planar velocity splits into a radial part \(\alpha\,\mathbf{z}\) and a tangential part \(\omega K\mathbf{z}\), where \(K\) rotates a planar vector counterclockwise by \(\pi/2\). Staying on the unit circle removes the radial part, so the network predicts a single angular velocity for every joint and future step, \(\boldsymbol{\omega}_\theta(\mathbf{Z}_s, s, o) \in \mathbb{R}^{H \times n}\).
02
Generation starts from noise around the measured joint angles instead of a uniform distribution on the circle. All future steps of a joint share its current phase as the centre and keep independent perturbations; \(\kappa\) sets the precision of the angular noise.
03
Source and target phases are connected along the shortest arc between them. The signed length \(\Delta\) of that arc is the constant angular velocity of the path, and the network regresses it directly. Below, \({\mathbf{u}(q) = (\cos q, \sin q)}\) and \(\operatorname{ang}\) is the signed shortest angular displacement between two phases.
04
Every sampling step rotates the phase by \(\Delta s_k\,\omega_k\), the predicted angular velocity times the step size. Rotations preserve the unit norm, so no projection is needed. The generated phases are then lifted, step by step, to the nearest real-valued joint targets, which keeps the chunk continuous for the controller.
Linear components stay Euclidean. Gripper commands and other linear action components keep standard Euclidean flow matching; the network models all joints and future steps jointly.
Built on Fast-WAM-Joint. A Wan2.2-5B backbone with a 1B-parameter action expert. Each chunk holds \(H = 32\) actions and is generated with \(N = 10\) sampling steps.
03 Results
We evaluate on LIBERO and the full RoboTwin 2.0 benchmark, isolate the effect of the joint-angle formulation on a rotation-sensitive task suite, and ablate the source distribution.
Fifty bimanual tasks under clean and randomized conditions. AngularFM reaches 95.20% and 94.24%, the highest among the listed methods in both, with an average 2.5 points above LingBot-VA and 4.1 points above its Fast-WAM-Joint base.
Reported success rates in percent. The axis starts at 50.
Four suites with forty tasks in total. AngularFM averages 98.2%, within 0.3 points of the highest reported average.
Reported success rates in percent. The axis starts at 50.
Sine–cosine with Euclidean flow matching lifts the seven rotation-sensitive tasks from 82.6% to 86.4%, yet falls 7.7 points below the raw scalar model on the complementary 43 tasks. A continuous representation helps, but it is not sufficient when generation is left unconstrained. AngularFM achieves the highest success on both subsets.
All three formulations are trained only on the seven-task suite (2,800 demonstrations) with the same backbone, demonstrations, training budget and execution settings. AngularFM has the highest mean on every scene set: 74.6% overall, against 71.2% for sine–cosine and 64.1% for raw scalar.
Mean over three training seeds; whiskers show the sample standard deviation. Overall: nine seed and scene-set evaluations, 1,260 rollouts per method.
With the architecture and the rotation-based sampler unchanged, replacing a uniform source on the circle by the state-anchored one at \(\kappa = 0.5\) raises success from 60.7% to 66.0%. Concentrating the source further reaches 76.2% at \(\kappa = 4\).
Success rate on the rotation-sensitive suite. CMAE: circular mean absolute error on validation windows, in radians.
04 Real-world experiments
We run AngularFM on a single-arm Franka FR3 and a dual-arm AgileX Cobot Magic. The tasks involve object reorientation, orientation alignment during placement and coordinated bimanual rotation. AngularFM succeeds in 47 of 60 trials (78.3%), compared with 42 for \(\pi_{0.5}\), 38 for the raw scalar model and 32 for the sine–cosine model.
AngularFM is the best or tied-best method on every task except rack flipping, and it is never below the raw scalar or the sine–cosine model. Raw scalar and sine–cosine are the two Fast-WAM-Joint baselines.
Representative rotation-sensitive tasks on the Franka FR3 and the AgileX Cobot Magic, with the joints involved in each task. In block insertion, the cylinder enters only if it arrives aligned above the hole, so success depends on the final joint targets. The motion relies mainly on base rotation (J1) and the reach of J2 and J4.
Swipe sideways to see the whole figure.