Skip to content
Robotics.world

Research

MorphIK: Morphology-Conditioned Neural Inverse Kinematics for Unknown Robots

Neural IK solvers learn to map a desired end-effector pose to joint angles faster than classical solvers and can represent the many valid solutions for redundant arms, but they are almost always…

The paper’s first page · arXiv:2609.29908
arXiv
2609.29908 · Preprint · not peer-reviewed
Published
2026-09-24
Authors
Lennart Clasmeier, Jan Gerrit Habekost, Cornelius Weber, Stefan Wermter

In plain words

Neural IK solvers learn to map a desired end-effector pose to joint angles faster than classical solvers and can represent the many valid solutions for redundant arms, but they are almost always trained for exactly one robot — so every new manipulator needs new data and retraining.

AI summary

Overview

Research area: Robotics — learning-based inverse kinematics (IK) for serial manipulators, combining transformer architectures with flow-matching generative models.

Technical level: Advanced. The paper assumes familiarity with inverse kinematics, the Jacobian, singularities, product-of-exponentials kinematics, transformers, and flow matching/diffusion-style generative modelling.

Scope (one sentence): The paper presents MorphIK, a single transformer-plus-flow-matching model that solves inverse kinematics for 6- to 9-DoF revolute manipulators it has never seen, using only a robot's URDF as input, and evaluates it on 800 held-out synthetic robots and 44 real robot geometries.

What This Paper Is About

Neural IK solvers learn to map a desired end-effector pose to joint angles faster than classical solvers and can represent the many valid solutions for redundant arms, but they are almost always trained for exactly one robot — so every new manipulator needs new data and retraining. MorphIK treats the robot itself as an input: the network reads a canonical, tokenized description of the kinematic chain together with the target pose, and generates joint configurations for that morphology. The goal is a multi-robot IK model trained purely on procedurally generated robots that transfers to real hardware without ever seeing a real robot during training.

Key Contributions

  1. A canonical, morphology-agnostic robot representation. Robots are converted from URDF into a product-of-exponentials description where every joint is a screw axis expressed in one common frame, with redundancies removed (axis points slid to the closest point to the previous axis, the first axis rotated onto +z, the first non-parallel link placed in the xz plane, axis-sign ambiguities resolved by a tie-breaker) and total chain length normalized to one for scale invariance. Identical robots therefore receive identical representations, and geometry tokens are directly comparable across joints, robots, and degrees of freedom.

  2. A morphology-conditioned flow-matching IK model. An encoder-only transformer consumes one geometry token per joint, a TCP token, and a query token for the target pose (n+2 tokens, padded and masked to the maximum 9-DoF sequence length), and its flattened output conditions an MLP flow-matching head with AdaLN conditioning that generates configurations from noise.

  3. A training scheme built on synthetic robots plus a Cartesian auxiliary loss. 400,000 procedurally generated robots (100,000 per DoF class for 6, 7, 8 and 9 DoF, with 200 held out per class) supply unlimited self-supervised data via sampled joint configurations and GPU-parallel forward kinematics. A differentiable-FK position and orientation loss, borrowed from CycleIK-style cycle losses, is applied to a one-step endpoint estimate and gated to the second half of the flow process (scaled by t²) to stabilize training.

  4. An evaluation of the model as a raw solver, a DLS prior, a null-space sampler, and a fine-tuning starting point on 44 real robot geometries (14 real 6-DoF, 8 real 7-DoF, 14 real 8-DoF, 8 real 9-DoF), where the 8- and 9-DoF chains were created by attaching a Shadow Hand with a 3-DoF wrist to the 6- and 7-DoF arms and disabling its redundant wrist rotation joint.

