paper-with-me

Papers

Universal In-Context Approximation By Prompting Fully Recurrent Models

2024-06-03 · Aleksandar Petrov, Tom A. Lamb, Alasdair Paren, Philip H. S. Torr, Adel Bibi

Zero-shot and in-context learning enable solving tasks without model fine-tuning, making them essential for developing generative model solutions. Therefore, it is crucial to understand whether a pretrained model can be prompted to approximate any function, i.e., whether it is a universal in-context approximator. While it was recently shown that transformer models do possess this property, these results rely on their attention mechanism. Hence, these findings do not apply to fully recurrent architectures like RNNs, LSTMs, and the increasingly popular SSMs. We demonstrate that RNNs, LSTMs, GRUs, Linear RNNs, and linear gated architectures such as Mamba and Hawk/Griffin can also serve as universal in-context approximators. To streamline our argument, we introduce a programming language called LSRL that compiles to these fully recurrent architectures. LSRL may be of independent interest for further studies of fully recurrent models, such as constructing interpretability benchmarks. We also study the role of multiplicative gating and observe that architectures incorporating such gating (e.g., LSTMs, GRUs, Hawk/Griffin) can implement certain operations more stably, making them more viable candidates for practical in-context universal approximation.

📄 PDF Abstract BibTeX arXiv:2406.01424

Code (1)

aleksandarpetrov/lsrl 공식 구현

Tasks

In-Context LearningMamba

Similar Papers 제목 키워드 기반

Recurrent Neural Networks are Universal Filters

2019-09-25 · Wenjie Xu, Xiuqiong Chen, Stephen S.-T. Yau

Recurrent neural networks (RNN) are powerful time series modeling tools in ma- chine learning. It has been successfully applied in a variety of fields such as natural language processing (Mikolov et al. (2010), Graves et…

Time Series Analysis

Universality of reservoir systems with recurrent neural networks

2024-03-04 · Hiroki Yasumoto, Toshiyuki Tanaka

Approximation capability of reservoir systems whose reservoir is a recurrent neural network (RNN) is discussed. We show what we call uniform strong universality of RNN reservoir systems for a certain class of dynamical s…

Infinite-dimensional reservoir computing

2023-04-02 · Lukas Gonon, Lyudmila Grigoryeva, Juan-Pablo Ortega

Reservoir computing approximation and generalization bounds are proved for a new concept class of input/output systems that extends the so-called generalized Barron functionals to a dynamic context. This new class is cha…

Generalization Bounds

Prompting a Pretrained Transformer Can Be a Universal Approximator

2024-02-22 · Aleksandar Petrov, Philip H. S. Torr, Adel Bibi

Despite the widespread adoption of prompting, prompt tuning and prefix-tuning of transformer models, our theoretical understanding of these fine-tuning methods remains limited. A key question is whether one can arbitrari…

Universal approximation of flows of control systems by recurrent neural networks

2023-04-01 · Miguel Aguiar, Amritam Das, Karl H. Johansson

We consider the problem of approximating flow functions of continuous-time dynamical systems with inputs. It is well-known that continuous-time recurrent neural networks are universal approximators of this type of system…