원시데이터 수집 시스템
선정목록으로

Differentiable graph-structured models for inverse design of lattice materials

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (10) 아라미드(21) 에폭시수지

기본 정보

저자
  1. Dominik Dold — European Space Agency, Advanced Concepts Team, European Space Research and Technology Centre, 2201 AZ Noordwijk, South Holland, the Netherlands
  2. Derek Aranguren van Egmond — European Space Agency, Advanced Concepts Team, European Space Research and Technology Centre, 2201 AZ Noordwijk, South Holland, the Netherlands
DOI
10.1016/j.xcrp.2023.101586
저널
Cell Reports Physical Science
발행년도
2023
발행기관
Elsevier BV
피인용수
11
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1016/j.xcrp.2023.101586
토픽
Polymer composites and self-healing
OpenAlex ID
W4386828697

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(10) 아라미드, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.70
근거 용어
lattice materials, inverse design, graph neural network, mechanical properties, architected materials
판단 근거
이 논문은 격자 구조(lattice)를 가진 메타물질의 기계적 물성을 예측하고, 원하는 물성을 갖도록 구조를 역설계하는 AI 모델링 기법을 다룹니다. 이는 코오롱인더스트리의 엔지니어링 플라스틱 컴파운드(23)나 고강도 아라미드(10), 고기능성 수지(21)의 경량화 및 구조 최적화 설계에 응용될 수 있는 방법론입니다.
R&D 활용 포인트
복합소재 컴파운드 설계 시, 특정 강성이나 충격 흡수 성능을 목표로 하는 격자 구조(Lattice structure)의 최적 형상을 AI로 빠르게 도출하여 제품 개발 기간을 단축할 수 있습니다.
평가 입력
본문 105,916자 중 30,032자 발췌

초록

Architected materials possessing physico-chemical properties adaptable to disparate environmental conditions embody a disruptive new domain of materials science. Fueled by advances in digital design and fabrication, materials shaped into lattice topologies enable a degree of property customization not afforded to bulk materials. A promising venue for inspiration toward their design is in the irregular micro-architectures of nature. However, the immense design variability unlocked by such irregularity is challenging to probe analytically. Here, we propose a new computational approach using graph-based representation for regular and irregular lattice materials. Our method uses differentiable message passing algorithms to calculate mechanical properties, allowing automatic differentiation with surrogate derivatives to adjust geometric structure and local attributes of individual lattice elements to achieve inversely designed materials with desired properties. We further introduce a graph neural network surrogate model for structural analysis at scale. The methodology is generalizable to any system representable as heterogeneous graphs.

본문 105,916자

본문 펼치기
# Differentiable graph-structured models for inverse design of lattice materials Dominik Dold <sup>_∗,_</sup> <sup>1</sup>, Derek Aranguren van Egmond <sup>_∗,_</sup> <sup>1</sup> 1 _European_ _Space_ _Agency,_ _Advanced_ _Concepts_ _Team,_ _European_ _Space_ _Research_ _and_ _Technology_ _Centre,_ _2201_ _AZ_ _Noordwijk,_ _South_ _Holland,_ _The_ _Netherlands_ _∗_ Both authors contributed equally to this work. Abstract Architected materials possessing physico-chemical properties adaptable to disparate environmental conditions embody a disruptive new domain of materials science. Fueled by advances in digital design and fabrication, materials shaped into lattice topologies enable a degree of property customization not afforded to bulk materials. A promising venue for inspiration toward their design is in the irregular micro-architectures of nature. However, the immense design variability unlocked by such irregularity is challenging to probe analytically. Here, we propose a new computational approach using graph-based representation for regular and irregular lattice materials. Our method uses differentiable message passing algorithms to calculate mechanical properties, therefore allowing automatic differentiation with surrogate derivatives to adjust both geometric structure and local attributes of individual lattice elements to achieve inversely designed materials with desired properties. We further introduce a graph neural network surrogate model for structural analysis at scale. The methodology is generalizable to any system representable as heterogeneous graphs. _Keywords—_ metamaterial, lattice, inverse design, message passing, graph neural network, automatic differentiation, surrogate gradient Graphical abstract ###### Introduction Materials used to build future space infrastructure, especially those built directly on other planetary bodies, will be required to meet demanding conditions with environment-specific material properties, yet still be relatively easy to process and shape <sup>1</sup> . The constraints imposed by local planetary resources limit the palette of material composition that engineers can exploit to meet desired performance. Much like in nature, engineers will thus come to rely on the optimisation of a material’s topology in addition to its chemical makeup in order to achieve the desired properties under the limitations of the local milieu. Here on Earth, bone, plant stems, dragonfly wings, coral, and radiolarians <sup>2</sup> are just some examples of natural lattice materials that showcase how intricate architecture is used to achieve extreme mechanical performance with a limited choice of constituents <sup>3</sup> . Enhancements in e.g. strength, stiffness, impact toughness, fluid transport, and thermal insulation are all found while conserving light weight and minimizing mass transport. Moreover, an understanding of topological features often unlocks deformation modes and damage tolerant mechanisms not achieved by the bulk material alone. Inspired by this, synthetic truss-based lattice materials - a subset of so-called Architected Materials - comprise a highly active area of research in materials science. This activity is largely owed to the emergence of modern digital design and fabrication tools like 3D printing, or more formally, additive manufacturing. At the European Space Agency (ESA), capabilities for 3D printing lattice materials from a variety of space-relevant polymers, metals and in-situ planetary regoliths have been pioneered over the past decade <sup>4,5</sup> . The geometric freedom afforded by this technology, however, also creates an overwhelming design space of possible topological features, much like in nature. Human engineering has not been afforded the same evolutionary timescales as the natural optimisation pathways that drive biology’s architectures. As such, the complete lattice material design space cannot be explored by engineering intuition alone. An emergent stream in computational materials science demonstrates high potential for machine learning (ML)-driven design to aid engineers in the exploration of chemical and topological landscapes. Recent years have seen unprecedented demonstrations of physicsinformed learning models capable of high fidelity material property predictions based on atomic-level interactions. Key among them are, e.g., the deployment of graph neural networks (GNNs) to demystify previously unsolved phase transition dynamics in glassy systems <sup>6</sup>, and the use of generative adversarial networks (GANs) and variational autoencoders (VAEs) to predict complex molecular topologies in crystalline nanoporous materials like zeolites and metal-organic frameworks <sup>7,8</sup> . Along with these developments, research into mechanical metamaterials has also pivoted towards ML as a means to augment the engineer’s intuition with a data-driven geometric design language <sup>9–18</sup> . Inverse design - the prescription of desired target properties and optimisation over various candidate microstructures - has taken off as a vehicle for ML-aided simulations. Whether supervised (data-driven) <sup>19,20</sup> or unsupervised (physics-driven) <sup>21</sup>, these ML-based prediction models more accurately determine lattice mechanics, and dramatically accelerate the search for candidate architectures that meet target mechanical properties, forgoing computationally expensive meshing required in finite element (FE) based simulations and conventional Topology Optimisation calculations <sup>22</sup> . Conventionally these mechanical lattice materials are formed from periodically repeating unit cells, as this makes their properties addressable analytically and via numerical homogenization. Recent studies have pioneered deep neural networks toward inverse design of auxetic lattices, mapping subtle design variations in unit cell construction parameters to gains in total effective lattice properties via surrogate models of homogenization at much lower computational cost <sup>23,24</sup> . While powerful, homogenization assumes uniformity of Figure 1: Schematic illustration of the proposed framework. A lattice material is represented as a graph _L_ (left) which contains vector attributes both on the nodes (e.g. position) and edges (e.g. Young’s modulus and beam crosssectional area). A differential forward model _F_ takes the graph as input and predicts material properties. Comparing these predictions with desired properties, automatic differentiation is used to change the material (e.g., move nodes and remove or add beams) to better satisfy those properties. This process is repeated iteratively until a material with the desired properties is found. lattice properties throughout the global material, and does not account for, e.g., local imperfections, stress concentrations and edge-effects from partially constrained unit cells. Contrary to periodic lattice materials used for lightweighting (such as hexagonal honeycombs), irregular architected materials – similar to those found in nature - have been shown to boast extraordinary damage tolerance <sup>25</sup>, anisotropic functional grading <sup>26</sup> and other surprising properties emerging from local defects and aperiodicity. Control over the most mechanically ‘beneficial’ features of these irregular tilings must happen at local defects and cannot be exerted analytically <sup>27</sup>, leaving a near-infinite space of heterogenous geometric combinations not easily modelled. For this reason, most modern synthetic lattice designs have been restricted to periodic structures, leaving out an ever-growing design space whose potential remains untapped. To tap into this design space, we propose a gradient-descent-based optimisation approach for inverse-designing emergent properties of irregular lattices. The core idea of our methodology is to represent lattice materials as heterogeneous graphs and perform computations directly on the topology of this graph using an operation called ‘message passing’. This allows us to seamlessly link effective mechanical properties of the superstructure to local lattice elements (e.g. defects) in a differentiable way – hence enabling the usage of gradient descent to iteratively apply targeted modifications to the lattice, reaching a design with desired properties after only tens to hundreds of iterations. More specifically, using message passing, we construct a differentiable forward model that predicts mechanical properties of lattice materials, which is then used in reverse through the application of automatic differentiation to change local lattice properties - such as the cross-sectional area, parent material composition, and node positions of individual beams - until a lattice structure with a set of desired global mechanical properties has been found (Figure 1). Furthermore, by combining this inverse-design approach with a technique from computational neuroscience called ‘surrogate gradient’ <sup>28</sup>, removal or addition of beams to the lattice using gradient information during inverse-design is enabled, opening up the possibility to quickly move through a huge space of candidate designs. Conceptually, the introduced approach is inspired by recent work using GNNs to predict mechanical properties of periodic metamaterials. This was done by training said GNN only on the periodic unit cell structure <sup>29</sup> . Our work extends this by enabling real-time structural feedback and inverse design for arbitrary aperiodic lattices, including complicated irregular topologies with local defects as found in natural materials. In the following, we first provide a brief description of the methods used to model and characterize lattice materials. Afterwards, we introduce the general idea of our proposed inverse design methodology, which we denote as ‘differentiable lattices’ in the following. Finally, two realizations of differentiable lattices will be presented, one based on an exact finite element method (requiring no training on data) ? ∇?(ℒ) _Desired properties_ ??? … ? ? ## ≟ … _Properties_ #### ℒ ?(ℒ) ? ? … ?(ℒ) _Properties_ 2 and one using an approximate surrogate model, i.e., a GNN trained on simulated data. With both realizations, we demonstrate inverse design via gradient descent. Our initial focus is on the in-plane elastic properties of two-dimensional lattices for simplicity, though the methodology is easily transferred to three-dimensionally architectured designs. ###### Results 2D lattice materials Before introducing differentiable lattices, we briefly summarise how 2D lattice materials are modelled in the remainder of this work. For more details on the used methods and concepts, see the experimental procedures. For details on simulations, see the supplemental experimental procedures. Notation and units In general, sets are denoted using calligraphic letters, vectors and matrices using bold letters and scalars using normal letters. We summarise a lattice _L_ as a tuple _L_ = ( _X_ _, E, A_ E) consisting of node coordinates _r_ _i_ = ( _xi, yi_ ) _∈X_ for each node _i_ ; the set of edges (beams) _E_ between nodes, i.e., ( _i, j_ ) _∈E_ if an edge exists between nodes _i_ and _j_ ; and edge attributes _a_ _ij_ _∈A_ E. For instance, lattice beams are characterized by their local Young’s Modulus _E_, cross-sectional area _A_ and second moment of area _I_ . In principle, these can be chosen differently for each beam in the lattice. For simplicity, we choose one global value for all beams here. Thus, for a homogeneous lattice, we have _a_ _ij_ = ( _E, A, I_ ) _∀_ ( _i, j_ ) _∈E_ . Distances between nodes are given by _r_ _ij_ = _r_ _j_ _−_ _r_ _i_ . The length and orientation of a beam between nodes _i_ and _j_ is given by <sup>30</sup> The global stiffness matrix _G_ for the whole lattice (i.e., more than two nodes) is constructed by summing up the contributions of each individual stiffness matrix for every node (see experimental procedures). The final stiffness equation for a lattice material with _N_ nodes is then given by  _..._ _F_ _N_ _−_ 1  _G_   _..._ _u_ _N_ _−_ 1 _F_ 0 _F_ 1 _u_ 0 _u_ 1   _._ (3)   =   _Lij_ = ~~�~~ ( _xj_ _−_ _xi_ ) <sup>2</sup> + ( _yj_ _−_ _yi_ ) <sup>2</sup> _,_ (1a) _sij_ = <sup>_<u>yj</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>yi</u>_</sup> _,_ (1b) _Lij_ _cij_ = <sup>_<u>xj</u>_</sup> <sup>_<u>−</u>_</sup> <sup>_<u>xi</u>_</sup> _._ (1c) _Lij_ In the following, we abbreviate _L_ = _Lij_, _s_ = _sij_ and _c_ = _cij_ . _s_ and _c_ here denote sin _ϑ_ and cos _ϑ_ respectively, where _ϑ_ is the angle a beam makes with the lattice’s base plane. For simplicity, we assume that all lattices reside within a normalised bounding box with height _by_ and width _bx_ . The proposed approach can be used for microscopic as well as macroscopic lattice structures. Here, we report results for a chosen set of material input paramaters, with _E_ = 2 GPa, _bx_ = _by_ = 1 cm and _A_ = 2 _·_ 10 <sup>_−_</sup> <sup>5</sup> cm <sup>2</sup> . Modelling 2D lattice materials To develop a general geometric model for lattice materials, we set out from the simplified case of a 2D lattice material, similar to a honeycomb sandwich panel used commonly in various engineering applications. To model in-plane mechanical properties we employ the direct stiffness method – a finite element matrix method derived from static analysis - to model elastic properties of our lattice material <sup>31</sup> . In it, a lattice is treated as a collection of connected beams, where each beam between nodes _i_ and _j_ is characterized by its stiffness matrix _K_ _ij_ . The stiffness equation = - _F_ _i_ _F_ _j_ _,_ (2) Characterising 2D lattice materials A variety of mechanical in-plane properties are available to characterize the behaviour and functionality of 2D lattice materials. In this work, we focus on the relative density _ρ_ ¯, effective elastic modulus _E_ <sup>_∗_</sup> and Poisson’s ratio _ν_ <sup>_∗_</sup> . The asterisk denotes “effective” material properties for the entire lattice material, i.e., a global response, not just individual beams. For non-isotropic materials, the elastic modulus and Poisson’s ratio are direction-dependent. Here, as a proof of concept, we restrict ourselves to these quantities measured along the vertical axis. However, the presented results are applicable to properties measured along any axis, e.g., to inverse design the elastic modulus in horizontal and vertical direction at the same time. A detailed description of these mechanical properties and how they are obtained using the direct stiffness method is given in the experimental procedures. For regular grids in 2D, _E_ <sup>_∗_</sup> and _ρ_ <sup>_∗_</sup> can be determined analytically <sup>32–34</sup> (see Table S1). We use this to test our numerical approach, confirming that both analytical and numerical values agree for regular square, equilateral triangular, hexagonal honeycomb and reentrant honeycomb lattices with differing relative densities (Figure 2). Differentiable lattices In the following, we first introduce the general framework based on graph-based methods for inverse designing lattice materials. Consequently, we demonstrate two different realizations of this framework: one using exact direct stiffness, and one using GNNs trained on experimental data. Representing lattices as graphs Lattices lend themselves to being modelled as graphs, with edges representing beams and nodes representing the locations where beams connect with each other. This allows an efficient and expressive description of lattices, where additional information such as node coordinates, beam cross-area, and beam Young’s modulus can be encoded as node and edge features (i.e., real-valued vectors stored on nodes and edges) - something that is not possible when representing lattices as, e.g., images. Calculating on graphs A recent and widely adopted approach of performing calculations on graph-structured data is message passing <sup>35–37</sup> . Message passing describes information flow between nodes that are directly connected with an edge, meaning that calculations are performed on edges with stored feature vectors that are locally available to that edge. Usually, operations using message passing can be decomposed into two steps: a _messaging_ step and a _reduction_ step (Figure 3). In the messaging step, node features are sent along edges, where they are combined with edge features (and other node features) to calculate new edge features. In the reduction step, newly calculated edge features are sent to neighbouring nodes and combined to form new node features. These operations are performed on all edges and nodes in parallel, allowing efficient and scalable computations on the graph structure itself. Most importantly, this realizes differentiable operations on the discrete structure of the graph, allowing us to utilize gradient-descent based optimization to, e.g., change initial features or even the structure _K_ _ij_ - _u_ _i_ _u_ _j_ allows us to calculate the reaction of the beam element to a given load. Here, _u_ _i_ = ( _u_ <sup>_x_</sup> _i_ <sup>_, uy_</sup> _i_ <sup>_, uφ_</sup> _i_ <sup>)</sup> <sup>are</sup> <sup>the</sup> <sup>resulting</sup> <sup>node</sup> <sup>displacements</sup> due to external forces and moments _F_ _i_ = ( _Fi_ <sup>_x, F y_</sup> _i_ <sup>_, M_</sup> _i_ <sup>_φ_</sup> <sup>);</sup> <sup>and</sup> <sup>_φ_</sup> characterises the resulting bending of beam elements. In this work, we use generalized Euler-Bernoulli beam elements that can both deform along and perpendicular to their longitudal axis (see experimental procedures for details). <sup>_x_</sup> _i_ <sup>_, uy_</sup> _i_ <sup>_y_</sup> _i_ <sup>_, uφ_</sup> _i_ _i_ <sup>_x, F y_</sup> _i_ <sup>_y_</sup> _i_ <sup>_, M_</sup> _i_ <sup>_φ_</sup> 3 3.0 2.5 2.0 1.5 1.0 0.5 8 <sup><u>1e7Honeycomb (Hc)</u></sup> 6 4 2 8 <sup><u>1e7</u></sup> <sup>Reentrant (Re)</sup> 6 4 2 ~~1~~ 1 ~~/3~~ ~~0~~ ~~-1~~ 3.0 2.5 2.0 1.5 1.0 1e8 Square (Sq) 1e8 Triangle (Tr) 0 0.05 <u>0.15</u> <u>0.25</u> <u>Sq</u> <u>Tr</u> <u>Hc</u> <u>Re</u> Lattice type Theory FE 0.5 0.05 <u>0.15</u> <u>0.25</u> 0.05 <u>0.15</u> <u>0.25</u> 0.05 Relative density 0 0.05 <u>0.15</u> <u>0.25</u> Figure 2: Comparison of analytical values (Table S1) and values obtained using our finite element method. We show the effective elastic modulus (left) and Poisson’s ratio (right) for different tilings (square, equilateral triangle, honeycomb and reentrant honeycomb) and relative densities. To change the relative density, we repeated numerical experiments for lattices with different number of cells and beam cross-areas. #### 1 ? 0 2 ?0(?0, ?1, ?01) 3 ?0 = ?1(? ′ 01, ? ′ 02, ?′03) 4 ?2(?0, ?0) ?′ 0 0 0 0 <mark>?′</mark> 03 0 ?0 = ?1(? <sup>′</sup> 01, ? <sup>′</sup> 02, ?′03) <mark>?</mark> 0 ?0(?0, ?1, ?01) <mark>?′</mark> 03 0 0 0 3 3 1 <mark>?′</mark> 01 <mark>?′</mark> 02 2 3 <mark>?</mark> 1 1 3 <mark>?′</mark> 01 <mark>?</mark> 01 3 <mark>?′</mark> 01 3 1 1 1 2 2 2 Figure 3: Illustration of the message passing steps. For clarity, we only show the operations on one edge, although in practice, these operations are performed on all edges in parallel. (1) Node features _r_ _i_ are propagated along connecting edges. (2) On the edges, propagated node features as well as edge features are combined via a function _ϕ_ 0 to create new edge features. _ϕ_ 0 can take any shape (e.g., a neural network). (3) Edge features are reduced using a function _ϕ_ 1 that satisfies permutation invariance (i.e., the order of arguments does not matter) and is applicable to a varying number of arguments. (4) The node features are updated using the reduced edge features using a function _ϕ_ 2 (which, again, can take any shape). of the graph itself to change the output of the calculation implemented by message passing. This is enabled due to computations following the structure of the graph, i.e., all operations are differentiable, but the sequence of operations (i.e., how and which features are combined) is determined by the connectivity of the graph. Differentiable algorithms for inverse design We propose to use differentiable message passing algorithms for property prediction on lattices represented as graphs, which in turn can then be used to realize an iterative inverse design approach using gradient-descent based optimization. In general, we denote by _F_ ( _L, S_ ) a function that takes node coordinates, graph edges and edge attributes _L_ = ( _X_ _, E, A_ E) as input and returns one or several material properties of interest, e.g., effective elastic modulus, Poisson’s ratio or simply the displacement of each node given a certain external distortion. Optionally, _F_ can also take specific constraints _S_ as input, describing which nodes in the lattice are forced or kept fixed. To ease notation, we neglect writing _S_ as an argument of _F_ in the following. Although _F_ is still ambiguous here, it can take several shapes, as will be shown later. Generally, _F_ is composed of several message passing steps, followed by pooling operations (combining node features) and usual differentiable operations such as neural networks. For inverse design, we compare the predicted property _F_ ( _L_ ) with a desired target value _ζ_ (which, if several properties are predicted, takes the form of a vector). How well prediction and target agree is measured using a loss function _L_, in our case a L1 loss _L_ ( _F, L, ζ_ ) = _∥F_ ( _L_ ) _−_ _ζ∥_ _._ (4) This loss function is used to find a lattice material with the desired target properties by minimizing it using gradient descent, e.g., by iteratively changing the geometry of the lattice (adjusting node positions using _∇_ _r_ _i_ or removing/adding beams as described in the next subsection) or by changing the material properties of individual beams (i.e., changing edge features such as the cross-area of individual beams). In this work, we restrict ourselves to geometric changes only to find lattices with desired mechanical properties. Gradient descent is implemented using automatic differentiation, which is readily available in current deep learning libraries such as Tensorflow and pyTorch. Masking edges To enable the removal or addition of beams in a lattice using gradient descent, we introduce an approach inspired by Ying et al. <sup>38</sup> where each edge obtains an additional attribute: a mask value _mij_ _∈_ R that is used to decide whether a beam is realized in the lattice between nodes _i_ and _j_, i.e., _a_ _ij_ = ( _E, A, I, mij_ ). In our case, the masking value is turned into a binary decision by applying the Heaviside step function _θ_ ( _·_ ) _m_ <sup>_θ_</sup> _ij_ <sup>=</sup> <sup>_θ_</sup> <sup>(</sup> <sup>_m_</sup> _ij_ <sup>) =</sup> 1 _,_ if _mij_ _>_ 0 _,_ (5) 0 _,_ otherwise _,_ which is used to mask away the contribution of an edge during the reduction step - as if it were not present in the lattice ( _m_ <sup>_θ_</sup> _ij_ <sup>=</sup> <sup>1</sup> <sup>–</sup> beam exists; _m_ <sup>_θ_</sup> _ij_ <sup>= 0</sup> <sup>–</sup> <sup>beam</sup> <sup>does</sup> <sup>not</sup> <sup>exist).</sup> In Ying et al. <sup>38</sup>, masks are only used to remove edges from a graph, since enabling adding edges between all possible nodes would be computationally unfeasible. However, in our case, a node can only be connected to a selected few other nodes in its local neighbourhood, since long beams spanning the whole material are not of interest to us. Thus, when starting from, e.g., a triangular lattice, we can add additional beams to neighbouring nodes that are initially masked out, but can be added during the inverse design process. To guarantee that we do not add crossing beams, we have to generate a list _C_ ( _i,j_ ) that contains, for each edge ( _i, j_ ), other edges that would physically cross it. From this, a final mask value _,_ (6) �1 _−_ _m_ <sup>_θ_</sup> _nm_ _Mij_ = _m_ <sup>_θ_</sup> _ij_ <sup>_·_</sup> ( _n,m_ ) _∈C_ ( _i,j_ ) 4 is obtained, which basically unites the two conditions for a beam to be active in the lattice: its mask value has to be greater than 0 and all other beams that would cross it have to be masked out. During inverse design, both the list of crossing beams as well as the list of locally neighbouring nodes where beams could be introduced can be adjusted, enabling a complete geometric restructuring of the lattice material. In this work, for simplicity, we only update the list of crossing beams to ensure valid lattice designs with non-crossing beams. Surrogate gradients One problem remains: the decision function for masking, Equation (5), has a Dirac delta distribution as its derivative, meaning that it vanishes everywhere except at the threshold, _mij_ = 0. This slows down optimization via gradient descent tremendously - a problem that is well known in other areas such as computational neuroscience, where gradient-based learning for spiking neural networks faces the same problem. However, recently, an approach called “surrogate gradients” <sup>28,39</sup> has been introduced that enables robust gradient-based learning of spiking neural networks. For learning to mask edges in a graph (or beams in a lattice), we apply the same trick: instead of using the Dirac delta function, we substitute it with a surrogate function with non-vanishing parts off the threshold. A multitude of choices exist for surrogate functions. Specifically for this work, we use a mirrored Lorentz function _g_ as in Zenke et al. <sup>40</sup> : <u>1</u> _g_ ( _x_ ) = ( _α · |x|_ + 1) <sup>2</sup> <sup>_,_</sup> (7) with _α_ _∈_ R <sup>+</sup> being a choosable hyperparameter and _|x|_ being the absolute value of _x_ . If not stated otherwise, we use _α_ = 1. Message passing finite element As a first realization of _F_, we show how the direct stiffness method can be realized using message passing to form an end-toend differentiable pipeline that returns exact mechanical properties given the graph representation of a lattice material. Model description The direct stiffness approach consists of several steps: 1) constructing the stiffness matrix for each beam, 2) adding masking to enable optimization of the beam connectivity, 3) combining those matrices into a global stiffness matrix describing the whole lattice, and 4) applying the experimental protocol for acquiring the desired mechanical property. In our framework, these steps take the following form: 1) _Stiffness_ _matrices_ : For an edge ( _i, j_ ), node features _r_ _i_ and _r_ _j_ (the “messages”) are turned into edge features _Lij_, _sij_ and _cij_, see Equations (1a) to (1c). Those edge features are sufficient to construct the stiffness matrix _K_ _ij_ on the edge, see Equations (9) and (10) in the experimental procedures. 2) _Masking_ : To mask a beam, the binary masking value _Mij_ is multiplied to the stiffness matrix _K_ _ij_ . Hence, if a beam is masked out, its contribution will not appear in the global stiffness matrix. 3) _Global stiffness matrix_ : Constructing the global stiffness matrix is equivalent to a pooling operation that takes the features (masked stiffness matrix) of each edge and combines it into one global quantity valid for the whole graph (see Figure 4 for an illustration). 4) _Properties_ : As discussed in the supplemental experimental procedures, to calculate the resulting deformation of the lattice given an external load, operations such as selecting parts of arrays and matrices, matrix-vector products, solving a system of linear equations and addition are required, which are all differentiable. Similarly, the additional operations needed to obtain the effective elastic modulus and Poisson’s ratio (e.g. Figure 4: Illustration of message passing finite element. Using message passing on the graph representation of the lattice, first the stiffness matrix of each beam is computed (locally on each edge of the graph), from which the global stiffness matrix _G_ is then constructed (by pooling from all edges). linear regression) are differentiable as well. For the relative density, we can simply sum up _Lij_, as calculated using message passing in 1), over all edges ( _i, j_ ) _∈E_ with _Mij_ _>_ 0 to obtain _L_ <sup>_∗_</sup> and subsequently _ρ_ ¯ (see Equation (12) in the experimental procedures). Thus, obtaining mechanical properties such as the relative density, resulting node displacements due to a load, effective elastic modulus and Poisson’s ratio can be obtained in a fully differentiable framework, starting with message passing on the graph representation of the lattice, an edge-wise pooling operation and a series of ordinary differentiable operations, i.e., operations on data without graph structure, such as scalars, vectors and matrices. The described forward model _F_ ( _L_ ) specifically takes the following information from the graph _L_ as input: the edge list _E_, the masking values _M_ = _{mij_ _|_ ( _i, j_ ) _∈E}_ and the node features _X_ = _{_ _r_ _i_ _|_ 0 _≤_ _i < N_ _}_ for a lattice with _N_ nodes, _F_ ( _L_ ) = _F_ ( _X_ _, E, M_ ). Since it is fully differentiable, it can be used to inverse design a lattice with desired properties using automatic differentiation – both to change continuous properties (such as node coordinates) and discrete properties (such as beam existence). In the following, we show this for two scenarios: obtaining a global target property such as a certain effective elastic modulus or Poisson’s ratio, and obtaining a certain (functional) deformation given a loading scenario. Designing lattices with target properties We demonstrate our approach with two examples: starting with a regular honeycomb grid, we inverse design node positions and beam connectivity to acquire a lattice with an effective elastic modulus that is one order of magnitude higher than originally while keeping the relative density _ρ_ ¯ of the lattice constant (Figure 5A). In addition, we turn an initially regular triangular lattice with positive Poisson’s ratio into a lattice with a negative Poisson’s ratio of _ν_ <sup>target</sup> = _−_ 0 _._ 5, again with the condition of keeping _ρ_ ¯ unchanged (Figure 5B). In both cases, we start with all edges unmasked (i.e. beams that are originally not available cannot be added during inverse design) and the used loss function is a L1 loss with an additional regularization term for the relative density, see the supplemental experimental procedures for details. In both cases, the required target values are achieved after a small number of iterations. For the honeycomb lattice, the inverse design leads to a restructuring that is more akin to a square lattice, which matches our expectations as square grids have high axial stiffness. To get a configuration with the same relative density as the initial lattice, beams that only weakly influence _E_ <sup>_∗_</sup> are removed after the target elastic modulus has been reached. For the triangular lattice, a configuration is found that, in general, promotes inward bending of elements during compression, resulting in a negative Poisson’s ratio. A peculiar feature are the arc-like structures on the bottom and top of the lattice that promote such inward movements. Designing lattices with target deformations In addition to global material properties, we can also inverse design the node displacements of the lattice to a given load. In Figure 6A, a <mark>?</mark> 2 0 <mark>?</mark> 01 <mark>?</mark> 02 0 <mark>?</mark> <mark>?</mark> 02 <mark>?</mark> 01 1 2 <mark>?</mark> 12 1 2 <mark>?</mark> 12 <mark>?</mark> 1 <mark>?</mark> 0 0 1 2 5 ##### A B Initial lattice Initial lattice [Pa] 10 <sup>7</sup> Final lattice Final lattice Target Model <u>0</u> <u>20</u> <u>40</u> <u>60</u> <u>80</u> <u>0</u> <u>20</u> <u>40</u> <u>60</u> <u>80</u> Iterations 10 <sup>6</sup> 0.07 0.06 0.5 0 -0.5 -1 <u>0</u> <u>20</u> <u>40</u> <u>60</u> <u>80</u> 0.21 0.19 0.17 <u>0</u> <u>20</u> <u>40</u> <u>60</u> <u>80</u> Iterations Figure 5: Inverse designing lattices to have desired mechanical properties. Lattices without load are shown in light gray and with load in black. Top nodes (red) are forced, while bottom nodes (gray) are constrained to not move. In the middle plots, target values of properties are shown as dashed lines. (A) Inverse designing a square lattice to have a higher effective elastic modulus while keeping the relative density constant. Deformations are magnified by a factor of 10. (B) Inverse designing a triangle lattice to have a negative Poisson’s ratio while keeping the relative density constant. Deformations are not magnified. lattice material that can perform a grabbing motion is found through inverse design. We start with a hexagonal honeycomb lattice with a small cavity on the right side - which will eventually become the grabbing part. To initiate the grabbing motion, the top left part of the lattice is compressed downwards while the bottom left part is kept in place. Initially, this leads to an outward bending of the right part of the lattice. Instead we turn this into an inward grabbing motion through inverse design. To achieve this, we provide a target deformation in _y_ and _x_ -direction (shown as crosses in Figure 6A) for some of the nodes (colored squares) in the material’s cavity. As shown in Figure 6A (middle), the four nodes converge towards their target behaviour after around 40 iterations. The inverse design creates interesting functional structures, such as a lever-like arrangement (situated in the left bottom corner of the hole in the lattice, shown in gold in Figure 6A) that pulls up the bottom-right part of the material when the lattice is compressed. As a second example, we demonstrate in Figure 6B that our approach can be used to design a lattice with several target behaviours. Specifically, we design a lattice structure that keeps a flat surface when only the top left (load 1) or top right half (load 2) is pushed downwards (with the other half free to move). As a target behaviour, we aim at keeping the top surface flat, i.e., the free moving part has to mimic the movement that would occur if the whole top surface was pushed downwards. Although the target behaviour is only learned for one particular load strength, the acquired design is valid over a large range of external deformations, see Figure S1. For the scenarios shown in Figure 6A,B, we allow new beams to be added between nodes that were initially not present in the lattice, drastically increasing the design space. To show that our method can be scaled to much larger lattices, we design a honeycomb lattice composed of 635 cells to have no displacement in _x_ -direction (for surface nodes) given a load in _y_ direction (Figure 6C) - which is equivalent to having a lattice material with _ν_ <sup>_∗_</sup> = 0. Starting from a hexagonal honeycomb lattice, after only nine iterations a peculiar design is found using a motive resembling tilted reentrant honeycombs, producing the desired effect. We emphasize here that this motive is completely and autonomously emergent, with no prior conception of auxetic behaviour introduced to the model. A magnified version of the design, featuring node positions, is shown in Figure S2. In general, the computational complexity of the exact model for _F_ is dominated by solving the stiffness equation (Equation (3)), which scales with the cube of the number of cells (see Note S1 and Figure S3 for details). Still, this is counter-balanced by the fact that gradient descent finds a suitable design typically within a few iterations making the approach viable even for larger lattices. To obtain results faster, a surrogate model for the finite element analysis can be used, i.e., trading accuracy for speed, such as GNNs trained on simulated or experimental data, where the computational complexity only scales linearly with the number of cells. 6 ##### A B <u>0</u> <u>40</u> <u>80</u> <u>0</u> <u>40</u> <u>80</u> Iterations L1 Loss Only 1 Both 10 3 Best lattice Initial lattice 0.02 0.00 0.02 0.02 0.00 0.02 10 4 Initial lattice: Load 1 Load 2 <u>0</u> <u>40</u> <u>80</u> Iterations ##### C Best lattice: Load 1 Load 2 Initial lattice Initial lattice, loaded After inv. design After inv. design, loaded Figure 6: Inverse designing a lattice to yield certain deformation responses to loads. Colors and line styles as in Figure 5. Nodes with target behaviour are shown as colored squares. (A) Inverse design of a grabbing tool. Progress towards the target for all four nodes is shown in the middle plot, colored like the corresponding nodes (left and right, colored squares). In the lattice illustrations (left and right), target deformations are indicated by crosses. A lever-like structure that emerged during inverse design is highlighted in gold. Deformations are magnified by a factor of 4. See also Video S1. (B) Inverse designing the response to two different load scenarios. As can be seen in the middle figure, if we only train on load scenario 1, the target behaviour for load scenario 2 is not reached. However, training on both scenarios will lead to a solution that satisfies both target behaviours. Deformations are magnified by a factor of 5. See also Figure S1 and Video S2. (C) Inverse designing a large honeycomb lattice to have zero Poisson’s ratio. Initially, loading the lattice leads to a bulging outwards. With our framework, a design is found that leads to no bulging, featuring local tiling motives resembling tilted reentrant honeycombs and triangles. See also Figure S2 and Video S3. Graph neural networks Instead of a finite element method, _F_ can also be an approximate model obtained using, e.g., machine learning. This is particularly useful when an analytical treatment is not feasible, computationally too slow, or only experimental data is available. Recently, GNNs using convolutional operators <sup>35,37,41</sup> have reached competitive performance on a variety of graph inference tasks such as link prediction and node classification, translating into applications such as molecule property prediction <sup>42</sup>, mesh-based simulations <sup>43</sup>, modelling glassy systems <sup>6</sup>, generalized neural algorithm learners <sup>44</sup>, as well as material science and chemistry <sup>45</sup> . They are especially interesting due to their property of being able to deal with graphs that have a varying number of nodes as well as carry numerical features on nodes and edges. Hence, in the following, we provide a proof of concept for using GNNs both for predicting the properties of lattice materials as well as inverse designing novel lattices. Dataset generation For training, evaluating and testing GNNs on predicting mechanical properties, we require an extensive dataset. As a proof of concept, we generated simulated data using the direct stiffness method. Lattices with different base tiling (square, equilateral triangle, hexagonal 7 honeycomb and reentrant honeycomb) and deformations (random node displacements and beam/node removals) have been generated, with 4000, 200 and 1000 lattices of each tiling (train, validation and test data, respectively) - i.e., in total 16000 training, 800 validation and 4000 test samples. A detailed description of these perturbations can be found in the supplemental experimental procedures and Table S2. A visualisation of examples from the training dataset and dataset statistics are shown in Figure S4 and Figure S5. Property prediction First, we train models that utilize message passing to predict inplane material properties of 2D lattices. We investigate two different GNN architectures: (i) GNNs based on the simple EdgeConv layer introduced in Wang et al. <sup>46</sup>, as well as a message passing neural network (MPNN) architecture used for molecule property prediction <sup>42</sup> . The model architectures are explained in detail in the experimental procedures. For comparison, we further train a linear regression and CatBoost model <sup>47</sup> (i.e., a gradient-boosted tree) on handcrafted features extracted from the lattices such as cell density and relative density (see Table S3). As an alternative, focusing only on the geometry of the lattice, we also train a convolutional neural network (CNN) on image representations of the lattices. To estimate the performance of the models, we report in Table 1 the root mean squared error (RMSE) calculated on the test set. The best model during training is selected using the validation split. In general, the CNN, CatBoost and MPNN perform similarly, clearly outperforming linear regression. The best performance is reached by the EdgeConv GNN. More specifically, we found that the models learn to predict the effective elastic modulus from the lattice geometry (or tabular features) very well, while the Poisson’s ratio is much harder to learn. Especially for square lattices, we found that all models perform rather badly, although good performances are reached for reentrant honeycomb and hexagonal honeycomb lattices. This is illustrated in Figure 7A, where we compare predicted and experimental values for the EdgeConv GNN. These are promising results, especially since both GNN architectures are end-to-end differentiable and can thus be used as an approximate replacement of _F_ in the inverse design framework. Inverse design using graph neural networks To showcase the usage of GNNs for 2D lattice inverse design, we use an EdgeConv GNN trained to predict the effective elastic modulus as the forward model _F_ . To enable changing the beam structure of the lattice, we have to properly implement masking of edges in the message passing architecture of the GNN, which is explained in the experimental procedures. In Figure 7B, we show that inverse design is possible through a trained model, yielding a lattice design that has the desired target properties. To ensure that the GNN did not simply return a lattice design from the training dataset, we show the two closest lattices from the training data in Figure S6 (see Note S2 for details). <u>Eff.</u> <u>elastic</u> <u>modulus</u> <u>Poisson’s</u> <u>ratio</u> <u>Model</u> <u>RMSE</u> <u>[10</u> <sup>_−_</sup> <sup>2</sup> <u>]</u> <u>RMSE</u> <u>[10</u> <sup>_−_</sup> <sup>2</sup> <u>]</u> Lin. Regr. 7 _._ 22 23 _._ 00 CatBoost 3 _._ 17 10 _._ 89 CNN 3 _._ 01 10 _._ 53 EdgeConv 2 _._ 61 11 _._ 26 <u>MPNN</u> <u>3</u> _<u>.</u>_ <u>46</u> <u>10</u> _<u>.</u>_ <u>65</u> Table 1: Experimental results for training prediction models. ###### Discussion For inverse design, the exact forward model (message passing finite element) has the strong advantage that no training data is required at all. In addition, the presented approach allows additional physical information of the lattice to be encoded as either node or edge features. Thus, the scheme can be generalized to create completely heterogeneous lattices (each beam with different values of _E_ and _A_ ) to satisfy a given set of target properties. In fact, due to the model being exact, a complete restructuring of the lattice geometry and its properties is possible without ever leaving the regime where the forward model is valid - unless modifications are made that result in a free-hinged structure or disconnected material. However, the model requires a full finite element implementation that - depending on the size of the material and the degree of realism of the used finite element approach – can be computationally inefficient and slow, having a cubic scaling relationship with respect to the number of cells in the lattice. Still, as only a few iterations are required to find a single lattice design, we are confident that the approach scales to more complex applications and can be utilized as a design assistant to explore novel, irregular lattice materials. An alternative to using an exact forward model is training a surrogate model, e.g., GNNs, which is computationally less demanding (linear scaling) than running a finite element simulation. Furthermore, it can be applied to experimentally recorded data and a variety of (non-linear) mechanical properties. In this work, we trained GNNs on predicting the effective elastic modulus _E_ <sup>_∗_</sup> and Poisson’s ratio _ν_ <sup>_∗_</sup> of lattice materials. Although good performance is reached for predicting _E_ <sup>_∗_</sup>, the model struggled with predicting _ν_ <sup>_∗_</sup> accurately, especially for small absolute values of _ν_ <sup>_∗_</sup> . To better understand the predictive power of GNNs in this application, a higher number of mechanical properties should be investigated in future work, as well as alternative GNN architectures that are more tailored to the problem of lattice material property prediction. Moreover, we only used lattices with a predefined base tiling and small range of cells. In future work, a larger dataset that covers a vast regime of lattice topologies (e.g. based on Voronoi grids) could strongly benefit the training process. Major downsides of using GNNs is that a lot of training data is required - more than might be accessible from experimental observations. In this case, a transfer learning approach might be used, where the model is first trained with simulated data and then fine-tuned, or partially retrained to predict novel properties, using experimental data. Finally, another possibility for reducing the amount of training data required as well as increase the performance and robustness of the model is to use a hybrid approach that integrates part of the analytical model in the GNN, basically molding knowledge about the underlying physics into the GNN architecture. To allow beams to be added or removed during inverse design, edge mask values have to be added to the GNN, details of which strongly depend on the choice of GNN architecture. For instance, in this work we showed how masking can be integrated in a GNN architecture using EdgeConv layers. Different from inverse design using an exact, analytical forward model (e.g. Figures 5 and 6), the optimization process is noisier when using a surrogate model. Furthermore, we found that it works less reliably the further one moves away from the value regime covered during training of the model. In fact, the design loop can get stuck in configurations of the lattice that are not realistic (e.g., disconnected components) without being able to recover from it on its own. Although this can be accounted for in the inverse design framework, for instance by not allowing changes to the geometry that result in unphysical lattice materials, this is a clear downside of the approach compared to using an exact model. Nevertheless, especially for larger lattices, inverse design with GNNs is extremely fast (Figure S3). Thus, if sufficient data is available to train a model, it can be used to quickly generate candidate designs, which then only need to be refined for a few iterations with the exact - but much 8 ###### A B 9 × 10 <sup>7</sup> 8 × 10 <sup>7</sup> 7 × 10 <sup>7</sup> 6 × 10 <sup>7</sup> 5 × 10 <sup>7</sup> 1 0.5 0 -0.5 1.0 0.8 0.6 0.4 0.2 0.0 <u>1e8</u> <u>0.0</u> <u>0.2</u> <u>0.4</u> <u>0.6</u> <u>0.8</u> <u>1.0</u> True eff. elastic mod. [Pa] 1e8 -1 <u>-1</u> <u>-0.5</u> <u>0</u> <u>0.5</u> <u>1</u> True Poisson's ratio [Pa] Target GNN FE <u>0</u> <u>50</u> <u>100</u> <u>150</u> <u>200</u> <u>0</u> <u>50</u> <u>100</u> <u>150</u> <u>200</u> Iterations Final lattice Initial lattice 0.14 0.13 0.12 Figure 7: Experiments using graph neural networks as the forward model. (A) Model prediction vs. ground truth for the EdgeConv model. (B) Inverse design using a GNN as the forward model _F_ . A triangle lattice is adjusted to feature a reduced effective elastic modulus while its relative density has to be unchanged. Target values for the elastic modulus and relative density are shown as dashed lines. The predicted value by the GNN _F_ ( _L_ ) is shown in blue (straight line), while the exact value obtained using finite element is shown in red (dashed dotted line). Colors and line styles as in Figure 5. Deformations are magnified by a factor of 2. See also Figure S6. slower - message passing finite element model, drastically speeding up the inverse design. To mask in and out beams in the lattice design during inverse design, we used a technique called surrogate gradient. Without surrogate gradients, we found that only continuous properties of the lattice, such as node positions, are changed during gradient descent - which is not too surprising, since the gradient of the threshold function is a Dirac delta distribution, which vanishes everywhere except at 0, and thus mask values of beams are only rarely changed. In contrast, with surrogate gradients, beams were continuously added or removed during inverse design, enabling a discrete restructuring of the lattice. When using this method, there is an ambiguity on what kind of function to use as the surrogate gradient. However, it has recently been observed that learning with surrogate gradients is robust to different shapes of the surrogate function - at least for training spiking neural networks <sup>39</sup> . In this work, we only used one type of surrogate function, but with adjustable width _α_ - which we found to not drastically change performance. We used a masking scheme here that incorporates information about crossing beams in the inverse design framework. Although we decided to simply mask out all crossing beams, in principle, a scheme could be developed that samples - from a group of crossing beams – a “winning” beam. For instance, the Gumbel-Softmax trick <sup>48</sup>, which enables sampling from categorical distributions compatible with automatic differentiation, could be used to select the winning beam based on their edge mask values. Although we only focused on 2D lattices here, the introduced method is extendable to more complex structures and materials. For instance, 3D truss-based lattices can be encoded in the same way as 2D lattices: node coordinates (in 3D) and an adjacency matrix describe the structure itself, while stiffness matrices are again calculated for each beam element using message passing. In fact, our method is naturally compatible with any truss-based lattice and we are additionally confident that it can be generalized to more complex lattice types in the future, such as sheet- and shell-based materials. We envision this achieved e.g., by representing the mesh of local elements (instead of beams) as a heterogeneous graph, and using message passing between unit elements to model their interactions. An analogous approach has shown promise for property prediction from the grain microstructures of polycrystalline metallic alloys <sup>49</sup> . To conclude, we present a framework that utilizes differentiable graph representations of lattices to perform both property prediction and inverse design. The main focus lies hereby on using message passing algorithms, which perform calculations directly on the geometric structure of the lattice’s graph representation and allow the modification of local material properties and beam connectivity using automatic differentiation to optimize global properties of the lattice. We show that finite element methods can be realized using message passing, or GNNs trained on simulated data can act as surrogate models thereof. This yields an efficient and expressive way of both describing and parametrizing lattices as well as modelling their behaviour mathematically. Our approach constitutes an important step towards enabling automatic inverse design of irregularly structured lattice materials. 9 Moreover, it opens up a new set of tools developed in the graph machine learning literature, such as the GNNExplainer method, for analyzing both regular and irregular lattices. We hope that this will spark new ideas for representing 3D-printable materials and lead to a wealth of novel approaches and tools that assist practitioners in designing new (multi)-functional materials. An intriguing example of a technology that is highly synergistic with our approach is the recently introduced mechanical neural network <sup>50</sup> (MNN) – a physical, experimental lattice structure constructed with programmable stiffness beam elements. Similar to how analogue implementations of neural networks have been trained <sup>51–54</sup>, MNNs could be trained ‘in-the-loop’ using our method, i.e., with forward passes being done on the physical device, while backward calculations (i.e. error backpropagation) for adjusting the stiffness of individual beams are done using our model on an edge device. This way, MNNs could be trained in real-time to create adaptive and smart structures in the real world. Finally, we would like to stress that the approach introduced in this work is not limited to describing lattices, but is applicable to any system that constitutes of a graph representation and a forward model that predicts its properties - thus allowing automatic differentiation to change the structure of the input graph until it satisfies a set of desired properties. ###### Experimental procedures Generalized Euler-Bernoulli beam elements The stiffness matrix _K_ _ij_ of the generalized beam element is obtained by combining the stiffness matrices of rod elements _K_ <sup>rod</sup> _ij_ for each beam connecting two nodes _i_ and _j_ in the lattice, _G_ is updated as follows (with _k_ = _K_ _ij_ here): _G_ - _ii_ _←_ _G_ - _ii_ + � _k_ 00 _,_ (11a) _G_ - _ij_ _←_ _G_ - _ij_ + � _k_ 01 _,_ (11b) _G_ - _ji_ _←_ _G_ - _ji_ + � _k_ 10 _,_ (11c) _G_ - _jj_ _←_ _G_ - _jj_ + � _k_ 11 _._ (11d) The index notation _a_ : _b_ denotes the range of integers from _a_ to _b_, i.e., _K_ 0:3 is the sub-matrix of _K_ consisting only of its first three rows. We further introduced the specific index notation _K_ <sup>�</sup> _ij_ = _K_ 3 _·i_ :3 _·i_ +3 _,_ 3 _·j_ :3 _·j_ +3, where the sub-selection is applied to both rows and columns. Mechanical in-plane properties Relative density The most influential design parameter on the in-plane mechanical properties of a cellular lattice material is its relative density <sup>32</sup>, _ρ_ ¯ = <sup>_<u>ρ∗</u>_</sup> _ρ_ s <sup>.</sup> This is defined as the ratio between the lattice’s density and the density of the parent solid material, _ρ_ s. For most practical scenarios, this ratio is equal to the material volume fraction contained within a known bounding box, following the relation: _ρ_ ¯ = <sup>_<u>ρ</u>_</sup> _ρ_ <sup>_∗_</sup> s _V_ <sup>_<u>V</u>_</sup> tot <sup><u>s</u></sup> <sup>=</sup> _b_ <sup>_<u>L</u>_</sup> _x_ <sup>_∗_</sup> _· b_ <sup>_<u>· t</u>_</sup> _y_ <sup>_<u>ρ</u>_</sup> _ρ_ <sup>_∗_</sup> s <sup>=</sup> _V_ <sup>_<u>V</u>_</sup> tot <sup><u>s</u></sup> (12) _b_ <sup>_<u>L</u>_</sup> _x_ <sup>_∗_</sup> _· b_ <sup>_<u>· t</u>_</sup> _y_ <sup>_,_</sup> where _L_ <sup>_∗_</sup> = <sup>�</sup> ( _i,j_ ) _∈E_ <sup>_Lij_</sup> <sup>is</sup> <sup>the</sup> <sup>sum</sup> <sup>of</sup> <sup>all</sup> <sup>beam</sup> <sup>lengths,</sup> <sup>_t_</sup> <sup>=</sup> _~~√~~_ _ij_ and Euler-Bernoulli beam elements _K_ <sup>EB</sup> _ij_ <sup>,</sup> <sup>EB</sup> _ij_ <sup>,</sup> _K_ _ij_ = _K_ <sup>rod</sup> _ij_ <sup>rod</sup> _ij_ + _K_ <sup>EB</sup> _ij_ <sup>EB</sup> _ij_ <sup>_._</sup> (8) Rod elements are used here to model the deformation of lattice elements along their longitudal axis. Their corresponding stiffness matrix is given by <sup>30</sup>        <sup>rod</sup> _ij_ = <sup>_<u>EA</u>_</sup>        _c_ <sup>2</sup> _cs_ 0 _−c_ <sup>2</sup> _−cs_ 0 _cs_ _s_ <sup>2</sup> 0 _−cs_ _−s_ <sup>2</sup> 0 0 0 0 0 0 0 _−c_ <sup>2</sup> _−cs_ 0 _c_ <sup>2</sup> _cs_ 0 _−cs_ _−s_ <sup>2</sup> 0 _cs_ _s_ <sup>2</sup> 0 0 0 0 0 0 0 _K_ <sup>rod</sup> _ij_ _L_ where _L_ <sup>_∗_</sup> = <sup>�</sup> ( _i,j_ ) _∈E_ <sup>_Lij_</sup> <sup>is</sup> <sup>the</sup> <sup>sum</sup> <sup>of</sup> <sup>all</sup> <sup>beam</sup> <sup>lengths,</sup> <sup>_t_</sup> <sup>=</sup> _A_ the beam thickness (and width) and _by_ and _bx_ the height and width of the bounding box, respectively. In cases where the bounding box is not known or considered, the relative density of common periodic lattices can also be determined analytically. Table S1 lists the relative density as a function of beam thickness, _t_, and regular beam length, _L_ for various periodic regular tilings. Note that contributions from material at nodal beam intersections are assumed negligible. The analytical relationships of Table S1 are only applicable for sufficiently slender beams when <sup>32</sup> _ρ_ ¯ _<_ 0 _._ 2. Otherwise, stress distribution within nodes and the emergence of axial shear effects in thicker beams cause the model to break down at higher relative densities. More robustly, Meza et al. <sup>56</sup> confirmed the classical predictions apply if strut dimensions fall within the regime ( _t/l_ ) ≲ 0 _._ 05. To ensure our generalized beam element model yields viable elastic properties, we limit all our experiments to a regime of relative densities between 0 _._ 05 _<_ _ρ_ ¯ _≤_ 0 _._ 19, contingent on the varying number of cells and beam thicknesses in each observation. In most cases, our beams also satisfy the slenderness criterion <sup>56</sup> . Effective elastic modulus The effective elastic modulus _E_ <sup>_∗_</sup> describes how strongly a material resists to externally-induced deformations. In general, _E_ <sup>_∗_</sup> is given by the slope of the linear regime of a material’s stress-strain curve. We use the following experimental setup to determine _E_ <sup>_∗_</sup> for arbitrary – including regular as well as irregular – 2D lattice materials. First, the material is glued between two plates in _y_ -direction, i.e., we have a top and a bottom plate (Figure 8). To obtain the stress-strain curve, the top plate is then iteratively pushed downwards to force the top nodes of the lattice to move. Bottom nodes are constrained in place. This yields different strains, i.e., displacements in y-direction. The stress is then obtained by measuring what force the material is applying on the top plate in response to the induced displacements, and dividing by the cross-sectional area of the lattice’s bounding box. After collecting several stress values for increasing strains, the effective elastic modulus is given by the slope of the resulting stressstrain curve. How this experimental setup translates into simulations in detail is described in the supplemental experimental procedures. In general, it requires constructing the global stiffness matrix _G_, applying _._ (9) Euler-Bernoulli beam elements model the bending of beam elements where the beam length is much larger than the characteristic dimension of the cross section, for which the stiffness matrix is given by <sup>30</sup> <sup>EB</sup> _ij_ = <sup>_<u>EI</u>_</sup> _L_ <sup>3</sup> _K_ <sup>EB</sup> _ij_ _K_ <sup>EB</sup> _ij_ = <sup>_<u>EI</u>_</sup> (10) _L_ <sup>3</sup> <sup>_·_</sup>  12 _s_ <sup>2</sup> _−_ 12 _sc_ _−_ 6 _Ls_ _−_ 12 _s_ <sup>2</sup> 12 _sc_ _−_ 6 _Ls_  12 _s_ <sup>2</sup> _−_ 12 _sc_ _−_ 6 _Ls_ _−_ 12 _s_ <sup>2</sup> 12 _sc_ _−_ 6 _Ls_ _−_ 12 _sc_ 12 _c_ <sup>2</sup> 6 _Lc_ 12 _sc_ _−_ 12 _c_ <sup>2</sup> 6 _Lc_ _−_ 6 _Ls_ 6 _Lc_ 4 _L_ <sup>2</sup> 6 _Ls_ _−_ 6 _Lc_ 2 _L_ <sup>2</sup> _−_ 12 _s_ <sup>2</sup> 12 _sc_ 6 _Ls_ 12 _s_ <sup>2</sup> _−_ 12 _sc_ 6 _Ls_ 12 _sc_ _−_ 12 _c_ <sup>2</sup> _−_ 6 _Lc_ _−_ 12 _sc_ 12 _c_ <sup>2</sup> _−_ 6 _Lc_ _−_ 6 _Ls_ 6 _Lc_ 2 _L_ <sup>2</sup> 6 _Ls_ _−_ 6 _Lc_ 4 _L_ <sup>2</sup>              _._ We assume beam elements with a square-shaped cross-sectional area, which corresponds to _I_ = <sup>_<u>bh</u>_</sup> 12 <sup>3</sup> <sup>=</sup> 12 <sup>_<u>t</u>_</sup> <sup>4</sup> <sup>=</sup> <sup>_<u>A</u>_</sup> 12 <sup>2</sup> <sup>,</sup> <sup>where</sup> <sup>_b, h_</sup> <sup>denote</sup> <sup>cross-</sup> section depth and height, respectfully. In a square beam, these are both equal to beam thickness <sup>55</sup>, _t_ . <sup>_<u>bh</u>_</sup> 12 <sup>3</sup> <sup>=</sup> 12 <sup>_<u>t</u>_</sup> <sup>4</sup> 12 <sup>_<u>t</u>_</sup> <sup>4</sup> <sup>=</sup> <sup>_<u>A</u>_</sup> 12 <sup>2</sup> Global stiffness matrix The global stiffness matrix _G_ can be constructed iteratively: first, start with _G_ being the zero-matrix (i.e., all elements are zero). Then, 10 repeated _N_ times, after which a graph embedding _r_ g is obtained by pooling over all nodes �� _r_ <sup>(</sup> 0 <sup>_N_</sup> <sup>)</sup> _|C|_ �� _._ (16) _r_ g = pool <sup>(</sup> 0 <sup>_N_</sup> <sup>)</sup> _,_ _. . ._ _,_ _r_ <sup>(</sup> _|C|_ <sup>_N_</sup> <sup>)</sup> Figure 8: Experimental setup for determining both the effective elastic modulus and the Poisson’s ratio of a lattice material along the loading direction. The material - here a lattice with honeycomb tiling - is placed between two plates. By pressing the top plate downwards while keeping the bottom plate unmoved, the material gets compressed. With this approach, stress-strain as well as strain-strain curves are derived, from which the above-mentioned material properties are calculated. constraints and deformations, solving the stiffness equation for _u_ _i_ and updating the node coordinates _r_ _i_ for all nodes _i_ - which has to be repeated several times to record the stress-strain curve. Poisson’s ratio The Poisson’s ratio measures how the width of a material changes due to a forced compression of its height. For instance, many materials will widen when compressed, which corresponds to a positive Poisson’s ratio. However, so-called auxetic materials do the opposite: when compressed, their width is reduced as well, which corresponds to a negative Poisson’s ratio. If the width of the material does not change at all, its Poisson’s ratio is 0. The Poisson’s ratio can be obtained with a similar experimental setup as the effective elastic modulus, just that we measure the change in width due to a strain in y-direction. Hence, the Poisson’s ratio is given by the slope of a strain-strain curve, as explained in detail in the supplemental experimental procedures. The width change is calculated by taking the difference of the mean _u_ <sup>_x_</sup> _r_ <sup>value</sup> <sup>of</sup> <sup>all</sup> <sup>nodes</sup> on the outer right surface and the mean _u_ <sup>_x_</sup> _l_ <sup>value</sup> <sup>of</sup> <sup>all</sup> <sup>nodes</sup> <sup>on</sup> <sup>the</sup> outer left surface of the material. Graph neural networks We investigate graph neural networks that work directly on the graph structure of our lattices, using only the information contained in _L_ . Here, we use the EdgeConv model <sup>46</sup>, where the node features _r_ _i_ are updated as follows: For pooling, we use the Set2Set operator. From _r_ _g_, a prediction is obtained through a final multi-layer neural network _ϕ_ p. Masking EdgeConv For EdgeConv, message passing yields the following edge features for each edge ( _j, i_ ) - _r_ <sup>(</sup> _j_ <sup>_l_</sup> <sup>)</sup> <sup>(</sup> _j_ <sup>_l_</sup> <sup>)</sup> _−_ _r_ _i_ <sup>(</sup> <sup>_l_</sup> <sup>)</sup> _._ (17) _i_ - + _W_ 0 _r_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>)</sup> _Eji_ = _W_ - _r_ <sup>(</sup> _j_ <sup>_l_</sup> <sup>)</sup> <sup>(</sup> _j_ <sup>_l_</sup> <sup>)</sup> _−_ _r_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>)</sup> Masking is done as follows: _Eji_ _←_ _Eji · Mji_ + min _n,m_ ( _Enm_ ) _·_ (1 _−_ _Mnm_ ) _._ (18) Node features are updated by choosing the maximum value (elementwise) over all neighbouring edges _r_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>+1)</sup> = max _j∈Ni_ ( _Eji_ ) _._ (19) Hence, if an edge is masked, its value is not picked by the max operation and it appears as if the edge does not exist in the graph. The masking also guarantees that the chosen maximum value cannot be larger than the minimum value of the edge features, always guaranteeing that the masked value is not chosen by accident. If the graph is bidirectional, both forward and backward edge between two nodes are masked with the same mask value, i.e., _mji_ _≡_ _mij_, resulting in _Mji_ _≡_ _Mij_ . Self-connections ( _i, i_ ) in the graph are not masked. This also guarantees that masking still works if nodes become disconnected from the remaining graph. Data and code availability This publication is accompanied with an extensive Python module (based on pyTorch) for analysing and designing 2D lattices called _pyLattice2D_ (see Note S3), which is publicly available on gitlab <sup>57</sup> . An archived version can be found under the following DOI: 10.5281/zenodo.8239350. It contains the experiments performed in this work, as well as many convenience functions, e.g., for the comfortable generation of various 2D lattice geometries. Default parameters as well as details for simulations can be found in the supplemental experimental procedures. ###### Acknowledgments We would like to thank Jai Grover and Elissa Ross for helpful and stimulating discussions. We further thank the reviewers for their helpful feedback, and our colleagues at ESA’s Advanced Concepts Team for their ongoing support. Both authors acknowledge support through the European Space Agency fellowship and young graduate trainee programs. ###### Author contributions Both authors designed the theoretical and experimental aspects of this study. DD created the pyLattice2D package based on initial code by DAvE. Both authors contributed to the pyLattice2D code. DD performed the simulations. Both authors wrote the manuscript based on an initial draft by DD. ###### Declaration of interests Work was performed while both authors were employed with the European Space Agency. At the time of publication, DAvE’s affiliation is the National Research Council Canada, Advanced Materials Research Facility, Mississauga, Canada. _r_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>+1)</sup> = max _j∈Ni_ _W_ _i_ - + _W_ 0 _r_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>)</sup> _,_ (13) with _r_ <sup>(0)</sup> _i_ = _r_ _i_, _Ni_ is the set containing all nodes connecting to node _i_, and _W_ and _W_ 0 are matrices. The full model consists of several EdgeConv, followed by a dense deep neural network Φ that returns a property prediction for each node. The final prediction is then obtained by averaging over all nodes. In addition, we investigate the MPNN model that has been proposed for molecule property prediction <sup>42</sup> . For this model, we use the distance vector between nodes _r_ _ij_, the length of the beam _Lij_ as well as the orientation _cij_ as edge features _e_ _ij_ = ( _r_ _ij, Lij, cij_ ). Node features are first preprocessed using a multi-layer neural network _ϕ_ r. They are update using a NNConv layer and a gated recurrent unit (GRU) _r_ ˜ _i_ = _r_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>)</sup> <sup>(</sup> _i_ <sup>_l_</sup> <sup>)</sup> + mean _{ϕ_ e( _e_ _ij_ ) _·_ _r_ <sup>(</sup> _j_ <sup>_l_</sup> <sup>)</sup> _r_ ˜ _i_ = _r_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>)</sup> + mean _{ϕ_ e( _e_ _ij_ ) _·_ _r_ <sup>(</sup> _j_ <sup>_l_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_j_</sup> <sup>_∈Ni},_</sup> (14) - _r_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>+1)</sup> _,_ _h_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>+1)</sup> - = GRU - _r_ ˜ _i,_ _h_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>)</sup> - _,_ (15) - _r_ ˜ _i,_ _h_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>)</sup> _i_ _,_ (15) <sup>(</sup> _i_ <sup>_l_</sup> <sup>+1)</sup> _,_ _h_ <sup>(</sup> _i_ <sup>_l_</sup> <sup>+1)</sup> = GRU _i_ with _r_ <sup>(0)</sup> _i_ <sup>(0)</sup> _i_ = _h_ <sup>(0)</sup> _i_ with _r_ <sup>(0)</sup> _i_ = _h_ <sup>(0)</sup> _i_ = _ϕ_ r ( _r_ _i_ ) and where _ϕ_ e is a neural network that takes the edge features as input and returns a matrix. This step is 11 ###### References 1. Ghidini, T. (2018). Materials for space exploration and settlement. Nature materials 17, 846–850. 10.1038/s41563-018-0184-4. 2. Gibson, L. J., Ashby, M. F., and Harley, B. A. (2010). Cellular materials in nature and medicine (Cambridge University Press). 3. Wegst, U. G., Bai, H., Saiz, E., Tomsia, A. P., and Ritchie, R. O. (2015). Bioinspired structural materials. Nature materials 14, 23–36. 10.1038/nmat4089. 4. Makaya, A. _,_ et al. (2022). Towards out of earth manufacturing: overview of the ESA materials and processes activities on manufacturing in space. CEAS Space Journal 15, 1–7. 10.1007/s12567-022-00428-1. 5. Mitchell, A., Lafont, U., Hołynska,´ M., and Semprimoschnig, C. (2018). Additive manufacturing—A review of 4D printing and future applications. Additive Manufacturing 24, 606–626. 10.1016/j.addma.2018.10.038. 6. Bapst, V. _,_ et al. (2020). Unveiling the predictive power of static structure in glassy systems. Nature Physics 16, 448–454. 10.1038/s41567-0200842-8. 7. Kim, B., Lee, S., and Kim, J. (2020). Inverse design of porous materials using artificial neural networks. Science Advances 6, 10.1038/s42256020-00271-1. 8. Yao, Z. _,_ et al. (2021). Inverse design of nanoporous crystalline reticular materials with deep generative models. Nature Machine Intelligence 3, 76–86. 9. Lee, S., Zhang, Z., and Gu, G. X. (2023). Deep Learning Accelerated Design of Mechanically Efficient Architected Materials. ACS Applied Materials & Interfaces 15, 22543–22552. 10.1021/acsami.3c02746. 10. Challapalli, A., Patel, D., and Li, G. (2021). Inverse machine learning framework for optimizing lightweight metamaterials. Materials & Design 208, 109937. 10.1016/j.matdes.2021.109937. 11. Guo, K. and Buehler, M. J. (2020). A semi-supervised approach to architected materials design using graph neural networks. Extreme Mechanics Letters 41, 101029. 10.1016/j.eml.2020.101029. 12. Guo, K., Yang, Z., Yu, C.-H., and J. Buehler, M. (2021). Artificial intelligence and machine learning in design of mechanical materials. Materials Horizons 8, 1153–1172. 10.1039/D0MH01451F. 13. Shen, S. C.-y. and Buehler, M. J. (2022). Nature-inspired architected materials using unsupervised deep learning. Communications Engineering 1, 1–15. 10.1038/s44172-022-00037-0. 14. Zheng, X., Chen, T.-T., Guo, X., Samitsu, S., and Watanabe, I. (2021). Controllable inverse design of auxetic metamaterials using deep learning. Materials & Design 211, 110178. 10.1016/j.matdes.2021.110178. 15. Zheng, X., Chen, T.-T., Jiang, X., Naito, M., and Watanabe, I. (2023). Deep-learning-based inverse design of three-dimensional architected cellular materials with the target porosity and stiffness using voxelized Voronoi lattices. Science and Technology of Advanced Materials 24, 2157682. 10.1080/14686996.2022.2157682. 16. Maurizi, M., Gao, C., and Berto, F. (2022). Inverse design of truss lattice materials with superior buckling resistance. npj Computational Materials 8, 1–12. 10.1038/s41524-022-00938-w. 17. Maurizi, M., Gao, C., and Berto, F. (2022). Predicting stress, strain and deformation fields in materials and structures with graph neural networks. Scientific Reports 12, 21834. 10.1038/s41598-022-26424-3. 18. Yang, Z. and Buehler, M. J. (2022). High-Throughput Generation of 3D Graphene Metamaterials and Property Quantification Using Machine Learning. Small Methods 6, 2200537. 10.1002/smtd.202200537. 19. Mozaffar, M. _,_ et al. (2019). Deep learning predicts path-dependent plasticity. Proceedings of the National Academy of Sciences 116, 26414–26420. 10.1073/pnas.1911815116. 20. Wang, L., Chan, Y.-C., Liu, Z., Zhu, P., and Chen, W. (2020). Datadriven metamaterial design with Laplace-Beltrami spectrum as ’shapeD NA’. Structural and multidisciplinary optimization 61, 2613–2628. 10.1007/s00158-020-02523-5. 21. Bastek, J.-H., Kumar, S., Telgen, B., Glaesener, R. N., and Kochmann, D. M. (2022). Inverting the structure–property map of truss metamaterials by deep learning. Proceedings of the National Academy of Sciences 119, e2111505119. 10.1073/pnas.2111505119. 22. Gao, J., Luo, Z., Li, H., and Gao, L. (2019). Topology optimization for multiscale design of porous composites with multi-domain microstructures. Computer Methods in Applied Mechanics and Engineering 344, 451–476. 10.1016/j.cma.2018.10.017. 23. Wang, Y., Liao, Z., Shi, S., Wang, Z., and Poh, L. H. (2020). Datadriven structural design optimization for petal-shaped auxetics using 12 isogeometric analysis. Computer Modeling in Engineering & Sciences 122, 433–458. 10.32604/cmes.2020.08680. 24. Liao, Z., Wang, Y., Gao, L., and Wang, Z.-P. (2022). Deep-learningbased isogeometric inverse design for tetra-chiral auxetics. Composite Structures 280, 114808. 10.1016/j.compstruct.2021.114808. 25. Yazdani Sarvestani, H. _,_ et al. (2022). Bioinspired Stochastic Design: Tough and Stiff Ceramic Systems. Advanced Functional Materials 32, 2108492. 10.1002/adfm.202108492. 26. Kumar, S., Tan, S., Zheng, L., and Kochmann, D. M. (2020). Inversedesigned spinodoid metamaterials. npj Computational Materials 6, 1–10. 10.1038/s41524-020-0341-6. 27. Bonfanti, S., Guerra, R., Font-Clos, F., Rayneau-Kirkhope, D., and Zapperi, S. (2020). Automatic design of mechanical metamaterial actuators. Nature communications 11, 4162. 10.1038/s41467-020-179472. 28. Neftci, E. O., Mostafa, H., and Zenke, F. (2019). Surrogate gradient learning in spiking neural networks: Bringing the power of gradientbased optimization to spiking neural networks. IEEE Signal Processing Magazine 36, 51–63. 10.1109/MSP.2019.2931595. 29. Ross, E. and Hambleton, D. (2021). Using Graph Neural Networks to Approximate Mechanical Response on 3D Lattice Structures. Proceedings of AAG2020-Advances in Architectural Geometry 24, 466–485. 30. Ochsner,¨ A. and Makvandi, R. (2018). Finite elements for truss and frame structures: an introduction based on the computer algebra system Maxima (Springer). 31. Buhring,¨ J., Soika, J., Schirp-Schoenen, M., and Schroder,¨ K.-U. (2022). Elastic axial stiffness properties of lattice structures: Analytical approach and experimental validation for bcc and f2cc, z unit cells. Mechanics of Advanced Materials and Structures 0, 1–17. 10.1080/15376494.2022.2139027. 32. Gibson, L. J. and Ashby, M. F. (1997). Cellular Solids: Structure and Properties (Cambridge University Press). 33. Wang, A.-J. and McDowell, D. (2005). Yield surfaces of various periodic metal honeycombs at intermediate relative density. International Journal of Plasticity 21, 285–320. 10.1016/j.ijplas.2003.12.002. 34. Lim, T.-C. (2015). Auxetic materials and structures (Springer). 35. Kipf, T. N. and Welling, M. (2017). Semi-supervised classification with graph convolutional networks. Preprint at arXiv, 10.48550/arXiv.1609.02907. 36. Gilmer, J., Schoenholz, S. S., Riley, P. F., Vinyals, O., and Dahl, G. E. (2017). Neural Message Passing for Quantum Chemistry. Proceedings of the 34th International Conference on Machine Learning 70, 1263–1272. 10.48550/arXiv.1704.01212. 37. Hamilton, W., Ying, Z., and Leskovec, J. (2017). Inductive Representation Learning on Large Graphs. Proceedings Advances in Neural Information Processing Systems 30. 10.48550/arXiv.1706.02216. 38. Ying, Z., Bourgeois, D., You, J., Zitnik, M., and Leskovec, J. (2019). Gnnexplainer: Generating explanations for graph neural networks. Proceedings Advances in Neural Information Processing Systems 32. 10.48550/arXiv.1903.03894. 39. Zenke, F. and Vogels, T. P. (2021). The remarkable robustness of surrogate gradient learning for instilling complex function in spiking neural networks. Neural computation 33, 899–925. 10.1101/2020.06.29.176925. 40. Zenke, F. and Ganguli, S. (2018). Superspike: Supervised learning in multilayer spiking neural networks. Neural computation 30, 1514–1541. 10.48550/arXiv.1705.11146. 41. Schlichtkrull, M. _,_ et al. (2018). Modeling relational data with graph convolutional networks. Proceedings European Semantic Web Conference 15, 593–607. 10.48550/arXiv.1703.06103. 42. Lu, C. _,_ et al. (2019). Molecular property prediction: A multilevel quantum interactions modeling perspective. Proceedings of the AAAI Conference on Artificial Intelligence 33, 1052–1060. 10.1609/aaai.v33i01.33011052. 43. Pfaff, T., Fortunato, M., Sanchez-Gonzalez, A., and Battaglia, P. W. (2020). Learning mesh-based simulation with graph networks. Preprint at arXiv, 10.48550/arXiv.2010.03409. 44. Ibarz, B. _,_ et al. (2022). A generalist neural algorithmic learner. Preprint at arXiv, 10.48550/arXiv.2209.11142. 45. Reiser, P. _,_ et al. (2022). Graph neural networks for materials science and chemistry. Communications Materials 3, 1–18. 10.1038/s43246-02200315-6. 46. Wang, Y. _,_ et al. (2019). Dynamic graph cnn for learning on point clouds. Acm Transactions On Graphics (tog) 38, 1–12. 10.1145/3326362. 47. Prokhorenkova, L., Gusev, G., Vorobev, A., Dorogush, A. V., and Gulin, A. (2018). CatBoost: unbiased boosting with categorical features. Proceedings Advances in Neural Information Processing Systems 31. 10.48550/arXiv.1706.09516. 48. Jang, E., Gu, S., and Poole, B. (2017). Categorical Reparametrization with Gumbel-Softmax. Proceedings International Conference on Learning Representations (ICLR). 10.48550/arXiv.1611.01144. 49. Dai, M., Demirel, M. F., Liang, Y., and Hu, J.-M. (2021). Graph neural networks for an accurate and interpretable prediction of the properties of polycrystalline materials. npj Computational Materials 7, 103. 10.1038/s41524-021-00574-w. 50. Lee, R. H., Mulder, E. A., and Hopkins, J. B. (2022). Mechanical neural networks: Architected materials that learn behaviors. Science Robotics 7, 10.1126/scirobotics.abq7278. 51. Schmuker, M., Pfeil, T., and Nawrot, M. P. (2014). A neuromorphic network for generic multivariate data classification. Proceedings of the National Academy of Sciences 111, 2081–2086. 10.1073/pnas.1303053111. 52. Esser, S. K. _,_ et al. (2016). Convolutional networks for fast, energyefficient neuromorphic computing. Proceedings of the National Academy of Sciences 113, 11441–11446. 10.1073/pnas.1604850113. 53. Schmitt, S. _,_ et al. (2017). Neuromorphic hardware in the loop: Training a deep spiking network on the brainscales wafer-scale system. Proceedings International Joint Conference on Neural Networks, 2227–2234. 10.1109/IJCNN.2017.7966125. 54. Kungl, A. F. _,_ et al. (2019). Accelerated physical emulation of bayesian inference in spiking neural networks. Frontiers in neuroscience 13, 1201. 10.3389/fnins.2019.01201. 55. Megson, T. H. G. (2019). Structural and stress analysis (ButterworthHeinemann). 56. Meza, L. R. _,_ et al. (2017). Reexamining the mechanical property space of three-dimensional lattice architectures. Acta Materialia 140, 424–432. 10.1016/j.actamat.2017.08.052. 57. Python Software Package: pyLattice2D. https : / / [gitlab](https://gitlab.com/EuropeanSpaceAgency/pylattice2d) . com / [EuropeanSpaceAgency/pylattice2d.](https://gitlab.com/EuropeanSpaceAgency/pylattice2d) 13 ### Supplemental Information ###### Supplemental experimental procedures Determining mechanical properties using direct stiffness Calculating the effective elastic modulus For simplicity, we denote by _T_ the set containing all indices of top nodes (i.e., all nodes forming the top surface of the material) and _B_ the set containing the indices of bottom nodes. 1) First, construct the global stiffness matrix _G_ . 2) A single external displacement (0 _, δ_ ) of the top nodes is introduced by setting the constraints _u_ <sup>_x_</sup> _i_ <sup>= 0</sup> <sup>and</sup> <sup>_uy_</sup> _i_ <sup>=</sup> <sup>_δ_</sup> <sup>_∀i ∈T_</sup> <sup>.</sup> 3) This displacement leads to forces acting on all remaining nodes _f_ ext = _−_ _G_ _u_ ext _,_ (S1) where _u_ ext _∈_ R <sup>3</sup> <sup>_N_</sup> is zero everywhere except for the external displacements, i.e., _u_ ext _,_ 3 _·i_ +1 = _u_ <sup>_y_</sup> _i_ where _u_ ext _∈_ R <sup>3</sup> <sup>_N_</sup> is zero everywhere except for the external displacements, i.e., _u_ ext _,_ 3 _·i_ +1 = _u_ <sup>_y_</sup> _i_ <sup>if</sup> <sup>_i ∈T_</sup> <sup>.</sup> 4) The “glueing” is imitated by enforcing the constraints _u_ <sup>_x_</sup> _i_ <sup>= 0</sup> <sup>and</sup> <sup>_uy_</sup> _i_ <sup>= 0</sup> <sup>_∀i ∈B_</sup> <sup>.</sup> <sup>Both</sup> <sup>the</sup> <sup>constraints</sup> 4) The “glueing” is imitated by enforcing the constraints _u_ <sup>_x_</sup> _i_ <sup>= 0</sup> <sup>and</sup> <sup>_uy_</sup> _i_ <sup>= 0</sup> <sup>_∀i ∈B_</sup> <sup>.</sup> <sup>Both</sup> <sup>the</sup> <sup>constraints</sup> <sup>for</sup> <sup>bottom</sup> <sup>and</sup> top nodes are realized by removing the corresponding rows and columns in the stiffness matrix and the corresponding rows in the external force vector (i.e., all rows (and columns) 3 _· i_ and 3 _· i_ + 1 _∀i ∈T_ _∪B_ .), resulting in their reduced versions _G_ <sup>¯</sup> and _f_ <sup>¯</sup> ext. 5) From the reduced stiffness matrix and force vector, we get the displacement of all unconstrained nodes _u_ ¯ by solving the following system of linear equations _G_ ¯ _u_ ¯ = _f_ ¯ ext _,_ (S2) for instance, by using a linear (and differentiable) solver such as LU decomposition. 6) From _u_ ¯ and the constraints for top and bottom nodes, the displacement vector _u_ for all nodes can be constructed. 7) From this, we can calculate the full force vector _f_ = _Gu_ . 8) The total force of the top nodes pushing upwards is then given by _f_ react = _−_ _i∈T_ _f_ 3 _·i_ +1 _,_ (S3) _A_, which is turned into a stress by normalizing with the cross-sectional area of the lattice in y-direction, _bx ·_ _√_ _<u>f</u>_ <u>react</u> stress = _~~√~~_ _bx ·_ _~~√~~_ _A_ _._ (S4) 9) Finally, we update the node positions of the lattice to their new equilibrium positions ( _xi_ + _u_ <sup>_x_</sup> _i_ <sup>_, yi_</sup> <sup>+</sup> <sup>_uy_</sup> _i_ <sup>).</sup> To collect stress values for increasing strain, the whole process is repeated several times. For instance, after two iterations, the total stress is given by the sum of the stresses obtained in both iterations, and the total strain is given by 2 _· δ_ . The effective elastic modulus is then obtained via linear regression on the collected total stress values _σ_ and total strain values _ϵ_, _E_ <sup>_∗_</sup> = <u>�</u> _<u>k</u>_ <sup>_<u>σk</u>_</sup> <u>�</u> _k_ <sup>_ϵk_</sup> _,_ (S5) where _k_ sums over all iterations. This approach can be easily generalized to arbitrary scenarios by defining the sets _T_ and _B_ as well as the constraints and external displacements differently. Related to “Characterising 2D lattice materials” in the main text. Calculating the Poisson’s ratio To obtain the Poisson’s ratio, the same steps as for the effective elastic modulus are performed. However, instead of the stress, the mean width change _ϵ_ ¯ _k_ is calculated in each iteration _k_ <u>1</u> ∆ _R_ = _|RS|_ <u>1</u> ∆ _L_ = _|LS|_ _i∈RS_ _i∈LS_ _u_ <sup>_x_</sup> _i_ <sup>_,_</sup> (S6) _u_ <sup>_x_</sup> _i_ _u_ <sup>_x_</sup> _i_ <sup>_,_</sup> (S7) _u_ <sup>_x_</sup> _i_ _ϵ_ ¯ _k_ = ∆ _R −_ ∆ _L,_ (S8) where _RS_ is a set containing the indices of all outer-right nodes (i.e., forming the right surface of the material) and _LS_ the indices of outer-left nodes. We only use outer nodes that are unconstrained for this calculation. _|RS|_ denotes the number of 14 elements in _RS_ . For deformations, we neglect the iterations index here to increase the readability. The Poisson’s ratio is then obtained using linear regression _ν_ <sup>_∗_</sup> = <u>�</u> <u>�</u> _<u>k</u>_ <sup>_<u>ϵ</u>_</sup> <sup><u>¯</u></sup> <sup>_<u>k</u>_</sup> <u>�</u> _k_ <sup>_ϵk_</sup> _._ (S9) Related to “Characterising 2D lattice materials” in the main text. Simulation details Default simulation parameters During inverse design, we optimize both the node coordinates _r_ _i_ and mask values _mij_ . However, we only change the coordinates of nodes that are inside of the material, i.e., the outer surface of the material is kept unchanged. For coordinates, we use the learning rate _γ_ _r_ = 0 _._ 001 and for the edge mask _γm_ = 0 _._ 01. If not stated otherwise, we use _α_ = 1, _E_ = 2 GPa, _bx_ = _by_ = 1 cm and _A_ = 2 _·_ 10 <sup>_−_</sup> <sup>5</sup> cm <sup>2</sup> in all simulations. The optimized parameters are not regularized. For training GNNs, we use a batch size of 200, a learning rate of 10 <sup>_−_</sup> <sup>3</sup> (Adam optimizer), weight regularization strength 10 <sup>_−_</sup> <sup>6</sup> and a mean squared error loss function. For all trained models, we normalized the values of the effective elastic modulus by first subtracting the minimum value of the training set, and then dividing by the maximum value of the (minimum-shifted) training set. All simulations ran on an AMD Ryzen 9 5900HS and a NVIDIA GeForce RTX 3060 (Laptop). Inverse design of effective elastic modulus In this case, the exact forward model _F_ provides the effective elastic modulus of a given lattice. To determine _E_ <sup>_∗_</sup>, _F_ performs 10 iterations of direct stiffness with _δ_ = 0 _._ 001, leading to a total compression in height of 0 _._ 01 (i.e. 1%). We choose the loss function _LE_ = <sup>_<u>∥F</u>_</sup> <sup><u>(</u></sup> <sup>_<u>X</u>_</sup> <sup>_<u>, E, M</u>_</sup> <sup><u>)</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>E</u>_</sup> <sup>target</sup> <sup>_<u>∥</u>_</sup> _E_ 0 + _β∥ρ_ ¯ _−_ _ρ_ ¯0 _∥_ _,_ (S10) where _E_ 0 is the initial effective elastic modulus of the lattice, _E_ <sup>target</sup> = 10 _·_ _E_ 0 the target value, _ρ_ ¯ the relative density as obtained using message passing and _ρ_ ¯0 the initial relative density. _β_ is a hyperparameter that we choose to be _β_ = 10. Masking values are initialized as 0 _._ 2 for all edges. No additional edges (beyond regular honeycomb connectivity) are added to the lattice setup. The learning rate for mask values is reduced by a factor of 10 after 40 iterations to guarantee convergence. Related to Figure 5A. Inverse design of Poisson’s ratio In this case, the exact forward model _F_ provides the Poisson’s ratio of a given lattice. To determine _ν_ <sup>_∗_</sup>, _F_ performs 40 iterations of direct stiffness with _δ_ = <sup><u>0</u></sup> 40 <sup>_<u>.</u>_</sup> <sup><u>01</u></sup> <sup>,</sup> <sup>leading</sup> <sup>to</sup> <sup>a</sup> <sup>total</sup> <sup>compression</sup> <sup>in</sup> <sup>height</sup> <sup>of</sup> <sup>0</sup> <sup>_._</sup> <sup>01</sup> <sup>(i.e.</sup> <sup>1%).</sup> <sup>We</sup> <sup>choose</sup> <sup>the</sup> <sup>loss</sup> <sup>function</sup> _Lν_ = _∥F_ ( _X_ _, E, M_ ) _−_ _ν_ <sup>target</sup> _∥_ + _β∥ρ_ ¯ _−_ _ρ_ ¯0 _∥_ _,_ (S11) where _ν_ <sup>target</sup> = _−_ 0 _._ 5 is the target Poisson’s ratio. All other parameters are as in “Inverse design of effective elastic modulus” in the supplemental experimental procedures. In addition, the list of crossing beams is recalculated every 10 iterations to ensure a valid lattice material after inverse design has finished. Related to Figure 5B. Inverse design of grabber Different from the previous experiments, here the deformation of each node is determined using _F_, which performs 10 iterations of direct stiffness with _δ_ = <sup><u>0</u></sup> 10 <sup>_<u>.</u>_</sup> <sup><u>01</u></sup> <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>right</sup> <sup>outer</sup> <sup>nodes</sup> <sup>in</sup> <sup>the</sup> <sup>small</sup> <sup>cavity</sup> <sup>(Figure</sup> <sup>6,</sup> <sup>square-shaped</sup> <sup>nodes</sup> <sup>in</sup> <sup>blue</sup> <sup>and</sup> <sup>red),</sup> we set as a target that they do not move in _x_ -direction, but move either upwards (lower row) or downwards (upper row) in _y_ -direction by 0 _._ 02. Performance is evaluated using an L1 loss again, and we set _α_ = 100. In this experiment, we allow new edges to be added to the lattice that have originally not been part of the honeycomb tiling. Before starting the inverse design loop, we therefore add new edges (that are masked out initially) to the graph: for each node, edges to neighbouring nodes within a radial distance of 0 _._ 2 are added to the graph with a probability of 0 _._ 3. Original honeycomb beams ( _i, j_ ) are initialized with mask value _mij_ = 0 _._ 25, while all other (newly added) beams ( _l, p_ ) are initialized with mask value _mlp_ = 0. During inverse design, we also apply the following to promote removing unnecessary beams from the lattice, as well as solutions that are further away from the initial honeycomb structure: _•_ Every five iterations, the 10% of the active edges (i.e., _{_ ( _i, j_ ) _|_ _Mij_ _>_ 0 _}_ ) with the lowest mask value are masked out by setting their mask value to _−_ 0 _._ 2. 15 _•_ Every five iterations, the expressions for _Mij_ are updated by newly checking which beams in the lattice cross. This is done to avoid solutions with crossing beams. Related to Figure 6A. Inverse design of flat surface In this experiment, there are two loading scenarios _S_ 1 and _S_ 2, which we provide as an additional input to the forward model _F_ . More specifically, in the first scenario the four left nodes on the top of the surface are moved downwards, while in the second scenario the four right nodes on the top are moved. In both scenarios, all bottom nodes are kept fixed and the target is to have a flat surface, i.e., the remaining four top nodes have as a target to not move in _x_ -direction and move the same amount in _y_ -direction as the forced nodes. For training, we again use the L1 loss - however, now it is the sum of the individual losses for both scenarios. Training is done as in “Inverse design of grabber” in the supplemental experimental procedures, with the only difference being that random masking every five iterations is stopped after 20 iterations. Related to Figure 6B. Inverse design of a large lattice The load is only applied in one iteration, with a deformation in _y_ -direction of _δ_ = <sup><u>0</u></sup> <sup>_<u>.</u>_</sup> 1 <sup><u>02</u></sup> The load is only applied in one iteration, with a deformation in _y_ -direction of _δ_ = <sup><u>0</u></sup> <sup>_<u>.</u>_</sup> 1 <sup><u>02</u></sup> <sup>.</sup> <sup>For</sup> <sup>the</sup> <sup>outer</sup> <sup>left</sup> <sup>and</sup> <sup>outer</sup> <sup>right</sup> nodes, the target during inverse design is to have no displacement in _x_ -direction. As before, we use an L1 loss and initialize the masking values as 0 _._ 2 for all edges. The lattice deformations shown in the main paper (before and after inverse design) are applied in 50 increments, i.e., _δ_ = <sup><u>0</u></sup> 50 <sup>_<u>.</u>_</sup> <sup><u>1</u></sup> <sup>.</sup> applied in 50 increments, i.e., _δ_ = <sup><u>0</u></sup> 50 <sup>_<u>.</u>_</sup> <sup><u>1</u></sup> <sup>.</sup> Related to Figure 6C. Dataset generation For the dataset, we chose the number of layers _N_ l in a material using a certain base tiling such that in the end, all lattices were made of approximately the same amount of cells _N_ c (since all lattices have to fit as best as possible into the unit box, an exact match is impossible). The deformations are governed by hyperparameters ∆, _D_ n and _D_ e, and we denote by _U_ ( _x_ ) the uniform distribution over the interval [0 _, x_ ] ( _x ∈_ R <sup>+</sup> ) and _I_ ( _N_ ) the uniform distribution on integers in the interval [0 _, N_ ] ( _N_ _∈_ N). To deform a single lattice, maximum values for the deformations are obtained by sampling from random distributions: _Aδ_ _∼_ _U_ (1) _,_ (S12a) _∂_ _∼_ _U_ (∆) _,_ (S12b) _d_ e _∼_ _U_ ( _D_ e) _,_ (S12c) _d_ n _∼_ _I_ ( _D_ n) _._ (S12d) The deformations are then applied as follows: 1) Select a fraction _Aδ_ of nodes randomly and shift them by a random amount _U_ ( _∂_ ) _−_ 0 _._ 5 both in x and y direction (for both directions, the amount is determined independently). 2) Select a fraction _d_ e of edges randomly and remove them from the edge list (i.e., remove beams from the lattice). 3) Select _d_ n nodes randomly and remove them as well as all edges connecting to them. The used values are listed in Table S2. For training, validation and test set, different random seeds were used. This way, a variety of different lattices is generated, with some featuring heavy deformations while others only have small (or localized) deformations. To calculate the effective elastic modulus and Poisson’s ratio, we performed 30 iterations of direct stiffness with _δ_ = <sup><u>0</u></sup> 30 <sup>_<u>.</u>_</sup> <sup><u>02</u></sup> <sup>on</sup> <sup>each</sup> <sup>lattice.</sup> <sup>A</sup> <sup>brief</sup> <sup>summary</sup> <sup>of</sup> <sup>the</sup> <sup>distribution</sup> <sup>of</sup> <sup>these</sup> <sup>values</sup> <sup>is</sup> <sup>shown</sup> <sup>in</sup> <sup>Figure</sup> <sup>S5.</sup> Related to Figure 7 and Table 1. Tabular models For comparison, we consider both linear regression and gradient-boosted trees (CatBoost). Such models work best with engineered features that summarise the characteristics of a lattice _L_ . In addition to the graph representation of the lattice, we also use its image representation _I_ here, which is given by a matrix _I_ _∈{_ 0 _,_ 1 _}_ <sup>_c_</sup> <sup>0</sup> _× {_ 0 _,_ 1 _}_ <sup>_c_</sup> <sup>1</sup>, with _c_ 0 _× c_ 1 = 339 _×_ 459 being the image resolution and a value of 1 indicating the existence of lattice material. Here, we use the features listed in Table S3. Related to Figure 7A and Table 1. Training machine learning models We train separate models for the effective elastic modulus and the Poisson’s ratio (although in principle, similar performances are reached when training at least the GNN models to predict both properties). For the GNN models, we choose a graph representation with bidirectional edges. In addition, we add a self-connection to each node. 16 The EdgeConv model consists of three EdgeConv layers (see Equation (13)) with 200 hidden neurons each. The deep neural network consists of three layers with [400 _,_ 200 _,_ 1] neurons. The specification of the MPNN model can be found in pyLattice2D (in models/MPNN/networks the class LatticeNNConv) with parameters hid_nfeat set to 15 and num_message_passing set to 3. For the CNN, we use a batchsize of 50 and weight regularization of 10 <sup>_−_</sup> <sup>5</sup> . Training data is randomly flipped horizontally and vertically. The specifications of the CNN architecture can be found in pyLattice2D (in models/MPNN/networks the class CNN). Related to Figure 7 and Table 1. Inverse design using GNNs For inverse design, we trained an EdgeConv model with 150 hidden neurons per EdgeConv layer, otherwise the architecture is the same as in “Training machine learning models” in the supplemental experimental procedures. For the inverse design loop, we use again an L1 loss: _Lν_ = _∥F_ ( _X_ _, E, M_ ) _−_ _E_ <sup>target</sup> _∥_ + _β∥ρ_ ¯ _−_ _ρ_ ¯0 _∥_ _,_ (S13) with _β_ = 100 and _F_ now the trained EdgeConv model. Only original beams of the triangle grid can be added or removed during training. We initialize the mask randomly with values _mij_ _∼_ _U_ (0 _._ 2), which was necessary to avoid that the model removes too many beams at once during the first few iterations. For coordinates, we use the learning rate _γ_ _r_ = 0 _._ 0001 and for the edge mask _γm_ = 0 _._ 001. All parameters are regularized (weight decay) with strength 10 <sup>_−_</sup> <sup>6</sup> . For comparison, we use an exact forward model (FE in Figure 7B) which uses 10 iterations of direct stiffness with _δ_ = 0 _._ 002 to determine _E_ <sup>_∗_</sup> . Related to Figure 7B. ###### Supplemental notes Note S1: Computational complexity The time complexity of the Message Passing Finite Element method can be estimated by looking at the three main steps of the algorithm: 1) Assembling the stiffness matrix, which scales with the number of edges _O_ ( _|E|_ ). 2) Solving for displacements, which scales, e.g. for algorithms like LU decomposition, cubic with the number of nodes _O_ ( _k · |X|_ <sup>3</sup> ), where _k_ is the number of load iterations. 3) The backward path, i.e., automatic differentiation, which scales proportional to the forward calculation (steps 1 and 2), with a low constant pre-factor <sup>S1,S2</sup> on the order of _O_ (1). All in all, the algorithm scales approximately _O_ ( _|E|_ + _k · |X|_ <sup>3</sup> ), with _k_ usually being _O_ (10). In our case, the number of cells _N_ in the lattice scales linearly with the number of edges or number of nodes, and thus we get _O_ ( _k · N_ <sup>3</sup> ). This is consistent with experimental measurements, as shown in Figure S3. In contrast, the time complexity of the GNN-based approach only scales, regarding lattice size, with the number of edge operations that have to be performed, therefore yielding a linear dependence on the number of cells, _O_ ( _N_ ), also observed in Figure S3. Note S2: Finding most similar lattice designs in the training data We evaluate the similarity between lattice designs using their image representation. The 2D image of the generated lattice design is denoted by _I_ GNN, while the images of the lattices in the training dataset are denoted by _I_ _i_ . Dissimilarity ∆s is calculated using ∆s1( _I_ GNN _,_ _I_ _i_ ) = <sup><u>mean ((</u></sup> <sup>_<u>I</u>_</sup> <sup><u>GNN</u></sup> <sup>_<u>∨</u>_</sup> <sup>_<u>I</u>_</sup> <sup>_<u>i</u>_</sup> <sup><u>)</u></sup> <sup>_<u>∧</u>_</sup> <sup>_<u>I</u>_</sup> <sup><u>GNN)</u></sup> _,_ (S14a) mean( _I_ GNN) ∆s2( _I_ GNN _,_ _I_ _i_ ) = <sup><u>mean ((</u></sup> <sup>_<u>I</u>_</sup> <sup><u>GNN</u></sup> <sup>_<u>∨</u>_</sup> <sup>_<u>I</u>_</sup> <sup>_<u>i</u>_</sup> <sup><u>)</u></sup> <sup>_<u>∧</u>_</sup> <sup>_<u>I</u>_</sup> <sup>_<u>i</u>_</sup> <sup><u>)</u></sup> _,_ (S14b) mean( _I_ _i_ ) ∆s( _I_ GNN _,_ _I_ _i_ ) = ∆s1( _I_ GNN _,_ _I_ _i_ ) + ∆s2( _I_ GNN _,_ _I_ _i_ ) (S14c) where mean calculates the mean over all pixels and we treat Boolean values as integers (False - 0; True - 1) when taking the mean. For the experiment presented in Figure 7B, the two lattices in the training dataset with the lowest dissimilarity to the found inverse design (as defined here) are shown in Figure S6. 17 Note S3: Open source package _pyLattice2D_ pyLattice2D <sup>S3</sup> is a Python package that implements an end-to-end differentiable framework for performing finite element analysis and inverse design of lattice materials in pyTorch. It contains functions for generating a variety of lattices (Square, Equilateral Triangle, Honeycomb, Reentrant Honeycomb, Kagome and Voronoi) with (i) different number of cells and (ii) custom deformations such as node displacements and edge (or node) deletions. In addition, code for training GNNs to predict lattice properties as well as various example notebooks for inverse design problems are included. In the code, the direct stiffness matrix is constructed in fem_solver/direct_stiffness.py, with convenience classes available for setting constraints in fem_solver/constraints_and_deformations.py. Code containing the logic for generating different base lattices is in lattices/, while the pipeline for dataset generation is in data/create.py. The experimental protocol for obtaining the effective elastic modulus and Poisson’s ratio of a lattice is implemented in methods/mechanical_properties.py. Wrapped models to be used are found in models/, with models/Lattice.py implementing the class describing lattices as graphs. models/FEM.py is the differentiable finite element solver, taking the aforementioned lattice objects as input and performing a single finite element step. models/MPNN/ contains both GNN models as well as tabular and image-based machine learning models for property prediction. Finally, Examples/ in the main folder features IPython notebooks with the experiments from this paper, and Data_Generation features the Python and Bash scripts used to generate the dataset. ###### Supplemental figures Load setting 1 0.05 0.00 0.0510 <u>3</u> <u>10</u> <u>2</u> <u>10</u> 1 10 1 10 2 10 3 <u>10</u> <u>3</u> <u>10</u> <u>2</u> <u>10</u> 1 Load setting 2 0.05 0.00 0.05 Train target Measured Desired <u>10</u> <u>3</u> <u>10</u> <u>2</u> <u>10</u> 1 10 1 10 2 10 3 <u>10</u> <u>3</u> <u>10</u> <u>2</u> <u>10</u> 1 y load [cm] y load [cm] Figure S1: Target deformation (horizontal dashed line) and observed deformation (dots) for different absolute load strengths. Even for loads that are much lower or higher than the one used for training (vertical dashed line), the found lattice material obeys the desired target behaviour. Related to Figure 6B. 18 Figure S2: Magnified illustration of the inverse-designed lattice shown in Figure 6C. Connection points between beams are shown as nodes. It should be noted that, although the design looks symmetric on first glance, it is not. 10 <sup>3</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> Message Passing FE Cubic fit GNN Linear fit 0 1000 2000 3000 4000 5000 6000 #Lattice cells N Figure S3: Relative time required for a single forward pass of the exact algorithm using message passing finite element (FE) and the approximate algorithm using GNNs. Experiments are done using square lattices. Time complexity is given in relation to the time required for a square lattice with _N_ 0 = 4 _×_ 4 cells. 19 <u>Square</u> <u>Triangle</u> <u>Honeycomb</u> <u>Reentrant honeycomb</u> Figure S4: Example lattices from the generated training dataset used to train GNNs. Related to Figure 7 and Table 1. -1 <u>-0.5</u> <u>0</u> <u>0.5</u> <u>1</u> Poisson's ratio 10 <sup>3</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>1</sup> 10 <sup>0</sup> 10 <sup>3</sup> 10 <sup>1</sup> 10 <sup>3</sup> 10 <sup>1</sup> 10 <sup>1</sup> 10 <sup>2</sup> 10 <sup>1</sup> 0.00 <u>0.25</u> <u>0.50</u> <u>0.75</u> <u>1.00</u> <u>1.25</u> Eff. elastic mod. [Pa] 1e8 Figure S5: Distribution of effective elastic modulus and Poisson’s ratio as obtained from our dataset, shown for the different data splits. The abscissas use log-scaling with different ranges. Related to Figure S4. GNN design Training data (two best matches) Figure S6: Images of the two lattices in the training set that resemble the found design most. Related to Figure 7B. 20 ###### Supplemental tables Lattice type (2D) Relative density (¯ _ρ_ ) Eff. elastic modulus ( _E_ <sup>_∗_</sup> ) Poisson’s ratio ( _ν_ <sup>_∗_</sup> ) Square 2 _<u>L</u>_ <sup>_<u>t</u>_</sup> 3 _L_ <sup>_<u>t</u>_</sup> Triangular (equilat.) _√_ 2 <u>12</u> <sup>_ρE_</sup> <sup>¯</sup> <sup>s</sup> 0 <u>1</u> <u>1</u> 3 <sup>_ρE_</sup> <sup>¯</sup> <sup>s</sup> 3 <u>32</u> <sup>_ρ_</sup> <sup>¯3</sup> <sup>_E_</sup> <sup>s</sup> 1 12881 <sup>_ρ_</sup> <sup>¯3</sup> <sup>_E_</sup> <sup>s</sup> -1 Hexagonal _~~√~~_ <u>23</u> _<u>Lt</u>_ Reentrant 3 _~~√~~_ <u>8</u> 3 _Lt_ Table S1: Analytical relative density, effective elastic modulus and Poisson’s ratio for various common 2D lattice grids. <u>Lattice</u> <u>type</u> <u>(2D)</u> _<u>N</u>_ <u>l</u> _<u>N</u>_ <u>c</u> <u>∆</u> _<u>D</u>_ <u>n</u> _<u>D</u>_ <u>e</u> Square 11 169 0.15 1 0.2 Triangle 14 170 0.15 1 0.2 Honeycomb 25 150 0.05 0 0.2 <u>Reentrant</u> <u>25</u> <u>149</u> <u>0.05</u> <u>0</u> <u>0.2</u> Table S2: Parameters used for dataset generation. Related to Figure 7 and Table 1. Feature Formula Feature Formula Image mean mean( _I_ ) Beam length mean mean( _L_ ) Image standard deviation std( _I_ ) Beam length standard deviation std( _L_ ) Relative density _ρ_ ¯ Beam length min/max min( _L_ ), max( _L_ ) <u>1</u> _<u>−</u>_ <u>mean(</u> _<u>I</u>_ <u>)</u> <u>std(1</u> _<u>−</u>_ _<u>I</u>_ <u>)</u> Cell area mean Cell area standard deviation _<u>N</u>_ <u>c</u> _<u>N</u>_ <u>c</u> Table S3: Tabular features for machine learning. _N_ c = _N_ b _−_ _N_ n + 1 is the number of closed cells in the lattice, _N_ b the number of beams and _N_ n the number of nodes. Related to Table 1. ###### Supplemental videos Video S1 Animation of the inverse design process for the grabber tool. The grabber is shown under load condition. During the course of inverse design iterations, the four nodes that are supposed to do the grabbing motion get closer to their target deformations, indicated by crosses. Deformations were magnified by a factor of 5 here to ease visibility. Video S2 Animation of the inverse design process for the flat surface, shown under both load conditions. Deformations were magnified by a factor of 8 here to ease visibility. Video S3 Visualisation of the hexagonal honeycomb lattice before (left) and after (right) inverse design, under a strong load. We show all intermediate steps of deformation. As expected, the hexagonal honeycomb lattice bulges outwards. In contrast, the found design stays perfectly inside the bounding box. ###### Supplemental references S1. Baur, W. and Strassen, V. (1983). The complexity of partial derivatives. Theoretical computer science 22, 317–330. 10.1016/0304-3975(83)90110-X. S2. Griewank, A. _,_ et al. (1989). On automatic differentiation. Mathematical Programming: recent developments and applications 6, 83–107. 10.2307/j.ctvcm4g18.8. S3. Python Software Package: pyLattice2D. [https://gitlab.com/EuropeanSpaceAgency/pylattice2d.](https://gitlab.com/EuropeanSpaceAgency/pylattice2d) 21

