differential equation
Deep Hilbert--Galerkin Methods for Partially Observed Stochastic Control
Hebner, Jackson, Cohen, Samuel N., de Feo, Filippo, Sirignano, Justin
We develop a deep Hilbert--Galerkin method (DHGM) for partially observed stochastic control problems (i.e. partially observed Markov decision processes with continuous time and state spaces). These problems frequently arise in fields such as engineering, finance, and statistics, and represent situations where latent (signal) variables of interest to the controller can only be inferred from noisy observations. In general, the conditional distribution of the signal does not admit any finite-dimensional structure, leading to an inherently infinite-dimensional optimization problem on the space of distributions (alongside time and the observed quantities). We solve this problem by learning the solution of an infinite-dimensional Hamilton--Jacobi--Bellman (HJB) equation and its corresponding optimal control with DHGM. We compare eight feature maps for the space of probability distributions. Using a particle filter, we implement these learned solutions and measure control performance via Monte Carlo on several difficult benchmark problems. We demonstrate that solving the infinite-dimensional HJB equation using DHGM consistently and substantially outperforms two common reinforcement learning (RL) methods (proximal policy optimization (PPO) and soft actor-critic (SAC)), and a recent particle control method, in accuracy, efficiency and generalization across initial conditions. These results demonstrate the advantages of utilizing a PDE structure even in unconventional contexts such as infinite-dimensional Hilbert spaces or when alternatives such as RL are present.
A Learnable Interpolant Flow Sampling Method for Physics-Informed Neural Networks
Chang, Congying, Wei, Shilun, Tang, Kejun, Yao, Zhengan, Xia, Zhihong
The accuracy of physics-informed neural networks (PINNs) is sensitive to sampling measures of collocation points, especially for high-dimensional problems and solutions with complex local structures. To improve the sampling efficiency under a fixed budget, we propose a Learnable Interpolant Flow Sampling (LIFS) framework, which formulates collocation updates as continuous transport from the current collocation distribution to a residual-induced target distribution. The method introduces an endpoint-preserving learnable interpolation path and alternately optimizes the path and velocity networks through a max--min objective. The learned velocity field then moves the existing collocation points to update the training set. This approach eliminates the need to compute Jacobian matrices or explicitly calculate probability densities, significantly reducing training costs compared with other sampling methods based on generative models. For continuous transport toward a fixed residual target, our analysis links velocity fitting error, distributional discrepancy, and perturbations in the next-stage training objective. Experiments on parametric optimal control, lid-driven cavity flow, a ten-dimensional nonlinear elliptic equation, the viscous Burgers equation, and a two-dimensional Allen--Cahn problem show that LIFS improves accuracy under a fixed collocation budget, with computational times comparable to those of several baseline methods. Additional experiments demonstrate effective matching to its stage-specific residual targets and a degree of robustness within reasonable hyperparameter ranges. Ablation experiments show that learnable paths achieve lower solution errors and velocity field energies than fixed paths.
Solving stationary Fokker-Planck equations via adaptive sampling from solution-induced and residual-guided distributions
We propose Solution-Residual Adaptive Sampling (SRAS) for solving stationary Fokker-Planck equations (SFPEs) on unbounded domains using KRnet. Normalizing flows ensure normalization and non-negativity by construction, but the governing equation must still be enforced through training. The selection of training points can therefore affect the accuracy of the resulting solution. SRAS combines samples from the current density approximation with samples from Gaussian mixtures centered at points with large partial differential equation (PDE) residuals, balancing probability-mass coverage with residual-guided refinement. Numerical experiments on five problems ranging from two to eight dimensions show that SRAS generally reduces the errors in fewer adaptive iterations and improves the density approximation accuracy compared with adaptive deep density approximation and residual-based adaptive refinement.
A zero-one law for one-shot system identification
Boullé, Nicolas, Halikias, Diana, Otto, Samuel E., Townsend, Alex
Can a model be identified from one experiment? We study analytic systems that are linearly parameterized by a combination of prescribed dictionary terms, such as partial differential operators and dynamical systems. For a single input-response pair, recovery is possible exactly when the evaluated dictionary terms are linearly independent. We prove a sharp zero-one law: either no input uniquely determines the coefficients, or almost every random input sampled from a nondegenerate Gaussian measure does. This dichotomy reduces one-shot system identification to a question about degenerate inputs and provides an a posteriori certificate in the noiseless setting. Numerical examples recover dynamical systems, nonlinear partial differential equations, and structured matrix families from single trajectory data, while also detecting when an extra probe is necessary.
A Dynamical Theory of LoRA in Continual Learning
Marchetta, Théo, Alessandroni, Filippo, Breccia, Alessandro, Ingrosso, Alessandro, Gerace, Federica
Despite the widespread use of Low-Rank Adaptation (LoRA), little is known about its dynamics in continual learning and the mechanisms by which low-rank updates affect catastrophic forgetting. We provide an asymptotically exact dynamical characterization of LoRA in a solvable two-task teacher-student model. In the high-dimensional online-learning limit, we derive a closed system of ordinary differential equations for a finite set of macroscopic order parameters, yielding exact expressions for the generalization errors throughout both the initial Task 1 learning phase and the subsequent LoRA fine-tuning on Task 2. The theory quantitatively matches finite-dimensional simulations and exposes two characteristic effects of LoRA: when the first-task representation is not yet specialized, low-rank adaptation reduces interference with features learned on the first task, but its initialization slows adaptation to the second task. Building on this mechanistic picture, we analyze a state-dependent masking strategy that freezes hidden units carrying the strongest first-task representations and restricts adaptation to the complementary subspace. This structural partitioning markedly reduces forgetting, while preserving plasticity on the new task. Our framework further clarifies the role of adapter rank: transfer improves only up to the intrinsic dimensionality of the target task and saturates beyond it, while forgetting continues to grow with rank. These results provide a dynamical and geometric account of how low-rank adaptation organizes information across sequential tasks, and are qualitatively reproduced on sequential MNIST and CIFAR-100 using a shallow network and ResNet-18, respectively.
LegoSR: A Unified Framework for Self-Improving Agent-Guided Scientific Discovery
Mao, Hao, Liu, Xu T., Xu, Hao, Zhao, Peng, Li, Qian, Zhang, Dongxiao, Yan, Jinyue, Chen, Yuntian
Discovering equations from data provides governing laws, constitutive relations and closure models for scientific understanding and prediction. Yet a method that succeeds on one system may fail on another or on noisy data, so discovery depends on expert trial and error. Unsuccessful searches can still reveal useful parts of an equation, but these clues must be recognized and combined. We present LegoSR, a unified framework for agent-guided equation discovery built on composable discovery and cumulative experience. Seven complementary equation discovery methods and shared computational modules form reusable building blocks, connected through a common equation representation. Researchers can launch discovery with one command and guide it with partially known equations. LegoSR Agent selects methods, revises searches using feedback and combines partial findings into new hypotheses. Its Experience Library consolidates graded outcomes into lessons that guide later tasks across equation families. Evaluation covers 134 algebraic regression problems, 40 ordinary differential equation targets and 25 partial differential equation problems at several noise levels, together with three case studies. On noisy PDEs, LegoSR Agent recovers more equations than seven expert-tuned methods combined and stays close to them on ODEs. It also exceeds a generic agent with the same model, tools and budget by up to 28 percentage points, with 63-73% shorter median wall-clock time on PDE problems.
Faithful Embeddings of Irregular and Asynchronous Data for Online Log-NCDEs
Walker, Benjamin, Bloch, Alexandre, Yang, Lingyi, Morley, Sam, Lyons, Terry
Continuous-time models are a natural choice for irregular and asynchronous data. A central design choice is how to embed discrete observations into continuous time. Interpolation- and imputation-based embeddings reconstruct a continuous observation path, making the model sensitive to the choice of reconstruction. We show that this reconstruction step is unnecessary; under mild conditions, compact-set universality on the model input space transfers to the data space whenever the embedding from data to input is continuous and injective. Guided by this result, and building on the rectilinear control path for Neural Controlled Differential Equations (NCDEs), we introduce a continuous and injective embedding for Log-NCDEs, a universal class of continuous-time models. Our approach records observations as increments and composes them over arbitrary query intervals to directly form log-signatures. This provides interval-level summaries without first interpolating the observed variables, while supporting online computation. Experiments on synthetic controlled dynamics and real-world time-series datasets show that the representation is accurate, efficient, and robust to irregular, asynchronous, and sparse observations.
FISolver: Data-Driven Discovery of First Integrals via Backward Generation and Guided Reinforcement Learning
Zhong, Jingfeng, Liu, Zhengxiang, Wang, Zhijie, Li, Shuai
The discovery of first integrals is of profound scientific significance for understanding physical conservation laws in dynamical systems. However, existing symbolic computation systems and Large Language Models (LLMs) struggle with this task due to the scarcity of high-quality training data and the reliance on mathematical intuition for finding solutions. This paper introduces FISolver, an LLM-based solver designed to bridge this gap. First, we propose a novel "Backward Generation" algorithm that systematically constructs large-scale datasets of (differential equations, first integrals) pairs by deriving equations from sampled integrals, effectively overcoming the data scarcity bottleneck. Second, we perform supervised fine-tuning on a compact mathematical model and further enhance its capabilities using reinforcement learning with a Levenshtein Distance-based shaped reward function. Additionally, we introduce data synthesis and blending techniques that enable effective adaptation to specific hard instances with sparse examples. Experiments demonstrate that FISolver, with significantly lower computational cost, substantially outperforms larger mathematical LLMs and commercial solvers like Mathematica on complex benchmarks, establishing a new data-driven paradigm for automated mathematical discovery.
Analog and hybrid computing in the 21st century
Ulmann, Bernd, Bournez, Olivier, Maley, Corey J., Sun, Zhong, Zhang, Grace Li, Manea, Paul, Döll, Michael, Delvigne, Frank, Fedorec, Alex J. H., Garza, Daniel, Wetzel, Lucas, Obergassel, Sara, Pitonak, Pavol, Jung, Christopher, Thuerck, Daniel, Porter, Mason A., Rozenberg, Marcelo J., Bergner, Frederic, Choubey, Bhaskar, Zhao, Manyu, Minati, Ludovico, Böttcher, Lucas
Analog computers solve problems through physical representations of mathematical variables and relations, often using the dynamics of electronic circuits and their associated signals. Many analog computers directly represent nonlinear dynamical systems; they encode their solutions in the signals that they generate. Although most modern scientific computing relies on digital architectures with inherently discrete-valued representations and algorithmic approaches, the design constraints of such architectures increasingly limit both performance and energy efficiency. Analog systems can circumvent some of these constraints; they execute specific computations very efficiently by mapping them directly onto physical processes using smaller and simpler computing elements than the ones in digital architectures. In this article, we provide an interdisciplinary perspective on modern analog and hybrid (i.e., analog-digital) computing. We discuss how modern scientific computing workflows can leverage analog approaches in various applications, such as in simulating dynamical systems, performing optimization, and enabling more energy-efficient implementations of artificial intelligence.
How Token Influence Decays with Distance: A Green-Function View of Trained Language Models
Brändel, Matthias, Köhler, Stephan, Rheinbach, Oliver
We study how the next-token prediction of an autoregressive Transformer language model changes under small perturbations of earlier input token embeddings. Motivated by operator learning and iterative solvers for differential equations, we investigate how the influence of one token on another decays with distance in a trained model. In multilevel methods for differential equations, such as domain decomposition, multigrid, and multilevel preconditioning, one often exploits a separation between strong local interactions and weaker but essential global interactions. The latter correspond to the long tail of the Green's function and are typically handled by a coarse-level operator. Inspired by this perspective, we compute an empirical, distance-resolved gradient profile of token dependencies using autograd. Experiments on trained Pythia models and Qwen2.5-0.5B show that, over the measured distance range, the median Jacobian sensitivity is much better described by a power-law-type decay than by an exponential alternative: the diagonal-normalized profile is well described by $$\overline G(r) \approx γ+β(r+1)^{-p}$$ with exponents $p \approx 0.7$--$0.9$ (typically $0.8$--$0.9$). This behavior appears on coherent text from Gutenberg and WikiText-103. Token-shuffling experiments show that the power-law profile persists even when syntax and prediction quality collapse, whereas randomly initialized models do not exhibit it. The slowly decaying long-range sensitivity thus appears to be a learned property of trained autoregressive Transformer operators. These findings suggest that hierarchical or coarse-level mechanisms in language models may be able to exploit the long-tailed sensitivity profiles.