Main Findings

  • Raw accuracy on unseen robots: Across all 800 held-out synthetic robots (best of 16 samples), mean position error is 3.671% of reach with 2.84° orientation error (median 3.376% / 2.58°; 99th percentile 9.358% / 7.58°). Across all 44 real robots, mean error is 4.042% of reach and 3.18° (median 3.762% / 2.95°; 99th percentile 9.860% / 7.89°). The abstract summarizes this as a precision of about 5 cm on unseen real robots.

  • DLS polishing is highly effective: One Damped Least Squares step cuts the real-robot mean to 0.381% of reach and 0.28°; 3 steps reach 0.033% and 0.01°; 5 steps reach 0.016% and 0.01°. For held-out synthetic robots the corresponding means are 0.637% / 0.43° after 1 step and 0.136% / 0.07° after 3 steps. The abstract and conclusion frame this as below 1 cm after one step and sub-1 mm after 3 steps for most cases.

  • The prior dominates random initialization: Starting DLS from random configurations instead of MorphIK outputs yields mean errors of 42.087% / 57.02° on held-out robots and 53.105% / 58.93° on real robots before optimization, and still 5.027% / 7.72° (held-out) and 4.476% / 7.80° (real) after 5 DLS steps.

  • Real robots are easier than the synthetic ones: Despite being out of distribution, hand-designed arms solve better than generated ones, and gain more from DLS. The paper attributes this to the synthetic population being numerically harder: manipulability is roughly five times lower and condition numbers roughly twice as high as for real arms (for 6-DoF, median condition number 71.81 versus 31.72), and only 42% of generated 6-DoF chains satisfy a Pieper criterion versus 86% of real 6-DoF arms, with the gap entirely in the three-parallel-axes case (5% versus 57%).

  • Per-robot variation: Over 512 random poses per robot, the piper with the Shadow Hand performs best at 2.37% of reach and 1.69°, while the Comau e.DO with the Shadow Hand wrist performs worst at 5.98% of reach, and ROBOTIS OMY-L100 has the worst orientation error at 4.78°. Arms perform similarly with and without an attached wrist, suggesting most error originates in the arm rather than the end of the chain, though 8- and 9-DoF variants optimize faster than their 6- and 7-DoF counterparts after one DLS step.

  • Null-space diversity: With 256 poses per robot, 128 samples per pose and 3 DLS steps, in-spec solutions (within 1% and 2°) rise with DoF: held-out robots give 61.8/128 in spec with 3.4 distinct configurations at 0.25 rad for 6-DoF, up to 69.0/128 with 55.3 distinct for 9-DoF. Real robots are better: 77.0/128 and 6.2 distinct for 6-DoF, 89.5/128 and 42.8 distinct for 7-DoF, 84.3/128 and 34.0 for 8-DoF, and 96.1/128 with 80.5 distinct for 9-DoF, where the count is bounded by the sample budget rather than model capability.

  • Fine-tuning gives a large head start: On 8 randomly selected real robots, 50 fine-tuning steps (1 second) reduce error from 5.58% / 4.65° to 3.91% / 3.55°, roughly a 30% position and 25% orientation improvement, while a from-scratch model of the same size learns nothing in that time. After 20,000 steps (5 minutes) the fine-tuned model reaches 1.48% / 1.85° versus 4.41% / 9.35° from scratch.

  • Batched inference is cheap: A single pose with best-of-16 costs about 3.5 ms; 8 poses cost 0.5 ms per pose and 512 poses about 0.16 ms per pose. DLS adds a constant 5.0 ms and solution selection 1.3 ms, with DLS scaling at about 1.7 ms per step independent of batch size.

Methodology in Plain English

The core idea is to make the robot a sentence the network reads rather than a fixed assumption baked into the weights.

First, the researchers wrote a generator that invents random robot arms. Link lengths are drawn from a Dirichlet distribution with α=2 and 35% of links set to zero so adjacent axes intersect, creating pseudo-spherical joints; 25% of rotation axes are parallel to the previous one, 55% orthogonal, and 20% uniform on the sphere. Joint limits are symmetric, with half-ranges uniform in [0.9, π] for arm joints and [0.15, 0.9] for wrist joints, and about 30% of the 7-, 8- and 9-DoF chains end in a compact two-joint wrist to mimic a hand mounted on a cobot.

Second, each robot is rewritten into a standard form. Instead of describing joints relative to each other as URDF or Denavit-Hartenberg conventions do, every joint becomes an axis in one shared coordinate frame, with arbitrary choices (where along the axis to put the point, which way the axis points, which of two mirror-equivalent descriptions to use) resolved deterministically, and the whole chain scaled so its total length is one. This means the network sees numbers that mean the same thing across joints and across robots.

Third, the model. A transformer reads one token per joint plus a token for the tool centre point and a token for the requested pose, and produces an encoding. That encoding conditions a small MLP that acts as a velocity field: starting from noise, it repeatedly predicts a direction to move, and after 10 integration steps the result is a joint configuration. Training uses the standard flow-matching regression target plus an extra term: because the model's path is nearly straight, the endpoint can be estimated in one shot, that estimate is pushed through differentiable forward kinematics, and the resulting position and orientation errors are added to the loss — but only for the later half of the flow, where the estimate is meaningful. Training ran for 1,000,000 steps at batch size 2048, with the learning rate held at 5.4e-4 for the first 350,000 steps then annealed to 8e-6, the FK loss weighted 6:1 over the flow-matching loss and position weighted 5:1 over orientation, and EMA weights used at evaluation. Everything ran on a single Nvidia RTX 5080 with 16GB of VRAM. Because the model is generative, one pose can be sampled many times to yield many distinct valid configurations, and the best sample or the whole batch can be handed to a classical Damped Least Squares solver for refinement.

Why This Matters

The paper attacks the main practical obstacle to neural IK: the cost of collecting data and retraining for every new manipulator. If a single model can be dropped onto an unfamiliar arm from its URDF alone and produce a starting point that reaches sub-millimetre accuracy after 3 DLS steps, the economics of deploying learned IK change substantially — the network becomes reusable infrastructure rather than a per-robot artefact. It also shows that a synthetic-only training distribution can transfer to hardware, and it quantifies something often glossed over: the generated robots are harder than real ones by standard kinematic measures, so the reported transfer is not an artefact of an easy test set.

Real-world applications:

  • Rapid commissioning of new arms and cobots: a URDF-driven prior that seeds a classical solver instead of requiring per-robot data collection or hand-tuned seeds.
  • Redundancy exploitation: parallel null-space sampling for 7- to 9-DoF arms and arm-plus-hand setups, useful for obstacle avoidance, joint-limit avoidance, and posture preferences.
  • Motion planning and batch pose solving: at roughly 0.16 ms per pose for batches of 512, large sets of candidate targets can be solved at once for planner seeding or reachability analysis.
  • Teleoperation and shared autonomy: fast, diverse IK solutions for human-in-the-loop control of heterogeneous robot fleets.

Industry relevance: the fine-tuning result (1 second of training for a measurable gain, 5 minutes to beat a from-scratch model by a factor of 3) is directly relevant to integrators who need per-robot specialization on a small budget, and the DLS-compatibility means the model can be inserted into existing Jacobian-based pipelines rather than replacing them.

Future Directions

  • Making the model truly DoF-independent. The authors plan to replace the current setup, which pads and masks all sequences to a maximum 9-DoF length, with a transformer-based decoder.
  • Analysing the learned embedding space across different tasks, to understand what the morphology encoder actually captures.
  • Extending beyond revolute serial chains. The method is restricted to revolute-joint serial manipulators in this paper; kinematic trees, prismatic joints, and mobile bases are untested.
  • Closing the raw-accuracy gap so less polishing is needed. Raw errors of roughly 4% of reach still require DLS, and the 99th percentile remains high even after 5 steps, especially for 6-DoF robots where it stays at 1.98% of reach.

Target Audience

Robotics researchers working on learning-based control and manipulation; machine learning researchers interested in morphology-conditioned models and flow matching applied to structured physical problems; and robotics engineers who need IK for unusual or one-off arms and want a pretrained prior that plugs into an existing DLS pipeline. Readers without a background in inverse kinematics, Jacobian conditioning, or generative modelling will find the architecture and the DLS discussion demanding.

Authors’ abstract

Neural models can learn to generate various solutions to the inverse kinematics problem from data, but are usually limited to a single robot. We present MorphIK, a flow-matching model that solves inverse kinematics for revolute-joint-based kinematic chains it has never seen during training. The model uses a transformer architecture to encode the robot's morphology along with the target pose. This encoding then conditions a flow-matching head that generates poses from noise.…

The full abstract on arXiv
Read the original paper

Related papers