섹션 본문 113문단 · 59,343자

(제목 없음)

1Architected materials possessing physico-chemical properties adaptable to disparate environmental conditions embody a disruptive new domain of materials science.Fueled by advances in digital design and fabrication, materials shaped into lattice topologies enable a degree of property customization not afforded to bulk materials.A promising venue for inspiration toward their design is in the irregular micro-architectures of nature.However, the immense design variability unlocked by such irregularity is challenging to probe analytically.Here, we propose a new computational approach using graph-based representation for regular and irregular lattice materials.Our method uses differentiable message passing algorithms to calculate mechanical properties, therefore allowing automatic differentiation with surrogate derivatives to adjust both geometric structure and local attributes of individual lattice elements to achieve inversely designed materials with desired properties.We further introduce a graph neural network surrogate model for structural analysis at scale.The methodology is generalizable to any system representable as heterogeneous graphs.

Introduction

2Materials used to build future space infrastructure, especially those built directly on other planetary bodies, will be required to meet demanding conditions with environment-specific material properties, yet still be relatively easy to process and shape 1 .The constraints imposed by local planetary resources limit the palette of material composition that engineers can exploit to meet desired performance.Much like in nature, engineers will thus come to rely on the optimisation of a material's topology in addition to its chemical makeup in order to achieve the desired properties under the limitations of the local milieu.Here on Earth, bone, plant stems, dragonfly wings, coral, and radiolarians 2 are just some examples of natural lattice materials that showcase how intricate architecture is used to achieve extreme mechanical performance with a limited choice of constituents 3 .Enhancements in e.g.strength, stiffness, impact toughness, fluid transport, and thermal insulation are all found while conserving light weight and minimizing mass transport.Moreover, an understanding of topological features often unlocks deformation modes and damage tolerant mechanisms not achieved by the bulk material alone.

