In-Context Operator Learning for Linear Propagator Models
Tingwei Meng, Moritz Voß, Nils Detering, Giulio Farolfi, Stanley Osher, Georg Menz
TL;DR
This paper addresses optimal liquidation under linear propagator price-impact models by introducing ICON-OCnet, a two-stage framework that first learns the unknown price-impact operator from a few in-context examples and then solves the resulting stochastic control problem using a surrogate operator in a neural policy (OCnet). The core method combines offline transformer-based pre-training of the price-impact operator with online few-shot prompting to adapt to unseen propagator kernels, enabling data-efficient inference of the non-Markovian dynamics. The results show accurate operator inference with as few as five context examples and successful retrieval of ground-truth optimal execution strategies when the ICON surrogate is used in the OCnet, demonstrating the practical potential of few-shot operator learning for complex control problems. This approach offers a flexible, data-efficient pathway to handle unknown market impact regimes in real-time trading, with extensions to nonlinear kernels and real-data settings as promising future work.
Abstract
We study operator learning in the context of linear propagator models for optimal order execution problems with transient price impact à la Bouchaud et al. (2004) and Gatheral (2010). Transient price impact persists and decays over time according to some propagator kernel. Specifically, we propose to use In-Context Operator Networks (ICON), a novel transformer-based neural network architecture introduced by Yang et al. (2023), which facilitates data-driven learning of operators by merging offline pre-training with an online few-shot prompting inference. First, we train ICON to learn the operator from various propagator models that maps the trading rate to the induced transient price impact. The inference step is then based on in-context prediction, where ICON is presented only with a few examples. We illustrate that ICON is capable of accurately inferring the underlying price impact model from the data prompts, even with propagator kernels not seen in the training data. In a second step, we employ the pre-trained ICON model provided with context as a surrogate operator in solving an optimal order execution problem via a neural network control policy, and demonstrate that the exact optimal execution strategies from Abi Jaber and Neuman (2022) for the models generating the context are correctly retrieved. Our introduced methodology is very general, offering a new approach to solving optimal stochastic control problems with unknown state dynamics, inferred data-efficiently from a limited number of examples by leveraging the few-shot and transfer learning capabilities of transformer networks.
