LInK: Learning Joint Representations of Design and Performance Spaces through Contrastive Learning for Mechanism Synthesis
Amin Heyrani Nobari, Akash Srivastava, Dan Gutfreund, Kai Xu, Faez Ahmed
TL;DR
LInK tackles inverse design of planar linkages, a mixed combinatorial-continuous problem, by learning a joint embedding of design (graph-based) and performance (kinematics) spaces through cross-modal contrastive learning and a GPU-accelerated, hierarchical optimization pipeline. The approach introduces the Graph Isomorphism Hop-Attention (GHop) architecture for mechanism encoding, models partial target curves, and employs dual CL losses to fuse design and performance representations, enabling rapid retrieval from a dataset of over $10^7$ mechanisms and fast refinement via batch BFGS on GPUs. A MILP-based manufacturability check ensures produced designs are practically realizable, and a new LINK ABC benchmark demonstrates resilience to highly nonlinear, large-feasible-space problems. Empirically, LInK achieves about 28x lower error and 20x faster performance on established benchmarks, scales to up to 20 joints with 2000 timesteps, and demonstrates strong generalization and potential applicability to broader engineering design problems beyond linkage synthesis.
Abstract
In this paper, we introduce LInK, a novel framework that integrates contrastive learning of performance and design space with optimization techniques for solving complex inverse problems in engineering design with discrete and continuous variables. We focus on the path synthesis problem for planar linkage mechanisms. By leveraging a multimodal and transformation-invariant contrastive learning framework, LInK learns a joint representation that captures complex physics and design representations of mechanisms, enabling rapid retrieval from a vast dataset of over 10 million mechanisms. This approach improves precision through the warm start of a hierarchical unconstrained nonlinear optimization algorithm, combining the robustness of traditional optimization with the speed and adaptability of modern deep learning methods. Our results on an existing benchmark demonstrate that LInK outperforms existing methods with 28 times less error compared to a state of the art approach while taking 20 times less time on an existing benchmark. Moreover, we introduce a significantly more challenging benchmark, named LINK ABC, which involves synthesizing linkages that trace the trajectories of English capital alphabets, an inverse design benchmark task that existing methods struggle with due to large nonlinearities and tiny feasible space. Our results demonstrate that LInK not only advances the field of mechanism design but also broadens the applicability of contrastive learning and optimization to other areas of engineering. The code and data are publicly available at https://github.com/ahnobari/LInK.
