IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2501.15106.html

Solving Optimal Execution Problems via In-Context Operator Networks

Author

Listed:
  • Tingwei Meng
  • Moritz Vo{ss}
  • Nils Detering
  • Giulio Farolfi
  • Stanley Osher
  • Georg Menz

Abstract

We propose a novel transformer-based neural network architecture (ICON-OCnet) for solving optimal order execution problems in the presence of unknown price impact. Our architecture facilitates data-driven in-context operator learning for the incurred price impact by merging offline pre-training with online few-shot prompting inference. First, the operator learning component (ICON) learns the prevailing price impact environment from only a few executed trade and price impact trajectories (time series data) provided as context. Second, we employ ICON as a surrogate operator to train a neural network policy (OCnet) for the optimal order execution strategy for the price impact regime inferred from the in-context examples. We study the efficiency of our approach for linear propagator models with path-dependent transient price impact and explicitly known optimal execution strategies. In this model class, price impact persists and decays over time according to some propagator kernel. We illustrate that ICON is capable of accurately inferring the underlying price impact model from the data prompts, even for propagator kernels not seen in the training data. Moreover, we demonstrate that ICON-OCnet correctly retrieves the exact optimal order execution strategy for the model generating the in-context examples. Our introduced methodology is very general, offering a new approach to solving path-dependent optimal stochastic control problems sample-based with unknown state dynamics.

Suggested Citation

  • Tingwei Meng & Moritz Vo{ss} & Nils Detering & Giulio Farolfi & Stanley Osher & Georg Menz, 2025. "Solving Optimal Execution Problems via In-Context Operator Networks," Papers 2501.15106, arXiv.org, revised Feb 2026.
  • Handle: RePEc:arx:papers:2501.15106
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2501.15106
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Jean-Philippe Bouchaud & Yuval Gefen & Marc Potters & Matthieu Wyart, 2004. "Fluctuations and response in financial markets: the subtle nature of 'random' price changes," Quantitative Finance, Taylor & Francis Journals, vol. 4(2), pages 176-190.
    2. Eyal Neuman & Wolfgang Stockinger & Yufei Zhang, 2023. "An Offline Learning Approach to Propagator Models," Papers 2309.02994, arXiv.org.
    3. Eduardo Abi Jaber & Eyal Neuman, 2022. "Optimal Liquidation with Signals: the General Propagator Case," Papers 2211.00447, arXiv.org, revised Sep 2025.
    4. Jim Gatheral, 2010. "No-dynamic-arbitrage and market impact," Quantitative Finance, Taylor & Francis Journals, vol. 10(7), pages 749-759.
    5. Marcel Nutz & Kevin Webster & Long Zhao, 2023. "Unwinding Stochastic Order Flow: When to Warehouse Trades," Papers 2310.14144, arXiv.org, revised Nov 2025.
    6. Obizhaeva, Anna A. & Wang, Jiang, 2013. "Optimal trading strategy and supply/demand dynamics," Journal of Financial Markets, Elsevier, vol. 16(1), pages 1-32.
    7. Eduardo Abi Jaber & Eyal Neuman & Moritz Voss, 2023. "Equilibrium in Functional Stochastic Games with Mean-Field Interaction," Working Papers hal-04119787, HAL.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Marcel Nutz & Kevin Webster & Long Zhao, 2023. "Unwinding Stochastic Order Flow: When to Warehouse Trades," Papers 2310.14144, arXiv.org, revised Nov 2025.
    2. Eyal Neuman & Yufei Zhang, 2023. "Statistical Learning with Sublinear Regret of Propagator Models," Papers 2301.05157, arXiv.org, revised Jan 2025.
    3. Natascha Hey & Eyal Neuman & Sturmius Tuschmann, 2025. "Nonparametric Estimation of Self- and Cross-Impact," Papers 2510.06879, arXiv.org.
    4. Martin D. Gould & Mason A. Porter & Stacy Williams & Mark McDonald & Daniel J. Fenn & Sam D. Howison, 2010. "Limit Order Books," Papers 1012.0349, arXiv.org, revised Apr 2013.
    5. Alexander Barzykin & Fabrizio Lillo, 2019. "Optimal VWAP execution under transient price impact," Papers 1901.02327, arXiv.org, revised Jan 2019.
    6. Aur'elien Alfonsi & Pierre Blanc, 2014. "Dynamic optimal execution in a mixed-market-impact Hawkes price model," Papers 1404.0648, arXiv.org, revised Jun 2015.
    7. Olivier Guéant, 2016. "The Financial Mathematics of Market Liquidity: From Optimal Execution to Market Making," Post-Print hal-01393136, HAL.
    8. Alexander Schied & Tao Zhang, 2019. "A Market Impact Game Under Transient Price Impact," Mathematics of Operations Research, INFORMS, vol. 44(1), pages 102-121, February.
    9. Masamitsu Ohnishi & Makoto Shimoshimizu, 2022. "Optimal Pair–Trade Execution with Generalized Cross–Impact," Asia-Pacific Financial Markets, Springer;Japanese Association of Financial Economics and Engineering, vol. 29(2), pages 253-289, June.
    10. Ibrahim Ekren & Johannes Muhle-Karbe, 2017. "Portfolio Choice with Small Temporary and Transient Price Impact," Papers 1705.00672, arXiv.org, revised Apr 2020.
    11. Aur'elien Alfonsi & Pierre Blanc, 2015. "Extension and calibration of a Hawkes-based optimal execution model," Papers 1506.08740, arXiv.org.
    12. Aurélien Alfonsi & Pierre Blanc, 2016. "Dynamic optimal execution in a mixed-market-impact Hawkes price model," Post-Print hal-00971369, HAL.
    13. Eduardo Abi Jaber & Alessandro Bondi & Nathan De Carvalho & Eyal Neuman & Sturmius Tuschmann, 2025. "Fredholm Approach to Nonlinear Propagator Models," Papers 2503.04323, arXiv.org.
    14. Philippe Bergault & Olivier Gu'eant & Hamza Bodor, 2025. "To Hedge or Not to Hedge: Optimal Strategies for Stochastic Trade Flow Management," Papers 2503.02496, arXiv.org.
    15. Rama Cont & Arseniy Kukanov & Sasha Stoikov, 2010. "The Price Impact of Order Book Events," Papers 1011.6402, arXiv.org, revised Apr 2011.
    16. Aurélien Alfonsi & Florian Klöck & Alexander Schied, 2016. "Multivariate Transient Price Impact and Matrix-Valued Positive Definite Functions," Mathematics of Operations Research, INFORMS, vol. 41(3), pages 914-934, August.
    17. Natascha Hey & Jean-Philippe Bouchaud & Iacopo Mastromatteo & Johannes Muhle-Karbe & Kevin Webster, 2023. "The Cost of Misspecifying Price Impact," Papers 2306.00599, arXiv.org.
    18. Dupret, Jean-Loup & Hainaut, Donatien, 2023. "Optimal liquidation under indirect price impact with propagator," LIDAM Discussion Papers ISBA 2023012, Université catholique de Louvain, Institute of Statistics, Biostatistics and Actuarial Sciences (ISBA).
    19. Beomsoo Park & Benjamin Van Roy, 2015. "Adaptive Execution: Exploration and Learning of Price Impact," Operations Research, INFORMS, vol. 63(5), pages 1058-1076, October.

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:arx:papers:2501.15106. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.