基盤技術構築Fundamental Technology

方程式や幾何情報を埋めこんだ数値計算代替型の機械学習法

Machine Learning Methods Embedding Equations and Geometric Information as Surrogates for Numerical Computation

研究概要

背景・動機:

数値解析や力学シミュレーションは、設計のための実験に対する「安価な代替」や、実験では観測することが難しい「詳細部分や内部の解像」のために利活用されています。しかしながら、数値解析技術の発展に伴い、次世代の設計パラダイムとして、「設計者による最適化や意思決定を代替」することが可能となりつつあります。我々は、多変量解析などのデータサイエンス技術や機械学習と数値解析技術との「真の融合」のため、設計に関する数値解析戦略の新たなパラダイムの創成を目指しています。この実現のために我々は、「以下にして、無色な情報科学的方法論の空間に、"力学的な色" (力学的事前情報) を導入するか」という視点から、様々な方法論の研究を行っています。

力学の知識を、学習モデルの設計に使う:

物体の形や流路の向きが変わっても、物理法則そのものが変わるわけではありません。例えば、物体と材料の向き、初期・境界条件を一緒に回転させると、対応する点の温度は同じで、流速や温度勾配の向きは物体とともに回転します。また、隣り合う領域の間で物理量をやり取りするときは、一方から出た量が他方へ入るという収支を保つ必要があります。私たちは、こうした幾何学的な性質や力学的な制約を、学習モデルの演算や学習条件に組み込む方法を研究しています。[2, 3, 4]

この方針を具体化する二つの方法が、グラフニューラルネットワーク(GNN)と、物理情報ニューラルネットワーク(PINN)です。GNNでは、計算点やセルのつながりを用いた情報交換の仕組みを設計します。PINNでは、位置と時刻から物理量を返す関数をニューラルネットワークで表し、その予測を方程式に代入して、式や初期・境界条件とのずれを学習の基準にします。どちらも、力学や数値解析の知見を使って、何を学習させ、何をあらかじめ満たす構造とするかを考える研究です。[2, 3, 4, 5]

メッシュのつながりと、方程式の制約を生かす:

GNNでは、計算メッシュの節点やセルをグラフの点とし、その隣接関係に沿って情報をやり取りします。相対位置やセルの体積などを用いることで、形状を画像の固定された画素へ置き換えずに扱えます。私たちは、メッシュ上の数値解析を学習する研究を出発点として、座標変換に整合する演算、境界条件の処理、保存則を満たす情報交換へと発展させてきました。学習後のモデルを繰り返し用い、形状や条件を変えながら行う解析の負担を減らすことを目指しています。[1, 2, 3, 4]

GNNに方程式の構造を組み込む一例。上段は通常のGNN、中段は有限体積法、下段はFluxGNNです。FluxGNNでは、隣り合うセルの境界を通る量をニューラルネットワークで求め、一方から出た量がもう一方に入るよう、各セルの値を更新します。図1 GNNに方程式の構造を組み込む一例。上段は通常のGNN、中段は有限体積法、下段はFluxGNNです。FluxGNNでは、隣り合うセルの境界を通る量をニューラルネットワークで求め、一方から出た量がもう一方に入るよう、各セルの値を更新します。出典:関連文献 [4] の Fig. 1(ICML 2024出版版)。

PINNでは、予測した場の微分を計算し、支配方程式をどの程度満たすかを評価できます。物性値から場を求める順問題に加えて、場の一部が分かっているときに未知の物性値を推定する逆問題も、方程式を使って扱えます。初期・境界条件を関数の形で満たす設計も、その一例です。[5] 学習の安定性や形状の表現方法も重要な研究課題です。GNNによる幾何や連結の表現と、PINNによる方程式の制約を組み合わせることも、今後の展開として検討しています。

設計のために使える予測へ:

