Enhancing lattice kinetic schemes for fluid dynamics with Lattice-Equivariant Neural Networks

2405.13850

YC

0

Reddit

0

Published 5/24/2024 by Giulio Ortali, Alessandro Gabbana, Imre Atmodimedjo, Alessandro Corbetta

🧠

Abstract

We present a new class of equivariant neural networks, hereby dubbed Lattice-Equivariant Neural Networks (LENNs), designed to satisfy local symmetries of a lattice structure. Our approach develops within a recently introduced framework aimed at learning neural network-based surrogate models Lattice Boltzmann collision operators. Whenever neural networks are employed to model physical systems, respecting symmetries and equivariance properties has been shown to be key for accuracy, numerical stability, and performance. Here, hinging on ideas from group representation theory, we define trainable layers whose algebraic structure is equivariant with respect to the symmetries of the lattice cell. Our method naturally allows for efficient implementations, both in terms of memory usage and computational costs, supporting scalable training/testing for lattices in two spatial dimensions and higher, as the size of symmetry group grows. We validate and test our approach considering 2D and 3D flowing dynamics, both in laminar and turbulent regimes. We compare with group averaged-based symmetric networks and with plain, non-symmetric, networks, showing how our approach unlocks the (a-posteriori) accuracy and training stability of the former models, and the train/inference speed of the latter networks (LENNs are about one order of magnitude faster than group-averaged networks in 3D). Our work opens towards practical utilization of machine learning-augmented Lattice Boltzmann CFD in real-world simulations.

Create account to get full access

or

If you already have an account, we'll log you in

Overview

  • Presents a new class of equivariant neural networks called Lattice-Equivariant Neural Networks (LENNs)
  • LENNs are designed to satisfy local symmetries of a lattice structure
  • Builds on a framework for learning neural network-based surrogate models of Lattice Boltzmann collision operators
  • Respecting symmetries and equivariance is key for accuracy, stability, and performance when using neural networks to model physical systems

Plain English Explanation

Lattice-Equivariant Neural Networks (LENNs) are a new type of neural network that are designed to work well with lattice structures, which are grid-like patterns that are commonly used to model physical systems. The key idea is that these networks are "equivariant," meaning they respect the symmetries and patterns inherent in the lattice.

This is important because when you use neural networks to model physical systems, it's crucial that the network architecture matches the underlying structure of the system. Otherwise, the network may struggle to accurately capture the physics, leading to unstable or inaccurate results.

By basing the network architecture on the symmetries of the lattice, as described in ideas from group representation theory, the researchers were able to create neural networks that are both highly accurate and computationally efficient. This makes them well-suited for use in real-world simulations of fluid dynamics, for example.

The researchers tested their LENN approach on 2D and 3D fluid flow problems, both in laminar (smooth) and turbulent regimes. They found that LENNs outperformed both standard neural networks that don't respect symmetries, as well as more complex "group-averaged" networks that do. LENNs were about an order of magnitude faster than the group-averaged networks in 3D, while still maintaining high accuracy.

Technical Explanation

The key innovation in this work is the development of Lattice-Equivariant Neural Networks (LENNs), which are designed to satisfy the local symmetries inherent in lattice structures. This builds on a recently introduced framework for learning neural network-based surrogate models of Lattice Boltzmann collision operators.

The researchers leverage ideas from group representation theory to define trainable layers whose algebraic structure is equivariant with respect to the symmetries of the lattice cell. This allows for efficient implementations in terms of memory usage and computational costs, enabling scalable training and inference for lattices in 2D and 3D.

The team validated their LENN approach on 2D and 3D fluid flow problems, considering both laminar and turbulent regimes. They compared the performance to both group-averaged symmetric networks and plain, non-symmetric networks. The results show that LENNs can unlock the accuracy and training stability of the group-averaged models, while achieving the faster train/inference speed of the non-symmetric networks (about an order of magnitude faster in 3D).

Critical Analysis