3Inspired by this, synthetic truss-based lattice materials -a subset of so-called Architected Materials -comprise a highly active area of research in materials science.This activity is largely owed to the emergence of modern digital design and fabrication tools like 3D printing, or more formally, additive manufacturing.At the European Space Agency (ESA), capabilities for 3D printing lattice materials from a variety of space-relevant polymers, metals and in-situ planetary regoliths have been pioneered over the past decade 4,5 .The geometric freedom afforded by this technology, however, also creates an overwhelming design space of possible topological features, much like in nature.Human engineering has not been afforded the same evolutionary timescales as the natural optimisation pathways that drive biology's architectures.As such, the complete lattice material design space cannot be explored by engineering intuition alone.

4An emergent stream in computational materials science demonstrates high potential for machine learning (ML)-driven design to aid engineers in the exploration of chemical and topological landscapes.Recent years have seen unprecedented demonstrations of physicsinformed learning models capable of high fidelity material property predictions based on atomic-level interactions.Key among them are, e.g., the deployment of graph neural networks (GNNs) to demystify previously unsolved phase transition dynamics in glassy systems 6 , and the use of generative adversarial networks (GANs) and variational autoencoders (VAEs) to predict complex molecular topologies in crystalline nanoporous materials like zeolites and metal-organic frameworks 7,8 .

