atlas

Research map / Architectures and efficiency / RNNs and normalization

Universal In-Context Approximation By Prompting Fully Recurrent Models

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Brain-inspired recurrent architectures · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that fully recurrent models (RNNs, LSTMs, GRUs, Linear RNNs, gated linear RNNs such as Mamba and Hawk/Griffin) can be universal in-context approximators, using a new compiler language LSRL that compiles programs into these architectures' weights.

Problem

Whether fully recurrent architectures (RNNs, LSTMs, GRUs, SSMs) can be prompted to approximate any function in-context with fixed weights, a property previously shown only for transformers.

Approach

Introduces LSRL, a programming language whose programs compile exactly to Linear RNN and Gated Linear RNN weights, and uses it to build prompt-based universal approximators for continuous functions and token-to-token maps; shows multiplicative gating yields more numerically stable conditional operators.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace the original ReLU-based conditional operator with the optimized version (ablation)Compiled LSRL token-function model · Parameter-noise robustnessnumerical stabilityHelped
Replace the original ReLU-based conditional operator with the step-based implementation (ablation)Compiled LSRL model · Input noisenumerical stabilityHelped
Replace the original ReLU-based conditional operator with the step-based implementation (ablation)Compiled LSRL model · Parameter noisenumerical stabilityHurt
Use multiplicative gates for the conditional operator instead of ReLU-based implementations (ablation)Compiled gated Linear RNN · Parameter-noise robustnessnumerical stabilityHelped

Surprising findings

Limitations

Experimental setup

Metrics: approximation error bound numerical robustness to parameter noise

Baselines: transformer universal in-context approximation (Petrov et al. 2023 style memoris Kajitsuka and Sato transformer construction

Builds on: RASP Tracr Linear RNN / SSM Hawk/Griffin GRU LSTM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy