# Transformers with Signatures: Towards Universal In-Context Learning in Path Space

arXiv: https://arxiv.org/abs/2611.31439 · HTML: https://mlsanity.com/paper/2611.31439/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 25 of its 64 references that are in the map.
- Submitted 23 Nov 2026, announced 25 Nov 2026.

## Builds on (most cited first, 25 of 25)

- [Attention Is All You Need](https://mlsanity.com/paper/1706.03762/) (2017)
- [Language Models are Few-Shot Learners](https://mlsanity.com/paper/2005.14165/) (2020)
- [Transformers learn in-context by gradient descent](https://mlsanity.com/paper/2212.07677/) (2022)
- [What Can Transformers Learn In-Context? A Case Study of Simple Function Classes](https://mlsanity.com/paper/2208.01066/) (2022)
- [What learning algorithm is in-context learning? Investigations with linear models](https://mlsanity.com/paper/2211.15661/) (2022)
- [Transformers as Statisticians: Provable In-Context Learning with In-Context Algorithm Selection](https://mlsanity.com/paper/2306.04637/) (2023)
- [A Primer on the Signature Method in Machine Learning](https://mlsanity.com/paper/1603.03788/) (2016)
- [Deep Signature Transforms](https://mlsanity.com/paper/1905.08494/) (2019)
- [Signature moments to characterize laws of stochastic processes](https://mlsanity.com/paper/1810.10971/) (2018)
- [Regularized estimation in sparse high-dimensional time series models](https://mlsanity.com/paper/1311.4175/) (2013)
- [Transformers are Minimax Optimal Nonparametric In-Context Learners](https://mlsanity.com/paper/2408.12186/) (2024)
- [Signature Methods in Machine Learning](https://mlsanity.com/paper/2206.14674/) (2022)
- [Transformers Meet In-Context Learning: A Universal Approximation Theory](https://mlsanity.com/paper/2506.05200/) (2025)
- [Rough kernel hedging](https://mlsanity.com/paper/2501.09683/) (2025)
- [Universal Approximation with Softmax Attention](https://mlsanity.com/paper/2504.15956/) (2025)
- [Generalization bounds for nonparametric regression with β-mixing samples](https://mlsanity.com/paper/2108.00997/) (2021)
- [On Consistency of Signature Using Lasso](https://mlsanity.com/paper/2305.10413/) (2023)
- [Signature Trading: A Path-Dependent Extension of the Mean-Variance Framework with Exogenous Signals](https://mlsanity.com/paper/2308.15135/) (2023)
- [Solving Optimal Execution Problems via In-Context Operator Networks](https://mlsanity.com/paper/2501.15106/) (2025)
- [Universal approximation with signatures of non-geometric rough paths](https://mlsanity.com/paper/2602.05898/) (2026)
- [Transportation Marketplace Rate Forecast Using Signature Transform](https://mlsanity.com/paper/2401.04857/) (2024)
- [High-dimensional Linear Regression for Dependent Data with Applications to Nowcasting](https://mlsanity.com/paper/1706.07899/) (2017)
- [Signature Approach for Contextual Bandits with Nonlinear and Path-dependent Rewards: Regret Bound and Statistical Inference](https://mlsanity.com/paper/2605.10313/) (2026)
- [How Fast Do Signatures Learn? Statistical Theory and Applications for Path Regression](https://mlsanity.com/paper/2607.17865/) (2026)
- [Tradable Ito Signatures: A Model-Free, Interpretable Framework for Dynamic Hedging](https://mlsanity.com/paper/2608.18120/) (2026)

## Abstract (arXiv)

In-context learning (ICL) enables transformers to adapt to new tasks from demonstrations without updating their parameters. However, theoretical guarantees for transformers remain limited in general, and elusive in particular when target responses depend nonlinearly on the evolution of observed paths. We establish an ICL framework for path space, using path signature features. Building on the universal linear approximation property of signatures, we construct explicitly a causal softmax transformer with two attention heads per layer that emulates in-context Lasso. Under sparse signature approximation and suitable moment and concentration conditions, we establish finite-sample prediction error bounds. Our analysis goes beyond the IID data setting in the existing ICL theory, allowing dependence among demonstrations and the query. Experiments on in-context sparse recovery, nonlinear path regression, execution-cost prediction, and financial payoff inference demonstrate robustness to changes in observation grids and adaptation to unseen market environments. Across these prediction tasks, transformers with signatures match or outperform vanilla transformer baselines with substantially fewer trainable parameters, highlighting the effectiveness and efficiency of signature-based ICL.
