Manuscript Offprint
arXiv:2610.09126Domain-informed Adaptive Sampling for Generalizable PINNs in Metal Additive Manufacturing via Conditional Flow Matching
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 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:
-
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.
-
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.
-
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 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.
2.1 Nomenclature
We leave the nomenclature in Appendix A.1.
2.2 Problem Setup
Let be the bounded spatial domain representing the part build, and be the time interval over which the AM process is simulated. The spatiotemporal coordinates thus lie in , so that with . Let be a compact set of PDE parameters within known bounds. In general, can represent any process condition, including, for instance, process parameters (e.g., laser power, scanning speed) and thermophysical properties of the feedstock material (e.g., density, heat capacity, thermal conductivity). Note that while our theoretical analysis applies to general process conditions, our experiments focus specifically on variations in material properties for benchmarking against previous works.
Given the governing PDE defined over , parametric PINNs employ a deep neural network with learnable parameters to predict the temperature field . Training is performed by minimizing a loss function based on the physics-based residuals. Here, the PDE residual is given by , where is the governing nonlinear differential operator. Combined with the corresponding BC and IC residuals, and , alongside their balancing hyperparameters , , and , the total squared residual is formulated as:
In this study, the governing PDE corresponds to the 3D transient heat diffusion equation with Fourier conduction, coupled with convective, radiative, and Gaussian laser-flux BCs, and an ambient temperature IC (the detailed formulations are in Appendix A.2).
Our goal is to achieve generalization across the entire spatiotemporal domain and PDE parameter space . We formalize this objective within the standard empirical risk minimization framework by defining two key measures: the population loss and the empirical loss . First, the population loss over is defined as:
where is assumed to be the uniform distribution over . However, in practice, cannot be feasibly computed due to high-dimensional integration. Training therefore relies on Monte Carlo estimation with collocation points drawn i.i.d. from a proposal density . Here, note that we assume both time and PDE parameters are independently drawn from fixed uniform distributions across both training and test evaluations. Consequently, the joint proposal density factorizes as . Using importance sampling, the empirical loss estimator is then constructed as:
Throughout this study, we denote as the general spatial proposal. This includes the conventional static baseline proposals , which depend on to follow the time-dependent laser track but remain independent of , and our proposed adaptive proposal , which dynamically adapts to both and for a given . Since the target distributions for and are assumed to be fixed uniform across both training and test settings, we aim to design the adaptive spatial conditional distribution to minimize the population loss and thereby achieve effective generalization across unseen process conditions.
2.3 Theoretical analysis of collocation sampling and generalization
In this subsection, we provide a theoretical analysis of how the choice of proposal affects the excess generalization error. We first show that this error decomposes into an optimization error and a statistical error, with the latter bounded by the variance of the empirical loss estimator . To lower this bound and thereby minimize the generalization error, we prove that the adaptive proposal is strictly superior to conventional -independent proposals . Finally, we show that the optimal adaptive proposal is proportional to the squared residual. Figure 1 provides a visual overview of these theoretical results.
Let be the population loss minimizer over the hypothesis class , the empirical loss minimizer under proposal , and the parameter returned after training. The excess generalization error, the deviation of the population loss of the trained parameter from the minimal population loss , admits the standard decomposition (Shalev-Shwartz and Ben-David, 2014):
The detailed derivation of this decomposition is provided in Appendix A.3. In other words, the excess generalization error is comprised of an optimization error, which is controlled by optimization techniques (e.g., model architecture, optimizer) and, more importantly, does not depend on the proposal q, and a statistical error, which depends directly on q and the sample size of collocation points N. Thus, reducing this statistical error toward zero is key to achieve true generalization. The statistical error in turn admits the following variance-dependent generalization bound:


Figure 1: Visual overview of Section 2.3. Left: Proposition 2.1 decomposes the generalization error into an optimization error, which is independent of the proposal , and a statistical error that scales as . This implies that reducing the variance of the empirical loss estimator, , is a more effective lever for minimizing the statistical error, and thereby the overall generalization error, than merely increasing the total sample size . Right: To reduce , Theorem 2.1 states that conventional -independent static sampling is strictly inferior to adaptive sampling, as its infimum variance imposes a hard ceiling, whereas the -conditioned adaptive proposal strictly lowers this variance floor. Lemma 2.1 further characterizes the optimal adaptive proposal as being proportional to the squared residual.
Proposition 2.1 (Variance-dependent generalization bound). With probability at least , the supremum of the statistical error is bounded as:
where with denoting the per-sample variance of .
The proof is provided in Appendix A.4. Proposition 2.1 delivers the central motivation of this paper: for a conventional static proposal , remains a fixed constant that cannot be changed. Moreover, merely increasing is not computationally efficient as the leading term on the right hand side scales as . For instance, achieving a tenfold reduction in error requires a hundredfold increase in . These observations justify the need for an adaptive sampling proposal , which allows to be directly minimized, thereby reducing the statistical error. Therefore, instead of inefficiently increasing , an adaptive proposal enables us to effectively minimize the generalization error by directly targeting the constant in (5), whereas the conventional methods cannot directly reduce .
In this paper, we further provide the theoretical results showing that the conventional static proposal, even the optimal case, is always strictly less effective than the adaptive sampling proposal:
Theorem 2.1. Let and denote the families of conditional and unconditional ( -independent) proposal distributions, respectively. Define the optimal variance bounds as and . Then, for every ,
Remark 2.1. Equality holds if and only if the squared residual separates as , meaning its normalized spatial shape is independent of .
The proofs are provided in Appendix A.5. In other words, Theorem 2.1 and Remark 2.1 establish the superiority of conditional sampling over conventional static strategies under theoretical guarantee. In the conventional static strategies, their independence from imposes a fundamental performance ceiling . Intuitively, this ceiling is unavoidable because process conditions significantly alter the residual landscapes rather than merely scaling their overall magnitude. Since no single -independent spatial profile can simultaneously capture these parameter-dependent shape variations, the residual landscape is inherently non-separable, guaranteeing that strictly holds in metal AM thermal modeling. By conditioning the proposal directly on , our method systematically breaks this static variance barrier and approaches , enabling robust generalization across diverse process regimes.
Finally, we now characterize the optimal case of adaptive proposal that attains explicitly. Within the parameter-conditioned family , the variance functional yields a unique minimizer:
Lemma 2.1 (Variance-optimal adaptive proposal). Fix with . Within , the spatial conditional that minimizes the variance functional is the one that places spatial mass in proportion to the squared residual under each process condition and each instant:
The proof is directly from the equality condition of the Cauchy–Schwarz inequality applied in Case 1 of the proof of Theorem 2.1 (Appendix A.5).
To sum up, minimizing the generalization error is strongly tied to reducing the statistical error, and the effective lever is the variance of the empirical loss estimator rather than merely expanding the sample size N. In this regard, conventional static, -independent proposals are strictly worse than -conditional proposals , since the minimal variance of the latter is strictly lower. The -conditional proposal attaining that minimum is proportional to the squared residual under each process condition and instant, which is precisely an adaptive sampling proposal.
2.4 Domain-Informed Adaptive Sampling via Amortized CFM
In the previous subsection, we demonstrated that the -conditional adaptive proposal is superior to a conventional static proposal and that its optimal form is proportional to the squared residual . Nevertheless, directly implementing in practice faces the following challenges. First, calculating the exact normalization constant for is computationally intractable due to the high-dimensional integration of . Second, drawing samples directly from this non-standard distribution across every and the PDE parameter space is non-trivial, requiring expensive sampling procedures such as MCMC. Finally, evaluating the squared residual at every sampling iteration introduces significant computational overhead, especially in high-dimensional domains like in our case.
To address these challenges, we propose a domain-informed adaptive sampling using Flow Matching (FM). We first use physical priors based on metal AM domain knowledge to warm-start the initial predictor, obtaining a stable and reliable residual distribution . We then use Flow Matching to approximate the target residual distribution as a continuous function and condition FM on both time t and process conditions , which we refer to as Conditional Flow Matching (CFM), to alleviate the curse of dimensionality. Finally, we blend the domain-informed base with the learned high-residual proposal to handle the exploration-exploitation trade-off, and finally train with the refined collocation points.
This approach reduces computational overhead and mitigates the curse of dimensionality. Flow Matching enables continuous density modeling, serving as a scalable alternative to traditional sampling algorithms. By further training the FM model conditioned on both time t and process conditions , the sampling process is amortized, allowing direct sample generation from high-residual distributions for each process condition in a single forward pass. This streamlines the training pipeline and provides representative collocation points per process condition, enabling the predictor to minimize generalization error across unseen process conditions—our primary objective.
2.4.1 Flow matching background
We briefly review Flow Matching (FM), the deep generative backbone used in this study. Flow Matching (Lipman et al., 2022) is a likelihood-free training criterion for continuous normalizing flows designed to learn a time-dependent vector field that transports samples from a tractable source distribution to a desired target domain-informed prior (PDE domain)
domain-informed prior (BC top)
CFM samples
★ laser
(a)

(b)
(c)
(d)
(e)
(f)
(g)
(h)
Figure 2: Domain-informed adaptive collocation via CFM. Top (a–d): CFM transport of uniform base samples ( ) into the adaptive proposal ( ), which concentrates in high-residual regions. Bottom: (e) Domain-informed base ; (f–h) Training mixture at , and 2.5 s, where the base remains fixed while the CFM component tracks high-residual regions (visualized for Ti-6Al-4V).
distribution. Specifically, let be a family of probability densities on interpolating from a source density at to a target density at . A time-dependent vector field generates this probability path if integrating the velocity field starting from yields for every . To construct this vector field, Flow Matching regresses a parameterized vector field onto the target displacement vectors between paired source and target samples. Given a coupling with marginals and , the linear interpolant thus yields a constant velocity field .
A key advantage of Flow Matching lies in its straightforward optimization trajectory. Training Flow Matching involves a simple mean-squared error (MSE) regression while other generative models are prone to exhibit optimization challenges (e.g., GANs) (Arjovsky and Bottou, 2017). Therefore, it enables rapid conditional sample generation while maintaining training stability across high-dimensional parameter spaces.
2.4.2 Training procedure
Our proposed domain-informed adaptive sampling framework adopts a two-stage training scheme. Stage 1 trains a CFM generator to amortize the variance-optimal proposal , while Stage 2 trains the final predictor using a domain-informed mixture proposal that balances exploration and exploitation. The overall training procedure is summarized in Algorithm 1.
Stage 1: Warm-start & Amortized Generator Training Let denote a -independent, domain-informed base density (visualized in Figure 2(e)). Collocation points are initially drawn from b to warm-start the predictor , until it yields physics-consistent solutions with a reliable residual distribution .
We now apply CFM to our adaptive sampling setting. Here, our goal is to learn a velocity field transporting a simple source density on to the variance-optimal target . We let be uniform on , which is convenient to sample while able to reach any high-residual region. Note that the flow-matching time is entirely distinct from the physical time , which enters only as a conditioning input held fixed along the path. In practice, collocation points for the PDE, BC, and IC residuals are drawn on different subdomains; we therefore additionally condition on a residual-group identifier , which we omit from the notation below for brevity.
To construct the targets, we freeze the source parameters and work one condition at a time. For each of uniformly sampled process conditions from , we draw a pool uniformly over , score it by , and resample elements:
Uniform candidates make the weights proportional to the residual itself, with no proposal density to estimate. We then split each draw, conditioning on and taking as the flow target; because the weights are
Algorithm 1 Domain-Informed Adaptive Sampling via Conditional Flow Matching
Require: domain-informed base ; mixture weight ; number of stored conditions ; pool size ; resample size ; iteration counts , , ; batch sizes (CFM) and (PINN); ODE steps .
Stage 1: train the amortized generator
1: (Warm-start) Train the source predictor for steps on the residual loss (1), drawing , uniformly and ; then freeze .
2: (Score) For each of uniformly drawn conditions : draw a pool uniformly over and score every element by .
3: for steps do ▷ CFM training
4: Pick conditions among the stored ones; for each, resample one flow target from via (8) and pair it with a source draw .
5: Update by one gradient step on in (9).
6: end for
Stage 2: train the final predictor with the frozen generator
7: Initialize from scratch.
8: for steps do
9: Draw , uniformly and from the mixture (10) for ; samples from the component are obtained by integrating with forward-Euler steps from .
10: Update by one gradient step on the residual loss .
11: end for
12: return the generator and the predictor .
normalized within a condition, this recovers exactly of Lemma 2.1. Per-condition normalization also fixes every at targets, so the parameter marginal is uniform by construction.
Pairing each target with an independent source draw , we train via stochastic gradient descent on
where is the linear interpolant and . The trained then defines the generator as the law of obtained by integrating from to , which we approximate with the forward Euler scheme using .
Stage 2: Predictor Training via Domain-Informed Mixture In Stage 2, we freeze the trained CFM generator and initialize the final predictor from scratch. In contrast to Stage 1, the collocation points is drawn from both the learned proposal and the base with the proposed domain-informed mixture proposal :
where the mixture weight controls the exploration-exploitation trade-off: smaller more aggressively exploits the learned high-residual regions, while larger retains broader coverage that defends against estimation error in . The predictor parameter are then updated on the residual loss evaluated at collocation points drawn from . This prevents the risk that exclusive sampling from the learned high-residual proposal neglects underexplored regions where initially underestimates the residual.
3 Experiments
System Description To evaluate the proposed method, we adopt a widely recognized numerical benchmark (Liao et al., 2023; Faegh et al., 2025; Lee and Jeong, 2026) based on a bare-plate laser scanning example representative of metal AM processes. In this benchmark, a moving laser heat source scans the surface of a metal substrate, generating highly localized, transient, and rapid thermal gradients governed by laser heating, conductive heat transfer within the substrate, and convective/radiative heat losses at the boundaries. Representative snapshots of the resulting temperature field are illustrated in Figure 3. To ensure a fair comparison, all simulation setups and process parameters follow the previous research (Lee and Jeong, 2026).

Figure 3: Ground-truth temperature field snapshots at t = 0.5, 1.5, and 2.5 s obtained via high-fidelity JAX-AM simulation for the bare-plate scanning benchmark (visualized using Ti–6Al–4V). The thermal evolution captures the localized moving laser heat source and subsequent heat diffusion.
Process conditions . Following the experimental design in Lee and Jeong (2026), we consider five materials widely used in metal AM as unseen process conditions to assess the generalizability of the proposed framework. It is noteworthy that variations in each material's thermophysical properties substantially alter its thermal behavior, inducing significant shifts in the underlying residual landscapes. We define the continuous process condition space over the characteristic ranges of density , heat capacity , and thermal conductivity :
where the boundaries are set to kg/m , J/(kg·K), and W/(m·K), identically applied at both training and testing phases as formulated in Section 2.2. We evaluate five representative materials with properties denoted as :
• Ti–6Al–4V (4430, 560, 6.7): Standard aerospace alloy characterized by a high strength-to-weight ratio.
• Inconel 718 (8220, 435, 11.4): Nickel-based superalloy featuring high-temperature thermal stability.
• SS 316L (8000, 500, 16.0): Austenitic stainless steel with high corrosion resistance.
• AlSi10Mg (2670, 950, 150): Lightweight structural alloy whose thermal conductivity exceeds the upper limit of P by .
• Copper (8960, 385, 401): Highly conductive material with an extreme thermal conductivity exceeding the upper bound of P by more than .
Here, the first three materials represent in-distribution (ID) cases, whereas AlSi10Mg and Copper serve as OOD extrapolation cases as their thermal conductivities substantially exceed the training upper bound . Note that OOD evaluation is known to be notoriously challenging compared to ID cases, allowing us to validate whether the extrapolation capability demonstrated in prior work (Lee and Jeong, 2026) remains effective under our adaptive sampling scheme.
Baselines and Evaluation Metric We evaluate the proposed method against two PINN baselines.
• Non-parametric PINN (N-PINN) (Liao et al., 2023): Conventional PINN formulation where material properties are treated as fixed constants. A separate network must be trained from scratch for each material condition.
• Advanced Parametric PINN (AP-PINN) (Lee and Jeong, 2026): State-of-the-art parametric PINN for material-agnostic thermal modeling in metal AM, trained using a static domain-informed collocation strategy . Our predictor adopts this architecture as our backbone without modification, ensuring that any performance gain is entirely attributable to the proposed adaptive sampling strategy.
For quantitative comparison, we report the relative error, a standard metric in the PINN literature (Raissi et al., 2019). This metric measures the normalized discrepancy between the predicted temperature field and the ground-truth solution T over the uniformly discretized spatiotemporal domain . For a given process condition , the relative error is defined as:
Here, represents the reference ground-truth temperature field obtained via JAX-AM (Xue et al., 2023), an open-source library for high-fidelity FEM simulations in metal AM. denotes the total number of nodes in the FEM simulations, which is in this study.
Implementation Details To maintain consistency across all models, baselines are implemented following their original hyperparameters and training configurations. The loss weights are set to following Liao et al. (2023); Lee and Jeong (2026). Both baselines adopt the same domain-informed static collocation sampling strategy, and we adopt their defined base distribution for our method as well. Furthermore, the total collocation point budget and its per-group allocations strictly match the baseline setup, guaranteeing an identical sampling budget across all methods.
For our sampling scheme, the CFM velocity network is parameterized using 3 hidden layers of width 128 with SiLU activations, encoding the flow-matching time via a 32-dimensional sinusoidal embedding. The generator is a substantially smaller network relative to our predictor , which is identical to the predictor of the AP-PINN baseline. The mixture weight is fixed to , and its hyperparameter sensitivity is discussed in the following subsection. Note that training the CFM generator takes approximately 2 minutes on a single GPU and drawing adaptive samples adds less than 1% to the per-run training time relative to training .
All quantitative results are reported as the mean ± standard deviation computed across five random seeds. Experiments were conducted on a single NVIDIA RTX 5090 GPU using Python 3.10 and PyTorch 2.9. The complete implementation, including data and code are available at https://github.com/hsleecri/AdaptiveSamplingPINN-AM.
https://github.com/CMSL-HKUST/jax-am
4 Results and Discussion
Quantitative Evaluation Table 1 summarizes the quantitative comparison between the baselines and our proposed method. (Qualitative temperature fields from our predictions and FEM ground-truth solutions at s, 1.5 s, and 2.5 s are provided in Appendix A.7.) While the state-of-the-art parametric PINN baseline (AP-PINN) outperforms the non-parametric baseline (N-PINN) across five material spanning both ID and OOD regimes, our proposed method considerably outperforms both baselines. Specifically, our method further reduces the relative error of AP-PINN by an average of 62.1% and up to 70.1%, achieving consistent gains across all materials.
Table 1: Relative error [%] (mean std over five seeds) across five materials. Average denotes the mean across all five materials. The last row reports the error reduction of the proposed method relative to the AP-PINN baseline. Lower is better.
| Method | Average | In-distribution (ID) | Out-of-distribution (OOD) | |||
|---|---|---|---|---|---|---|
| Ti-6Al-4V (4430, 560, 6.7) | Inconel 718 (8220, 435, 11.4) | SS 316L (8000, 500, 16.0) | AlSi10Mg (2670, 950, 150) | Copper (8960, 385, 401) | ||
| N-PINN | ||||||
| AP-PINN | ||||||
| Proposed | ||||||
| Reduction [%] | ||||||