5Along with these developments, research into mechanical metamaterials has also pivoted towards ML as a means to augment the engineer's intuition with a data-driven geometric design language [9][10][11][12][13][14][15][16][17][18] .Inverse design -the prescription of desired target properties and optimisation over various candidate microstructures -has taken off as a vehicle for ML-aided simulations.Whether supervised (data-driven) 19,20 or unsupervised (physics-driven) 21 , these ML-based prediction models more accurately determine lattice mechanics, and dramatically accelerate the search for candidate architectures that meet target mechanical properties, forgoing computationally expensive meshing required in finite element (FE) based simulations and conventional Topology Optimisation calculations 22 .

6Conventionally these mechanical lattice materials are formed from periodically repeating unit cells, as this makes their properties addressable analytically and via numerical homogenization.Recent studies have pioneered deep neural networks toward inverse design of auxetic lattices, mapping subtle design variations in unit cell construction parameters to gains in total effective lattice properties via surrogate models of homogenization at much lower computational cost 23,24 .While powerful, homogenization assumes uniformity of A lattice material is represented as a graph L (left) which contains vector attributes both on the nodes (e.g.position) and edges (e.g.Young's modulus and beam crosssectional area).A differential forward model F takes the graph as input and predicts material properties.Comparing these predictions with desired properties, automatic differentiation is used to change the material (e.g., move nodes and remove or add beams) to better satisfy those properties.This process is repeated iteratively until a material with the desired properties is found.lattice properties throughout the global material, and does not account for, e.g., local imperfections, stress concentrations and edge-effects from partially constrained unit cells.

7Contrary to periodic lattice materials used for lightweighting (such as hexagonal honeycombs), irregular architected materials -similar to those found in nature -have been shown to boast extraordinary damage tolerance 25 , anisotropic functional grading 26 and other surprising properties emerging from local defects and aperiodicity.Control over the most mechanically 'beneficial' features of these irregular tilings must happen at local defects and cannot be exerted analytically 27 , leaving a near-infinite space of heterogenous geometric combinations not easily modelled.For this reason, most modern synthetic lattice designs have been restricted to periodic structures, leaving out an ever-growing design space whose potential remains untapped.

8To tap into this design space, we propose a gradient-descent-based optimisation approach for inverse-designing emergent properties of irregular lattices.The core idea of our methodology is to represent lattice materials as heterogeneous graphs and perform computations directly on the topology of this graph using an operation called 'message passing'.This allows us to seamlessly link effective mechanical properties of the superstructure to local lattice elements (e.g.defects) in a differentiable way -hence enabling the usage of gradient descent to iteratively apply targeted modifications to the lattice, reaching a design with desired properties after only tens to hundreds of iterations.

9More specifically, using message passing, we construct a differentiable forward model that predicts mechanical properties of lattice materials, which is then used in reverse through the application of automatic differentiation to change local lattice properties -such as the cross-sectional area, parent material composition, and node positions of individual beams -until a lattice structure with a set of desired global mechanical properties has been found (Figure 1).Furthermore, by combining this inverse-design approach with a technique from computational neuroscience called 'surrogate gradient' 28 , removal or addition of beams to the lattice using gradient information during inverse-design is enabled, opening up the possibility to quickly move through a huge space of candidate designs.

10Conceptually, the introduced approach is inspired by recent work using GNNs to predict mechanical properties of periodic metamaterials.This was done by training said GNN only on the periodic unit cell structure 29 .Our work extends this by enabling real-time structural feedback and inverse design for arbitrary aperiodic lattices, including complicated irregular topologies with local defects as found in natural materials.

11In the following, we first provide a brief description of the methods used to model and characterize lattice materials.Afterwards, we introduce the general idea of our proposed inverse design methodology, which we denote as 'differentiable lattices' in the following.Finally, two realizations of differentiable lattices will be presented, one based on an exact finite element method (requiring no training on data) and one using an approximate surrogate model, i.e., a GNN trained on simulated data.With both realizations, we demonstrate inverse design via gradient descent.Our initial focus is on the in-plane elastic properties of two-dimensional lattices for simplicity, though the methodology is easily transferred to three-dimensionally architectured designs.

2D lattice materials

12Before introducing differentiable lattices, we briefly summarise how 2D lattice materials are modelled in the remainder of this work.For more details on the used methods and concepts, see the experimental procedures.For details on simulations, see the supplemental experimental procedures.

Notation and units

13In general, sets are denoted using calligraphic letters, vectors and matrices using bold letters and scalars using normal letters.We summarise a lattice L as a tuple L = (X , E, AE) consisting of node coordinates r r ri = (xi, yi) ∈ X for each node i; the set of edges (beams) E between nodes, i.e., (i, j) ∈ E if an edge exists between nodes i and j; and edge attributes a a aij ∈ AE.For instance, lattice beams are characterized by their local Young's Modulus E, cross-sectional area A and second moment of area I.In principle, these can be chosen differently for each beam in the lattice.For simplicity, we choose one global value for all beams here.Thus, for a homogeneous lattice, we have a a aij = (E, A, I) ∀(i, j) ∈ E.

14Distances between nodes are given by r r rij = r r rj − r r ri.The length and orientation of a beam between nodes i and j is given by 30

Lij

15In the following, we abbreviate L = Lij, s = sij and c = cij.s and c here denote sin ϑ and cos ϑ respectively, where ϑ is the angle a beam makes with the lattice's base plane.For simplicity, we assume that all lattices reside within a normalised bounding box with height by and width bx.The proposed approach can be used for microscopic as well as macroscopic lattice structures.Here, we report results for a chosen set of material input paramaters, with E = 2 GPa, bx = by = 1 cm and A = 2 • 10 −5 cm 2 .

Modelling 2D lattice materials

16To develop a general geometric model for lattice materials, we set out from the simplified case of a 2D lattice material, similar to a honeycomb sandwich panel used commonly in various engineering applications.To model in-plane mechanical properties we employ the direct stiffness method -a finite element matrix method derived from static analysis -to model elastic properties of our lattice material 31 .In it, a lattice is treated as a collection of connected beams, where each beam between nodes i and j is characterized by its stiffness matrix K K Kij.The stiffness equation

17allows us to calculate the reaction of the beam element to a given load.Here, u u ui = (u x i , u y i , u φ i ) are the resulting node displacements due to external forces and moments F F F i = (F x i , F y i , M φ i ); and φ characterises the resulting bending of beam elements.In this work, we use generalized Euler-Bernoulli beam elements that can both deform along and perpendicular to their longitudal axis (see experimental procedures for details).

18The global stiffness matrix G G G for the whole lattice (i.e., more than two nodes) is constructed by summing up the contributions of each individual stiffness matrix for every node (see experimental procedures).The final stiffness equation for a lattice material with N nodes is then given by

19(3)

Characterising 2D lattice materials

20A variety of mechanical in-plane properties are available to characterize the behaviour and functionality of 2D lattice materials.In this work, we focus on the relative density ρ, effective elastic modulus E * and Poisson's ratio ν * .The asterisk denotes "effective" material properties for the entire lattice material, i.e., a global response, not just individual beams.For non-isotropic materials, the elastic modulus and Poisson's ratio are direction-dependent.Here, as a proof of concept, we restrict ourselves to these quantities measured along the vertical axis.However, the presented results are applicable to properties measured along any axis, e.g., to inverse design the elastic modulus in horizontal and vertical direction at the same time.

21A detailed description of these mechanical properties and how they are obtained using the direct stiffness method is given in the experimental procedures.For regular grids in 2D, E * and ρ * can be determined analytically [32][33][34] (see Table S1).We use this to test our numerical approach, confirming that both analytical and numerical values agree for regular square, equilateral triangular, hexagonal honeycomb and reentrant honeycomb lattices with differing relative densities (Figure 2).

Differentiable lattices

22In the following, we first introduce the general framework based on graph-based methods for inverse designing lattice materials.Consequently, we demonstrate two different realizations of this framework: one using exact direct stiffness, and one using GNNs trained on experimental data.

Representing lattices as graphs

23Lattices lend themselves to being modelled as graphs, with edges representing beams and nodes representing the locations where beams connect with each other.This allows an efficient and expressive description of lattices, where additional information such as node coordinates, beam cross-area, and beam Young's modulus can be encoded as node and edge features (i.e., real-valued vectors stored on nodes and edges) -something that is not possible when representing lattices as, e.g., images.

Calculating on graphs

24A recent and widely adopted approach of performing calculations on graph-structured data is message passing [35][36][37] .Message passing describes information flow between nodes that are directly connected with an edge, meaning that calculations are performed on edges with stored feature vectors that are locally available to that edge.Usually, operations using message passing can be decomposed into two steps: a messaging step and a reduction step (Figure 3).In the messaging step, node features are sent along edges, where they are combined with edge features (and other node features) to calculate new edge features.In the reduction step, newly calculated edge features are sent to neighbouring nodes and combined to form new node features.These operations are performed on all edges and nodes in parallel, allowing efficient and scalable computations on the graph structure itself.Most importantly, this realizes differentiable operations on the discrete structure of the graph, allowing us to utilize gradient-descent based optimization to, e.g., change initial features or even the structure S1) and values obtained using our finite element method.We show the effective elastic modulus (left) and Poisson's ratio (right) for different tilings (square, equilateral triangle, honeycomb and reentrant honeycomb) and relative densities.To change the relative density, we repeated numerical experiments for lattices with different number of cells and beam cross-areas.(2) On the edges, propagated node features as well as edge features are combined via a function ϕ 0 to create new edge features.ϕ 0 can take any shape (e.g., a neural network).( 3) Edge features are reduced using a function ϕ 1 that satisfies permutation invariance (i.e., the order of arguments does not matter) and is applicable to a varying number of arguments.( 4) The node features are updated using the reduced edge features using a function ϕ 2 (which, again, can take any shape).

