ICON: Learning an Operator from Demonstrations
Published:
Paper: Liu Yang, Siting Liu, Tingwei Meng, and Stanley J. Osher. PNAS 120(39), 2023. Published paper · Open-access published PDF · Author code.
Liu Yang, Siting Liu, Tingwei Meng, Stanley J. Osher
Read the paper (PDF)
What the paper introduces
ICON conditions on several condition–quantity-of-interest pairs from one operator and a new condition. Functions are represented by sampled coordinates and values. An encoder processes the numerical prompt, while a decoder uses requested output coordinates to produce the query’s output values. Parameters are learned across many operators, then held fixed for inference. The reported study spans 19 problem types, including forward and inverse differential-equation and mean-field-control tasks. These are empirical demonstrations on specified families, rather than a guarantee for arbitrary equations. See the published formulation and experiments.
Why the prompt matters mathematically
Suppose we want to solve the scalar ODE
\[\frac{du}{dt}=-a u,\qquad u(0)=b.\]For fixed observation time \(\tau\), the exact map is \(\mathcal{G}_{a,\tau}(b)=b e^{-a\tau}\). If \(a\) is unknown, the input \(b\) alone is insufficient. But a nonzero example \(b_1\mapsto v_1\) reveals \(r=v_1/b_1=e^{-a\tau}\), and the query answer is \(v_*=r b_*\).
This is an illustrative case in which one demonstration determines the map exactly. For general function spaces, the examples usually determine only part of the operator. Think of a linear map on \(\mathbb{R}^{100}\): observing it on three independent vectors fixes its action on their span, but leaves its action on the other 97 directions undetermined. A learned prior supplies additional assumptions; it does not remove the missing information.
Training across tasks
A general episodic loss makes the distinction between examples and parameters explicit:
\[\min_\theta\;\mathbb{E}_{\mathcal{G},\mathcal{D},u_*} \left[\frac{1}{Q}\sum_{q=1}^{Q} \left|F_\theta(\mathcal{D},u_*;x_q)-\mathcal{G}(u_*)(x_q)\right|^2\right].\]Here \(\mathcal{G}\) chooses a task, \(\mathcal{D}\) supplies demonstrations of that task, and \(x_q\) selects evaluation coordinates. This equation is a compact teaching formulation of supervised episodic learning, not a claim about every implementation detail of the paper.
Changing \(\theta\) is training. Changing \(\mathcal{D}\) while keeping \(\theta\) fixed is context-based adaptation. A model can have expensive training and inexpensive adaptation; the latter does not imply that the former was unnecessary.
A practical prompt audit
For a heat problem, write down exactly what each pair means: perhaps an initial field and its state after 0.1 seconds, with fixed material parameters and boundary conditions. If half the examples use 0.1 seconds and half use 0.5 seconds without identifying that difference, they no longer describe the same mapping.
Coordinate conventions matter too. The values of a function at three locations do not determine values elsewhere without assumptions about smoothness or structure. Sparse sampling makes some small-scale behavior unobservable.
A simple diagnostic is to keep the query fixed and swap the prompt between two known systems. Predictions should change in the correct direction. If they barely change, the network may be relying primarily on its training distribution.
What to take forward
The useful conceptual shift is that examples become part of the model’s input interface. This supports adaptation without per-query optimization, but makes prompt construction and identifiability central scientific questions. ICON-LM changes how that interface is trained and adds descriptions of the operator in text.
