TL;DR
Imagine watching fireflies flash in the dark and trying to simultaneously deduce who is influencing whom and the exact mathematical laws governing their rhythm. COSINE solves this chicken-and-egg problem for complex networked systems by combining gradient-based graph learning with symbolic regression, supervised by a Large Language Model (LLM). Instead of relying on opaque neural black boxes, it uncovers both hidden interaction networks and clean, human-readable governing equations directly from time-series data.
What Problem Does This Paper Address?
Across physics, biology, and epidemiology, we can often measure how individual nodes behave over time (like infection rates in cities or firing neurons), while the underlying wiring diagram connecting them remains completely hidden.
Historically, researchers had to pick their poison when studying these systems:
- Relational Inference methods use deep learning (like Graph Neural Networks) to guess the hidden network from trajectories. However, because neural networks are massive, over-parameterized black boxes, they often hallucinate "spurious edges"—fake connections that mathematically fit the data by accident—while offering zero insight into the actual physics.
- Symbolic Regression (like SINDy) discovers explicit, readable differential equations from data, but almost always requires knowing the network topology in advance and relies on a rigid, hand-crafted dictionary of math functions.
When both the graph and the equations are unknown, searching for both simultaneously causes the hypothesis space to explode. COSINE bridges this gap to jointly discover who talks to whom, and what mathematical language they speak.
Methods
COSINE (Co-Optimization of Symbolic Interactions and Network Edges) operates as a clever two-level, closed-loop system that separates creative hypothesis generation from strict numerical testing.
- The Inner Loop (Differentiable Co-Optimization): Standard GNNs pass black-box neural messages between nodes. COSINE replaces those neural layers with Sparse Symbolic Message Passing, splitting dynamics into two distinct mathematical libraries: Message terms (how neighbors interact) and Update terms (how a node updates its own state). Simultaneously, a graph generator uses temperature-controlled Gumbel-Softmax—a standard trick to make discrete on/off switches differentiable—to guess edge probabilities. Using gradient descent and $\ell_1$ sparsity penalties, the inner loop jointly tunes the graph edges and prunes away useless math terms to predict the next time step.
- The Outer Loop (LLM-Guided Library Evolution): To escape the trap of a fixed, pre-defined math dictionary, an LLM (defaulting to a 20B parameter GPT-OSS model) acts as a high-level symbolic supervisor. Every 1,000 inner epochs, COSINE shows the LLM the validation loss and which equations are currently carrying the most weight. The LLM proposes edits—pruning dead-weight terms and inventing new nonlinearities—without needing domain-specific templates. Crucially, a strict validation gate only accepts the LLM's new library if it numerically improves validation loss.
Datasets
No new benchmarks are introduced; the authors evaluate COSINE on established synthetic and real-world datasets:
- Synthetic Dynamical Systems: Six diverse continuous- and discrete-time systems—Michaelis-Menten biochemical kinetics (MM), Diffusion, Network of Springs, Kuramoto oscillators, Friedkin-Johnsen opinion dynamics, and chaotic Coupled Map Networks (CMN)—simulated across three classic 50-node graph topologies: Erdős–Rényi (ER), Barabási–Albert (BA), and Watts–Strogatz (WS).
- Real-World Epidemic Data: Public, county-level COVID-19 trajectory data across four U.S. states (Arizona, Connecticut, Illinois, and Michigan, ranging from $N=8$ to $102$ counties), evaluated against real-world inter-county human mobility graphs.
Key Insights and Ideas
- Simplicity forces honesty in graph learning: Why does symbolic math help find better networks? Because compact equations act as a strict functional constraint. Unlike a massive neural network that can warp its weights to absorb a wrong edge, a sparse equation simply cannot fit the data if the wiring is wrong. Interpretability directly boosts structural accuracy!
- Decoupling imagination from verification: LLMs are notoriously bad at raw arithmetic, so COSINE never lets the LLM pick weights or edges. The LLM only proposes symbolic building blocks in the outer loop, while gradient descent and a held-out validation gate handle the hard math.
- Uncovering regional epidemic regimes: On real COVID-19 data, COSINE didn't just map inter-county spread; its equations highlighted distinct transmission dynamics—identifying classic mass-action contact terms ($x_i \cdot x_j$) across county borders in Arizona and Illinois, while flagging local logistic-style saturation $x(1-x)$ in Michigan.
Key Results
- Near-Perfect Graph Recovery: Across 18 synthetic regimes, COSINE achieves state-of-the-art edge recovery, hitting 100.00% AUC on all Spring networks and most Friedkin-Johnsen setups. On tough nonlinear synchronization (Kuramoto on BA-50 graphs), COSINE scores 99.85% AUC, crushing neural baselines like NRI (69.70%) and GDP (90.13%).
- LLM Evolution is Essential: Ablating the outer-loop LLM (using static libraries or simple weight-threshold pruning) causes severe, erratic drops in AUC, especially in complex biochemical (MM) and chaotic (CMN) systems.
- Real-World Alignment & Speed: On COVID-19 data, COSINE's inferred transmission graphs correlate strongly with actual human mobility networks, achieving Pearson correlations (PCC) between 0.6227 (Connecticut) and 0.8116 (Arizona), outperforming existing baselines. Furthermore, even including local 20B LLM calls, COSINE finishes end-to-end training faster and uses significantly less GPU memory than heavy GNN baselines like NRI and GDP.
Limitations and Future Work
The authors candidly note several boundaries to their approach:
- $O(N^2)$ Scaling: Because the model evaluates pairwise node interactions, compute and GPU memory grow quadratically with network size, making massive graphs prohibitively expensive.
- Pairwise & Expressivity Limits: The message–update design assumes pairwise couplings and no hidden states or time delays, meaning higher-order group interactions (hypergraphs) might slip through the cracks.
- Non-Identifiability & Observational Noise: Under noisy finite data, two mathematically similar terms (e.g., $\tanh(x)$ vs. $x - x^3/3$) can blur mechanistic conclusions. On real-world epidemic data, inferred edges can mix true viral transmission with reporting biases or unmodeled policy interventions—making COSINE an exploratory hypothesis generator rather than a standalone policy tool. Future extensions naturally point toward relaxing pairwise assumptions and scaling beyond $O(N^2)$ memory bottlenecks.
Summary updated