25of the graph itself to change the output of the calculation implemented by message passing.This is enabled due to computations following the structure of the graph, i.e., all operations are differentiable, but the sequence of operations (i.e., how and which features are combined) is determined by the connectivity of the graph.

Differentiable algorithms for inverse design

26We propose to use differentiable message passing algorithms for property prediction on lattices represented as graphs, which in turn can then be used to realize an iterative inverse design approach using gradient-descent based optimization.In general, we denote by F (L, S) a function that takes node coordinates, graph edges and edge attributes L = (X , E, AE) as input and returns one or several material properties of interest, e.g., effective elastic modulus, Poisson's ratio or simply the displacement of each node given a certain external distortion.Optionally, F can also take specific constraints S as input, describing which nodes in the lattice are forced or kept fixed.To ease notation, we neglect writing S as an argument of F in the following.Although F is still ambiguous here, it can take several shapes, as will be shown later.Generally, F is composed of several message passing steps, followed by pooling operations (combining node features) and usual differentiable operations such as neural networks.

27For inverse design, we compare the predicted property F (L) with a desired target value ζ (which, if several properties are predicted, takes the form of a vector).How well prediction and target agree is measured using a loss function L, in our case a L1 loss

28This loss function is used to find a lattice material with the desired target properties by minimizing it using gradient descent, e.g., by iteratively changing the geometry of the lattice (adjusting node positions using ∇r r r i or removing/adding beams as described in the next subsection) or by changing the material properties of individual beams (i.e., changing edge features such as the cross-area of individual beams).In this work, we restrict ourselves to geometric changes only to find lattices with desired mechanical properties.Gradient descent is implemented using automatic differentiation, which is readily available in current deep learning libraries such as Tensorflow and pyTorch.