Figure 4: Training dynamics (mean std over five seeds): (a) average relative error on the five materials, and (b–d) the PDE, BC, and IC training losses evaluated on each method's own sampled collocation points. The proposed method reaches a lower relative error despite higher training losses on the three losses, which is a direct consequence of concentrating collocation points in high-residual regions.
Training Loss Analysis To discover where this superiority stems from, Figure 4 illustrates the training dynamics of AP-PINN alongside our proposed method. Interestingly, the PDE, BC, and IC training losses of the proposed method are consistently higher than those of AP-PINN, whereas our relative error is substantially lower. We attribute this phenomenon to the expected signature of adaptive collocation: our adaptive sampling proposal concentrates a higher proportion of points in high-residual regions, naturally leading to a larger residual over the sampled points.
Specifically, after the transition of optimizers from Adam to stochastic L-BFGS (gray dashed line), our model starts to minimize the three losses simultaneously, indicating its convergence toward a good local optimum. During this stage, PDE and BC losses are dramatically reduced, and the relative error rapidly decreases at the same time. This indicates that, despite these higher evaluated residuals, the strategically placed collocation points allow the model to learn the underlying thermodynamics far more effectively across both the spatiotemporal domain and PDE parameter space. Consequently, effective training on points sampled from high-residual regions ultimately yields significantly lower relative errors.
To substantiate this claim, we re-evaluate the training dynamics using the weighted sum of residuals (1) computed on collocation points uniformly sampled over , which serves as an unbiased estimator of the true population loss , rather than relying on the empirical loss estimator evaluated under

Figure 5: Comparison of empirical loss (3) and population loss (2) (mean std over five seeds): (a) training evolution and (b) final values. The proposed method exhibits a higher empirical loss during training, yet consistently achieves a lower population loss by focusing samples on high-residual regions, which leads to more effective learning.
each method’s respective proposal distribution (i.e., the learned proposal for our method and the static domain-informed proposal for AP-PINN). As shown in Figure 5, the proposed method exhibits a substantially lower estimated population loss compared to AP-PINN. Conversely, the empirical loss evaluated on its own proposal is higher for our method. This confirms that the proposed adaptive proposal concentrates collocation points in high-residual regions during training, ultimately leading to superior generalization performance.
Thermal History Comparison To examine how these reductions in both residuals and relative error translate to temperature field predictions, we compare the thermal histories predicted by AP-PINN and the proposed method against the ground-truth FEM solutions in Figure 6a, alongside their corresponding temperature deviations in Figure 6b. This comparison is evaluated at three specific positions below the scan track ( ) to capture the distinct thermal behavior of each material: at the top surface ( ), 2 mm below, and 4 mm below the top surface (which corresponds to 2 mm upward from the bottom surface).
As shown in Figure 6a, both methods closely match the FEM reference at the top surface. They both successfully capture the rapid transient thermal gradients induced by laser irradiation across all materials, as well as accounting for their distinct temperature magnitudes driven by varying thermophysical properties. At 2 mm depth, however, deviations begin to emerge as differences in thermophysical properties lead to distinct thermal conduction patterns. With increasing depth, the predictions diverge significantly. At 4 mm depth, AP-PINN predicts a constant ambient temperature that completely misses the subsurface thermal profile, whereas our method accurately captures both the peak magnitude and profile evolution.
A closer look at Figure 6b reveals the primary advantages of our approach in capturing heat dissipation regions. For the materials with low thermal conductivity (i.e., Ti-6Al-4V, Inconel 718, and SS 316L), deviations grow more noticeable over time and at greater distances from the laser track. Conversely, for AlSi10Mg and Copper with much higher thermal conductivity and thus higher thermal diffusivity ( ), the performance gap appears early during laser irradiation on the top surface due to rapid heat dissipation in these highly conductive materials. As the heat absorbed from the laser irradiation quickly dissipates toward the subsurface due to high thermal diffusivity, the deviations between the two methods are notable at early times rather than at late times, unlike in the in-distribution materials with low thermal conductivity and low thermal diffusivity. Therefore, it can be confirmed that our adaptive collocation strategy successfully captures distinct, material-dependent thermal behaviors, with advantages particularly pronounced in heat-dissipating regions: at late times in the far field for low-conductivity materials, and across both early times and near-to-far fields for high-conductivity materials. Finally, the near-zero standard deviation of AP-PINN's predicted temperature further confirms that this failure stems from a structural limitation in its static collocation.
Despite the superiority of our method especially in the heat dissipation regions, both approaches exhibit notable deviations from the FEM reference under direct laser irradiation, particularly for low-conductivity materials. This discrepancy likely stems in part from the high-frequency nature of these regions, driven by the steep thermal gradients and spikes induced by laser irradiation. This aligns with the well-known
Proposed
AP-PINN
FEM (reference)

(a) Thermal histories predicted by AP-PINN and ours
Proposed
AP-PINN
FEM (reference)

