arXiv:2610.09126cs.LGOct 2026

Manuscript Offprint

arXiv:2610.09126

Domain-informed Adaptive Sampling for Generalizable PINNs in Metal Additive Manufacturing via Conditional Flow Matching

Hyeonsu Lee, Jihoon Jeong

Abstract

Accurate thermal modeling is essential in metal additive manufacturing (AM) for understanding the process-structure-property chain. Physics-informed neural networks (PINNs) offer effective surrogate thermal modeling by minimizing physics-based residual losses at collocation points. However, prior works typically rely on manually-crafted, static collocation sampling strategies, which are neither principled nor scalable across process conditions, hindering their generalization capability. In this work, we provide theoretical analysis through empirical risk minimization, showing that process condition-aware adaptive sampling is strictly more favorable than conventional static sampling for generalization. Building on this insight, we propose an adaptive sampling strategy within a two-stage framework: (1) a conditional Flow Matching model that learns approximate high-residual distributions across different process conditions, and (2) a mixed sampling strategy combining this distribution with a domain-informed base distribution to generate adaptive collocation points for refining the PINN predictor. Experiments on metal AM numerical benchmarks demonstrate that our method consistently outperforms state-of-the-art PINN baselines, achieving an average 62.1% reduction in relative L2L_{2} error under an identical collocation budget, by capturing process-dependent heat dissipation regions often overlooked in the literature. To the authors' knowledge, this is the first adaptive sampling strategy for PINNs in metal AM, contributing to the enhanced generalization and broader applicability.

1 Introduction

Metal additive manufacturing (AM) has received significant attention for its potential across diverse applications ranging from aerospace, automotive, and agriculture to construction and infrastructure (Frazier, 2014). Due to the nature of metal AM processes, its primary advantage lies in its flexibility in realizing complex geometric variations and material compositions tailored to the unique requirements of each application (Tofail et al., 2018). However, process instability and inconsistent part qualification are critical bottlenecks to its widespread industrial adoption (Svetlizky et al., 2021).

To overcome these obstacles, accurate thermal field information is known to be essential in metal AM for understanding defect formation mechanisms and the process-structure-property chain (Smith et al., 2016; DebRoy et al., 2018). As such, temperature field prediction under unseen process conditions enables effective process optimization, assuring product quality in metal AM (Ren et al., 2020).

Recently, Physics-Informed Neural Networks (PINNs) have been widely adopted as effective thermal surrogate models in metal AM. PINNs are trained by minimizing physics-based residuals at sampled collocation points to satisfy governing PDEs, boundary conditions (BCs), and initial conditions (ICs), thereby yielding

*Corresponding author. jihoonjeong@tamu.edu physically consistent, interpretable, and reliable predictions (Raissi et al., 2019). Notably, PINNs enable mesh-free and data-efficient, or even data-free training (Zhu et al., 2021), which has driven extensive research using PINNs for temperature field prediction in metal AM.

Previous progress in PINNs for metal AM can be broadly categorized into two perspectives: (1) improving performance by accounting for steep, highly transient thermal gradients in metal AM processes when training PINNs (Cooper et al., 2023; Peng and Panesar, 2024, 2025; Yang et al., 2026), and (2) enhancing generalization across unseen process conditions for rapid inference (Faegh et al., 2025; Peng et al., 2025; Sajadi et al., 2025). Given that metal AM is especially known for its flexibility tailored to diverse applications through varying process conditions including material compositions, prior research has largely focused on advancing the generalizability of PINNs to align with the core flexibility that metal AM promises.

In this context, recent works have drawn significant attention to parametric PINNs over conventional non-parametric PINN models, owing to their ability to amortize rapid inference across unseen process conditions. Unlike non-parametric PINNs, which often necessitate costly re-training or transfer learning-based adaptation for a single, specific target process condition (Liao et al., 2023), parametric PINNs incorporate PDE parameters as additional inputs, enabling a single trained model to generalize across varying process conditions. For instance, Hosseini et al. (2023) developed a parametric PINN to generalize across different combinations of process parameters (e.g., laser power and scanning speed) and material properties within a limited range. Yuan et al. (2025) proposed a parametric PINN for generalization to unseen process parameters alongside a transfer learning framework for rapid adaptation to different process conditions. Most recently, Lee and Jeong (2026) demonstrated that a decoupled parametric PINN architecture, along with physics-guided output scaling and a hybrid optimization strategy, achieves strong generalization performance across a wide range of material compositions including both in-distribution and challenging out-of-distribution (OOD) regimes. Their approach outperformed both conventional non-parametric PINNs and prior parametric PINNs, highlighting the potential of parametric PINNs as an advanced surrogate model for thermal modeling in metal AM.

These recent advances clearly show that parametric PINNs hold significant potential, not only in their capacity for rapid inference, but also in superior overall generalization performance across unseen process conditions. Nevertheless, to the best of the authors' knowledge, one critical limitation remains unaddressed in the literature:

Although collocation sampling strategies are critical for both stable convergence and overall predictive performance in PINNs (Wang et al., 2022), previous research often relies on a single, manually-crafted collocation sampling strategy that is static and independent of process conditions (Liao et al., 2023). While this strategy is informed by domain knowledge of metal AM and is shown to be adequate to some extent in terms of ensuring training stability and performance (Faegh et al., 2025), it may be neither effective nor scalable, particularly for parametric PINNs, warranting further investigation.

Specifically, previous approaches statically concentrate collocation points in regions where steep and transient thermal gradients are expected (e.g., near the laser path), while remaining relatively coarse elsewhere. However, as evidenced by recent prior work (Lee and Jeong, 2026), high-residual regions—where predictions deviate significantly from the physics-based solution—shift substantially depending on process conditions. For instance, materials with lower thermal conductivity localize intense heat near the laser path, creating sharply concentrated high-residual zones; conversely, higher thermal conductivity accelerates heat transport, causing high-residual regions to shift or expand toward broader heat dissipation zones. In this sense, the conventional static collocation sampling strategy that is independent of process conditions can be suboptimal and ultimately inhibits parametric PINNs from effectively generalizing across diverse process conditions.

To this end, we introduce a domain-informed adaptive sampling for parametric PINNs in metal AM. Specifically, our main contributions are threefold:

  1. Theoretical Analysis on Generalization Error: We provide a theoretical analysis of how collocation sampling impacts generalization across unseen process conditions within an empirical risk minimization framework. We demonstrate that PINN generalization error decomposes into optimization and statistical errors, where the latter is heavily governed by the variance of the loss estimator. In this regard, we prove that conventional static sampling strategies are strictly less effective in generalization than adaptive sampling strategies.

  2. Adaptive Sampling for PINNs in Metal AM using Conditional Flow Matching: Grounded in our theoretical insights, we present an adaptive sampling framework for PINNs in metal AM using Flow Matching (Lipman et al., 2022). By conditioning the generative model on both time steps and PDE parameters, our framework effectively approximates the process condition-dependent high-residual distribution and enables efficient generation of collocation points in a single pass. To the best of the authors' knowledge, this is the first adaptive sampling framework introduced for PINNs in metal AM.

  3. Integration of Metal AM Domain Knowledge: We incorporate domain-informed physical priors both to warm-start the residual landscape that guides the generative model and to construct a base sampling distribution that is mixed with the learned proposal during training. This integration stabilizes and accelerates training for both the generator and the predictor.

We validate the proposed method through extensive experiments on a widely used numerical benchmark, covering five representative metal alloys that span both in-distribution and OOD regimes. Under an identical collocation point budget, our method reduces the relative L2L_{2} error of the current state-of-the-art parametric PINN baseline (Lee and Jeong, 2026) by up to 70.1%, purely by reallocating where collocation points are sampled.

Our qualitative analysis further shows that high-residual regions are not confined to the vicinity of the laser track, as commonly assumed in prior work, but also emerge in heat dissipation regions that evolve with each material's thermophysical properties. Capturing these process condition-dependent shifts, rather than sampling near the laser track alone, proves essential to accurately predicting subsurface and far-field thermal behavior. We additionally conduct an ablation and sensitivity analysis, confirming that integrating domain knowledge is critical to achieving both training stability and superior sample efficiency relative to an uninformative uniform base, which reflects the setting where the residual landscape is unknown a priori. We conclude with a discussion of the limitations of the present study and directions for future work.

In summary, this work contributes a theoretical foundation for collocation sampling in PINNs from a generalization standpoint, a practical adaptive sampling framework that scales across process conditions via amortized generative modeling, and an integration of domain knowledge that ensures stable and efficient training. Together, these contributions move parametric PINNs in metal AM closer to strong generalization and rapid inference across diverse process conditions.

References (27)