目指しているのは、繰り返しの設計検討や物性の同定に利用できる、速く、物理に整合する予測です。そのためには、学習後の計算時間だけでなく、学習に必要な解析データや計算の負担、学習した条件から外れたときの振る舞いも考える必要があります。どの物理的性質をモデルに組み込めば形状の変化に対応できるか、境界条件をどう表現すれば学習が安定するか、観測からどの物性を識別できるか。数理の設計と数値実験を往復しながら、これらの問いに取り組んでいます。

関連する研究例

本研究室のGNN研究では、ICLR 2021、NeurIPS 2022、ICML 2024の三つの査読付き国際会議論文を通して、幾何学的な整合性、境界条件、保存則を扱う方法を発展させてきました。以下では、それぞれが予測の仕組みに何を組み込んだのかを、熱伝導や流体解析の結果とともに紹介します。[2, 3, 4]

向きの変化に整合する予測:IsoGCN(ICLR 2021)

三次元の異方性・非線形熱伝導の予測。上段は有限要素解と各手法の温度分布、下段は予測値から有限要素解を引いた誤差です。原図では誤差を2倍に強調しています。図2 三次元の異方性・非線形熱伝導の予測。上段は有限要素解と各手法の温度分布、下段は予測値から有限要素解を引いた誤差です。原図では誤差を2倍に強調しています。出典:関連文献 [2] の Fig. 3(ICLR 2021出版版)。

温度のように向きを持たない量と、流速や温度勾配のように向きを持つ量では、物体を回転させたときの変わり方が異なります。IsoGCNでは、隣り合う点の相対位置を使い、勾配などの空間微分に対応する演算を構成しました。入力の向きが変われば出力の向きも適切に変わるという関係を、ネットワークの構造で表します。これにより、座標の取り方に依存しない予測を目指します。[2]

数値実験では、熱の伝わりやすさが方向と温度に依存する、三次元の熱伝導問題を扱いました。初期温度、材料特性、メッシュ形状から温度分布の時間変化を予測し、学習に用いていない形状でも有限要素解析の結果と比較しています。同論文では100万節点規模のグラフも扱い、大規模な数値解析への適用性を検証しました。[2]

境界条件を予測の計算へ組み込む:PENN(NeurIPS 2022)

複雑な流路の非圧縮性流れ。上の2段は速度の大きさ、下の2段は圧力を示し、各組で変換前と回転・平行移動後を上下に比べます。左は数値参照解、中央は比較手法、右はPENNです。図3 複雑な流路の非圧縮性流れ。上の2段は速度の大きさ、下の2段は圧力を示し、各組で変換前と回転・平行移動後を上下に比べます。左は数値参照解、中央は比較手法、右はPENNです。出典:関連文献 [3] の Fig. 3(NeurIPS 2022出版版)。

流れを決めるには、領域の中の方程式に加えて、入口、壁、出口で何を指定するかが重要です。PENNでは、物理量の値を与えるディリクレ条件と、境界に垂直な方向の微分を与えるノイマン条件を、GNNの演算に取り込みました。前者は内部の反復と出力で指定値を再現する仕組みに、後者は境界付近の勾配を推定する仕組みに用います。また、陰解法に基づく反復を導入し、離れた点の影響も含む場を予測します。[3]

複雑な流路の非圧縮性流れでは、流路を回転・平行移動した場合にも、対応する場所で速度の大きさと圧力の分布が保たれることを確かめました。論文の評価条件では、最適化された従来の数値解法との比較で、学習後の推論の計算時間と予測精度のトレードオフを改善しています。幾何の対称性と境界条件を、実際の予測計算につなげた研究です。[3]

セル間の収支を保つ:FluxGNN(ICML 2024)

混合流の速度分布。各列に、テスト例、尺度変更、縦長の別形状、回転の四つの条件を示しています。色は速度の大きさで、尺度変更の条件には右下の専用の色目盛を使います。保存誤差の評価は、この速度分布とは別です。図4 混合流の速度分布。各列に、テスト例、尺度変更、縦長の別形状、回転の四つの条件を示しています。色は速度の大きさで、尺度変更の条件には右下の専用の色目盛を使います。保存誤差の評価は、この速度分布とは別です。出典:関連文献 [4] の Fig. 4(ICML 2024出版版)。