(b) Deviations from FEM by AP-PINN and ours
Figure 6: Comparison of thermal histories at increasing depths below the laser scan track across five materials (columns) at the top surface, 2 mm, and 4 mm depth (rows) (mean ± std over five seeds): (a) predicted temperature profiles and FEM reference and (b) temperature deviations relative to the FEM reference. Both methods match well at the top surface under direct laser scanning, but the AP-PINN baseline underperforms significantly in late-time and far-field regions where heat dissipation governs over laser irradiation. Ultimately, AP-PINN misses the subsurface thermal profiles entirely at 4 mm depth across all materials, whereas the proposed method accurately captures it.
spectral bias of neural networks, which is further amplified in PINNs because the residual involves high-order derivatives, making high-frequency regions notoriously difficult to resolve (Tancik et al., 2020; Wang et al., 2021). Because our problem formulation assumes a uniform temporal distribution of time steps, the sampling density remains uniform near these transient thermal peaks. Incorporating time steps into our adaptive sampling scheme could alleviate this discrepancy, though at the cost of additional optimization and computational complexity. A more fundamental solution may lie in alternative feature engineering of the spatiotemporal domain, for instance, mapping to the Fourier domain to better resolve high-frequency regions (as in Fourier Neural Operators (FNO) (Li et al., 2020)), which we leave as a promising direction for future work.
Qualitative Analysis Figure 7 compares the top-surface and cross-sectional temperature field deviations relative to the ground-truth FEM solutions for both the AP-PINN baseline and our proposed method at t = 0.5, 1.5, and 2.5 s. Overlaid on the deviation fields are the collocation points sampled by each strategy: the conventional, manually crafted static sampling and our domain-informed adaptive sampling. Here, Inconel 718 and Copper are selected as representative low- and high-thermal-conductivity materials, respectively. Deviations for the remaining evaluation materials are provided in Appendix A.8.
Notably, the proposed method substantially alleviates the deviation between the AP-PINN baseline and FEM reference in all panels. AP-PINN exhibits a growing region of under-prediction in heat dissipation regions for both materials and at every time step. For the low-conductivity material Inconel 718, at the early time step ( ), when the laser has only just begun irradiating the top surface, the absorbed heat remains concentrated near the melt pool, and the temperature deviations are similarly localized to this region. As the laser moves along the track and time passes, this failure to capture heat dissipation propagates along each material's heat dissipation path: toward the subsurface where heat accumulates for the low-conductivity Inconel 718, and nearly parallel to the laser track for the high-conductivity Copper. These consistent failures highlight a fundamental limitation of conventional, manually crafted static sampling, which concentrates points almost exclusively near the laser track to ensure stable convergence of PINNs in metal AM, leaving substantial room for improvement in capturing the rapid-cooling zones where heat dissipates.
Our domain-informed adaptive proposal addresses this limitation by augmenting the conventional sampling region with a learned proposal that accounts for the distinct thermal behaviors induced by process conditions, dynamically allocating points along the evolving heat dissipation pathways where errors would otherwise accumulate. Because these pathways vary considerably with thermophysical material properties, effective collocation requires more than sampling the melt pool along the laser track alone. By dynamically reallocating points to these fast-cooling, high-gradient regions, our method suppresses the deviations prominent in the baseline to within approximately K across all time steps and all five evaluation materials, with progressively larger gains as heat continues to accumulate and dissipate over time.
Collocation Sampling Distribution Comparison Figure 8 presents the marginal distributions along each spatial dimension where the conventional approach and our adaptive sampling proposal concentrate collocation points. The conventional, domain-informed yet static sampling strategy distributes points uniformly along the x- and y-dimensions, while along the z-dimension it concentrates points predominantly near the top surface with a coarser distribution elsewhere. In contrast, our proposed method samples more heavily in high-residual regions, particularly during early time steps and near the boundaries. This behavior aligns with the findings in Figure 7: at an early time step ( ), when heat from laser irradiation has not yet fully dissipated toward the boundaries, collocation points are concentrated primarily near the melt pool. As time progresses and the laser traverses the track, heat propagates throughout the domain, and high-residual regions accumulate in the far-field subsurface where heat dissipates rather than remaining confined to the vicinity of the laser track. Accordingly, the points generated by our adaptive proposal shift toward lower z-levels rather than remaining restricted to the top surface.
Most importantly, the distribution of these collocation points depends strongly on the thermophysical properties of each material, as evidenced by the varying marginal distributions across materials. As thermal conductivity increases, the marginal distributions along the x- and y-dimensions become smoother, reflecting the enhanced heat diffusivity that requires allocating more points farther from the laser track. Similarly, for the z-marginal distribution, lower-diffusivity materials retain points mainly near the top surface (z =

(a) Inconel 718 ( )

(b) Copper ( )
Figure 7: Temperature deviation at , 1.5 and 2.5 s (rows), with each method's collocation points overlaid. Top-surface panels show the top boundary, cross-section panels the domain group; the dashed line marks the laser center. Both the total number of collocation points are identical while AP-PINN draws them from whereas the proposed method from the mixture in (10) with . The collocation points drawn in AP-PINN are concentrated nearby the laser irradiation zone and the top surface, which results in significant discrepancy from the FEM reference at heat dissipation regions. In contrast, the proposed method effectively allocates the collocation points on both the laser irradiation zone and the heat dissipation regions at a given time step, resulting in considerable attenuation of the discrepancies shown in the AP-PINN baseline.

Figure 8: Marginal distributions of collocation points along each spatial axis, averaged over t, across the five evaluation materials.
6 mm), while higher thermal diffusivity drives the point concentration deeper toward the bottom, where heat accumulates and dissipates to form high-residual zones, a trend further corroborated by Figure 7.
Ablation Study and Sensitivity Analysis To validate our domain-informed adaptive sampling strategy, we conduct an ablation study and sensitivity analysis on the mixture formulation by varying the mixture weight and comparing our domain-informed base distribution against an uninformative uniform base.

Figure 9: Relative error (mean ± std over five seeds) across the mixture weight for the two base distributions.
As shown in Figure 9, the domain-informed base consistently outperforms the uniform base across nearly all values of . The proposed method achieves its lowest relative error on a broad plateau over , reaching a minimum at ( ). This wide plateau highlights low sensitivity to , which stems from the complementary balance between the two sampling components: the learned proposal concentrates on heat-dissipating regions, while the base distribution ensures coverage of highly transient regions near the laser path. Conversely, setting (relying solely on the learned proposal) leads to degraded accuracy due to the lack of coverage in the transient regions.
Crucially, the base distribution governs training stability under the low-regularity conditions of metal AM. While the uniform base yields somewhat comparable performance for , its performance degrades rapidly at higher , resulting in frequent convergence failures ( ) and complete collapse ( ) due to cold-starting with uniformly sampled collocation points under steep thermal gradients. In contrast, the domain-informed base completely eliminates these bimodal failure modes as in previous research. This confirms that incorporating domain knowledge via the base distribution is essential to simultaneously achieve peak accuracy and guaranteed training stability.

(a) Inconel 718

