Introduction
Deep learning models are increasingly utilized to predict the behavior of complex dynamical systems, from pendulums to fluid flows. However, real-world observational data is often "messy," with core physical laws entangled with environment-specific factors like air friction or mechanical damping. This paper introduces a novel framework, Disentanglement of Invariant Functions (DIF), designed to discover underlying physical laws across multiple varying environments by leveraging causal analysis and hypernetwork architectures.
The Challenge: Function Environments
Previous machine learning approaches to this problem primarily focused on "coefficient environments," where the environment only changes a scalar parameter (like a friction coefficient). This work tackles the more realistic and difficult problem of function environments, where the environment alters the fundamental mathematical form of the interference.
As illustrated in Figure 5, the authors aim to build a model that can observe a system across wildly different environments (e.g., powered vs. damped) and extract the pure, invariant mathematical mechanism hidden underneath. This allows for the discovery of "ideal" physics using only biased, environment-entangled observational data.
Methodology: Disentanglement of Invariant Functions (DIF)
The DIF framework approaches this challenge as an invariant function learning task through several key innovations:
- Causal Formulation: The system is modeled using a Structural Causal Model (SCM) that assumes an observed trajectory is generated by a combination of an invariant function ($f_c$) and an environment-specific function ($f_e$).
- Hypernetwork Architecture: To learn in "function space," DIF uses a Transformer encoder to process trajectory data into hidden representations. These are split into invariant and environmental embeddings. An MLP decoder then translates these embeddings into the actual weights of a secondary neural network used to forecast future states.
- Information-Theoretic Optimization: To guarantee the discovery of the true invariant function, DIF uses adversarial training (via a discriminator) to enforce strict independence between the extracted invariant function and the environment, ensuring no environmental "clues" leak into the invariant model.
Figure 1 highlights the complexity of these environments. In a powered environment, the derivative of angular velocity $\omega_t$ includes a non-linear term $\frac{\rho_3}{2} \frac{\omega_t}{|\omega_t|}$ alongside the gravitational component $-\alpha_3^2 \sin(\theta_t)$. DIF is designed to isolate the latter as the invariant core.
Datasets and Results
Because this is a new problem setting, the authors introduced three multi-environment (ME) Ordinary Differential Equation (ODE) datasets: ME-Pendulum, ME-Lotka-Volterra (predator-prey), and ME-SIREpidemic (disease spread). Unlike existing benchmarks, these alter the fundamental mathematical equations governing the interference rather than just tweaking coefficients.
Key Findings:
- Quantitative Superiority: DIF significantly outperformed adapted meta-learning (MAML) and invariant learning (IRM, VREx) baselines, achieving the lowest Normalized Root Mean Square Error (NRMSE) across all datasets.
- Equation Recovery: Using symbolic regression (PySR) on the learned invariant functions, the authors recovered the ground-truth mathematical formulas. For ME-Pendulum, it extracted $0.99\omega_t$ and $-0.97\alpha^2 \sin(\theta_t)$, nearly perfectly matching the ideal pendulum equations.
- Computational Efficiency: A "Reference-based" hypernetwork implementation achieved a 16.8x speedup over naive implementations, making the training process highly efficient.
Conclusion and Future Work
DIF demonstrates a robust ability to "observe the unobservable," learning ideal physics from entangled data. While currently restricted to ODEs, the framework provides a foundation for automated scientific discovery. Future directions include extending the method to Partial Differential Equations (PDEs) and high-dimensional systems with graph-like interactions.
Summary updated