FluxGNNでは、有限体積法の考え方をGNNへ取り込みます。隣り合うセルが共有する面を通って、物理量がどれだけ移動するかを学習し、一方のセルから出た量を他方のセルへ加えます。内部の面でのやり取りが領域全体では相殺される構造を用いることで、保存則に従う情報交換を実現します。さらに、回転に加え、空間や時間などの尺度が変わったときにも、物理量がその次元に応じて変わるようにモデルを設計しました。[4]

密度の異なる流体が混ざる計算では、回転や尺度変更を施した条件と、学習時より縦長の別の形状で、速度分布を比較しました。図は、こうした条件の変化に対する予測の様子を示しています。論文では、混合する流体の体積分率の保存誤差も別に評価しています。保存を保つ計算構造と、形状・尺度の変化への対応を結びつけ、学習していない問題への汎用性を高める研究です。[4]

方程式から場を求め、物性を推定する:PINN

気泡を含む液体中の波を対象としたPINNの順問題。横軸は位置、縦軸は波形の値、色は時刻を表します。実線はPINNの予測、破線は数値参照解で、予測は乱数初期値を変えた5回の平均です。図5 気泡を含む液体中の波を対象としたPINNの順問題。横軸は位置、縦軸は波形の値、色は時刻を表します。実線はPINNの予測、破線は数値参照解で、予測は乱数初期値を変えた5回の平均です。出典:関連文献 [5] の Fig. 5(arXiv:2610.32668v1、査読中)。

本研究室では、方程式を学習に組み込み、波や流れの予測と未知の物性の推定に用いる研究を進めています。例えば、長谷川建氏を筆頭著者とする研究では、気泡を含む液体中の波を表す非線形波動方程式を対象に、初めの波形と空間方向の周期性をネットワークの構造で満たすようにしました。方程式と数値参照解から得たデータを用いて学習し、振幅が時間とともに小さくなる波形を予測しています。[5]

気泡の初期半径を推定する逆問題の一例。他の物性値は既知として、初期半径だけを推定しています。横軸は学習の反復回数、縦軸は真値に対する推定値の比です。真値の2倍または半分から始めた推定が、真値の1へ近づきます。実線は5回の平均、帯は標準偏差です。図6 気泡の初期半径を推定する逆問題の一例。他の物性値は既知として、初期半径だけを推定しています。横軸は学習の反復回数、縦軸は真値に対する推定値の比です。真値の2倍または半分から始めた推定が、真値の1へ近づきます。実線は5回の平均、帯は標準偏差です。出典:関連文献 [5] の Fig. 9右上(arXiv:2610.32668v1、査読中)。

逆問題では、物性値の違いが波形にどの程度現れるかを調べた上で、七つの物性値について、ほかの物性値を既知として一つずつ推定を試みました。気泡の初期半径など五つでは真値に近い値が得られましたが、気体のポリトロープ指数は十分に収束せず、波形への影響が小さい表面張力係数は推定できませんでした。方程式を学習に取り入れることは、予測だけでなく、どの物性をデータから読み取れるかを考える手掛かりにもなります。この成果は公開arXiv版に基づくもので、査読中です。[5]

また、写真測量から得られる物体の形状と、Neural距離関数を組み合わせ、複雑な形状の周りの非圧縮性流れをPINNで解析する方法も研究しています。境界までの距離を返す関数として形状を表し、物理場を方程式で制約する考え方を、実際の形状を扱う解析へ展開することを目指しています。

共同研究者・共同研究機関

関連プロジェクト

  • 複雑現象の革新的数値解析パラダイムによる減災設計戦略, 科学技術振興機構 (JST) 創発的研究支援事業, 2022年4月–2029年3月, 三目直登 (研究代表者). Link
  • 数値解析のための力学情報埋め込み型グラフニューラルネットワークの創成, 日本学術振興会科学研究費補助金, 基盤研究 (B), 2022年4月–2026年3月, 三目直登 (研究代表者). Link
  • 物理の経験知を埋め込んだデータ科学による複合災害のリアルタイム未来知, 日本学術振興会科学研究費補助金, 基盤研究 (B), 2023年4月–2027年3月, 三目直登 (研究分担者) [研究代表者: 浅井光輝]. Link
  • 「工学的方程式モデリング」の完全自動化への挑戦, 日本学術振興会科学研究費補助金, 挑戦的研究 (萌芽), 2024年7月–2026年3月, 三目直登 (研究代表者). Link

関連文献

Research Overview

Background and Motivation:

Numerical analysis and mechanical simulation have been utilized as "inexpensive alternatives" to experiments for design, and for "resolving details and internals" that are difficult to directly observe in experiments. However, with the development of numerical analysis technology, it is becoming possible to "replace optimization and decision-making by designers" as the next generation design paradigm. We aim to create a new paradigm of numerical analysis strategies for design in order to achieve a "true fusion" of data science technologies such as multivariate analysis and machine learning with numerical analysis technologies. In order to achieve this, we are researching various methodologies from the viewpoint of "how to introduce 'dynamical color' (dynamical prior information) into the colorless space of information science methodologies".

Using Knowledge of Mechanics to Design Learning Models:

Changes in the shape of an object or the orientation of a flow channel do not change the physical laws themselves. For example, when an object, its material orientation, and its initial and boundary conditions are rotated together, the temperature at corresponding points remains the same, while the velocity and temperature gradient rotate with the object. When physical quantities are exchanged between adjacent regions, the balance must also be preserved: the amount leaving one region enters the other. We study ways to incorporate such geometric properties and mechanical constraints into the operations and training conditions of learning models. [2, 3, 4]

Two approaches that put this principle into practice are graph neural networks (GNNs) and physics-informed neural networks (PINNs). With GNNs, we design mechanisms for exchanging information using the connections between computational points or cells. With PINNs, a neural network represents a function that returns physical quantities from position and time. Its predictions are substituted into the equations, and discrepancies with the equations and initial and boundary conditions provide criteria for training. In both approaches, we use knowledge of mechanics and numerical analysis to determine what the model should learn and what its structure should satisfy by construction. [2, 3, 4, 5]

Using Mesh Connectivity and Equation Constraints:

In a GNN, the nodes or cells of a computational mesh are treated as points in a graph, and information is exchanged along their adjacency relationships. Relative positions, cell volumes, and similar information allow the model to handle geometry without converting it into the fixed pixels of an image. Starting from learning mesh-based numerical analysis, we have developed operations consistent with coordinate transformations, ways to handle boundary conditions, and information exchange that satisfies conservation laws. By repeatedly using trained models, we aim to reduce the burden of analyses performed under changing geometries and conditions. [1, 2, 3, 4]

An example of embedding equation structure into a GNN. The top row shows a conventional GNN, the middle row the finite volume method, and the bottom row FluxGNN. FluxGNN uses a neural network to determine the amount passing through the boundary between adjacent cells, then updates each cell so that the amount leaving one enters the other.Figure 1. An example of embedding equation structure into a GNN. The top row shows a conventional GNN, the middle row the finite volume method, and the bottom row FluxGNN. FluxGNN uses a neural network to determine the amount passing through the boundary between adjacent cells, then updates each cell so that the amount leaving one enters the other. Source: Ref. [4], Fig. 1 (published version, ICML 2024).

In a PINN, derivatives of the predicted field can be computed to evaluate how well it satisfies the governing equations. Equations can be used to address both forward problems, which determine fields from material properties, and inverse problems, which estimate unknown material properties when part of the field is known. Designing the functional form to satisfy initial and boundary conditions is one example. [5] Training stability and the representation of geometry are also important research questions. As a future direction, we are considering combining the representation of geometry and connectivity in GNNs with equation constraints in PINNs.