(b) Copper
Figure 10: Signed deviation at , 1.5, 2.5 s for models trained with the domain-informed and the uniform base at the same , with each configuration's collocation points overlaid.
To physically clarify this performance gap at , Figure 10 compares the deviation fields under both base distributions. The domain-informed base places high sampling density within 1 mm of the laser track to ensure coverage of highly transient regions, whereas the uniform base severely undersamples this zone, leading to early-time underestimation near the heat source. This spatial undersampling manifests according to material properties: in low-conductivity Inconel 718, errors trail the moving beam along the traversed path, whereas in highly conductive copper ( higher conductivity), errors travel dynamically beneath the laser. By embedding domain knowledge to guarantee coverage near steep thermal gradients, the domain-informed base eliminates these systematic errors, yielding nearly featureless deviation fields across all materials.
Overall discussion In summary, our experiments show that the proposed adaptive sampling strategy substantially outperforms both baselines, reducing AP-PINN's relative error by an average of 62.1% and up to 70.1% across all five materials. Despite higher training losses, the method achieves a lower estimated population loss by concentrating collocation points in high-residual regions, which translates into accurate subsurface and far-field thermal predictions where AP-PINN's static sampling fails. This adaptivity is material-dependent, dynamically shifting according to each material's thermophysical properties, and the ablation study confirms that incorporating metal AM domain knowledge is essential for both predictive accuracy and training stability.
While the proposed method shows considerable effectiveness and is, to our knowledge, the first adaptive collocation sampling method introduced in the PINN literature for metal AM, several limitations remain. First, the state-of-the-art baseline and ours still show noticeable deviations near the melt pool under direct laser irradiation due to the extremely high-frequency thermal gradients. Second, the necessity of the domain-informed base distribution and the choice of mixture weight are justified primarily through empirical observations rather than a principled theoretical account. Third, our ground-truth data are obtained from FEM simulations, a widely adopted numerical benchmark in this literature; nonetheless, validation against actual experiments would further strengthen confidence in the method's applicability. Finally, among process conditions we vary only the feedstock material, which aligns with our main objective since thermophysical properties reshape the residual landscape more strongly than process parameters such as laser power or scan speed; still, incorporating such parameters and varying laser scan paths would help establish broader applicability.
These limitations suggest several directions for future work. As discussed earlier, incorporating the temporal dimension into the adaptive sampling scheme, or adopting Fourier-based feature encoding, could better resolve high-frequency thermal transients near the laser track. Developing a theoretical account of the domain-informed base distribution, along with a principled procedure for selecting , would strengthen the method's foundations. Validating predicted thermal histories against actual experiments would further test its applicability beyond FEM-based benchmarks. Finally, extending the framework to jointly vary process parameters and laser scan paths, in addition to feedstock materials, would help establish broader applicability across the full space of AM process conditions.
5 Conclusion
This work presents, to the best of our knowledge, the first adaptive collocation sampling strategy for PINNs in metal AM. We theoretically show that the generalization error of parametric PINNs is governed by the variance of the empirical loss estimator under the sampling proposal, and that any static, -independent proposal faces a strict variance ceiling, making it strictly less effective than adaptive sampling that accounts for process conditions. Guided by this analysis, we adopt Conditional Flow Matching so that a single amortized generator produces the near-optimal proposal for any process condition in one forward pass, and integrate metal AM domain knowledge by mixing its samples with a domain-informed base distribution for training stability.
Extensive experiments on a widely adopted metal AM benchmark demonstrate that the proposed method reduces the relative error of the state-of-the-art parametric PINN baseline by an average of 62.1% and up to 70.1%, with less than 1% additional training overhead. Analysis of the empirical and the estimated population loss, thermal history predictions, and qualitative deviation fields further reveals that this improvement stems from the ability of our adaptive proposal to dynamically reallocate collocation points toward heat dissipation regions, which conventional sampling overlooks and therefore fails to capture at increasing depth and distance from the laser path. The accompanying ablation and sensitivity analysis confirms that the domain-informed base distribution is essential for training stability, complementing the learned proposal to jointly achieve peak accuracy and robust convergence.
Taken together, our theoretical and empirical results establish that adaptive, process condition-aware collocation sampling is critical to realizing the generalization potential of parametric PINNs in metal AM. Building on the limitations and future directions discussed above, we hope this work encourages a shift from static, manually crafted collocation strategies toward theoretically grounded, adaptive sampling frameworks for PINNs in metal AM and beyond.
A Appendix
A.1 Nomenclature
| Symbol | Meaning | Unit |
|---|---|---|
| General notation | ||
| spatiotemporal collocation point | ||
| spatiotemporal / spatial domain; simulated horizon | ||
| process condition ; its (compact) parameter space | ||
| target density (uniform over ) | ||
| general proposal; variance-optimal proposal; domain-informed base; mixture | ||
| learned CFM generator approximating | ||
| mixture weight | ||
| predictor network with learnable parameters | ||
| PDE / BC / IC residuals | ||
| residual balancing weights; residual bound | ||
| population loss; empirical loss estimator | ||
| likelihood-ratio bound; estimator variance; its supremum over | ||
| minimal variance of conditional / unconditional proposal families | ||
| flow-matching time; velocity field; flow state; residual-group identifier | ||
| normalized spatial shape of the squared residual (Appendix A.6) | ||
| collocation batch; pool size; resample size; CFM batch; stored conditions; Euler steps | ||
| stage iteration counts; warm-start (source) predictor parameters | ||
| Physical quantities | ||
| spatial coordinate | m | |
| physical time | s | |
| ground-truth / predicted temperature field | K | |
| ambient (initial) temperature | K | |
| density | ||
| specific heat capacity | ||
| thermal conductivity | ||
| laser power | W | |
| laser absorptivity | - | |
| laser beam radius | m | |
| laser center position; scan velocity; scan speed | m; m/s; m/s | |
| convective heat transfer coefficient | ||
| surface emissivity | - | |
| Stefan-Boltzmann constant | ||
| laser / convective / radiative heat flux | ||
A.2 Governing Equations, Boundary Conditions, and Residuals
The spatial domain is with , the time interval is , and . The PDE parameter vector collects the three thermophysical material properties that are varied in our experiments , namely the density , the specific heat capacity , and the thermal conductivity . All remaining quantities appearing below, including the process parameters and the surface exchange coefficients, are held fixed.
Governing PDE. Transient heat transfer in the bare-plate metal AM process is governed by conservation of energy coupled with Fourier's law of heat conduction. The exact temperature field satisfies
where is the nonlinear differential operator introduced in Sec. 2.2; the nonlinearity enters through the radiative boundary term below.
Boundary conditions. The boundary is decomposed into the top surface , the side surfaces , and the bottom surface , so that . With the outward unit normal, the boundary operator is defined piecewise as
for , and the boundary conditions read on .
The laser heat flux imposed on the top surface is modeled as a Gaussian surface heat source,
where is the laser absorptivity, the laser power, and the laser beam radius. The laser center follows the prescribed scan path ; a one-dimensional scan along the -axis on the top surface is considered, i.e., . Convective and radiative fluxes act on all surfaces except , where a fixed-temperature Dirichlet condition is imposed:
with the convective heat transfer coefficient, the Stefan–Boltzmann constant, and the surface emissivity. Note that is independent of , whereas and inherit the parameter dependence of the temperature field. The quartic term in (15) is the source of the nonlinearity of the boundary value problem.
Initial condition.
with the ambient temperature.
Residuals. Substituting the network approximation into (11)–(12) yields the three residual terms appearing in Eq. (1):
Explicitly, the boundary residual combines a Neumann-type residual on and a Dirichlet-type residual on :
Each residual is evaluated on collocation points drawn from the corresponding subdomain, and the three terms are combined with the balancing weights as in Eq. (1). Note that is independent of t since it is evaluated at t = 0, and it depends on only through itself.
A.3 Proof of Excess Generalization Error Decomposition Eq. (4)
We derive the decomposition of the excess generalization error given in (4) based on the triangular inequality in statistical learning theory. Recall that is the population loss minimizer, is the empirical loss minimizer under proposal , and is the parameter returned after training. The excess generalization error is decomposed as follows:
Since is the minimizer of over , and , we have , which implies:
Applying this inequality to (21), we obtain:
Finally, bounding the last two terms by their supremum over the hypothesis class , we get:
A.4 Proof of Proposition 2.1
Prior to the proofs hereafter, we summarize the structural assumptions used throughout our analysis:
Assumption A.1 (Regularity). The target density p is a probability density on and strictly positive almost everywhere on its support.
Assumption A.2 (Residual Boundedness). There exists a constant such that almost everywhere on .
Assumption A.3 (Proposal Compatibility). The proposal density satisfies , and the likelihood ratio is bounded almost everywhere, i.e., .
Building on these assumptions, we state and prove the lemma regarding the variance of the empirical loss estimator:
Lemma A.1 (Variance of the empirical loss). Under Assumptions A.1–A.3, for every , the variance of the empirical loss estimator satisfies:
Proof of Lemma A.1. Since is an average of i.i.d. random variables, its variance is times the single-sample variance:
(26)
Expanding the first-moment expectation inside the second term gives:
(27)
Plugging this back into the variance expression, the second term simplifies to , which yields:
Multiplying by completes the proof of Lemma A.1.
Proof of Proposition 2.1. The proof proceeds in three intuitive steps: establishing a pointwise concentration bound for a fixed , uniformizing the bound over the parameter space , and isolating the precise dependence on the proposal distribution .
Step 1: Pointwise Concentration via Bernstein's Inequality. Fix any parameter vector . For the -th collocation point , define the importance-weighted random variable:
By definition, the Monte Carlo estimator is an unbiased estimator of the population loss, i.e., .
We characterize two essential moment properties of :
(i) Per-sample Variance: , as established in Lemma A.1.
(ii) Essential Boundedness: By Assumptions A.2 and A.3,
Applying Bernstein's inequality to the i.i.d. sequence , we obtain for any :
Step 2: Uniform Generalization over . To extend this concentration uniformly over all , we control the capacity of the hypothesis function class .
By standard uniform concentration techniques, for any specified confidence parameter , there exist a function class complexity metric and universal numerical constants such that, with probability at least :
where represents the worst-case per-sample variance across .
Step 3: Isolating the Dependence on Proposal . Note that the complexity term is evaluated under the intrinsic target measure , rendering and the constants completely independent of .
The choice of proposal distribution affects the upper bound strictly through:
-
The leading variance term ,
-
The secondary likelihood ratio bound .
In practical training regimes where the sample size satisfies , the term dominates the term. Thus, minimizing the estimator variance tightens the leading term of the generalization bound, which completes the proof.
A.5 Proof of Theorem 2.1
We recall from (28) that since does not depend on the proposal choice , minimizing is equivalent to minimizing the second-moment term .
Case 1: Conditional Spatial Proposal For , the spatial proposal depends on both time and parameter . Expanding the second moment explicitly:
(33)
Since for any , we multiply the integrand by this identity:
(34)
Applying the Cauchy-Schwarz inequality to the inner spatial integral for each fixed :
(35)
Equality in Cauchy-Schwarz holds if and only if . Thus, taking the infimum over all , we get :
Case 2: Unconditional Spatial Proposal For , the spatial proposal is restricted to be independent of . Starting from the second moment in (33), since is independent of , we can pass the expectation over inside the spatial integral:
Using the identity for each :
(38)
Applying the Cauchy-Schwarz inequality over for each :
(39)
Equality holds when . Hence, taking the infimum over all , we obtain :
Comparison via Minkowski's Integral Inequality To compare and , we express the inner parameter expectations using the -norm of the squared residual :
Rewriting (36) and (40) side by side:
The only difference between and is the order of the spatial expectation and the -norm: taking the spatial average first and then measuring the parameter norm, versus measuring the parameter norm first and then taking the spatial average.
By Minkowski's integral inequality:
Squaring both sides of (43) and taking the expectation w.r.t time t yields:
Subtracting from both sides gives the desired inequality:
☐
A.6 Proof of Remark 2.1
We first recall the equality condition for the continuous Minkowski inequality (43). In general, equality in the vector triangle inequality holds if and only if and are linearly dependent with non-negative scalars (i.e., they point in the same direction).
Extending this to the continuous Minkowski inequality in the -norm over the parameter space , equality holds in (43) at a fixed time if and only if all spatial functions in the family are non-negative scalar multiples of one single spatial function . That is, for almost every , there must exist a spatial factor and a -dependent factor such that the squared residual factors into a product:
To see how condition (46) relates to the spatial shape of the residual, consider its normalized spatial distribution:
Substituting the factorized form (46) into both the numerator and the denominator of (47) yields:
Since the -dependent scalar cancels out entirely, the resulting density depends solely on and , making it completely independent of .
Conversely, if is independent of , we can write . Rearranging definition (47) then gives:
which is precisely in the separable form with and .
Thus, equality holds in Theorem 2.1 if and only if the normalized spatial shape carries no actual -dependence.
This mathematical equivalence highlights a critical physical insight: it is not sufficient for the residual magnitude to vary with . Any overall magnitude variation is entirely absorbed by , which an optimally tuned -independent proposal can handle without performance degradation. For strict separation to fail (and equality to hold), the residual must maintain a fixed spatial shape across all .
Assumption A.4 (Non-degeneracy). For every , the normalized spatial shape is not -a.e. constant in on a set of times with positive -measure.
Under Assumption A.4, the condition for equality (46) is violated on a set of times of positive measure. Consequently, the Minkowski inequality (43) becomes strict, and taking the expectation over t preserves this strict inequality:
In metal AM thermal modeling, Assumption A.4 naturally holds due to the underlying physical dynamics of the system. Variations in process conditions directly change the governing PDEs and BCs. As a result, the entire residual landscape changes its spatial structure rather than just scaling up or down: localized high-residual regions shift or reshape across the domain as varies. Since a spatial profile cannot be expressed as a simple scalar multiple of a shifted or reshaped profile, the normalized shape (47) inherently varies with . This structural non-separability holds true regardless of the neural network's architecture or approximation quality, as the -dependent spatial variation is directly imprinted on the residual landscape by the physical problem itself. This completes the proof of Remark 2.1.
A.7 Qualitative temperature fields comparison

