Papers › Learning Specialized Activation Functions for Physics-informed Neural Networks

Learning Specialized Activation Functions for Physics-informed Neural Networks

8 Aug 2023arXiv:2308.04073archive 2025-07-28

Honghui Wang, Lu Lu, Shiji Song, Gao Huang

Physics-informed neural networks (PINNs) are known to suffer from optimization difficulty. In this work, we reveal the connection between the optimization difficulty of PINNs and activation functions. Specifically, we show that PINNs exhibit high sensitivity to activation functions when solving PDEs with distinct properties. Existing works usually choose activation functions by inefficient trial-and-error. To avoid the inefficient manual selection and to alleviate the optimization difficulty of PINNs, we introduce adaptive activation functions to search for the optimal function when solving different problems. We compare different adaptive activation functions and discuss their limitations in the context of PINNs. Furthermore, we propose to tailor the idea of learning combinations of candidate activation functions to the PINNs optimization, which has a higher requirement for the smoothness and diversity on learned functions. This is achieved by removing activation functions which cannot provide higher-order derivatives from the candidate set and incorporating elementary functions with different properties according to our prior knowledge about the PDE at hand. We further enhance the search space with adaptive slopes. The proposed adaptive activation function can be used to solve different PDE systems in an interpretable way. Its effectiveness is demonstrated on a series of benchmarks. Code is available at https://github.com/LeapLabTHU/AdaAFforPINNs.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2308.04073")

Code

Syntology Ran 7 of 10 code samples harvested from 1 repository linked to this paper; 3 have no recorded run. Of those that ran: 7 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

leaplabthu/adaafforpinns officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 7 ran; 0 honoured the contract we drafted; 3 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

7ran
3unverified

Licence: 10 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from leaplabthu/adaafforpinns. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Adam leaplabthu/adaafforpinns/source/choose_optimizer.py official repository ran no licence file found · pointer only · 9962b7f1cb6fc33c · report
diffusion leaplabthu/adaafforpinns/source/systems_pbc.py official repository ran no licence file found · pointer only · 0af9ef32a8bd2b8c · report
function leaplabthu/adaafforpinns/source/systems_pbc.py official repository ran no licence file found · pointer only · 92e6e8563c7d4282 · report
reaction leaplabthu/adaafforpinns/source/systems_pbc.py official repository ran fingerprinted no licence file found · pointer only · a3179c449815c09a · report
sample_random leaplabthu/adaafforpinns/source/utils.py official repository ran fingerprinted no licence file found · pointer only · 680026eda1992bc6 · report
sample_random_interval leaplabthu/adaafforpinns/source/utils.py official repository ran no licence file found · pointer only · 03ee7d7905a1fc9f · report
sample_random_type leaplabthu/adaafforpinns/source/utils.py official repository ran no licence file found · pointer only · 825a4200f08d340f · report
exact_u leaplabthu/adaafforpinns/source/visualize.py official repository unverified no licence file found · pointer only · 1d3233e2a8bd0e21 · report
u_diff leaplabthu/adaafforpinns/source/visualize.py official repository unverified no licence file found · pointer only · 46a668d7ec1cbb95 · report
u_predict leaplabthu/adaafforpinns/source/visualize.py official repository unverified no licence file found · pointer only · ad6fe4c9af50735d · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections