Skip to main content
QUICK REVIEW

[Paper Review] Effects of boundary conditions in fully convolutional networks for learning spatio-temporal dynamics

Antonio Alguacil, Wagner Gonçalves Pinto|arXiv (Cornell University)|Jun 21, 2021
Model Reduction and Neural NetworksPhysics and Astronomy19 references1 citations
TL;DR

This paper investigates boundary condition treatments in fully convolutional networks for spatio-temporal PDE regression, comparing padding strategies, spatial context injection, and explicit physics-based boundary encoding. It finds that explicit encoding of physical boundary rules significantly improves stability and accuracy—especially for complex conditions like non-reflecting walls—while padding alone is only effective when semantically aligned with the data.

ABSTRACT

Accurate modeling of boundary conditions is crucial in computational physics. The ever increasing use of neural networks as surrogates for physics-related problems calls for an improved understanding of boundary condition treatment, and its influence on the network accuracy. In this paper, several strategies to impose boundary conditions (namely padding, improved spatial context, and explicit encoding of physical boundaries) are investigated in the context of fully convolutional networks applied to recurrent tasks. These strategies are evaluated on two spatio-temporal evolving problems modeled by partial differential equations: the 2D propagation of acoustic waves (hyperbolic PDE) and the heat equation (parabolic PDE). Results reveal a high sensitivity of both accuracy and stability on the boundary implementation in such recurrent tasks. It is then demonstrated that the choice of the optimal padding strategy is directly linked to the data semantics. Furthermore, the inclusion of additional input spatial context or explicit physics-based rules allows a better handling of boundaries in particular for large number of recurrences, resulting in more robust and stable neural networks, while facilitating the design and versatility of such networks.

Motivation & Objective

  • To understand how different boundary condition treatments affect the accuracy and stability of fully convolutional networks in spatio-temporal regression tasks.
  • To evaluate whether standard padding strategies (zero, replicate, reflect) are sufficient for modeling physical PDEs with complex boundary dynamics.
  • To investigate whether adding spatial context or explicitly encoding physical boundary rules improves network robustness and generalization.
  • To determine the optimal boundary treatment strategy for hyperbolic (wave) and parabolic (heat) PDEs under recurrent inference.
  • To assess the long-term stability of FCNs when boundary errors propagate through multiple recurrences.

Proposed method

  • Employs fully convolutional networks (FCNs) for recurrent prediction of spatio-temporal dynamics governed by 2D wave and heat equations.
  • Compares three boundary treatment strategies: (i) implicit via padding (zero, replicate, reflect), (ii) explicit spatial context injection in input, and (iii) explicit encoding of physical boundary rules in the output.
  • Uses a standardized evaluation protocol across 25 initial conditions for 120 network recurrences to assess error propagation and stability.
  • Employs two metrics: relative mean square error (E(T)) and temporal evolution of spatially averaged temperature (Trms) to quantify accuracy and convergence.
  • Applies different padding types and evaluates their impact on wave reflection patterns and error growth over time.
  • Validates results on two PDEs: the hyperbolic wave equation with non-reflecting boundaries and the parabolic heat equation with Neumann (adiabatic) boundaries.

Experimental results

Research questions

  • RQ1How does the choice of padding strategy (zero, replicate, reflect) affect the accuracy and stability of FCNs in recurrent spatio-temporal regression?
  • RQ2To what extent does adding spatial context to the input improve robustness to boundary condition artifacts?
  • RQ3Can explicit encoding of physical boundary rules (e.g., non-reflecting or reflecting conditions) enhance network stability and accuracy?
  • RQ4How do boundary errors propagate over time in recurrent FCN inference, and what strategies mitigate this propagation?
  • RQ5Is the effectiveness of a boundary treatment strategy dependent on the underlying PDE type (hyperbolic vs. parabolic) and data semantics?

Key findings

  • The implicit padding strategy alone leads to significant instability and error growth in recurrent inference, especially for non-reflecting boundary conditions, due to unphysical wave reflections.
  • For the wave equation with non-reflecting boundaries, explicit encoding of boundary rules results in symmetric, physically consistent reflections that closely match analytical solutions, reducing error growth and preventing instability.
  • When using replicate padding, the explicit boundary encoding strategy shows the most stable error evolution across all padding types, indicating its robustness to boundary artifacts.
  • For the heat equation with Neumann (adiabatic) boundaries, replicate padding yields lower long-term error and better convergence to the constant Trms level than zero or reflect padding.
  • Adding spatial context reduces variability in performance across different padding types, improving robustness in simple cases like Neumann boundaries, but fails to stabilize complex boundary dynamics.
  • Explicit boundary encoding is most effective for complex physical conditions (e.g., non-reflecting walls), where it enforces physical consistency and prevents unbounded error growth over time.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.