Figure 11: Temperature field at for the five validation materials (rows): FEM reference and the proposed method, on the top surface and on the cross-section. Note that each material uses its own color scale due to differences in thermophysical properties.
A.8 Temperature fields deviation from FEM

Figure 12: Temperature field at (same layout and color scales as Figure 11). The laser has advanced to and the trailing heat tail has developed.

Figure 13: Temperature field at (same layout and color scales as Figure 11). The proposed method reproduces the melt pool, the trailing heat tail, and the depth of heat penetration for every material, including the out-of-distribution AlSi10Mg and Copper.

Figure 14: Signed deviation and collocation overlay for Ti-6Al-4V ( ), plotted as in Fig. 7.

Figure 15: Signed deviation and collocation overlay for SS316L ( ), plotted as in Fig. 7.

Figure 16: Signed deviation and collocation overlay for AlSi10Mg ( ), plotted as in Fig. 7.
Acknowledgements
This work was supported by the National Research Foundation of Korea (NRF) grant funded by the Korea government (MSIT) (RS-2025-02216260, RS-2024-00431837).
Data availability statement
The data and code in this study are available at https://github.com/hsleecri/AdaptiveSamplingPINN-AM.
Generative Artificial Intelligence (AI)
The authors used Claude Sonnet 5 by Anthropic for grammar checking, polishing, and improving readability. After using this tool, the authors reviewed and edited the content as needed, and acknowledge that the authors take full responsibility for the content of the publication.
References
Arjovsky, M. and L. Bottou (2017). Towards principled methods for training generative adversarial networks. arXiv preprint arXiv:1701.04862.
Cooper, C., J. Zhang, and R. X. Gao (2023). Error homogenization in physics-informed neural networks for modeling in manufacturing. Journal of Manufacturing Systems 71, 298–308.
DebRoy, T., H. L. Wei, J. S. Zuback, T. Mukherjee, J. W. Elmer, J. O. Milewski, A. M. Beese, A. d. Wilson-Heid, A. De, and W. Zhang (2018). Additive manufacturing of metallic components—process, structure and properties. Progress in materials science 92, 112–224.
Faegh, M., R. R. Sanvelly, R. Arabpoor, P. Rao, T. Mukherjee, and A. Haghighi (2025). Physics-informed neural networks for thermal modeling transferable across paths, print parameters, and beam profiles. Additive Manufacturing, 105060.
Frazier, W. E. (2014). Metal additive manufacturing: a review. Journal of Materials Engineering and performance 23(6), 1917–1928.
Hosseini, E., P. Scheel, O. Müller, R. Molinaro, and S. Mishra (2023). Single-track thermal analysis of laser powder bed fusion process: Parametric solution through physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering 410, 116019.
Lee, H. and J. Jeong (2026). Material-agnostic temperature field prediction for metal additive manufacturing via a parametric pinn framework. Additive Manufacturing, 105289.
Li, Z., N. Kovachki, K. Azizzadenesheli, B. Liu, K. Bhattacharya, A. Stuart, and A. Anandkumar (2020). Fourier neural operator for parametric partial differential equations. arXiv preprint arXiv:2010.08895.
Liao, S., T. Xue, J. Jeong, S. Webster, K. Ehmann, and J. Cao (2023). Hybrid thermal modeling of additive manufacturing processes using physics-informed neural networks for temperature prediction and parameter identification. Computational Mechanics 72(3), 499–512.
Lipman, Y., R. T. Chen, H. Ben-Hamu, M. Nickel, and M. Le (2022). Flow matching for generative modeling. arXiv preprint arXiv:2210.02747.
Peng, B. and A. Panesar (2024). Multi-layer thermal simulation using physics-informed neural network. Additive Manufacturing 95, 104498.
Peng, B. and A. Panesar (2025). Multi-layer thermal history prediction framework for directed energy deposition based on extended physics-informed neural networks (xpinn). Additive Manufacturing, 104953.
Peng, S., S. Yang, B. Gao, W. Liu, F. Wang, and Z. Tang (2025). Prediction of 3d temperature field through single 2d temperature data based on transfer learning-based pinn model in laser-based directed energy deposition. Journal of Manufacturing Processes 138, 140–156.
Raissi, M., P. Perdikaris, and G. E. Karniadakis (2019). Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. Journal of Computational Physics 378, 686–707.
Ren, K., Y. Chew, Y. Zhang, J. Fuh, and G. Bi (2020). Thermal field prediction for laser scanning paths in laser aided additive manufacturing by physics-based machine learning. Computer Methods in Applied Mechanics and Engineering 362, 112734.
Sajadi, P., M. R. Dehaghani, Y. Tang, and G. G. Wang (2025). Two-dimensional temperature field prediction with in-situ data in metal additive manufacturing using physics-informed neural networks. Engineering Applications of Artificial Intelligence 150, 110636.
Shalev-Shwartz, S. and S. Ben-David (2014). Understanding machine learning: From theory to algorithms. Cambridge university press.
Smith, J., W. Xiong, W. Yan, S. Lin, P. Cheng, O. L. Kafka, G. J. Wagner, J. Cao, and W. K. Liu (2016). Linking process, structure, property, and performance for metal-based additive manufacturing: computational approaches with experimental support. Computational Mechanics 57(4), 583–610.
Svetlizky, D., M. Das, B. Zheng, A. L. Vyatskikh, S. Bose, A. Bandyopadhyay, J. M. Schoenung, E. J. Lavernia, and N. Eliaz (2021). Directed energy deposition (ded) additive manufacturing: Physical characteristics, defects, challenges and applications. Materials Today 49, 271–295.
Tancik, M., P. Srinivasan, B. Mildenhall, S. Fridovich-Keil, N. Raghavan, U. Singhal, R. Ramamoorthi, J. Barron, and R. Ng (2020). Fourier features let networks learn high frequency functions in low dimensional domains. Advances in neural information processing systems 33, 7537–7547.
Tofail, S. A., E. P. Koumoulos, A. Bandyopadhyay, S. Bose, L. O'Donoghue, and C. Charitidis (2018). Additive manufacturing: scientific and technological challenges, market uptake and opportunities. Materials today 21(1), 22–37.
Wang, S., H. Wang, and P. Perdikaris (2021). On the eigenvector bias of fourier feature networks: From regression to solving multi-scale pdes with physics-informed neural networks. Computer Methods in Applied Mechanics and Engineering 384, 113938.
Wang, S., X. Yu, and P. Perdikaris (2022). When and why pinns fail to train: A neural tangent kernel perspective. Journal of Computational Physics 449, 110768.
Xue, T., S. Liao, Z. Gan, C. Park, X. Xie, W. K. Liu, and J. Cao (2023). Jax-fem: A differentiable gpu-accelerated 3d finite element solver for automatic inverse design and mechanistic data science. Computer Physics Communications, 108802.
Yang, S., Z. Liao, Z. Wang, W. Liu, F. Wang, M. Kumar, S. Yu, H. Zhang, and S. Peng (2026). Physics-informed fourier-gaussian-laplacian neural network for temperature field reconstruction and accurate prediction in laser wire additive manufacturing. Journal of Manufacturing Processes 157, 871–900.
Yuan, Y., G. Wang, Y. Di, W. Shi, and L. Wang (2025). A physics-informed neural network on 3d-temperature prediction with multi-track, multi-parameter and measured data in laser deposition process. The International Journal of Advanced Manufacturing Technology, 1–13.
Zhu, Q., Z. Liu, and J. Yan (2021). Machine learning for metal additive manufacturing: predicting temperature and melt pool fluid dynamics using physics-informed neural networks. Computational Mechanics 67(2), 619–635.