The paper presents a compelling approach for developing neural networks that are tailored to the symmetries of lattice structures, which are commonly used to model physical systems. By grounding the network architecture in group representation theory, the researchers were able to create efficient and accurate models that outperform both standard neural networks and more complex group-averaged approaches.

However, the paper does not delve into potential limitations or caveats of the LENN approach. For example, it's unclear how the method would scale to extremely large lattice sizes or more complex geometric arrangements beyond simple Cartesian grids. There may also be challenges in extending the approach to model multi-scale phenomena or incorporate additional physical constraints beyond the lattice symmetries.

Additionally, while the researchers demonstrate the effectiveness of LENNs on fluid dynamics problems, it would be valuable to see the method applied to a wider range of physical systems to assess its general applicability. Equivariant neural networks and equivariant graph neural networks have shown promise in diverse domains, and it's an open question whether the LENN approach can be similarly generalized.

Overall, this work represents an important step forward in developing specialized neural network architectures that can better capture the underlying structure of physical systems. Further research is needed to fully explore the capabilities and limitations of this approach.

Conclusion

This paper introduces a new class of equivariant neural networks called Lattice-Equivariant Neural Networks (LENNs) that are designed to satisfy the local symmetries of lattice structures. By grounding the network architecture in group representation theory, the researchers were able to create efficient and accurate models that outperform both standard neural networks and more complex group-averaged approaches when applied to fluid dynamics problems.

The LENN approach represents an important advancement in the field of physics-informed machine learning, demonstrating the value of incorporating domain-specific knowledge into neural network design. This work paves the way for more practical utilization of machine learning-augmented computational fluid dynamics in real-world simulations, with potential applications across a wide range of physical and engineering domains.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Related Papers

🧠

Theory for Equivariant Quantum Neural Networks

Quynh T. Nguyen, Louis Schatzki, Paolo Braccia, Michael Ragone, Patrick J. Coles, Frederic Sauvage, Martin Larocca, M. Cerezo

YC

0

Reddit

0

Quantum neural network architectures that have little-to-no inductive biases are known to face trainability and generalization issues. Inspired by a similar problem, recent breakthroughs in machine learning address this challenge by creating models encoding the symmetries of the learning task. This is materialized through the usage of equivariant neural networks whose action commutes with that of the symmetry. In this work, we import these ideas to the quantum realm by presenting a comprehensive theoretical framework to design equivariant quantum neural networks (EQNN) for essentially any relevant symmetry group. We develop multiple methods to construct equivariant layers for EQNNs and analyze their advantages and drawbacks. Our methods can find unitary or general equivariant quantum channels efficiently even when the symmetry group is exponentially large or continuous. As a special implementation, we show how standard quantum convolutional neural networks (QCNN) can be generalized to group-equivariant QCNNs where both the convolution and pooling layers are equivariant to the symmetry group. We then numerically demonstrate the effectiveness of a SU(2)-equivariant QCNN over symmetry-agnostic QCNN on a classification task of phases of matter in the bond-alternating Heisenberg model. Our framework can be readily applied to virtually all areas of quantum machine learning. Lastly, we discuss about how symmetry-informed models such as EQNNs provide hopes to alleviate central challenges such as barren plateaus, poor local minima, and sample complexity.

Read more

5/14/2024

🧠

Unifying O(3) Equivariant Neural Networks Design with Tensor-Network Formalism

Zimu Li, Zihan Pengmei, Han Zheng, Erik Thiede, Junyu Liu, Risi Kondor

YC

0

Reddit

0

Many learning tasks, including learning potential energy surfaces from ab initio calculations, involve global spatial symmetries and permutational symmetry between atoms or general particles. Equivariant graph neural networks are a standard approach to such problems, with one of the most successful methods employing tensor products between various tensors that transform under the spatial group. However, as the number of different tensors and the complexity of relationships between them increase, maintaining parsimony and equivariance becomes increasingly challenging. In this paper, we propose using fusion diagrams, a technique widely employed in simulating SU($2$)-symmetric quantum many-body problems, to design new equivariant components for equivariant neural networks. This results in a diagrammatic approach to constructing novel neural network architectures. When applied to particles within a given local neighborhood, the resulting components, which we term fusion blocks, serve as universal approximators of any continuous equivariant function defined in the neighborhood. We incorporate a fusion block into pre-existing equivariant architectures (Cormorant and MACE), leading to improved performance with fewer parameters on a range of challenging chemical problems. Furthermore, we apply group-equivariant neural networks to study non-adiabatic molecular dynamics of stilbene cis-trans isomerization. Our approach, which combines tensor networks with equivariant neural networks, suggests a potentially fruitful direction for designing more expressive equivariant neural networks.

Read more

5/24/2024

🧠

Similarity Equivariant Graph Neural Networks for Homogenization of Metamaterials

Fleur Hendriks (Eindhoven University of Technology), Vlado Menkovski (Eindhoven University of Technology), Martin Dov{s}k'av{r} (Czech Technical University in Prague), Marc G. D. Geers (Eindhoven University of Technology), Ondv{r}ej Rokov{s} (Eindhoven University of Technology)

YC

0

Reddit

0

Soft, porous mechanical metamaterials exhibit pattern transformations that may have important applications in soft robotics, sound reduction and biomedicine. To design these innovative materials, it is important to be able to simulate them accurately and quickly, in order to tune their mechanical properties. Since conventional simulations using the finite element method entail a high computational cost, in this article we aim to develop a machine learning-based approach that scales favorably to serve as a surrogate model. To ensure that the model is also able to handle various microstructures, including those not encountered during training, we include the microstructure as part of the network input. Therefore, we introduce a graph neural network that predicts global quantities (energy, stress stiffness) as well as the pattern transformations that occur (the kinematics). To make our model as accurate and data-efficient as possible, various symmetries are incorporated into the model. The starting point is an E(n)-equivariant graph neural network (which respects translation, rotation and reflection) that has periodic boundary conditions (i.e., it is in-/equivariant with respect to the choice of RVE), is scale in-/equivariant, can simulate large deformations, and can predict scalars, vectors as well as second and fourth order tensors (specifically energy, stress and stiffness). The incorporation of scale equivariance makes the model equivariant with respect to the similarities group, of which the Euclidean group E(n) is a subgroup. We show that this network is more accurate and data-efficient than graph neural networks with fewer symmetries. To create an efficient graph representation of the finite element discretization, we use only the internal geometrical hole boundaries from the finite element mesh to achieve a better speed-up and scaling with the mesh size.

Read more

4/29/2024

Relaxing Continuous Constraints of Equivariant Graph Neural Networks for Physical Dynamics Learning

Relaxing Continuous Constraints of Equivariant Graph Neural Networks for Physical Dynamics Learning

Zinan Zheng, Yang Liu, Jia Li, Jianhua Yao, Yu Rong

YC

0

Reddit

0

Incorporating Euclidean symmetries (e.g. rotation equivariance) as inductive biases into graph neural networks has improved their generalization ability and data efficiency in unbounded physical dynamics modeling. However, in various scientific and engineering applications, the symmetries of dynamics are frequently discrete due to the boundary conditions. Thus, existing GNNs either overlook necessary symmetry, resulting in suboptimal representation ability, or impose excessive equivariance, which fails to generalize to unobserved symmetric dynamics. In this work, we propose a general Discrete Equivariant Graph Neural Network (DEGNN) that guarantees equivariance to a given discrete point group. Specifically, we show that such discrete equivariant message passing could be constructed by transforming geometric features into permutation-invariant embeddings. Through relaxing continuous equivariant constraints, DEGNN can employ more geometric feature combinations to approximate unobserved physical object interaction functions. Two implementation approaches of DEGNN are proposed based on ranking or pooling permutation-invariant functions. We apply DEGNN to various physical dynamics, ranging from particle, molecular, crowd to vehicle dynamics. In twenty scenarios, DEGNN significantly outperforms existing state-of-the-art approaches. Moreover, we show that DEGNN is data efficient, learning with less data, and can generalize across scenarios such as unobserved orientation.

Read more

6/26/2024