In-Context Operator Networks: A Guide to the ICON Family

4 minute read

Published:

The central idea: show a model several input–output functions from one system, then ask it to predict the output for a new input. The examples specify the task; the network weights stay fixed during that prediction.
First page of In-Context Operator Learning with Data Prompts for Differential Equation Problems
Paper preview: In-Context Operator Learning with Data Prompts for Differential Equation Problems.
Liu Yang, Siting Liu, Tingwei Meng, Stanley J. Osher
Read the paper (PDF)

From functions to operators

A function maps an input to a value: \(u(x)\) might give temperature at position \(x\). An operator maps an entire function to another function. A heat-evolution operator takes an initial temperature profile and returns the profile after a specified duration:

\[\mathcal{G}_{\kappa,\tau}:u_0(\cdot)\mapsto u(\tau,\cdot).\]

Changing the initial temperature changes the input. Changing diffusivity \(\kappa\) or the prediction interval \(\tau\) changes the operator. This distinction is the starting point for reading every paper in this book.

An in-context model receives a prompt

\[\mathcal{D}_{\mathcal{G}}=\{(u_i,v_i):v_i=\mathcal{G}(u_i)\}_{i=1}^{m}\]

and a query \(u_*\). Its output is \(\widehat v_*=F_\theta(\mathcal{D}_{\mathcal{G}},u_*)\). Learning at deployment means changing the activations through the context, while \(\theta\) remains fixed. This is the formulation introduced by Yang, Liu, Meng, and Osher in ICON (PNAS, 2023).

How an operator prompt produces a predictionObserved function pairs and a new input enter one frozen model. Its output is the predicted function for the new input. Only the examples change between tasks. Observed pairs (input₁, output₁), … New input: query Frozen ICON Weights stay fixed Predicted output A function, field, or trajectory
Conceptual diagram for this guide. Demonstrations belong to the same target mapping as the query; they are more than extra observations of an unrelated system.

A small example you can solve exactly

Consider the family \(\mathcal{G}_a[u](x)=a\,u(x)\). The value of \(a\) is hidden. If an example is \(u_1=[1,2]\) and \(v_1=[3,6]\), the implied multiplier is three. For \(u_*=[2,-1]\), the answer is \([6,-3]\).

The same query paired with the demonstration \([1,2]\mapsto[5,10]\) instead asks for \([10,-5]\). The query alone does not determine the answer. A model that ignores context must fail on at least one of these tasks.

This is an illustrative identification problem, not a description of ICON’s internal algorithm. Real differential operators need richer examples, and a finite prompt can leave several candidate operators indistinguishable.

Reading path

ChapterQuestion to carry into the paper
ICONHow can examples specify an unfamiliar function-to-function mapping?
ICON-LMHow do captions and a leakage-safe prediction mask change training?
PDE generalizationDoes success survive a change in the equation’s flux?
VICONHow do image patches make dense 2D prompts tractable?
GICONHow do we represent irregular sensor networks and longer contexts?
Chain of OperatorsWhat can numerical transformations add around a frozen network?
UNICONCan one context interface support different scientific disciplines?
Linear propagatorsWhat changes when an optimizer uses the inferred operator?
VICXHow can visual demonstrations ground a robot’s motion?

These are a curated route through the core papers and major extensions, rather than a claim to cover every paper using the acronym. The authors’ publication list is a useful index for further reading. Paper chapters identify the versions they discuss; preprints are labelled separately from journal publications.

How to read a generalization claim

Keep four axes separate: new input functions, new operator parameters, new equation families, and new domains or disciplines. A model can succeed on one and fail on another. Also distinguish generalization to new sampling locations from generalization to more demonstrations: these stress different parts of a model.

A useful evaluation starts with a context budget. Hold out the query target, choose demonstrations whose outputs were actually available at prediction time, and compare against the same model with missing or mismatched context. Then compare with a suitably trained specialist under a stated training and inference budget. A frozen model can still consume substantial data and compute through retrieval or repeated calls.

For time evolution, measure both one-step error and rollout error. If a one-step approximation has error at most \(\varepsilon\) and the true update is \(L\)-Lipschitz in the relevant norm, a simple bound is

\[e_{k+1}\leq L e_k+\varepsilon.\]

Even a modest one-step error can accumulate. A visually plausible prediction is also not automatically conservative, stable, or correct at a shock.

Prerequisites and connections

The Transformers book explains attention; the Graph Neural Networks book provides background for graph representations. This book develops the operator-specific notation as it goes. The worked examples are explanatory constructions, and the reported experiments are attributed to the corresponding papers.