vix.ing · top · new · best · stats · spec

MechaFormer: Sequence Learning for Kinematic Mechanism Design Automation

2025/08/12 by Diana Bolanos, Mohammadmehdi Ataei, Bolanos, Diana +3
Engineering · #3D Shape Modeling and Analysis #FOS: Computer and information sciences #Machine Learning (cs.LG) #Robot Manipulation and Learning #Robotic Mechanisms and Dynamics

paper · pdf · doi:10.48550/arxiv.2508.09005

openalex publication_date 2025/08/12 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/28

Abstract

Designing mechanical mechanisms to trace specific paths is a classic yet notoriously difficult engineering problem, characterized by a vast and complex search space of discrete topologies and continuous parameters. We introduce MechaFormer, a Transformer-based model that tackles this challenge by treating mechanism design as a conditional sequence generation task. Our model learns to translate a target curve into a domain-specific language (DSL) string, simultaneously determining the mechanism's topology and geometric parameters in a single, unified process. MechaFormer significantly outperforms existing baselines, achieving state-of-the-art path-matching accuracy and generating a wide diversity of novel and valid designs. We demonstrate a suite of sampling strategies that can dramatically improve solution quality and offer designers valuable flexibility. Furthermore, we show that the high-quality outputs from MechaFormer serve as excellent starting points for traditional optimizers, creating a hybrid approach that finds superior solutions with remarkable efficiency.

Citations

Related