arXiv:2610.40005cs.AIOct 2026

Manuscript Offprint

arXiv:2610.40005

Efficient Learning of Mechanism Designs and Compositionality

João Pedro Gandarela, Thiago Rios, Stefan Menzel, André Freitas

ABSTRACT

Learning mechanism behaviour requires a representation of how connected parts jointly constrain motion. We study whether exposing reusable constraint sub-assemblies improves prediction from limited data. Assur-KB represents planar mechanisms through irreducible modules, boundary interfaces, and solve dependencies while retaining source geometry. Our theoretical results characterize transfer through module interfaces and establish physical limits arising from missing interface information and accumulated sensitivity. To test the representation claim directly, the experimental design compares matched mechanism-curve pairs across training budgets within the same multilayer-perceptron family. This controlled comparison establishes the utility of the complete representation in the evaluated learning setting. Assur-derived features provide a geometric-mean 1.8×1.8\times advantage in sample efficiency over flattened adjacency and position inputs across budgets of 50-10,000 mechanisms. Separate experiments establish invariance under tested joint relabelings, higher valid-generation rates under dyadic composition, and a coarser structural index over 10.02 million mechanisms. In summary, the theory and experiments identify how physical constraint structure supports limited-data prediction and which interface conditions govern compositional reuse.

(a) What is a mechanism?

Figure

(b) What changes?

(c) What becomes possible?

Figure

a module is a legal move

admissible by construction, the

record says where it goes, and

checking costs no simulation

(d) What does it predict?

Figure 1: Same mechanism and motion, different computational structure made explicit. (a) A driver angle moves the links and a tracer point P draws y(θ)y(\theta). (b) The solve graph exposes an irreducible module G1G_1, its interface, and the order the local solves run in. (c) That module is then a move an agent can make, stored with the two bar lengths and the interface it needs, landing on any pair of already-solved joints, admissible by construction, and extending the solve order by one step. (d) The same record is what a predictor reads, so with the multilayer perceptron held fixed, module features and geometry reach a given error on the curve y(θ)y(\theta) from close to half the training data ( §\S5.1).

1 INTRODUCTION

Learning the behaviour of physical systems raises a fundamental question about representation: which parts of a system provide useful units for learning and reuse? Compositional representations offer a way to share knowledge across systems by making their components and relationships explicit. Their effectiveness, however, depends on identifying units that capture the structure relevant to the behaviour being predicted. This question connects representation learning with relational inductive biases and modular learning, where the organization of a problem shapes how knowledge can transfer across examples (Battaglia et al., 2018; Alet et al., 2018).

Mechanical linkages provide a concrete setting for studying this question. A linkage consists of connected rigid links and joints whose motion transforms a driving input into an output trajectory. Learning this relationship is difficult because the components satisfy coupled geometric constraints, where the movement of one joint depends on the configurations of other connected parts. Moreover, mechanisms with the same connectivity can produce different trajectories as their geometry or assembly configuration changes. Across mechanisms, the combinations of topology, geometry, and attachment patterns create a large space of behaviours that training examples can only partially cover.

The representational challenge is therefore to expose reusable structure at an appropriate level of granularity. Joint-level graphs describe elementary connections, but leave implicit the subassemblies whose constraints must be solved together and the dependencies between those subassemblies. A learner must recover this organization insofar as it is useful for prediction. Making it explicit could help the learner recognize recurring constraint patterns across mechanisms, reducing the amount of data needed to learn the relationship between structure and motion.

Planar mechanism theory provides a principled candidate for these representational units. Assur groups are irreducible subassemblies whose internal configurations can be determined, subject to geometric feasibility and assembly choices, once their boundary configurations are supplied (Servatius et al., 2010). Each group thus defines a conditional constraint problem with explicit interfaces. Connecting these groups according to their dependencies produces a directed acyclic solve graph, which specifies how local constraint solutions combine to determine the mechanism's configuration (Shai et al., 2013). Repeated across the driving input, this computation determines its motion.

We investigate whether exposing this compositional structure improves learning of mechanism behaviour. We represent mechanisms through their Assur groups, interfaces, and solve dependencies, while retaining the underlying geometry and assembly information. Our hypothesis is that this organization supplies a useful inductive bias by making recurring constraint structure accessible across examples. We instantiate the representation at corpus scale in Assur-KB and evaluate its value for predicting output trajectories, alongside its usefulness for structural composition and indexing. To our knowledge, this is the first large-scale evaluation of Assur-based representations for learning mechanism behaviour from limited data.

Our experiments provide evidence for improved learning when data is limited. Using the same multilayer perceptron, Assur-derived features reach comparable curve-prediction error with roughly half the training examples required by a flattened adjacency-and-position representation over the evaluated low-data range (Figure 1d). More broadly, this approach suggests that physical constraint structure can guide mechanism representation design, potentially reducing simulation requirements for predictive modelling and supporting modular reuse across related physical systems.