Masking edges

29To enable the removal or addition of beams in a lattice using gradient descent, we introduce an approach inspired by Ying et al. 38 where each edge obtains an additional attribute: a mask value mij ∈ R that is used to decide whether a beam is realized in the lattice between nodes i and j, i.e., a a aij = (E, A, I, mij).In our case, the masking value is turned into a binary decision by applying the Heaviside step function θ(•)

30which is used to mask away the contribution of an edge during the reduction step -as if it were not present in the lattice (m θ ij = 1beam exists; m θ ij = 0 -beam does not exist).In Ying et al. 38 , masks are only used to remove edges from a graph, since enabling adding edges between all possible nodes would be computationally unfeasible.However, in our case, a node can only be connected to a selected few other nodes in its local neighbourhood, since long beams spanning the whole material are not of interest to us.Thus, when starting from, e.g., a triangular lattice, we can add additional beams to neighbouring nodes that are initially masked out, but can be added during the inverse design process.To guarantee that we do not add crossing beams, we have to generate a list C (i,j) that contains, for each edge (i, j), other edges that would physically cross it.From this, a final mask value

31is obtained, which basically unites the two conditions for a beam to be active in the lattice: its mask value has to be greater than 0 and all other beams that would cross it have to be masked out.

32During inverse design, both the list of crossing beams as well as the list of locally neighbouring nodes where beams could be introduced can be adjusted, enabling a complete geometric restructuring of the lattice material.In this work, for simplicity, we only update the list of crossing beams to ensure valid lattice designs with non-crossing beams.

Surrogate gradients

33One problem remains: the decision function for masking, Equation (5), has a Dirac delta distribution as its derivative, meaning that it vanishes everywhere except at the threshold, mij = 0.This slows down optimization via gradient descent tremendously -a problem that is well known in other areas such as computational neuroscience, where gradient-based learning for spiking neural networks faces the same problem.However, recently, an approach called "surrogate gradients" 28,39 has been introduced that enables robust gradient-based learning of spiking neural networks.

34For learning to mask edges in a graph (or beams in a lattice), we apply the same trick: instead of using the Dirac delta function, we substitute it with a surrogate function with non-vanishing parts off the threshold.A multitude of choices exist for surrogate functions.Specifically for this work, we use a mirrored Lorentz function g as in Zenke et al. 40 :

35with α ∈ R + being a choosable hyperparameter and |x| being the absolute value of x.If not stated otherwise, we use α = 1.

Message passing finite element

36As a first realization of F , we show how the direct stiffness method can be realized using message passing to form an end-toend differentiable pipeline that returns exact mechanical properties given the graph representation of a lattice material.

Model description

37The direct stiffness approach consists of several steps: 1) constructing the stiffness matrix for each beam, 2) adding masking to enable optimization of the beam connectivity, 3) combining those matrices into a global stiffness matrix describing the whole lattice, and 4) applying the experimental protocol for acquiring the desired mechanical property.In our framework, these steps take the following form:

381) Stiffness matrices: For an edge (i, j), node features r r ri and r r rj (the "messages") are turned into edge features Lij, sij and cij, see Equations (1a) to (1c).Those edge features are sufficient to construct the stiffness matrix K K Kij on the edge, see Equations ( 9) and ( 10) in the experimental procedures.2) Masking: To mask a beam, the binary masking value Mij is multiplied to the stiffness matrix K K Kij.Hence, if a beam is masked out, its contribution will not appear in the global stiffness matrix.3) Global stiffness matrix: Constructing the global stiffness matrix is equivalent to a pooling operation that takes the features (masked stiffness matrix) of each edge and combines it into one global quantity valid for the whole graph (see Figure 4 for an illustration).4) Properties: As discussed in the supplemental experimental procedures, to calculate the resulting deformation of the lattice given an external load, operations such as selecting parts of arrays and matrices, matrix-vector products, solving a system of linear equations and addition are required, which are all differentiable.Similarly, the additional operations needed to obtain the effective elastic modulus and Poisson's ratio (e.g.linear regression) are differentiable as well.For the relative density, we can simply sum up Lij, as calculated using message passing in 1), over all edges (i, j) ∈ E with Mij > 0 to obtain L * and subsequently ρ (see Equation (12) in the experimental procedures).Thus, obtaining mechanical properties such as the relative density, resulting node displacements due to a load, effective elastic modulus and Poisson's ratio can be obtained in a fully differentiable framework, starting with message passing on the graph representation of the lattice, an edge-wise pooling operation and a series of ordinary differentiable operations, i.e., operations on data without graph structure, such as scalars, vectors and matrices.

39The described forward model F (L) specifically takes the following information from the graph L as input: the edge list E, the masking values M = {mij | (i, j) ∈ E} and the node features

40Since it is fully differentiable, it can be used to inverse design a lattice with desired properties using automatic differentiation -both to change continuous properties (such as node coordinates) and discrete properties (such as beam existence).In the following, we show this for two scenarios: obtaining a global target property such as a certain effective elastic modulus or Poisson's ratio, and obtaining a certain (functional) deformation given a loading scenario.

Designing lattices with target properties

41We demonstrate our approach with two examples: starting with a regular honeycomb grid, we inverse design node positions and beam connectivity to acquire a lattice with an effective elastic modulus that is one order of magnitude higher than originally while keeping the relative density ρ of the lattice constant (Figure 5A).In addition, we turn an initially regular triangular lattice with positive Poisson's ratio into a lattice with a negative Poisson's ratio of ν target = −0.5, again with the condition of keeping ρ unchanged (Figure 5B).In both cases, we start with all edges unmasked (i.e.beams that are originally not available cannot be added during inverse design) and the used loss function is a L1 loss with an additional regularization term for the relative density, see the supplemental experimental procedures for details.

42In both cases, the required target values are achieved after a small number of iterations.For the honeycomb lattice, the inverse design leads to a restructuring that is more akin to a square lattice, which matches our expectations as square grids have high axial stiffness.To get a configuration with the same relative density as the initial lattice, beams that only weakly influence E * are removed after the target elastic modulus has been reached.For the triangular lattice, a configuration is found that, in general, promotes inward bending of elements during compression, resulting in a negative Poisson's ratio.A peculiar feature are the arc-like structures on the bottom and top of the lattice that promote such inward movements.

Designing lattices with target deformations

43In addition to global material properties, we can also inverse design the node displacements of the lattice to a given load.In Figure 6A, Eff.elastic mod.lattice material that can perform a grabbing motion is found through inverse design.We start with a hexagonal honeycomb lattice with a small cavity on the right side -which will eventually become the grabbing part.To initiate the grabbing motion, the top left part of the lattice is compressed downwards while the bottom left part is kept in place.Initially, this leads to an outward bending of the right part of the lattice.Instead we turn this into an inward grabbing motion through inverse design.To achieve this, we provide a target deformation in y and x-direction (shown as crosses in Figure 6A) for some of the nodes (colored squares) in the material's cavity.As shown in Figure 6A (middle), the four nodes converge towards their target behaviour after around 40 iterations.The inverse design creates interesting functional structures, such as a lever-like arrangement (situated in the left bottom corner of the hole in the lattice, shown in gold in Figure 6A) that pulls up the bottom-right part of the material when the lattice is compressed.

44As a second example, we demonstrate in Figure 6B that our approach can be used to design a lattice with several target behaviours.Specifically, we design a lattice structure that keeps a flat surface when only the top left (load 1) or top right half (load 2) is pushed downwards (with the other half free to move).As a target behaviour, we aim at keeping the top surface flat, i.e., the free moving part has to mimic the movement that would occur if the whole top surface was pushed downwards.Although the target behaviour is only learned for one particular load strength, the acquired design is valid over a large range of external deformations, see Figure S1.For the scenarios shown in Figure 6A,B, we allow new beams to be added between nodes that were initially not present in the lattice, drastically increasing the design space.

45To show that our method can be scaled to much larger lattices, we design a honeycomb lattice composed of 635 cells to have no displacement in x-direction (for surface nodes) given a load in ydirection (Figure 6C) -which is equivalent to having a lattice material with ν * = 0. Starting from a hexagonal honeycomb lattice, after only nine iterations a peculiar design is found using a motive resembling tilted reentrant honeycombs, producing the desired effect.We emphasize here that this motive is completely and autonomously emergent, with no prior conception of auxetic behaviour introduced to the model.A magnified version of the design, featuring node positions, is shown in Figure S2.

46In general, the computational complexity of the exact model for F is dominated by solving the stiffness equation (Equation (3)), which scales with the cube of the number of cells (see Note S1 and Figure S3 for details).Still, this is counter-balanced by the fact that gradient descent finds a suitable design typically within a few iterationsmaking the approach viable even for larger lattices.To obtain results faster, a surrogate model for the finite element analysis can be used, i.e., trading accuracy for speed, such as GNNs trained on simulated or experimental data, where the computational complexity only scales linearly with the number of cells.

Graph neural networks

47Instead of a finite element method, F can also be an approximate model obtained using, e.g., machine learning.This is particularly useful when an analytical treatment is not feasible, computationally too slow, or only experimental data is available.Recently, GNNs using convolutional operators 35,37,41 have reached competitive performance on a variety of graph inference tasks such as link prediction and node classification, translating into applications such as molecule property prediction 42 , mesh-based simulations 43 , modelling glassy systems 6 , generalized neural algorithm learners 44 , as well as material science and chemistry 45 .They are especially interesting due to their property of being able to deal with graphs that have a varying number of nodes as well as carry numerical features on nodes and edges.Hence, in the following, we provide a proof of concept for using GNNs both for predicting the properties of lattice materials as well as inverse designing novel lattices.

Dataset generation

48For training, evaluating and testing GNNs on predicting mechanical properties, we require an extensive dataset.As a proof of concept, we generated simulated data using the direct stiffness method.Lattices with different base tiling (square, equilateral triangle, hexagonal honeycomb and reentrant honeycomb) and deformations (random node displacements and beam/node removals) have been generated, with 4000, 200 and 1000 lattices of each tiling (train, validation and test data, respectively) -i.e., in total 16000 training, 800 validation and 4000 test samples.A detailed description of these perturbations can be found in the supplemental experimental procedures and Table S2.A visualisation of examples from the training dataset and dataset statistics are shown in Figure S4 and Figure S5.

Property prediction

49First, we train models that utilize message passing to predict inplane material properties of 2D lattices.We investigate two different GNN architectures: (i) GNNs based on the simple EdgeConv layer introduced in Wang et al. 46 , as well as a message passing neural network (MPNN) architecture used for molecule property prediction 42 .The model architectures are explained in detail in the experimental procedures.For comparison, we further train a linear regression and CatBoost model 47 (i.e., a gradient-boosted tree) on handcrafted features extracted from the lattices such as cell density and relative density (see Table S3).As an alternative, focusing only on the geometry of the lattice, we also train a convolutional neural network (CNN) on image representations of the lattices.

50To estimate the performance of the models, we report in Table 1 the root mean squared error (RMSE) calculated on the test set.The best model during training is selected using the validation split.In general, the CNN, CatBoost and MPNN perform similarly, clearly outperforming linear regression.The best performance is reached by the EdgeConv GNN.More specifically, we found that the models learn to predict the effective elastic modulus from the lattice geometry (or tabular features) very well, while the Poisson's ratio is much harder to learn.Especially for square lattices, we found that all models perform rather badly, although good performances are reached for reentrant honeycomb and hexagonal honeycomb lattices.This is illustrated in Figure 7A, where we compare predicted and experimental values for the EdgeConv GNN.These are promising results, especially since both GNN architectures are end-to-end differentiable and can thus be used as an approximate replacement of F in the inverse design framework.

Inverse design using graph neural networks

51To showcase the usage of GNNs for 2D lattice inverse design, we use an EdgeConv GNN trained to predict the effective elastic modulus as the forward model F .To enable changing the beam structure of the lattice, we have to properly implement masking of edges in the message passing architecture of the GNN, which is explained in the experimental procedures.In Figure 7B, we show that inverse design is possible through a trained model, yielding a lattice design that has the desired target properties.To ensure that the GNN did not simply return a lattice design from the training dataset, we show the two closest lattices from the training data in Figure S6

Discussion

52For inverse design, the exact forward model (message passing finite element) has the strong advantage that no training data is required at all.In addition, the presented approach allows additional physical information of the lattice to be encoded as either node or edge features.Thus, the scheme can be generalized to create completely heterogeneous lattices (each beam with different values of E and A) to satisfy a given set of target properties.In fact, due to the model being exact, a complete restructuring of the lattice geometry and its properties is possible without ever leaving the regime where the forward model is valid -unless modifications are made that result in a free-hinged structure or disconnected material.However, the model requires a full finite element implementation that -depending on the size of the material and the degree of realism of the used finite element approach -can be computationally inefficient and slow, having a cubic scaling relationship with respect to the number of cells in the lattice.Still, as only a few iterations are required to find a single lattice design, we are confident that the approach scales to more complex applications and can be utilized as a design assistant to explore novel, irregular lattice materials.

53An alternative to using an exact forward model is training a surrogate model, e.g., GNNs, which is computationally less demanding (linear scaling) than running a finite element simulation.Furthermore, it can be applied to experimentally recorded data and a variety of (non-linear) mechanical properties.In this work, we trained GNNs on predicting the effective elastic modulus E * and Poisson's ratio ν * of lattice materials.Although good performance is reached for predicting E * , the model struggled with predicting ν * accurately, especially for small absolute values of ν * .To better understand the predictive power of GNNs in this application, a higher number of mechanical properties should be investigated in future work, as well as alternative GNN architectures that are more tailored to the problem of lattice material property prediction.Moreover, we only used lattices with a predefined base tiling and small range of cells.In future work, a larger dataset that covers a vast regime of lattice topologies (e.g. based on Voronoi grids) could strongly benefit the training process.

54Major downsides of using GNNs is that a lot of training data is required -more than might be accessible from experimental observations.In this case, a transfer learning approach might be used, where the model is first trained with simulated data and then fine-tuned, or partially retrained to predict novel properties, using experimental data.Finally, another possibility for reducing the amount of training data required as well as increase the performance and robustness of the model is to use a hybrid approach that integrates part of the analytical model in the GNN, basically molding knowledge about the underlying physics into the GNN architecture.To allow beams to be added or removed during inverse design, edge mask values have to be added to the GNN, details of which strongly depend on the choice of GNN architecture.For instance, in this work we showed how masking can be integrated in a GNN architecture using EdgeConv layers.

55Different from inverse design using an exact, analytical forward model (e.g.Figures 5 and 6), the optimization process is noisier when using a surrogate model.Furthermore, we found that it works less reliably the further one moves away from the value regime covered during training of the model.In fact, the design loop can get stuck in configurations of the lattice that are not realistic (e.g., disconnected components) without being able to recover from it on its own.Although this can be accounted for in the inverse design framework, for instance by not allowing changes to the geometry that result in unphysical lattice materials, this is a clear downside of the approach compared to using an exact model.Nevertheless, especially for larger lattices, inverse design with GNNs is extremely fast (Figure S3).Thus, if sufficient data is available to train a model, it can be used to quickly generate candidate designs, which then only need to be refined for a few iterations with the exact -but much slower -message passing finite element model, drastically speeding up the inverse design.

56To mask in and out beams in the lattice design during inverse design, we used a technique called surrogate gradient.Without surrogate gradients, we found that only continuous properties of the lattice, such as node positions, are changed during gradient descent -which is not too surprising, since the gradient of the threshold function is a Dirac delta distribution, which vanishes everywhere except at 0, and thus mask values of beams are only rarely changed.In contrast, with surrogate gradients, beams were continuously added or removed during inverse design, enabling a discrete restructuring of the lattice.

57When using this method, there is an ambiguity on what kind of function to use as the surrogate gradient.However, it has recently been observed that learning with surrogate gradients is robust to different shapes of the surrogate function -at least for training spiking neural networks 39 .In this work, we only used one type of surrogate function, but with adjustable width α -which we found to not drastically change performance.

58We used a masking scheme here that incorporates information about crossing beams in the inverse design framework.Although we decided to simply mask out all crossing beams, in principle, a scheme could be developed that samples -from a group of crossing beams -a "winning" beam.For instance, the Gumbel-Softmax trick 48 , which enables sampling from categorical distributions compatible with automatic differentiation, could be used to select the winning beam based on their edge mask values.

59Although we only focused on 2D lattices here, the introduced method is extendable to more complex structures and materials.

60For instance, 3D truss-based lattices can be encoded in the same way as 2D lattices: node coordinates (in 3D) and an adjacency matrix describe the structure itself, while stiffness matrices are again calculated for each beam element using message passing.In fact, our method is naturally compatible with any truss-based lattice and we are additionally confident that it can be generalized to more complex lattice types in the future, such as sheet-and shell-based materials.We envision this achieved e.g., by representing the mesh of local elements (instead of beams) as a heterogeneous graph, and using message passing between unit elements to model their interactions.

61An analogous approach has shown promise for property prediction from the grain microstructures of polycrystalline metallic alloys 49 .

62To conclude, we present a framework that utilizes differentiable graph representations of lattices to perform both property prediction and inverse design.The main focus lies hereby on using message passing algorithms, which perform calculations directly on the geometric structure of the lattice's graph representation and allow the modification of local material properties and beam connectivity using automatic differentiation to optimize global properties of the lattice.We show that finite element methods can be realized using message passing, or GNNs trained on simulated data can act as surrogate models thereof.This yields an efficient and expressive way of both describing and parametrizing lattices as well as modelling their behaviour mathematically.

63Our approach constitutes an important step towards enabling automatic inverse design of irregularly structured lattice materials.

64Moreover, it opens up a new set of tools developed in the graph machine learning literature, such as the GNNExplainer method, for analyzing both regular and irregular lattices.We hope that this will spark new ideas for representing 3D-printable materials and lead to a wealth of novel approaches and tools that assist practitioners in designing new (multi)-functional materials.An intriguing example of a technology that is highly synergistic with our approach is the recently introduced mechanical neural network 50 (MNN) -a physical, experimental lattice structure constructed with programmable stiffness beam elements.Similar to how analogue implementations of neural networks have been trained [51][52][53][54] , MNNs could be trained 'in-the-loop' using our method, i.e., with forward passes being done on the physical device, while backward calculations (i.e.error backpropagation) for adjusting the stiffness of individual beams are done using our model on an edge device.This way, MNNs could be trained in real-time to create adaptive and smart structures in the real world.

65Finally, we would like to stress that the approach introduced in this work is not limited to describing lattices, but is applicable to any system that constitutes of a graph representation and a forward model that predicts its properties -thus allowing automatic differentiation to change the structure of the input graph until it satisfies a set of desired properties.

Experimental procedures Generalized Euler-Bernoulli beam elements

66The stiffness matrix K K Kij of the generalized beam element is obtained by combining the stiffness matrices of rod elements K K K rod ij and Euler-Bernoulli beam elements

67Rod elements are used here to model the deformation of lattice elements along their longitudal axis.Their corresponding stiffness matrix is given by 30

68Euler-Bernoulli beam elements model the bending of beam elements where the beam length is much larger than the characteristic dimension of the cross section, for which the stiffness matrix is given by 30

69.

70We assume beam elements with a square-shaped cross-sectional area, which corresponds to

71, where b, h denote crosssection depth and height, respectfully.In a square beam, these are both equal to beam thickness 55 , t.

Global stiffness matrix

72The global stiffness matrix G G G can be constructed iteratively: first, start with G G G being the zero-matrix (i.e., all elements are zero).Then, for each beam connecting two nodes i and j in the lattice, G G G is updated as follows (with k k k = K K Kij here):

73The index notation a:b denotes the range of integers from a to b, i.e., K K K0:3 is the sub-matrix of K K K consisting only of its first three rows.We further introduced the specific index notation K K Kij = K K K3•i:3•i+3,3•j:3•j+3, where the sub-selection is applied to both rows and columns.

Relative density

