Physics2Weight: Direct Neural Network Architecture and Weight Generation from Physical Laws Using Large Language Models
Shogo Sato, Tomoyasu Shimada, Kazuhiko Murasaki, Takashi Sano
Abstract
Recent advances in large language models (LLMs) have enabled weight-space programming (WSP), which directly generates neural network weights without gradient-based optimization. However, extending WSP to physical problems remains challenging, particularly in achieving both solution accuracy and physical consistency. In this paper, we propose Physics2Weight (PtW), a framework that extends WSP to solving partial differential equations by directly generating neural network weights and editing architectures based on governing equations and initial and boundary conditions. PtW introduces physics-constrained prompting and physics-guided architecture editing, combined with iterative weight refinement from WSP, to improve solution accuracy and physical consistency without gradient-based optimization. Experiments on four PDEs, namely the heat, advection, Burgers', and Allen--Cahn equations, demonstrate lower solution errors than conventional physics-informed neural networks, while revealing limitations in satisfying the governing equations for nonlinear PDEs.
Create a lesson
Related papers
The Geometry of Lies: Knowledge and Persona Directions for Detecting Deception in Large Language Models
Shared title terminology · Md. Abdullah Al Zami, Suraiya Shanaz, Mahdi Hasan et al.
Efficient Natural Language to Temporal Logic Translation for Real-Time Physical AI
Shared title terminology · Oliver Schön, Adrien Banse, John Lygeros et al.
No Perfect Guardrail & No Perfect Guard: On the Decidability of Output Policies for Large Language Models
Shared title terminology · Ahmed Amer, Loren Kinczel, Darrell D. E. Long
Reasoning-Trace Analysis Using Large Language Models for Interpretable Q-Matrix Construction
Shared title terminology · Jihong Zhang, Zijing Jin, Mingfeng Xue
Beyond Sunny Skies: Using Large Language Models to Predict Urban Traffic in Adverse Weather
Shared title terminology · Zhu Xiao, Kuan Feng, Tong Li et al.
Depth as a Candidate Source: Portfolio Allocation for Recurrent Test-Time Scaling in Large Language Models
Shared title terminology · Chaoyuan Hao, Wentao Yue, Yanyan Wu et al.