LinkD: AutoRegressive Diffusion Model for Mechanical Linkage Synthesis
Yayati Jadhav, Amir Barati Farimani
TL;DR
This work tackles planar 1-DoF mechanical linkage synthesis by casting it as autoregressive graph generation conditioned on target trajectories. It combines a causal transformer with a DDPM to sequentially generate topology and geometry, leveraging the dyadic compositionality of linkages and a node-level retry mechanism to maintain kinematic validity. Empirical results show high generation success rates and reasonable curve fidelity, with substantial topological diversity across valid solutions. The approach offers scalable inverse design for complex mechanisms and suggests avenues to further improve conditioning robustness and design exploration. Practically, it enables fast, diverse generation of feasible linkages that realize a wide range of trajectories, with potential impact on robotic design and mechanism synthesis workflows.
Abstract
Designing mechanical linkages to achieve target end-effector trajectories presents a fundamental challenge due to the intricate coupling between continuous node placements, discrete topological configurations, and nonlinear kinematic constraints. The highly nonlinear motion-to-configuration relationship means small perturbations in joint positions drastically alter trajectories, while the combinatorially expanding design space renders conventional optimization and heuristic methods computationally intractable. We introduce an autoregressive diffusion framework that exploits the dyadic nature of linkage assembly by representing mechanisms as sequentially constructed graphs, where nodes correspond to joints and edges to rigid links. Our approach combines a causal transformer with a Denoising Diffusion Probabilistic Model (DDPM), both conditioned on target trajectories encoded via a transformer encoder. The causal transformer autoregressively predicts discrete topology node-by-node, while the DDPM refines each node's spatial coordinates and edge connectivity to previously generated nodes. This sequential generation enables adaptive trial-and-error synthesis where problematic nodes exhibiting kinematic locking or collisions can be selectively regenerated, allowing autonomous correction of degenerate configurations during design. Our graph-based, data-driven methodology surpasses traditional optimization approaches, enabling scalable inverse design that generalizes to mechanisms with arbitrary node counts. We demonstrate successful synthesis of linkage systems containing up to 20 nodes with extensibility to N-node architectures. This work advances autoregressive graph generation methodologies and computational kinematic synthesis, establishing new paradigms for scalable inverse design of complex mechanical systems.