74The most influential design parameter on the in-plane mechanical properties of a cellular lattice material is its relative density 32 , ρ = ρ * ρs .This is defined as the ratio between the lattice's density and the density of the parent solid material, ρs.For most practical scenarios, this ratio is equal to the material volume fraction contained within a known bounding box, following the relation:

75where L * = (i,j)∈E Lij is the sum of all beam lengths, t = √ A the beam thickness (and width) and by and bx the height and width of the bounding box, respectively.

76In cases where the bounding box is not known or considered, the relative density of common periodic lattices can also be determined analytically.Table S1 lists the relative density as a function of beam thickness, t, and regular beam length, L for various periodic regular tilings.Note that contributions from material at nodal beam intersections are assumed negligible.The analytical relationships of Table S1 are only applicable for sufficiently slender beams when 32 ρ < 0.2.Otherwise, stress distribution within nodes and the emergence of axial shear effects in thicker beams cause the model to break down at higher relative densities.More robustly, Meza et al. 56 confirmed the classical predictions apply if strut dimensions fall within the regime (t/l) ≲ 0.05.

77To ensure our generalized beam element model yields viable elastic properties, we limit all our experiments to a regime of relative densities between 0.05 < ρ ≤ 0.19, contingent on the varying number of cells and beam thicknesses in each observation.In most cases, our beams also satisfy the slenderness criterion 56 .

Effective elastic modulus

78The effective elastic modulus E * describes how strongly a material resists to externally-induced deformations.In general, E * is given by the slope of the linear regime of a material's stress-strain curve.

79We use the following experimental setup to determine E * for arbitrary -including regular as well as irregular -2D lattice materials.First, the material is glued between two plates in y-direction, i.e., we have a top and a bottom plate (Figure 8).To obtain the stress-strain curve, the top plate is then iteratively pushed downwards to force the top nodes of the lattice to move.Bottom nodes are constrained in place.This yields different strains, i.e., displacements in y-direction.The stress is then obtained by measuring what force the material is applying on the top plate in response to the induced displacements, and dividing by the cross-sectional area of the lattice's bounding box.After collecting several stress values for increasing strains, the effective elastic modulus is given by the slope of the resulting stressstrain curve.How this experimental setup translates into simulations in detail is described in the supplemental experimental procedures.In general, it requires constructing the global stiffness matrix G, applying The material -here a lattice with honeycomb tiling -is placed between two plates.By pressing the top plate downwards while keeping the bottom plate unmoved, the material gets compressed.With this approach, stress-strain as well as strain-strain curves are derived, from which the above-mentioned material properties are calculated.constraints and deformations, solving the stiffness equation for u u ui and updating the node coordinates r r ri for all nodes i -which has to be repeated several times to record the stress-strain curve.

Poisson's ratio

80The Poisson's ratio measures how the width of a material changes due to a forced compression of its height.For instance, many materials will widen when compressed, which corresponds to a positive Poisson's ratio.However, so-called auxetic materials do the opposite: when compressed, their width is reduced as well, which corresponds to a negative Poisson's ratio.If the width of the material does not change at all, its Poisson's ratio is 0.

81The Poisson's ratio can be obtained with a similar experimental setup as the effective elastic modulus, just that we measure the change in width due to a strain in y-direction.Hence, the Poisson's ratio is given by the slope of a strain-strain curve, as explained in detail in the supplemental experimental procedures.The width change is calculated by taking the difference of the mean u x r value of all nodes on the outer right surface and the mean u x l value of all nodes on the outer left surface of the material.

Graph neural networks

82We investigate graph neural networks that work directly on the graph structure of our lattices, using only the information contained in L.

83Here, we use the EdgeConv model 46 , where the node features r r ri are updated as follows:

84with r r r (0) i = r r ri, Ni is the set containing all nodes connecting to node i, and W W W and W W W 0 are matrices.The full model consists of several EdgeConv, followed by a dense deep neural network Φ that returns a property prediction for each node.The final prediction is then obtained by averaging over all nodes.

85In addition, we investigate the MPNN model that has been proposed for molecule property prediction 42 .For this model, we use the distance vector between nodes r r rij, the length of the beam Lij as well as the orientation cij as edge features e e eij = (r r rij, Lij, cij).Node features are first preprocessed using a multi-layer neural network ϕr.They are update using a NNConv layer and a gated recurrent unit (GRU) r r ri = r r r = GRU r r ri, h h h

86with r r r (0) i = h h h (0) i = ϕr (r r ri) and where ϕe is a neural network that takes the edge features as input and returns a matrix.This step is repeated N times, after which a graph embedding r r rg is obtained by pooling over all nodes r r rg = pool r r r

87For pooling, we use the Set2Set operator.From r r rg, a prediction is obtained through a final multi-layer neural network ϕp.

Masking EdgeConv

88For EdgeConv, message passing yields the following edge features for each edge (j, i) Eji = W W W r r r (l) j − r r r

89Masking is done as follows:

90Node features are updated by choosing the maximum value (elementwise) over all neighbouring edges r r r

91Hence, if an edge is masked, its value is not picked by the max operation and it appears as if the edge does not exist in the graph.

92The masking also guarantees that the chosen maximum value cannot be larger than the minimum value of the edge features, always guaranteeing that the masked value is not chosen by accident.If the graph is bidirectional, both forward and backward edge between two nodes are masked with the same mask value, i.e., mji ≡ mij, resulting in Mji ≡ Mij.Self-connections (i, i) in the graph are not masked.This also guarantees that masking still works if nodes become disconnected from the remaining graph.

Data and code availability

93This publication is accompanied with an extensive Python module (based on pyTorch) for analysing and designing 2D lattices called pyLattice2D (see Note S3), which is publicly available on gitlab 57 .An archived version can be found under the following DOI: 10.5281/zenodo.8239350.It contains the experiments performed in this work, as well as many convenience functions, e.g., for the comfortable generation of various 2D lattice geometries.Default parameters as well as details for simulations can be found in the supplemental experimental procedures.

94• Every five iterations, the expressions for M ij are updated by newly checking which beams in the lattice cross.This is done to avoid solutions with crossing beams.Related to Figure 6A.

95The EdgeConv model consists of three EdgeConv layers (see Equation ( 13)) with 200 hidden neurons each.The deep neural network consists of three layers with [400, 200, 1] neurons.

96The specification of the MPNN model can be found in pyLattice2D (in models/MPNN/networks the class LatticeNNConv) with parameters hid_nfeat set to 15 and num_message_passing set to 3.

97For the CNN, we use a batchsize of 50 and weight regularization of 10 −5 .Training data is randomly flipped horizontally and vertically.The specifications of the CNN architecture can be found in pyLattice2D (in models/MPNN/networks the class CNN).

98Related to Figure 7 and Table 1.

Inverse design using GNNs

99For inverse design, we trained an EdgeConv model with 150 hidden neurons per EdgeConv layer, otherwise the architecture is the same as in "Training machine learning models" in the supplemental experimental procedures.For the inverse design loop, we use again an L1 loss:

100with β = 100 and F now the trained EdgeConv model.Only original beams of the triangle grid can be added or removed during training.We initialize the mask randomly with values m ij ∼ U (0.2), which was necessary to avoid that the model removes too many beams at once during the first few iterations.For coordinates, we use the learning rate γ r r r = 0.0001 and for the edge mask γ m = 0.001.All parameters are regularized (weight decay) with strength 10 −6 .

101For comparison, we use an exact forward model (FE in Figure 7B) which uses 10 iterations of direct stiffness with δ = 0.002 to determine E * .

102Related to Figure 7B.

Figure 1 :

103Figure1: Schematic illustration of the proposed framework.A lattice material is represented as a graph L (left) which contains vector attributes both on the nodes (e.g.position) and edges (e.g.Young's modulus and beam crosssectional area).A differential forward model F takes the graph as input and predicts material properties.Comparing these predictions with desired properties, automatic differentiation is used to change the material (e.g., move nodes and remove or add beams) to better satisfy those properties.This process is repeated iteratively until a material with the desired properties is found.

Figure 2 :

104Figure 2: Comparison of analytical values (TableS1) and values obtained using our finite element method.We show the effective elastic modulus (left) and Poisson's ratio (right) for different tilings (square, equilateral triangle, honeycomb and reentrant honeycomb) and relative densities.To change the relative density, we repeated numerical experiments for lattices with different number of cells and beam cross-areas.

Figure 3 :

105Figure3: Illustration of the message passing steps.For clarity, we only show the operations on one edge, although in practice, these operations are performed on all edges in parallel.(1) Node features r r r i are propagated along connecting edges.(2) On the edges, propagated node features as well as edge features are combined via a function ϕ 0 to create new edge features.ϕ 0 can take any shape (e.g., a neural network).(3) Edge features are reduced using a function ϕ 1 that satisfies permutation invariance (i.e., the order of arguments does not matter) and is applicable to a varying number of arguments.(4) The node features are updated using the reduced edge features using a function ϕ 2 (which, again, can take any shape).

Figure 4 :

106Figure 4: Illustration of message passing finite element.Using message passing on the graph representation of the lattice, first the stiffness matrix of each beam is computed (locally on each edge of the graph), from which the global stiffness matrix G is then constructed (by pooling from all edges).

Figure 5 :

107Figure 5: Inverse designing lattices to have desired mechanical properties.Lattices without load are shown in light gray and with load in black.Top nodes (red) are forced, while bottom nodes (gray) are constrained to not move.In the middle plots, target values of properties are shown as dashed lines.(A) Inverse designing a square lattice to have a higher effective elastic modulus while keeping the relative density constant.Deformations are magnified by a factor of 10. (B) Inverse designing a triangle lattice to have a negative Poisson's ratio while keeping the relative density constant.Deformations are not magnified.

Figure 6 :

108Figure6: Inverse designing a lattice to yield certain deformation responses to loads.Colors and line styles as in Figure5.Nodes with target behaviour are shown as colored squares.(A) Inverse design of a grabbing tool.Progress towards the target for all four nodes is shown in the middle plot, colored like the corresponding nodes (left and right, colored squares).In the lattice illustrations (left and right), target deformations are indicated by crosses.A lever-like structure that emerged during inverse design is highlighted in gold.Deformations are magnified by a factor of 4. See also Video S1. (B) Inverse designing the response to two different load scenarios.As can be seen in the middle figure, if we only train on load scenario 1, the target behaviour for load scenario 2 is not reached.However, training on both scenarios will lead to a solution that satisfies both target behaviours.Deformations are magnified by a factor of 5. See also FigureS1and Video S2. (C) Inverse designing a large honeycomb lattice to have zero Poisson's ratio.Initially, loading the lattice leads to a bulging outwards.With our framework, a design is found that leads to no bulging, featuring local tiling motives resembling tilted reentrant honeycombs and triangles.See also FigureS2and Video S3.

Figure 7 :

109Figure 7: Experiments using graph neural networks as the forward model.(A) Model prediction vs. ground truth for the EdgeConv model.(B) Inverse design using a GNN as the forward model F .A triangle lattice is adjusted to feature a reduced effective elastic modulus while its relative density has to be unchanged.Target values for the elastic modulus and relative density are shown as dashed lines.The predicted value by the GNN F (L) is shown in blue (straight line), while the exact value obtained using finite element is shown in red (dashed dotted line).Colors and line styles as in Figure 5. Deformations are magnified by a factor of 2. See also Figure S6.

Figure 8 :

110Figure 8: Experimental setup for determining both the effective elastic modulus and the Poisson's ratio of a lattice material along the loading direction.The material -here a lattice with honeycomb tiling -is placed between two plates.By pressing the top plate downwards while keeping the bottom plate unmoved, the material gets compressed.With this approach, stress-strain as well as strain-strain curves are derived, from which the above-mentioned material properties are calculated.

Figure S2 :

111Figure S2: Magnified illustration of the inverse-designed lattice shown in Figure 6C.Connection points between beams are shown as nodes.It should be noted that, although the design looks symmetric on first glance, it is not.

Figure S3 :

112FigureS3: Relative time required for a single forward pass of the exact algorithm using message passing finite element (FE) and the approximate algorithm using GNNs.Experiments are done using square lattices.Time complexity is given in relation to the time required for a square lattice with N 0 = 4 × 4 cells.

Table 1 :

113(see Note S2 for details).Experimental results for training prediction models.

참고문헌 52건

  1. Yield surfaces of various periodic metal honeycombs at intermediate relative density International Journal of Plasticity · Elsevier BV · 2004 10.1016/j.ijplas.2003.12.002
  2. Bioinspired structural materials Nature Materials · Nature Portfolio · 2014 10.1038/nmat4089
  3. A neuromorphic network for generic multivariate data classification Proceedings of the National Academy of Sciences · National Academy of Sciences · 2014 10.1073/pnas.1303053111
  4. Cellular Materials in Nature and Medicine 2010
  5. Convolutional networks for fast, energy-efficient neuromorphic computing Proceedings of the National Academy of Sciences · National Academy of Sciences · 2016 10.1073/pnas.1604850113
  6. Auxetic Materials and Structures Engineering materials · Springer Nature · 2014 10.1007/978-981-287-275-3
  7. Structural and Stress Analysis Elsevier eBooks · Elsevier BV · 2019 10.1016/c2017-0-01528-8
  8. Modeling Relational Data with Graph Convolutional Networks Lecture notes in computer science · Springer Science+Business Media · 2018 10.1007/978-3-319-93417-4_38
  9. Neural Message Passing for Quantum Chemistry arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1704.01212
  10. Cellular solids: Structure and properties Materials Science and Engineering A · Elsevier BV · 1990 10.1016/0921-5093(90)90295-e
  11. Reexamining the mechanical property space of three-dimensional lattice architectures Acta Materialia · Elsevier BV · 2017 10.1016/j.actamat.2017.08.052
  12. Materials for space exploration and settlement Nature Materials · Nature Portfolio · 2018 10.1038/s41563-018-0184-4
  13. Topology optimization for multiscale design of porous composites with multi-domain microstructures Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2018 10.1016/j.cma.2018.10.017
  14. Additive manufacturing — A review of 4D printing and future applications Additive manufacturing · Elsevier BV · 2018 10.1016/j.addma.2018.10.038
  15. Molecular Property Prediction: A Multilevel Quantum Interactions Modeling Perspective Proceedings of the AAAI Conference on Artificial Intelligence · Association for the Advancement of Artificial Intelligence · 2019 10.1609/aaai.v33i01.33011052
  16. Detecting Functionality-Specific Vulnerabilities via Retrieving Individual Functionality-Equivalent APIs in Open-Source Repositories Dagstuhl Research Online Publication Server · 2025 10.4230/lipics.ecoop.2025.6
  17. CatBoost: unbiased boosting with categorical features Neural Information Processing Systems · 2018
  18. GNNExplainer: Generating Explanations for Graph Neural Networks arXiv (Cornell University) · Cornell University · 2019 10.48550/arxiv.1903.03894
  19. Accelerated Physical Emulation of Bayesian Inference in Spiking Neural Networks Frontiers in Neuroscience · Frontiers Media · 2019 10.3389/fnins.2019.01201
  20. Dynamic Graph CNN for Learning on Point Clouds ACM Transactions on Graphics · Association for Computing Machinery · 2019 10.1145/3326362
  21. Surrogate Gradient Learning in Spiking Neural Networks: Bringing the Power of Gradient-Based Optimization to Spiking Neural Networks IEEE Signal Processing Magazine · Institute of Electrical and Electronics Engineers · 2019 10.1109/msp.2019.2931595
  22. Deep learning predicts path-dependent plasticity Proceedings of the National Academy of Sciences · National Academy of Sciences · 2019 10.1073/pnas.1911815116
  23. Data-Driven Structural Design Optimization for Petal-Shaped Auxetics Using Isogeometric Analysis Computer Modeling in Engineering & Sciences · Tech Science Press · 2020 10.32604/cmes.2020.08680
  24. Data-driven metamaterial design with Laplace-Beltrami spectrum as “shape-DNA” Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2020 10.1007/s00158-020-02523-5
  25. Unveiling the predictive power of static structure in glassy systems Nature Physics · Nature Portfolio · 2020 10.1038/s41567-020-0842-8
  26. A semi-supervised approach to architected materials design using graph neural networks Extreme Mechanics Letters · Elsevier BV · 2020 10.1016/j.eml.2020.101029
  27. Neuromorphic hardware in the loop: Training a deep spiking network on the BrainScaleS wafer-scale system 2022 International Joint Conference on Neural Networks (IJCNN) · 2017 10.1109/ijcnn.2017.7966125
  28. SuperSpike: Supervised Learning in Multilayer Spiking Neural Networks Neural Computation · The MIT Press · 2018 10.1162/neco_a_01086
  29. Artificial intelligence and machine learning in design of mechanical materials Materials Horizons · Royal Society of Chemistry · 2020 10.1039/d0mh01451f
  30. Inverse design of nanoporous crystalline reticular materials with deep generative models Nature Machine Intelligence · Nature Portfolio · 2021 10.1038/s42256-020-00271-1
  31. The Remarkable Robustness of Surrogate Gradient Learning for Instilling Complex Function in Spiking Neural Networks Neural Computation · The MIT Press · 2021 10.1162/neco_a_01367
  32. Inverse machine learning framework for optimizing lightweight metamaterials Materials & Design · Elsevier BV · 2021 10.1016/j.matdes.2021.109937
  33. Graph neural networks for an accurate and interpretable prediction of the properties of polycrystalline materials npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00574-w
  34. Controllable inverse design of auxetic metamaterials using deep learning Materials & Design · Elsevier BV · 2021 10.1016/j.matdes.2021.110178
  35. Deep-learning-based isogeometric inverse design for tetra-chiral auxetics Composite Structures · Elsevier BV · 2021 10.1016/j.compstruct.2021.114808
  36. Bioinspired Stochastic Design: Tough and Stiff Ceramic Systems Advanced Functional Materials · Wiley · 2021 10.1002/adfm.202108492
  37. Inverting the structure–property map of truss metamaterials by deep learning Proceedings of the National Academy of Sciences · National Academy of Sciences · 2021 10.1073/pnas.2111505119
  38. Towards out of earth manufacturing: overview of the ESA materials and processes activities on manufacturing in space CEAS Space Journal · Springer Science+Business Media · 2022 10.1007/s12567-022-00428-1
  39. Inverse Design in Porous Materials Using Artificial Neural Networks ChemRxiv · 2019 10.26434/chemrxiv.7987475.v1
  40. Inverse-Designed Spinodoid Metamaterials 2021 10.1115/1.0004791v
  41. Learning Mesh-Based Simulation with Graph Networks arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2010.03409
  42. High‐Throughput Generation of 3D Graphene Metamaterials and Property Quantification Using Machine Learning Small Methods · Wiley · 2022 10.1002/smtd.202200537
  43. Inductive Representation Learning on Large Graphs arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1706.02216
  44. A Generalist Neural Algorithmic Learner arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2209.11142
  45. Mechanical neural networks: Architected materials that learn behaviors Science Robotics · American Association for the Advancement of Science · 2022 10.1126/scirobotics.abq7278
  46. Elastic axial stiffness properties of lattice structures: Analytical approach and experimental validation for bcc and f <sub>2</sub> cc,z unit cells Mechanics of Advanced Materials and Structures · Taylor & Francis · 2022 10.1080/15376494.2022.2139027
  47. Nature-inspired architected materials using unsupervised deep learning Communications Engineering · 2022 10.1038/s44172-022-00037-0
  48. Graph neural networks for materials science and chemistry Communications Materials · Nature Portfolio · 2022 10.1038/s43246-022-00315-6
  49. Predicting stress, strain and deformation fields in materials and structures with graph neural networks Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-26424-3
  50. Inverse design of truss lattice materials with superior buckling resistance npj Computational Materials · Nature Portfolio · 2022 10.1038/s41524-022-00938-w
  51. Deep-learning-based inverse design of three-dimensional architected cellular materials with the target porosity and stiffness using voxelized Voronoi lattices Science and Technology of Advanced Materials · Taylor & Francis · 2022 10.1080/14686996.2022.2157682
  52. Deep Learning Accelerated Design of Mechanically Efficient Architected Materials ACS Applied Materials & Interfaces · American Chemical Society · 2023 10.1021/acsami.3c02746