Toward Predictions for Design:

Our goal is fast, physically consistent prediction that can be used for repeated design studies and the identification of material properties. This requires considering not only computation time after training, but also the simulation data and computational effort needed for training, and behavior outside the training conditions. Which physical properties should be built into a model to accommodate changes in geometry? How should boundary conditions be represented to stabilize training? Which material properties can be identified from observations? We address these questions through an interplay between mathematical design and numerical experiments.

Related Research Examples

Our laboratory's GNN research has developed methods for geometric consistency, boundary conditions, and conservation laws through three peer-reviewed international conference papers at ICLR 2021, NeurIPS 2022, and ICML 2024. The examples below explain what each method incorporates into its prediction mechanism, alongside results for heat conduction and fluid flow. [2, 3, 4]

Predictions Consistent with Changes in Orientation: IsoGCN (ICLR 2021)

Predictions for three-dimensional anisotropic nonlinear heat conduction. The top row shows the finite element solution and the temperature distributions predicted by the different methods. The bottom row shows the error, defined as the prediction minus the finite element solution. The original figure magnifies the error by a factor of two.Figure 2. Predictions for three-dimensional anisotropic nonlinear heat conduction. The top row shows the finite element solution and the temperature distributions predicted by the different methods. The bottom row shows the error, defined as the prediction minus the finite element solution. The original figure magnifies the error by a factor of two. Source: Ref. [2], Fig. 3 (published version, ICLR 2021).

Quantities without a direction, such as temperature, and quantities with a direction, such as velocity or a temperature gradient, transform differently when an object is rotated. IsoGCN uses the relative positions of adjacent points to construct operations corresponding to spatial derivatives, such as gradients. The network structure represents this relationship by making directional outputs rotate appropriately with the input. In this way, we aim to obtain predictions that do not depend on the choice of coordinates. [2]

The numerical experiments addressed three-dimensional heat conduction in which thermal conductivity depends on direction and temperature. The model predicts the time evolution of the temperature distribution from the initial temperature, material properties, and mesh geometry. Its predictions were also compared with finite element results on geometries not used for training. The paper additionally considered graphs with approximately one million nodes to examine applicability to large-scale numerical analysis. [2]

Embedding Boundary Conditions in Prediction: PENN (NeurIPS 2022)

Incompressible flow in complex channels. The upper two rows show velocity magnitude, and the lower two show pressure. Each pair compares the original configuration with the rotated and translated configuration. The numerical reference solution is on the left, the comparison method in the middle, and PENN on the right.Figure 3. Incompressible flow in complex channels. The upper two rows show velocity magnitude, and the lower two show pressure. Each pair compares the original configuration with the rotated and translated configuration. The numerical reference solution is on the left, the comparison method in the middle, and PENN on the right. Source: Ref. [3], Fig. 3 (published version, NeurIPS 2022).

Predicting a flow depends both on the equations inside the domain and on the conditions prescribed at the inlet, walls, and outlet. PENN incorporates Dirichlet conditions, which prescribe the values of physical quantities, and Neumann conditions, which prescribe derivatives normal to the boundary, into GNN operations. The former are used in a mechanism that reproduces prescribed values during internal iterations and at the output; the latter are used in a mechanism for estimating gradients near the boundary. The method also introduces iterations based on implicit schemes to predict fields influenced by distant points. [3]

For incompressible flow in complex channels, we confirmed that the distributions of velocity magnitude and pressure at corresponding locations are preserved when the channel is rotated and translated. Under the evaluation conditions in the paper, the method improved the trade-off between inference time after training and prediction accuracy compared with an optimized conventional numerical solver. This work connects geometric symmetries and boundary conditions to the actual prediction process. [3]

Preserving the Balance between Cells: FluxGNN (ICML 2024)

