UAT (Cybenko, 1989; Hornik, 1991 extension) states that: as long as the activation function is continuous andnon-polynomial(e.g., Sigmoid, tanh, ReLU, GELU), a single-hidden-layer feedforward network can approximate any continuous function $\hat f(x)=\sum_i w_i\,\sigma(v_i^\top x + b_i)$ on any compact set with arbitrary precision, where the error bound can be made smaller than any $\varepsilon>0$. It serves as the mathematical foundation for all claims that 'neural networks can fit anything'.
Since physical field solutions (PDE solution mappings) are continuous functions, UAT guarantees the existence of a network that can represent them—this is the basis for why PINN/neural operators 'can approximate physical field solutions'. However, UATonly guarantees existence, does not guarantee three things, and must be honestly clarified:
These three points precisely argue for the necessity of SwarmLabs' flywheel:Physical Prior (PIML Residual) Reduces Hypothesis Space,Active Learning (Real Experiment Backfilling) Guarantees Generalization—The two jointly complement the silent parts of UAT.
In cross-attention, the query $Q$ comes from the target sequence (decoding side), while the key $K$ and value $V$ come from the source sequence (encoding side): $\mathrm{CrossAttn}(Q,K,V)=\mathrm{softmax}(QK^\top/\sqrt{d_k})V$. The attention matrix is a rectangular $n_t\times n_s$ matrix. ThisAsymmetric Information FlowNaturally suitable for two-way fusion with differing lengths, modalities, and roles.
In SwarmLabs, cross-attention is applied tomulti-domain agent model: For example, using the 'PDE field representation' as the source sequence and the 'parameter/boundary condition sequence' as the target sequence for bridging, enabling cross-domain knowledge transfer; or bridgingmulti-fidelity(coarse simulation ↔ high-fidelity experiment), allowing low-cost data to guide the prediction of expensive data.
The three components combined form the mathematical and architectural foundation of SwarmLabs' 'Experiment → Validation → Training Set → Surrogate Model' flywheel. Reusable implementations are available at scripts/llm_experiment/cross_attention_bridge.py。
UAT states that feedforward networks using continuous non-polynomial activation functions (e.g., ReLU, Sigmoid) can approximate any continuous function to arbitrary precision on any compact set. It serves as the theoretical foundation for the expressive power of neural networks.
UAT only guarantees the existence of a network, not that it is width-controlled, trainable, or generalizable. PIML reduces the hypothesis space using physical equation residuals, while active learning ensures generalization through real experiments—collectively addressing the gaps UAT remains silent on.
As a bridge for interaction between dual sequences, it enables cross-domain fusion of 'PDE field representations' with 'parameter/boundary condition sequences' or 'multi-fidelity data,' achieving knowledge transfer and leveraging low-cost data to guide expensive predictions.
Through an active learning flywheel: each real experiment's results are fed back into the training set, combined with PIML physics-informed priors, ensuring the model maintains physical consistency and reliability under unseen conditions.
Submit an experiment, the physics-informed model provides interpretable predictions; after feeding back real results, it automatically reflows the training set—making each experiment a smarter starting point for the next.