Velocity distributions in a mixing flow. Each column shows four conditions: a test case, scaling, a different taller geometry, and rotation. Color indicates velocity magnitude. The scaling condition uses the separate color scale at the lower right. Conservation errors are evaluated separately from these velocity distributions.Figure 4. Velocity distributions in a mixing flow. Each column shows four conditions: a test case, scaling, a different taller geometry, and rotation. Color indicates velocity magnitude. The scaling condition uses the separate color scale at the lower right. Conservation errors are evaluated separately from these velocity distributions. Source: Ref. [4], Fig. 4 (published version, ICML 2024).

FluxGNN incorporates the principles of the finite volume method into a GNN. It learns how much of a physical quantity passes through the face shared by adjacent cells, and adds the amount leaving one cell to the other. A structure in which exchanges across internal faces cancel over the entire domain enables information exchange consistent with conservation laws. In addition to rotations, the model is designed so that physical quantities transform according to their dimensions when scales such as space and time change. [4]

For the mixing of fluids with different densities, velocity distributions were compared under rotation and scaling, and in a different geometry taller than those used for training. The figure shows predictions under these changes in conditions. The paper also separately evaluates the conservation error in the volume fraction of the mixing fluids. By connecting a conservative computational structure with the ability to accommodate changes in geometry and scale, this research aims to improve generalization to problems not encountered during training. [4]

Predicting Fields and Estimating Material Properties from Equations: PINNs

A forward problem using a PINN for waves in a liquid containing bubbles. The horizontal axis is position, the vertical axis is the waveform value, and color indicates time. Solid lines are PINN predictions and dashed lines are numerical reference solutions. The predictions are averages over five runs with different random initializations.Figure 5. A forward problem using a PINN for waves in a liquid containing bubbles. The horizontal axis is position, the vertical axis is the waveform value, and color indicates time. Solid lines are PINN predictions and dashed lines are numerical reference solutions. The predictions are averages over five runs with different random initializations. Source: Ref. [5], Fig. 5 (arXiv:2610.32668v1, under review).

Our laboratory is investigating how to incorporate equations into learning for the prediction of waves and flows and the estimation of unknown material properties. For example, a study with Takeru Hasegawa as first author addresses a nonlinear wave equation for waves in a liquid containing bubbles. The network structure satisfies the initial waveform and spatial periodicity. Training uses the equation and data obtained from a numerical reference solution to predict waveforms whose amplitudes decrease over time. [5]

An inverse problem estimating the initial bubble radius. Only the initial radius is estimated; the other material properties are treated as known. The horizontal axis is the training iteration, and the vertical axis is the ratio of the estimate to the true value. Estimates initialized at twice or half the true value approach a ratio of one. Solid lines are averages over five runs, and shaded bands show the standard deviation.Figure 6. An inverse problem estimating the initial bubble radius. Only the initial radius is estimated; the other material properties are treated as known. The horizontal axis is the training iteration, and the vertical axis is the ratio of the estimate to the true value. Estimates initialized at twice or half the true value approach a ratio of one. Solid lines are averages over five runs, and shaded bands show the standard deviation. Source: Ref. [5], Fig. 9, upper right (arXiv:2610.32668v1, under review).

In the inverse problems, we first examined how strongly differences in material properties affect the waveform, then attempted to estimate seven material properties one at a time, treating the others as known. Estimates close to the true values were obtained for five properties, including the initial bubble radius. However, the polytropic exponent of the gas did not converge sufficiently, and the surface tension coefficient, which had little effect on the waveform, could not be estimated. Incorporating equations into learning therefore helps us consider not only prediction, but also which material properties can be inferred from data. These results are based on the public arXiv version of a paper that is under review. [5]

We are also studying a PINN-based method for analyzing incompressible flow around complex geometries by combining object shapes obtained through photogrammetry with neural distance functions. By representing geometry as a function that returns the distance to the boundary and constraining the physical field with equations, we aim to extend this approach to analyses involving actual geometries.

Collaborators

Related Papers